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") {