Browse Source

共性需求完成

V1.0
mk 3 years ago
parent
commit
54ee132302
  1. 50
      src/views/modules/communityService/gxxq/addForm.vue
  2. 7
      src/views/modules/communityService/gxxq/index.vue

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

@ -179,7 +179,6 @@
:options="casOptions"
:props="optionProps"
:show-all-levels="false"
@change="handleChangeScope"
></el-cascader>
</el-form-item>
@ -361,6 +360,10 @@ export default {
resiSearchTagId: [
{ required: true, message: "符合条件人员不能为空", trigger: "bulr" },
],
content: [
{ required: true, message: "详细说明不能为空", trigger: "bulr" },
{ max: 1000, message: "不能超出1000个字符" , trigger: 'blur'},
],
},
newDataRule: {
serverOrgId: [
@ -538,7 +541,6 @@ export default {
if (scopeIdArray) {
this.scopeIdArray = scopeIdArray;
await nextTick();
this.handleChangeScope();
}
}
},
@ -616,25 +618,6 @@ export default {
}
},
handleChangeScope(value) {
// this.newFormData.serviceScopeList = [];
// let selArray = this.$refs["myCascader"].getCheckedNodes();
// console.log("handleChangeScope", selArray);
// selArray.forEach((element) => {
// let obj = {
// objectType:
// element.data.objectType === "grid"
// ? "grid"
// : element.data.objectType === "neighborhood"
// ? "neighborhood"
// : "agency",
// objectId: element.data.objectId,
// objectName: element.data.objectName,
// };
// this.newFormData.serviceScopeList.push(obj);
// });
},
async handleComfirm() {
this.handleAdd();
},
@ -690,13 +673,13 @@ export default {
},
async addFuwu() {
// 01
// 01
if (this.formData.assignFlag) {
this.formData.assignFlag = 1;
} else {
this.formData.assignFlag = 0;
}
// ,'0'
// ,'0'
if (this.newFormData.noticeApproches.length == 0) {
this.newFormData.noticeApproches.push(0);
}
@ -718,13 +701,14 @@ export default {
objectName: this.newArr[i].objectName,
});
}
//
//
let arr = [];
this.newFormData.serviceScopeList.forEach((item) => {
if (typeof item != "string") {
arr.push(item);
}
};
});
//,
this.newFormData.serviceScopeList = arr;
var url = "";
var params = {};
@ -758,7 +742,7 @@ export default {
this.$message.success("添加成功");
this.resetData();
this.$emit("handleComfirm");
} else {
} else if(code>=8000){
this.$message.error(msg);
}
},
@ -772,11 +756,21 @@ export default {
this.formData = {
serviceTypeLevel1Id: "", // id
commonServiceTypeId: "", // id
assignFlag: false,
resiSearchTagId: "", //
resiSearchTagName: "", //
title: "", //
assignInfo: {},
content: "", //
};
this.newFormData = {
noticeApproches: [],
serviceScopeList: [], //
serviceTimeStart: "", //yyyy-MM-dd
serviceTimeEnd: "", //yyyy-MM-dd
content: "", //
};
serverOrgType: "", // community_org ic_user_volunteer party_unit
serverOrgId: "", //Id
}
},
//
startLoading() {

7
src/views/modules/communityService/gxxq/index.vue

@ -203,10 +203,8 @@
</el-table>
<div class="div-flex">
<el-button @click="deleteBatch">
批量删除
</el-button>
<div class="m-page">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@ -216,6 +214,9 @@
layout="sizes, prev, pager, next, total"
:total="total"
>
<el-button @click="deleteBatch">
批量删除
</el-button>
</el-pagination>
</div>
</div>

Loading…
Cancel
Save