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

@@ -717,7 +717,7 @@ export default {
this.$store.dispatch('dispatchPanelLock', { flag: boolean })
},
chartBySync () {
this.panelTabLoading = true
this.$store.dispatch('dispatchHomeLoading', true)
const params = {}
if (this.from === 'chartTemp') {
params.pid = this.obj.id
@@ -725,7 +725,7 @@ export default {
params.panelId = this.showPanel.id
}
this.$post('visual/panel/chart/syncTmpl', params).then(res => {
this.panelTabLoading = false
this.$store.dispatch('dispatchHomeLoading', false)
if (res.code === 200) {
this.getTableData(this.obj.id)
this.$message.success(this.$t('tip.syncSuccess'))