diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 945c12d1..55a0c9eb 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -564,8 +564,7 @@ export default { {dictName: '是否接受其它健康扶贫', checked: false}, ], guaranteeList: [], - - + isAdd: 'false', } }, computed: { @@ -600,10 +599,12 @@ export default { this.flag = true this.id = query.id this.getInfo(this.id) + - } else { + } else if (!query.id) { this.form.currentAreaId = this.user.areaId - } + } + // else if (query.id && isAdd) }) console.log(this.helthList); }, @@ -699,7 +700,7 @@ export default { } this.basicsCheckList.map((item, index) => { - if (item.checked) { + if (item.checked) { this.basicsList.push(index) } }) @@ -707,10 +708,11 @@ export default { this.form.basicsCheck = this.basicsList.join(',') this.guaranteeCheckList.map((item, index) => { - if (item.checked) { + if (item.checked) { this.guaranteeList.push(index) } }) + this.form.guaranteeCheck = this.guaranteeList.join(',') this.checkInit('jcbxCxyiliao',this.basicsCheckList, 0) @@ -726,8 +728,7 @@ export default { this.checkInit('bzcsWubaohu',this.guaranteeCheckList, 2) this.checkInit('bzcsYiliaojiuzhu',this.guaranteeCheckList, 3) this.checkInit('bzcsQita',this.guaranteeCheckList, 4) - - + this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', { ...this.form, id: this.id || '', diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index 8ff253d2..a59cede0 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -70,11 +70,11 @@