[update 88764] 拆分编辑-导入、复制后刷新左侧树
This commit is contained in:
@@ -330,6 +330,10 @@ export const ConfigurableTableMixin = {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
|
this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
|
||||||
}
|
}
|
||||||
|
// 导入完成处理
|
||||||
|
if (typeof this.importExcelDone === 'function') {
|
||||||
|
this.importExcelDone()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
} else {
|
} else {
|
||||||
if (Array.isArray(info.file.response.result) && info.file.response.result.length > 0) {
|
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 }) {
|
handleCopy ({ id }) {
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('confirmReplication'),
|
title: this.$t('confirmReplication'),
|
||||||
@@ -541,6 +546,8 @@ export default {
|
|||||||
copyClause({ id }).then(res => {
|
copyClause({ id }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
this.onClearSelected()
|
||||||
|
this.loadMenuData()
|
||||||
this.loadData()
|
this.loadData()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user