perf: 优化多次批量更新资产修改项显示不全的问题

This commit is contained in:
“huailei000” 2023-03-23 16:36:21 +08:00
parent 2cf27f08b9
commit fd6ab841bf
2 changed files with 8 additions and 1 deletions

View File

@ -220,7 +220,7 @@ export default {
}
this.$nextTick(() => {
// elform
const elFormItem = this.$refs.select.elFormItem
const elFormItem = this.$refs.select?.elFormItem
if (elFormItem && elFormItem.clearValidate) {
elFormItem.clearValidate()
}

View File

@ -6,9 +6,11 @@
<ListTable ref="ListTable" :header-actions="iHeaderActions" :table-config="iTableConfig" />
<PlatformDialog :category="category" :visible.sync="showPlatform" />
<AssetBulkUpdateDialog
v-if="updateSelectedDialogSetting.visible"
:visible.sync="updateSelectedDialogSetting.visible"
v-bind="updateSelectedDialogSetting"
:category="category"
@update="handleAssetBulkUpdate"
/>
<GatewayDialog
:cell="GatewayCell"
@ -279,6 +281,11 @@ export default {
optionInfo(iNew) {
this.$set(this.defaultConfig.columnsMeta.info.formatterArgs, 'info', iNew)
}
},
methods: {
handleAssetBulkUpdate() {
this.$refs.ListTable.reloadTable()
}
}
}
</script>