forked from github/dataease
fix: 修复编辑计算字段可重复提交的问题
This commit is contained in:
parent
cdf010c09c
commit
0d5ec40102
@ -350,6 +350,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.loading = false
|
||||||
this.$refs.myCm.codemirror.on('keypress', () => {
|
this.$refs.myCm.codemirror.on('keypress', () => {
|
||||||
this.$refs.myCm.codemirror.showHint()
|
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 => {
|
post('/chart/field/save/' + this.panelInfo.id, { ...this.fieldForm, originName: this.setNameIdTrans('name', 'id', originName) }).then(response => {
|
||||||
this.closeCalcField()
|
this.closeCalcField()
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
}).catch(res => {
|
||||||
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -300,6 +300,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.loading = false
|
||||||
this.$refs.myCm.codemirror.on('keypress', () => {
|
this.$refs.myCm.codemirror.on('keypress', () => {
|
||||||
this.$refs.myCm.codemirror.showHint()
|
this.$refs.myCm.codemirror.showHint()
|
||||||
})
|
})
|
||||||
@ -402,6 +403,8 @@ export default {
|
|||||||
localStorage.setItem('reloadDsData', 'true')
|
localStorage.setItem('reloadDsData', 'true')
|
||||||
this.closeCalcField()
|
this.closeCalcField()
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
}).catch(res => {
|
||||||
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user