diff --git a/src/apps/AppFourNeighbor/Add.vue b/src/apps/AppFourNeighbor/Add.vue index f03185e0..75da680d 100644 --- a/src/apps/AppFourNeighbor/Add.vue +++ b/src/apps/AppFourNeighbor/Add.vue @@ -65,6 +65,7 @@ export default { userList: [], showUserSelect: false, params: {year: true, month: true, day: true, hour: false, minute: false, second: false}, + isFlag: true } }, computed: { @@ -93,8 +94,12 @@ export default { return this.$u.toast(rules[v]) } } + if(!this.isFlag) { + return + } this.$http.post('/app/apppartyfourlinkage/addOrUpdate', {...this.form}).then(res => { if (res.code == 0) { + this.isFlag = false this.$u.toast('提交成功') uni.$emit('reload') setTimeout(() => { diff --git a/src/apps/AppFourNeighbor/Content.vue b/src/apps/AppFourNeighbor/Content.vue index 0378ed94..451d3106 100644 --- a/src/apps/AppFourNeighbor/Content.vue +++ b/src/apps/AppFourNeighbor/Content.vue @@ -23,7 +23,8 @@ export default { data() { return { id: '', - remark: '' + remark: '', + isFlag: true } }, computed: { @@ -40,8 +41,12 @@ export default { if(!this.remark) { return this.$u.toast('请输入审核意见') } + if(!this.isFlag) { + return + } this.$http.post(`/app/apppartyfourlinkage/auditById?id=${this.id}&status=0&remark=${this.remark}`).then((res) => { if (res.code == 0) { + this.isFlag = false this.$u.toast('审核成功') uni.$emit('reload') setTimeout(() => { diff --git a/src/apps/AppPartyPoints/Add.vue b/src/apps/AppPartyPoints/Add.vue index cb856c89..3c21eef5 100644 --- a/src/apps/AppPartyPoints/Add.vue +++ b/src/apps/AppPartyPoints/Add.vue @@ -55,6 +55,7 @@ export default { integral: '', remark: '', }, + isFlag: true } }, computed: { @@ -82,10 +83,14 @@ export default { return this.$u.toast(rules[v]) } } + if(!this.isFlag) { + return + } this.$http.post('/app/apppartyintegralinfo/add', { partyIntegralList: [{...this.form}], }).then(res => { if (res.code == 0) { + this.isFlag = false this.$u.toast('提交成功') uni.$emit('reload') setTimeout(() => {