Merge pull request #2961 from jumpserver/pr@dev@perf_assetbulkupdate_dialog

perf: 优化多次批量更新资产修改项显示不全的问题
This commit is contained in:
老广
2023-03-24 18:11:42 +08:00
committed by GitHub
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>