fix: 修复编辑计算字段可重复提交的问题

This commit is contained in:
junjun 2022-08-19 15:18:18 +08:00
parent cdf010c09c
commit 0d5ec40102
2 changed files with 6 additions and 0 deletions

View File

@ -350,6 +350,7 @@ export default {
}
},
mounted() {
this.loading = false
this.$refs.myCm.codemirror.on('keypress', () => {
this.$refs.myCm.codemirror.showHint()
})
@ -452,6 +453,8 @@ export default {
post('/chart/field/save/' + this.panelInfo.id, { ...this.fieldForm, originName: this.setNameIdTrans('name', 'id', originName) }).then(response => {
this.closeCalcField()
this.loading = false
}).catch(res => {
this.loading = false
})
},

View File

@ -300,6 +300,7 @@ export default {
}
},
mounted() {
this.loading = false
this.$refs.myCm.codemirror.on('keypress', () => {
this.$refs.myCm.codemirror.showHint()
})
@ -402,6 +403,8 @@ export default {
localStorage.setItem('reloadDsData', 'true')
this.closeCalcField()
this.loading = false
}).catch(res => {
this.loading = false
})
},