diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue
index 4714869d0..1a08f1795 100644
--- a/src/views/components/resiForm.vue
+++ b/src/views/components/resiForm.vue
@@ -1724,7 +1724,8 @@ export default {
this.form.gender = sex == 1 ? '1' : '2'
this.form.oldPeopleFlag = age >= 60 ? 1 : 0
// this.form.IS_BDHJ = huji == _id ? '1' : ''
- this.validateIdcard(this.form.idNum)
+ // 身份证前端验证角色方法 因原型没有注释
+ // this.validateIdcard(this.form.idNum)
console.log('age-----', age, _id)
}
diff --git a/src/views/modules/communityService/commonDemand/addForm.vue b/src/views/modules/communityService/commonDemand/addForm.vue
index 86e7dc984..fa843d4e9 100644
--- a/src/views/modules/communityService/commonDemand/addForm.vue
+++ b/src/views/modules/communityService/commonDemand/addForm.vue
@@ -118,77 +118,6 @@
-
-
-
-
-
-
-
-
-
@@ -201,68 +130,7 @@
-
-
-
-
-
+
@@ -613,6 +481,7 @@ export default {
},
addFormOk(val) {
this.showLabelForm = false;
+ console.log(val);
this.formData.resiSearchTagId = val.tagId;
this.formData.resiSearchTagName = val.tagName;
},
@@ -844,13 +713,11 @@ export default {
} else {
this.formData.feedback = null;
}
- this.formData.resiSearchTagId = this.assignFlag
- ? this.formData.resiSearchTagId
- : "";
- this.formData.resiSearchTagName = this.assignFlag
- ? this.formData.resiSearchTagName
- : "";
- console.log(this.formData);
+ if(!this.formData.assignFlag){
+ this.formData.resiSearchTagId = ""
+ this.formData.resiSearchTagName = ""
+ }
+ console.log( this.formData.resiSearchTagId);
// return false
const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //联系电话
@@ -865,7 +732,6 @@ export default {
});
return false;
}
-
if (this.source === "manage") {
this.formData.serviceCategoryKey = this.serviceCategoryKey;
}
diff --git a/src/views/modules/communityService/gxxq/addForm.vue b/src/views/modules/communityService/gxxq/addForm.vue
index 3a67ab42b..367af9458 100644
--- a/src/views/modules/communityService/gxxq/addForm.vue
+++ b/src/views/modules/communityService/gxxq/addForm.vue
@@ -114,7 +114,8 @@
-
+
+
-
-
至
-
@@ -592,7 +589,7 @@ export default {
},
async handleServiceChange(type, val) {
- console.log(val);
+ this.newFormData.serverOrgId = ''
await this.getServiceuserList(val);
},
@@ -705,6 +702,8 @@ export default {
this.newFormData.serviceScopeList,
"objectId"
);
+ let serviceScopeListCopy = this.newFormData.serviceScopeList.slice();
+
//递归出的数据会有重复,因为一个街道下面有两个社区的话就会循环push两遍,在这里去重
this.newArr = this.sarr.filter(
(v) => !map.has(v.objectId) && map.set(v.objectId, 1)
@@ -724,10 +723,9 @@ export default {
arr.push(item);
}
});
-
this.newFormData.serviceScopeList = arr;
-
- let params = {
+ try {
+ let params = {
title: this.formData.title,
content: this.formData.content,
commonServiceTypeId: this.formData.commonServiceTypeId,
@@ -744,17 +742,22 @@ export default {
url = "/governance/commonDemand/update";
params.id = this.scopeId;
}
-
- console.log(params);
- const { data, code, msg } = await requestPost(url, params);
+ const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.$message.success("添加成功");
this.resetData();
this.$emit("handleComfirm");
- } else if (code >= 8000) {
+ }else{
+ this.newFormData.serviceScopeList = serviceScopeListCopy
this.$message.error(msg);
+ console.log(msg);
}
+ }catch (error) {
+ this.newFormData.serviceScopeList = serviceScopeListCopy
+ this.$message.error(msg);
+ console.log(msg);
+ }
},
handleCancle() {
diff --git a/src/views/modules/communityService/labelConfig/addForm.vue b/src/views/modules/communityService/labelConfig/addForm.vue
index 3d20d7ba5..4b85a02a0 100644
--- a/src/views/modules/communityService/labelConfig/addForm.vue
+++ b/src/views/modules/communityService/labelConfig/addForm.vue
@@ -301,15 +301,12 @@ export default {
this.tagId = row.tagId;
this.tagObj = row;
for (let i in this.tableData) {
- this.handleChangeSource(this.tableData[i], [i], type);
- this.handleChangeFieldsType(this.tableData[i], [i], type);
- setTimeout(() => {
- this.handleChangeFieldsName(this.tableData[i], [i], type);
- }, 300);
+ await this.handleChangeSource(this.tableData[i], [i], type);
+ await this.handleChangeFieldsType(this.tableData[i], [i], type);
+ await this.handleChangeFieldsName(this.tableData[i], [i], type);
}
},
querySearchAsync(val, cb) {
- console.log(this.searchList);
var searchList = this.searchList;
var results = val
? searchList.filter(this.createStateFilter(val))
@@ -355,7 +352,6 @@ export default {
},
// 选择数据源
async handleChangeSource(row, index, type) {
- console.log(row);
if (row.dataSource == "resi") {
let url = "/oper/customize/icformitemgroup/list";
let params = {
@@ -485,7 +481,6 @@ export default {
}
if (row.itemId == "") return;
// 列表对应值的option有的是通过接口获取的就需要再通过optionSourceType判断下
- console.log(arr[0].optionSourceType);
if (arr[0].optionSourceType == "remote") {
let url = "";
let params = {};