From 5a5b64ccbe07b3e9ef74329692c463d29128d78b Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 8 Jun 2023 17:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=89=8D=E7=AB=AF=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E8=8C=83=E5=9B=B4=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/gxxq/addForm.vue | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/modules/communityService/gxxq/addForm.vue b/src/views/modules/communityService/gxxq/addForm.vue index 0558cc899..b462d46cf 100644 --- a/src/views/modules/communityService/gxxq/addForm.vue +++ b/src/views/modules/communityService/gxxq/addForm.vue @@ -715,26 +715,26 @@ export default { this.newArr = [] // 如果是编辑的话回填的数据会有数组字符串需要将不是对象属性的过滤掉 let arr = []; - let isOk = false; + // let isOk = false; this.newFormData.serviceScopeList.forEach((item) => { if (typeof item != "string") { arr.push(item); } }); - for(let i in arr){ - if(arr[i].objectType == "neighborhood" || - arr[i].objectType == "agency" || - arr[i].objectType == "grid"){ - isOk = true; - }else{ - isOk = false; - this.$message.error("请选择正确的网格,社区,楼栋!"); - return - } - } - console.log( this.newArr); + // for(let i in arr){ + // if(arr[i].objectType == "neighborhood" || + // arr[i].objectType == "agency" || + // arr[i].objectType == "grid"){ + // isOk = true; + // }else{ + // isOk = false; + // this.$message.error("请选择正确的网格,社区,楼栋!"); + // return + // } + // } + this.newFormData.serviceScopeList = arr; - if (!isOk && this.formData.assignFlag) return + // if (!isOk && this.formData.assignFlag) return var url = ""; var params = {}; if (this.formType == "edit") {