diff --git a/src/views/modules/base/residentManagement/resiDisability/resiDisability.vue b/src/views/modules/base/residentManagement/resiDisability/resiDisability.vue index b9e223e60..52364c49c 100644 --- a/src/views/modules/base/residentManagement/resiDisability/resiDisability.vue +++ b/src/views/modules/base/residentManagement/resiDisability/resiDisability.vue @@ -394,7 +394,6 @@ diff --git a/src/views/modules/base/residentManagement/veteran/veteran.vue b/src/views/modules/base/residentManagement/veteran/veteran.vue index 61c2de298..5097fa831 100644 --- a/src/views/modules/base/residentManagement/veteran/veteran.vue +++ b/src/views/modules/base/residentManagement/veteran/veteran.vue @@ -483,7 +483,6 @@ diff --git a/src/views/modules/base/residentManagement/volunteer/addForm.vue b/src/views/modules/base/residentManagement/volunteer/addForm.vue index 20bff05be..7b5a36990 100644 --- a/src/views/modules/base/residentManagement/volunteer/addForm.vue +++ b/src/views/modules/base/residentManagement/volunteer/addForm.vue @@ -87,7 +87,7 @@
出生日期: - {{formData.birthday||'--'}} + {{formData.birthday.substr(0,10)||'--'}}
民族: - {{ nationName || "--" }} + {{ formData.nationName || "--" }}
@@ -217,7 +217,7 @@
文化程度: - {{ formData.disabilityCategoryName || "--" }} + {{ formData.cultureLevelName || "--" }}
@@ -251,7 +251,7 @@
志愿者类别: - {{ formData.volunteerCategoryNames || "--" }} + {{ formData.volunteerCategorieNames.join(',') || "--" }}
兴趣特长: - {{ formData.interestDesc || "--" }} + {{ formData.hobbyNames.join(',') || "--" }}
- + multiple + collapse-tags + > + + +
@@ -376,7 +388,7 @@ export default { workUnit: "", volunteerCategories: [], occupation: "", - interestDesc: "", + hobbyCodes: [], remark: "", }, genderList, @@ -395,6 +407,7 @@ export default { educationList: [], volunteerList: [], idCard_type: [], + hobbyList:[] }, }; }, @@ -460,12 +473,16 @@ export default { this.$http.post("sys/dict/data/dictlist", { dictType: "idCard_type", }), + this.$http.post("sys/dict/data/dictlist", { + dictType: "SPECIAL_SKILL", + }), ]; const dictKeys = [ "nationList", "educationList", "volunteerList", "idCard_type", + "hobbyList" ]; // 对应的键名 const results = await Promise.all(requests); diff --git a/src/views/modules/base/residentManagement/volunteer/volunteer.vue b/src/views/modules/base/residentManagement/volunteer/volunteer.vue index 4b761131f..0a3c693a2 100644 --- a/src/views/modules/base/residentManagement/volunteer/volunteer.vue +++ b/src/views/modules/base/residentManagement/volunteer/volunteer.vue @@ -132,13 +132,23 @@ >
- + multiple + collapse-tags + > + + +
+ + @@ -474,7 +489,7 @@ export default { cultureLevel: "", volunteerCategories: "", occupation: "", - hobbyInfo: "", + hobbyCodes: [], remark: "", }, pageNo: 1, @@ -500,7 +515,8 @@ export default { dicts: { educationList: [], nationList: [], - volunteerList:[] + volunteerList:[], + hobbyList:[] }, //字典对象 }; }, @@ -536,8 +552,11 @@ export default { this.$http.post("sys/dict/data/dictlist", { dictType: "VOLUNTEER_CATEGORY", }), + this.$http.post("sys/dict/data/dictlist", { + dictType: "SPECIAL_SKILL", + }), ]; - const dictKeys = ["nationList", "educationList", "volunteerList"]; // 对应的键名 + const dictKeys = ["nationList", "educationList", "volunteerList","hobbyList"]; // 对应的键名 const results = await Promise.all(requests); results.forEach((result, index) => { @@ -639,7 +658,14 @@ export default { }, // 编辑触发事件 - async handleEdit(row) {}, + async handleEdit(row) { + this.addDiaTitle = "编辑"; + this.formType = "edit"; + this.showAdd = true; + this.$nextTick(() => { + this.$refs.ref_add_form.initForm("edit", row); + }); + }, // 新增弹出框组件取消事件 handleClose() { this.formType = ""; diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue index d03616b64..04f11621c 100644 --- a/src/views/modules/shequ/chaxun.vue +++ b/src/views/modules/shequ/chaxun.vue @@ -498,7 +498,7 @@ export default { this.showSmatrForm = true; this.$nextTick(() => { this.$refs.smatr_rules_form.initForm( - this.rulesData.length == 0 ? this.childrenRulesData : this.rulesData + this.rulesData.length == 0 ? this.childrenRulesData : this.rulesData ); }); }, @@ -556,8 +556,7 @@ export default { formData.append("type", this.searchData.type); const { data, code, msg } = await requestPost(url, formData); if (code == 0) { - this.rulesData = data; - console.log(this.rulesData); + this.rulesData = data && data.length !== 0 ? data : null; } else { console.log(msg); }