Browse Source

去除前端服务范围限制

feature
mk 2 years ago
parent
commit
5a5b64ccbe
  1. 28
      src/views/modules/communityService/gxxq/addForm.vue

28
src/views/modules/communityService/gxxq/addForm.vue

@ -715,26 +715,26 @@ export default {
this.newArr = [] this.newArr = []
// //
let arr = []; let arr = [];
let isOk = false; // let isOk = false;
this.newFormData.serviceScopeList.forEach((item) => { this.newFormData.serviceScopeList.forEach((item) => {
if (typeof item != "string") { if (typeof item != "string") {
arr.push(item); arr.push(item);
} }
}); });
for(let i in arr){ // for(let i in arr){
if(arr[i].objectType == "neighborhood" || // if(arr[i].objectType == "neighborhood" ||
arr[i].objectType == "agency" || // arr[i].objectType == "agency" ||
arr[i].objectType == "grid"){ // arr[i].objectType == "grid"){
isOk = true; // isOk = true;
}else{ // }else{
isOk = false; // isOk = false;
this.$message.error("请选择正确的网格,社区,楼栋!"); // this.$message.error(",,!");
return // return
} // }
} // }
console.log( this.newArr);
this.newFormData.serviceScopeList = arr; this.newFormData.serviceScopeList = arr;
if (!isOk && this.formData.assignFlag) return // if (!isOk && this.formData.assignFlag) return
var url = ""; var url = "";
var params = {}; var params = {};
if (this.formType == "edit") { if (this.formType == "edit") {

Loading…
Cancel
Save