From c0c62c595abcaa4d5ce0b92131ec59fd823206c8 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 5 Sep 2023 14:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E7=9B=8A=E5=B2=97=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=88=97=E8=A1=A8=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 63 +- .../publicWelfarePost/addForm.vue | 609 ++++++++++++++ .../publicWelfarePost/publicWelfarePost.vue | 790 ++++++++++++++++++ .../subsistenceAllowance.vue | 3 +- 4 files changed, 1459 insertions(+), 6 deletions(-) create mode 100644 src/views/modules/base/residentManagement/publicWelfarePost/addForm.vue create mode 100644 src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index ced7c2bf0..532e3ffe3 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -468,6 +468,18 @@ + + + +
取 消 @@ -531,7 +543,7 @@ - + + +
取 消 @@ -1142,6 +1165,7 @@ export default { zuzhi: "", disableFlag: "", newRoles: [], + manageScopes:[] }, // 人员调动 transferForm: { @@ -1248,6 +1272,16 @@ export default { }, selDeptType: "", + + // 组织树 + orgOptions: [], + orgOptionProps :{ + multiple: false, + value: 'agencyId', + label: 'agencyName', + children: 'subAgencyList', + checkStrictly: true + } }; }, created () { @@ -1257,6 +1291,7 @@ export default { this.getAgencyStaffListData(); this.getDutyList(); this.getRoleList(); + this.getOrgTreeList() // this.getNavigation() // 更新顶部面包屑 this.assembleBreadcrumbArr(localStorage.getItem("agencyId"), "agency"); @@ -1302,6 +1337,23 @@ export default { mounted () { }, methods: { + getOrgTreeList () { + this.$http + .post('/gov/org/customeragency/agencygridtree', {}) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取组织树成功', res.data) + this.orgOptions = [] + this.orgOptions.push(res.data) + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, + // 点击后获取id handleChangeTransferCascader (e) { console.log("*********************"); @@ -1560,8 +1612,8 @@ export default { : orgType == "dept" ? this.currentDepartmentId : this.currentGridOrgId, + manageScopes:this.peoForm.manageScopes }; - const { data, code, msg } = await requestPost(url, params); if (code === 0) { @@ -1609,9 +1661,9 @@ export default { roles: this.peoForm.duty, newRoles: this.peoForm.newRoles, agencyId: this.currentAgencyId, - idCard: this.peoForm.idCard + idCard: this.peoForm.idCard, + manageScopes:this.peoForm.manageScopes }; - const { data, code, msg } = await requestPost(url, params); if (code === 0) { @@ -1952,12 +2004,14 @@ export default { } }); this.peoForm.newRoles = existedRoleArr; + this.peoForm.manageScopes = data.manageScopes } else { this.$message.error(msg); } }, // 修改人员 async xiuPeo (row) { + console.log('2'); this.modifyPeo = true; this.peoForm.orgType = "agency"; @@ -1995,6 +2049,7 @@ export default { } }); this.peoForm.newRoles = existedRoleArr; + this.peoForm.manageScopes = data.manageScopes } else { this.$message.error(msg); } diff --git a/src/views/modules/base/residentManagement/publicWelfarePost/addForm.vue b/src/views/modules/base/residentManagement/publicWelfarePost/addForm.vue new file mode 100644 index 000000000..e9ea05198 --- /dev/null +++ b/src/views/modules/base/residentManagement/publicWelfarePost/addForm.vue @@ -0,0 +1,609 @@ + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue b/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue new file mode 100644 index 000000000..4e5af3379 --- /dev/null +++ b/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue @@ -0,0 +1,790 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue b/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue index 1f33272a8..d08622c88 100644 --- a/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue +++ b/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue @@ -271,7 +271,6 @@ @@ -530,7 +529,7 @@ console.log("失败", err); file.onError(); //上传失败的文件会从文件列表中删除 // this.$message.error('导入失败') - }); + });// }, async handleComfirmUpload () { this.importLoading = true;