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 = []
//
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") {

Loading…
Cancel
Save