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