diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index dcbf5263..8ff253d2 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -113,7 +113,7 @@ -
+

风险解除跟踪

diff --git a/src/apps/AppMonitoringObject/MonitorAddView.vue b/src/apps/AppMonitoringObject/MonitorAddView.vue index 098b2086..47837c73 100644 --- a/src/apps/AppMonitoringObject/MonitorAddView.vue +++ b/src/apps/AppMonitoringObject/MonitorAddView.vue @@ -93,9 +93,9 @@ export default { } } - let fromData = new FormData() + var formData = new FormData() for (let key in params) { - fromData.append(key, params[key]) + formData.append(key, params[key]) } this.$http.post(url , formData).then(res => { if (res.code === 0) { diff --git a/src/apps/AppMonitoringObject/MonitorRemoveView.vue b/src/apps/AppMonitoringObject/MonitorRemoveView.vue index 2fb8d59c..6675442e 100644 --- a/src/apps/AppMonitoringObject/MonitorRemoveView.vue +++ b/src/apps/AppMonitoringObject/MonitorRemoveView.vue @@ -112,42 +112,34 @@ export default { current: img }) }, + submit() { if (this.type == 0) { // 纳入审核 - this.$http.post(`/app/apppreventionreturntopoverty/examine`,null,{ - params: { - ...this.form, - id: this.id, - } - }).then(res => { - if (res.code == 0) { - this.$u.toast('提交成功') - uni.$emit('reload') - setTimeout(() =>{ - uni.navigateBack({ - delta: 2 - }) - },600) - } - }) + var url = `/app/apppreventionreturntopoverty/examine` + var params = { + ...this.form, + id: this.id, + } } else if (this.type == 1){ // 解除审核 - this.$http.post(`/app/apppreventionreturntopoverty/relieve`,null,{ - params: { - ...this.form, - id: this.id, - } - }).then(res => { - if (res.code == 0) { - this.$u.toast('提交成功') - uni.$emit('reload') - setTimeout(() =>{ - uni.navigateBack({ - delta: 2 - }) - },600) - } - }) + url = `/app/apppreventionreturntopoverty/relieve` } + + var formData = new FormData() + for (let key in params) { + formData.append(key, params[key]) + } + + this.$http.post(url,formData).then(res => { + if (res.code == 0) { + this.$u.toast('提交成功') + uni.$emit('reload') + setTimeout(() =>{ + uni.navigateBack({ + delta: 2 + }) + },600) + } + }) } }, }