feat:保存 编辑 新建module时 刷新拓扑图

This commit is contained in:
zhangyu
2020-09-03 14:31:21 +08:00
parent f77a003fe5
commit 6e79d1ece0
6 changed files with 79 additions and 59 deletions

View File

@@ -520,6 +520,7 @@
this.$put('module', this.editModule).then(response => {
if (response.code === 200) {
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$store.commit('setReloadFacade');
this.esc(true);
} else {
this.$message.error(response.msg);
@@ -529,6 +530,7 @@
this.$post('module', this.editModule).then(response => {
if (response.code === 200) {
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$store.commit('setReloadFacade');
this.esc(true);
} else {
this.$message.error(response.msg);
@@ -550,6 +552,7 @@
this.$delete("module?ids=" + this.editModule.id).then(response => {
if (response.code === 200) {
this.$message({duration: 1000, type: 'success', message: this.$t("tip.deleteSuccess")});
this.$store.commit('setReloadFacade');
this.esc(true);
} else {
this.$message.error(response.msg);