NEZ-2274 feat:图表同步操作 增加遮罩层避免用户重复操作

This commit is contained in:
zyh
2022-10-20 16:25:03 +08:00
parent 02653c5552
commit 893b612b58
7 changed files with 14 additions and 14 deletions

View File

@@ -505,9 +505,9 @@ export default {
this.rightBox.chartTemp.show = true
},
chartBySync () {
this.panelTabLoading = true
this.$store.dispatch('dispatchHomeLoading', true)
this.$post('visual/panel/chart/syncTmpl', { panelId: this.showPanel.id }).then(res => {
this.panelTabLoading = false
this.$store.dispatch('dispatchHomeLoading', false)
if (res.code === 200) {
this.getData(this.filter)
this.$message.success(this.$t('tip.syncSuccess'))