From 7144ac4c756bbcacb8d3ea107669be4851e14611 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Sun, 9 Oct 2022 17:46:40 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/organization/organization.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 7853ade91..54cdf2e95 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -2477,7 +2477,7 @@ export default { const url = "/gov/org/agency/addagency-v2"; let params = { - parentAgencyId: this.parentAgencyId, + parentAgencyId: this.currentAgencyId, agencyName: this.agencyForm.agencyName, level: this.agencyForm.level, areaCodeSwitch: "closed", From 03fa771115fa0d0ed161594f7c2cd9f52f0b757d Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 10 Oct 2022 16:48:08 +0800 Subject: [PATCH 02/18] =?UTF-8?q?=E9=80=9A=E8=AE=AF=E5=BD=95bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=E5=BF=83=E7=B4=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 117 ++++++++---------- 1 file changed, 52 insertions(+), 65 deletions(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 54cdf2e95..8195c3c4f 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -728,11 +728,20 @@ + @@ -1254,24 +1263,7 @@ export default { roleList: [], // 级联数据 - options: [ - { - value: "", - label: "", - children: [ - { - value: "", - label: "", - children: [], - }, - { - value: "", - label: "", - children: [], - }, - ], - }, - ], + options: [], selectValue: [], // 顶部 面包屑 breadcrumbArr: [], @@ -1358,30 +1350,24 @@ export default { }, methods: { // 点击后获取id - handleChange(e) { - this.transferForm.orgId = e[1]; - if (this.transferForm.orgId != null || "") { - if (this.transferForm.orgId === 0) { - if (e[2] == null || "") { - this.transferForm.orgType = "dept"; - this.transferForm.orgId = "14f572e724eecf7668b655505d789cab"; - } else { - this.transferForm.orgId = e[2]; - this.transferForm.orgType = "dept"; - } + handleChangeTransferCascader(e) { + console.log("*********************"); + function findItem(valueArr, coll) { + console.log("--------------------"); + console.log(valueArr); + let copyArr = [...valueArr]; + let firstValue = copyArr.shift(); + let item = coll.find((a) => a.value == firstValue); + console.log(item); + if (copyArr.length > 0) { + return findItem(copyArr, item.children); } else { - if (e[2] == null || "") { - this.transferForm.orgType = "grid"; - this.transferForm.orgId = "63d5ff92ea981b1c58e4914ac894c610"; - } else { - this.transferForm.orgId = e[2]; - this.transferForm.orgType = "grid"; - } + return item; } - } else { - this.transferForm.orgId = e[0]; - this.transferForm.orgType = "agency"; } + let item = findItem(e, this.options); + this.transferForm.orgId = item.value; + this.transferForm.orgType = item.type; }, /** 查询系统工作人员角色(职责) */ async getDutyList() { @@ -2166,31 +2152,32 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { - this.options[0].label = data.agencyName; - this.options[0].value = data.agencyId; - - console.log("--------", this.options); - let depart = Array.from(data.departmentList); - let gr = Array.from(data.gridList); - - depart.forEach((item) => { - const ob = { - value: item.deptId, - label: item.deptName, - }; - this.options[0].children[0].children.push(ob); - }); - this.options[0].children[0].value = 0; - this.options[0].children[0].label = "部门"; - this.options[0].children[1].value = 1; - this.options[0].children[1].label = "网格"; - gr.forEach((item) => { - const obj = { - value: item.gridId, - label: item.gridName, + function computeOption(opt) { + return { + label: opt.agencyName, + value: opt.agencyId, + type: "agency", + children: [ + ...(opt.departmentList || []).map((item) => ({ + label: item.deptName, + value: item.deptId, + type: "dept", + typeName: "部门", + })), + ...(opt.gridList || []).map((item) => ({ + label: item.gridName, + value: item.gridId, + type: "grid", + typeName: "网格", + })), + ...(opt.subAgencyList || []).map((item) => computeOption(item)), + ], }; - this.options[0].children[1].children.push(obj); - }); + } + if (data) { + this.options = [computeOption(data)]; + console.log("树树树树树树树树树树", this.options[0]); + } } else { this.$message.error("树查询失败", msg); } From 8ff19694ab70536ad1e514b052ac9d75304e27d5 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 10 Oct 2022 17:35:59 +0800 Subject: [PATCH 03/18] =?UTF-8?q?=E5=86=8D=E5=8F=91=E5=86=8D=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/organization/organization.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 8195c3c4f..8833356ca 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -728,7 +728,7 @@ Date: Tue, 11 Oct 2022 10:43:31 +0800 Subject: [PATCH 04/18] =?UTF-8?q?=E4=B8=AD=E9=80=94=E5=8E=BB=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/index.vue | 110 ++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 src/views/modules/renFangTongJi/index.vue diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue new file mode 100644 index 000000000..dddb7413a --- /dev/null +++ b/src/views/modules/renFangTongJi/index.vue @@ -0,0 +1,110 @@ + + + + + From 957451d0be49cd59468fe056d33d997e2f23d8d1 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 11 Oct 2022 13:57:54 +0800 Subject: [PATCH 05/18] =?UTF-8?q?=E6=89=80=E6=9C=89=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E6=94=B9=E4=BA=86=E4=B8=80=E9=81=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/buildForm.vue | 6 +- .../modules/base/community/communityForm.vue | 6 +- .../communityParty/heart/heartForm.vue | 1010 +++++++++-------- .../regionalParty/activitysForm.vue | 8 +- .../regionalParty/unitsForm.vue | 8 +- .../communityService/dqfwzx/cpts/edit.vue | 8 +- .../communityService/fuwuzuzhi/cpts/edit.vue | 8 +- .../communityService/shzz/cpts/edit.vue | 294 ++--- .../communityService/sqzzz/cpts/edit.vue | 12 +- src/views/modules/cpts/base/cpts/edit.vue | 8 +- .../modules/shequzhili/csgltc/csglForm.vue | 8 +- .../modules/shequzhili/event/cpts/add.vue | 8 +- .../modules/shequzhili/ggfwtc/ggfwForm.vue | 8 +- 13 files changed, 742 insertions(+), 650 deletions(-) diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue index e0335a6cb..9393d5d9d 100644 --- a/src/views/modules/base/community/buildForm.vue +++ b/src/views/modules/base/community/buildForm.vue @@ -372,9 +372,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index c3d8f4203..13f0437a2 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -285,9 +285,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/communityParty/heart/heartForm.vue b/src/views/modules/communityParty/heart/heartForm.vue index 1203f9cf5..093b3e690 100644 --- a/src/views/modules/communityParty/heart/heartForm.vue +++ b/src/views/modules/communityParty/heart/heartForm.vue @@ -1,221 +1,279 @@ - - diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue index 0d21d6ddd..81c97c1d7 100644 --- a/src/views/modules/renFangTongJi/index.vue +++ b/src/views/modules/renFangTongJi/index.vue @@ -1,7 +1,12 @@ @@ -72,10 +106,11 @@ import { requestPost } from "@/js/dai/request"; import nextTick from "dai-js/tools/nextTick"; import { mapGetters } from "vuex"; +import shequtongji from "./cpts/shequtongji"; export default { name: "renFangTongJi", - components: {}, + components: { shequtongji }, data() { return { displayedDetail: false, @@ -84,6 +119,8 @@ export default { orgId: "", orgType: "", + detailOrgId: "", + list: [ { name: "开通平台社区数", @@ -161,6 +198,17 @@ export default { this.getTableData(); }, methods: { + handleClickCard(item) { + if (item.name == "开通平台社区数") { + this.showDetail(); + } + }, + + async showDetail(orgId = "") { + this.displayedDetail = true; + this.detailOrgId = orgId; + }, + async getCommunityData() { const url = "/gov/org/agency/usingCommunityStats"; @@ -271,6 +319,7 @@ export default { padding: 12px; border-radius: 4px; background-image: linear-gradient(to left, #43c8c4, #2aa5c6); + cursor: pointer; .item-right { margin-left: auto; From 409dfaa0a88a69706393b64b927dbdb52aabf181 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 11 Oct 2022 17:06:22 +0800 Subject: [PATCH 09/18] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue index 81c97c1d7..b32a3d954 100644 --- a/src/views/modules/renFangTongJi/index.vue +++ b/src/views/modules/renFangTongJi/index.vue @@ -92,7 +92,7 @@ Date: Tue, 11 Oct 2022 17:13:38 +0800 Subject: [PATCH 10/18] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue index b32a3d954..42cdb4e2e 100644 --- a/src/views/modules/renFangTongJi/index.vue +++ b/src/views/modules/renFangTongJi/index.vue @@ -307,13 +307,14 @@ export default { .m-cards { display: flex; flex-wrap: wrap; - // align-items: center; + align-items: center; + justify-content: space-between; .item { display: flex; width: 24%; margin-top: 15px; - margin-right: 1%; + // margin-right: 1%; box-sizing: border-box; color: #ffffff; padding: 12px; From 655210976bf91b3db191cdb4708c9cdaba5868d9 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 12 Oct 2022 13:56:34 +0800 Subject: [PATCH 11/18] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/cpts/shequtongji.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/renFangTongJi/cpts/shequtongji.vue b/src/views/modules/renFangTongJi/cpts/shequtongji.vue index f5bfbd123..338af4eaa 100644 --- a/src/views/modules/renFangTongJi/cpts/shequtongji.vue +++ b/src/views/modules/renFangTongJi/cpts/shequtongji.vue @@ -28,11 +28,12 @@ export default { searchParams: [ { - field: "发布范围", + field: "选择范围", keyName: "org", type: "cascader", value: "", - optionUrl: "/gov/org/customeragency/agencygridtree", + // optionUrl: "/gov/org/customeragency/agencygridtree", + optionUrl: "/gov/org/customeragency/my-subagency-list", optionUrlParams: { agencyId: this.$store.state.user.agencyId, }, From c4d833f230753c0bd7f1ad5133d04668cafcdf29 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 12 Oct 2022 14:05:59 +0800 Subject: [PATCH 12/18] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/cpts/shequtongji.vue | 5 +++++ src/views/modules/renFangTongJi/index.vue | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/modules/renFangTongJi/cpts/shequtongji.vue b/src/views/modules/renFangTongJi/cpts/shequtongji.vue index 338af4eaa..91647d995 100644 --- a/src/views/modules/renFangTongJi/cpts/shequtongji.vue +++ b/src/views/modules/renFangTongJi/cpts/shequtongji.vue @@ -20,6 +20,10 @@ export default { type: String, default: "", }, + orgIds: { + type: String, + default: "", + }, }, data() { @@ -89,6 +93,7 @@ export default { watch: {}, async mounted() { + this.searchParams[0].value = this.orgIds; this.searchParams[0].supValues[0] = this.orgId; if (this.orgId) { this.searchParams[0].supValues[1] = "agency"; diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue index 42cdb4e2e..c2b03e9a0 100644 --- a/src/views/modules/renFangTongJi/index.vue +++ b/src/views/modules/renFangTongJi/index.vue @@ -97,7 +97,11 @@ top="5vh" @close="displayedDetail = false" > - + @@ -236,6 +240,8 @@ export default { if (code === 0) { const { list } = this; + this.orgId = data.orgId; + this.orgType = data.orgType; let item1 = list.find((item) => item.name == "人口总数"); item1.num = data.userTotal; item1.variation = parseInt(data.userTotalJSY); From 18c28d6808c2a63a6678611eeb67d799b994465e Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 12 Oct 2022 16:00:50 +0800 Subject: [PATCH 13/18] =?UTF-8?q?=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/cpts/shequtongji.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/renFangTongJi/cpts/shequtongji.vue b/src/views/modules/renFangTongJi/cpts/shequtongji.vue index 91647d995..beb663f96 100644 --- a/src/views/modules/renFangTongJi/cpts/shequtongji.vue +++ b/src/views/modules/renFangTongJi/cpts/shequtongji.vue @@ -85,7 +85,7 @@ export default { { field: "出租房屋数", keyName: "czHouseTotal", type: "text" }, { field: "闲置房屋数", keyName: "xzHouseTotal", type: "text" }, ], - tableUrl: "/gov/org/house/communityUserHouseStats", + tableUrl: "/gov/org/house/usingCommunityUserHouseStats", }; }, components: { basePage }, From 581251d90b26acd0c65141ed0f7c18264faf5638 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Thu, 13 Oct 2022 11:13:55 +0800 Subject: [PATCH 14/18] =?UTF-8?q?=E6=9B=B4=E6=94=B9vue=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=B8=ADsass=E5=BC=95=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/renFangTongJi/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue index c2b03e9a0..8fcd403d7 100644 --- a/src/views/modules/renFangTongJi/index.vue +++ b/src/views/modules/renFangTongJi/index.vue @@ -307,8 +307,8 @@ export default { diff --git a/src/views/modules/shujuduibi/siwang.vue b/src/views/modules/shujuduibi/siwang.vue new file mode 100644 index 000000000..7deababc0 --- /dev/null +++ b/src/views/modules/shujuduibi/siwang.vue @@ -0,0 +1,111 @@ + + + + + From 385957fa9ad329322f26c00d1a4bd1561eff9053 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Fri, 14 Oct 2022 10:14:47 +0800 Subject: [PATCH 16/18] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shujuduibi/canji.vue | 80 ++++++++++++------------- src/views/modules/shujuduibi/siwang.vue | 8 +-- 2 files changed, 41 insertions(+), 47 deletions(-) diff --git a/src/views/modules/shujuduibi/canji.vue b/src/views/modules/shujuduibi/canji.vue index fc921ef03..0b3846306 100644 --- a/src/views/modules/shujuduibi/canji.vue +++ b/src/views/modules/shujuduibi/canji.vue @@ -5,14 +5,11 @@ :searchParams="searchParams" :tableParams="tableParams" :tableUrl="tableUrl" - :delUrl="delUrl" :delMultipleUrl="delMultipleUrl" - :delAuth="delAuth" :infoUrl="infoUrl" :exportUrl="exportUrl" :editParams="editParams" - :editElseRules="editElseRules" - :editBtnName="(item) => (!item.latitude ? '待完善' : '修改')" + :editParamsDiv="5" idName="id" > -