[update 88764] 拆分编辑-导入、复制后刷新左侧树

This commit is contained in:
danshihao
2024-08-16 14:27:55 +08:00
parent 3c2d00087b
commit 98214fe3ac
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -330,6 +330,10 @@ export const ConfigurableTableMixin = {
} else {
this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
}
// 导入完成处理
if (typeof this.importExcelDone === 'function') {
this.importExcelDone()
}
this.loadData()
} else {
if (Array.isArray(info.file.response.result) && info.file.response.result.length > 0) {
@@ -532,6 +532,11 @@ export default {
}
})
},
// 导入完成刷新左侧树
importExcelDone () {
this.onClearSelected()
this.loadMenuData()
},
handleCopy ({ id }) {
this.$confirm({
title: this.$t('confirmReplication'),
@@ -541,6 +546,8 @@ export default {
copyClause({ id }).then(res => {
if (res.success) {
this.$message.success(res.message)
this.onClearSelected()
this.loadMenuData()
this.loadData()
} else {
this.$message.warning(res.message)