From 65f340e3b06709d3fb6c77616f3e3384c936aec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E8=AF=9A?= <1009578407@qq.com> Date: Fri, 30 Oct 2026 13:33:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E7=A6=8F=E5=88=A9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=89=80=E6=9C=89=E9=A1=B5=E9=9D=A2=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E4=B8=89=E7=BA=A7=E5=8D=95=E4=BD=8D=E3=80=81=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WelfareListServiceImpl.java | 1 - .../zhgh/welfare/projectMange/filterUser.js | 51 ++----------------- .../welfare/selectionSituation/index.html | 4 -- .../zhgh/welfare/welfareUser/addUser.js | 50 +----------------- .../zhgh/welfare/welfareUser/index.html | 46 ----------------- 5 files changed, 5 insertions(+), 147 deletions(-) diff --git a/src/main/java/com/budwk/app/zhgh/welfare/service/impl/WelfareListServiceImpl.java b/src/main/java/com/budwk/app/zhgh/welfare/service/impl/WelfareListServiceImpl.java index 0d06541..f20dae4 100644 --- a/src/main/java/com/budwk/app/zhgh/welfare/service/impl/WelfareListServiceImpl.java +++ b/src/main/java/com/budwk/app/zhgh/welfare/service/impl/WelfareListServiceImpl.java @@ -735,7 +735,6 @@ public class WelfareListServiceImpl extends BaseServiceImpl impleme entities.add(new ExcelExportEntity("在职状态", "userState", 20)); entities.add(new ExcelExportEntity("所属工会", "welfareUnionName", 20)); entities.add(new ExcelExportEntity("所属单位", "welfareUnitName", 20)); - entities.add(new ExcelExportEntity("三级单位", "threeUnitName", 20)); entities.add(new ExcelExportEntity("备注", "remark", 20)); // 设置导出参数 diff --git a/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js b/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js index 075c477..fe9e687 100644 --- a/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js +++ b/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js @@ -62,7 +62,7 @@ const filterUser = { - - - - - - - - - - { - if (res.code === 0) { - this.threeUnitOptions = res.data || [] - } else { - this.$message.error(res.msg || "三级单位查询失败") - } - }) - .catch(() => { - this.$message.error("三级单位查询失败,请稍后重试") - }) - }, - pageData() { this.tableLoading = true this.$axios diff --git a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html index ede80cb..77f903e 100644 --- a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html +++ b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html @@ -65,10 +65,6 @@ layout("/layouts/platform.html"){ - - - diff --git a/src/main/resources/views/platform/zhgh/welfare/welfareUser/addUser.js b/src/main/resources/views/platform/zhgh/welfare/welfareUser/addUser.js index e204a55..1a0fdb7 100644 --- a/src/main/resources/views/platform/zhgh/welfare/welfareUser/addUser.js +++ b/src/main/resources/views/platform/zhgh/welfare/welfareUser/addUser.js @@ -63,7 +63,7 @@ const addUser = { - @@ -76,17 +76,6 @@ const addUser = { - - - - - - - - - { - if (res.code === 0) { - this.$set(this, "threeUnitOptions", res.data || []) - } else { - this.$message.error(res.msg || "三级单位查询失败") - } - }) - .catch(() => { - this.$message.error("三级单位查询失败,请稍后重试") - }) - }, - pageData() { this.tableLoading = true this.$axios diff --git a/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html b/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html index 7047496..6741ea4 100644 --- a/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html +++ b/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html @@ -81,26 +81,12 @@ layout("/layouts/platform.html"){ collapse-tags placeholder="请选择所属单位" style="width: 100%" - @change="unitIdsChange" v-model="pageForm.unitIds" > - - - - - - - - @@ -283,7 +265,6 @@ layout("/layouts/platform.html"){ }, unionOptions: [], unitOptions: [], - threeUnitOptions: [], sexOptions: ["男", "女"], projectSelectOptions: [], tableColumns: [ @@ -295,7 +276,6 @@ layout("/layouts/platform.html"){ { prop: "userState", label: "在职状态", sortable: true }, { prop: "welfareUnionName", label: "所属工会", sortable: true }, { prop: "welfareUnitName", label: "所属单位", sortable: true }, - { prop: "threeUnitName", label: "三级单位", sortable: true }, { prop: "remark", label: "备注", sortable: true } ], @@ -423,32 +403,6 @@ layout("/layouts/platform.html"){ this.doSearch() }) }, - // 根据已选所属单位查询直属三级单位,筛选项只保留当前所属单位范围内的数据。 - async unitIdsChange(unitIds) { - this.$set(this.pageForm, "threeUnitIds", []) - this.$set(this, "threeUnitOptions", []) - if (!unitIds || unitIds.length === 0) { - return - } - try { - const responses = await Promise.all(unitIds.map((unitId) => this.$axios.post("/platform/sys/unit/child", { pid: unitId }))) - const failedResponse = responses.find((res) => res.code !== 0) - if (failedResponse) { - this.$message.error(failedResponse.msg || "三级单位查询失败") - return - } - const optionMap = {} - responses.forEach((res) => { - const options = res.data || [] - options.forEach((item) => { - optionMap[item.id] = item - }) - }) - this.$set(this, "threeUnitOptions", Object.keys(optionMap).map((id) => optionMap[id])) - } catch (e) { - this.$message.error("三级单位查询失败,请稍后重试") - } - }, pageData() { this.tableLoading = true this.$axios