BUG 29221

This commit is contained in:
aixianling
2022-04-20 17:46:45 +08:00
parent 22e7c83a74
commit 71631bf2ca
2 changed files with 6 additions and 2 deletions

View File

@@ -113,13 +113,15 @@ export default {
submit() { submit() {
this.$refs.DialogForm.validate(v => { this.$refs.DialogForm.validate(v => {
if (v) { if (v) {
let loading = this.$loading({text: "提交中..."})
this.instance.post("/app/apppartyintegralinfo/addOrUpdate", this.form).then(res => { this.instance.post("/app/apppartyintegralinfo/addOrUpdate", this.form).then(res => {
loading.close()
if (res?.code == 0) { if (res?.code == 0) {
this.$message.success("提交成功!") this.$message.success("提交成功!")
this.dialog = false this.dialog = false
this.getTableData() this.getTableData()
} }
}) }).catch(() => loading.close())
} }
}) })
}, },

View File

@@ -115,13 +115,15 @@ export default {
submit() { submit() {
this.$refs.DialogForm.validate(v => { this.$refs.DialogForm.validate(v => {
if (v) { if (v) {
let loading = this.$loading({text: "提交中..."})
this.instance.post("/app/apppartyfourlinkage/addOrUpdate", this.form).then(res => { this.instance.post("/app/apppartyfourlinkage/addOrUpdate", this.form).then(res => {
loading.close()
if (res?.code == 0) { if (res?.code == 0) {
this.$message.success("提交成功!") this.$message.success("提交成功!")
this.dialog = false this.dialog = false
this.getTableData() this.getTableData()
} }
}) }).catch(() => loading.close())
} }
}) })
}, },