From 28236395f457c648befc8a40c73f45f6c83a0be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Thu, 17 Apr 2025 18:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E6=8E=A5=E5=8F=A3=E7=AD=89?= =?UTF-8?q?=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 49 +++- .../elderlyArchives/cpts/add-old.vue | 48 ++-- .../elderlyArchives/cpts/info-old.vue | 5 +- .../elderlyArchives/index.vue | 132 ++++++---- .../cpts/volunteers-list.vue | 133 +++++----- .../volunteerProfile/cpts/service-info.vue | 213 ++-------------- .../volunteerProfile/cpts/service-record.vue | 213 ++++++++++++++++ .../volunteerProfile/cpts/volunteers-list.vue | 163 ------------ .../volunteerProfile/index.vue | 234 +++--------------- .../communityGovern/cpt/project-info.vue | 2 - .../pairingRecords/cpts/service-team.vue | 4 +- .../volunteerService/pairingRecords/index.vue | 52 ++-- 12 files changed, 540 insertions(+), 708 deletions(-) create mode 100644 src/views/modules/informationArchive/volunteerProfile/cpts/service-record.vue delete mode 100644 src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index adee93749..8878f0280 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -480,7 +480,7 @@ + + + + + + @@ -620,6 +626,12 @@ + + + + + + innerArray[innerArray.length - 1]); // 用于存储提取结果的 Set 对象 @@ -1726,6 +1768,7 @@ export default { peoForm: { orgType }, } = this; let params = { + volunteerOrgId:this.peoForm.volunteerOrgId, orgType: this.peoForm.orgType, name: this.peoForm.name, mobile: this.peoForm.mobile, @@ -1743,12 +1786,13 @@ export default { orgLevels:this.peoForm.orgLevels, manageOrgIds:this.manageOrgIds }; + console.log(params,"dslkjfdsj"); const { data, code, msg } = await requestPost(url, params); - if (code === 0) { this.$message.success("添加成功"); this.dialogVisiblePeo = false; this.peoForm = []; + this.serviceGroupShow=false, this.getAgencyList(); this.getDepartmentList(); this.getGridList(); @@ -2002,6 +2046,7 @@ export default { }, /** 取消按钮 */ cancelPeo () { + this.serviceGroupShow=false, this.dialogVisiblePeo = false; this.peoFormRest(); }, diff --git a/src/views/modules/informationArchive/elderlyArchives/cpts/add-old.vue b/src/views/modules/informationArchive/elderlyArchives/cpts/add-old.vue index a201383cd..a03ad5b38 100644 --- a/src/views/modules/informationArchive/elderlyArchives/cpts/add-old.vue +++ b/src/views/modules/informationArchive/elderlyArchives/cpts/add-old.vue @@ -160,7 +160,7 @@ - @@ -200,14 +200,14 @@ - + v-model.trim="childrenId" size="small" placeholder="请选择" clearable> @@ -234,7 +234,7 @@ - @@ -276,20 +276,6 @@ -
@@ -321,18 +307,20 @@ export default { data() { return { + childrenId:"", + typefatherId:"", childrenList:[], genderList:[ { - value:1, + value:"1", label:"男" }, { - value:2, + value:"2", label:"女" }, { - value:0, + value:"0", label:"未知" } ], @@ -575,6 +563,18 @@ this.formType = type if (type === 'edit') { this.formData = row + console.log(this.formData,"dssdl"); + if (this.formData.serviceDemand) { + let splitStrings = this.formData.serviceDemand.split(","); + this.typefatherId=splitStrings[0] + this.formData.statusCategory=this.formData.statusCategory.split(",") + if ( this.childrenId=splitStrings[1]) { + this.handleChidren(this.typefatherId) + } + console.log(this.childrenId,this.typefatherId,"dslkjdsj"); + + } + } else { this.formData = { } @@ -616,6 +616,9 @@ async addActivity() { if(this.formType=="add"){ let url = '/voluntary/elderlyInfo/save' + let combinedString = this.typefatherId + "," + this.childrenId; + this.formData.serviceDemand=combinedString + this.formData.statusCategory=this.formData.statusCategory.join(",") const { data, code, msg } = await requestPost(url, this.formData) if (code === 0) { this.$message({ @@ -628,6 +631,9 @@ this.$emit('closeAdd') }else{ let url = '/voluntary/elderlyInfo/update' + let combinedString = this.typefatherId + "," + this.childrenId; + this.formData.serviceDemand=combinedString + this.formData.statusCategory=this.formData.statusCategory.join(",") const { data, code, internalMsg } = await requestPost(url, this.formData) if (code === 0) { this.$message({ diff --git a/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue b/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue index 383adf035..93254e734 100644 --- a/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue +++ b/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue @@ -44,8 +44,8 @@ - + @@ -488,7 +488,6 @@ async initForm(row) { this.startLoading() console.log(row,"dsclkjdslk"); - this.formData=row this.endLoading() diff --git a/src/views/modules/informationArchive/elderlyArchives/index.vue b/src/views/modules/informationArchive/elderlyArchives/index.vue index 1859ce1a8..40a2673e6 100644 --- a/src/views/modules/informationArchive/elderlyArchives/index.vue +++ b/src/views/modules/informationArchive/elderlyArchives/index.vue @@ -4,42 +4,43 @@
- + - + - + - + - + - + - + @@ -64,83 +65,80 @@
- 新建档案 - 批量导入 + 新建档案 + + 导入 +
导出
- - + style="width: 100%;margin-top:16px" @select-all="selectAll" @selection-change="handelSelection"> + + - + - + - + - + - + - + - + - + - + - + - +
- 批量删除 + 批量删除 @@ -152,16 +150,16 @@ @dialogCancle="addFormCancleInit" @dialogOk="addFormOkInit"> + title="详情" width="1050px" top="5vh" class="dialog-h" @closed="diaInitClose"> - + title="结对志愿者" width="1050px" top="5vh" class="dialog-h" @closed="diaInitClose"> + - +
+ + + + \ No newline at end of file diff --git a/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue b/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue deleted file mode 100644 index ebc4560d4..000000000 --- a/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - diff --git a/src/views/modules/informationArchive/volunteerProfile/index.vue b/src/views/modules/informationArchive/volunteerProfile/index.vue index a57d9098f..75c1eafeb 100644 --- a/src/views/modules/informationArchive/volunteerProfile/index.vue +++ b/src/views/modules/informationArchive/volunteerProfile/index.vue @@ -4,14 +4,14 @@
- + - + @@ -101,23 +101,14 @@
- - - - - - - + title="详情" width="1050px" top="5vh" class="dialog-h" > + + - + @@ -126,7 +117,6 @@