[update 88764] 拆分编辑-导入、复制后刷新左侧树
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user