NEZ-2787 fix:Project 删除后,右侧 topo 未刷新

This commit is contained in:
zhangyu
2023-04-19 17:32:37 +08:00
parent be1406caf6
commit c1120da417
4 changed files with 24 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ export default {
type: Boolean
}
},
inject: ['getTableData'],
inject: ['getTableData', 'delCallBack'],
methods: {
batchDelete: function () {
if (!this.single) {
@@ -215,6 +215,9 @@ export default {
return this.idStr.indexOf(item.id) !== -1
})
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
if (this.delCallBack) {
this.delCallBack(this.idStr)
}
// this.$emit('after')
} else {
this.$message.error(res.msg)