From 99de55daf262faee46c9c21871b34bce6f77f75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Wed, 6 Dec 2023 18:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MapDialog/CommunityList.vue | 2 +- .../components/MapDialog/DifficultyCharts.vue | 8 +- .../components/MapDialog/DisputeDispatch.vue | 30 +++-- .../components/MapDialog/List12345.vue | 2 +- .../overview/components/MapDialog/Njjwtqk.vue | 81 ++++++++++-- .../components/MapDialog/ResourceDispatch.vue | 13 +- .../overview/components/MapDialog/index.vue | 115 ++++++++-------- .../overview/components/MapResourceInfo.vue | 14 +- .../components/MapResourceInfoMore.vue | 7 +- .../components/ResourceScheduling.vue | 123 +++++++++++++----- .../dissatisfieReason/index.vue | 2 +- 11 files changed, 272 insertions(+), 125 deletions(-) diff --git a/src/views/dataBoard/overview/components/MapDialog/CommunityList.vue b/src/views/dataBoard/overview/components/MapDialog/CommunityList.vue index c5b4b85c1..0733dacc7 100644 --- a/src/views/dataBoard/overview/components/MapDialog/CommunityList.vue +++ b/src/views/dataBoard/overview/components/MapDialog/CommunityList.vue @@ -94,7 +94,7 @@ export default { let params = { ...this.queryParams, agencyId: this.currentLevelData.orgId, - secondIdList:[this.catVal] + satisfactionCategory: this.catVal } this.$http.get("/governance/satisfaction/communitySelfInsp/inspResult/list?" + this.$paramsFormat(params)).then(({data: {data}}) => { this.list = data.list; diff --git a/src/views/dataBoard/overview/components/MapDialog/DifficultyCharts.vue b/src/views/dataBoard/overview/components/MapDialog/DifficultyCharts.vue index ff2c138c2..8a7d04c9f 100644 --- a/src/views/dataBoard/overview/components/MapDialog/DifficultyCharts.vue +++ b/src/views/dataBoard/overview/components/MapDialog/DifficultyCharts.vue @@ -14,13 +14,17 @@ export default { data: { type: Array, default: () => [] - } + }, + currentLevelData: { + type: Object, + default: {}, + }, }, data() { return {} }, mounted() { - this.$http.get('/governance/icEventOld/statisticsByCategory').then(({data: {data}}) => { + this.$http.get('/governance/icEventOld/statisticsByCategory?agencyId=' + this.currentLevelData.orgId+'&type=2').then(({data: {data}}) => { this.initCharts(data ? data : []) }) }, diff --git a/src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue b/src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue index aab1afe3e..7abb0554f 100644 --- a/src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue +++ b/src/views/dataBoard/overview/components/MapDialog/DisputeDispatch.vue @@ -1,7 +1,7 @@ @@ -108,10 +110,11 @@ import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination"; import Tabs from "@/views/dataBoard/satisfactionEval/components/Tabs/index.vue"; import CallPhone from "@/views/dataBoard/cpts/CallPhone"; +import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue"; export default { name: "DisputeDispatch", - components: {Pagination, Tabs, CallPhone}, + components: {Pagination, Tabs, CallPhone, MapResourceInfo}, props: { currentLevelData: { type: Object, @@ -119,7 +122,7 @@ export default { } }, catVal: { - type: [String,Number], + type: [String, Number], default: "" } }, @@ -159,10 +162,10 @@ export default { label: "联建单位", value: "5", }, - /* { - label: "15分钟生活圈商家", - value: "6", - },*/ + /* { + label: "15分钟生活圈商家", + value: "6", + },*/ ], } }, @@ -213,6 +216,15 @@ export default { this.getList() } }, + handleViews(data) { + // 1志愿者、2联建单位、3社区自组织、4网格员、5公益岗 + let type = this.type === 'volunteer' ? 1 : + this.type === '5' ? 2 : + this.type === '4' ? 3 : + this.type === 'staffGrid' ? 4 : + this.type === 'publicWelfareNum' ? 5 : '' + this.$refs.MapResourceInfo.open(type === 3 ? data.agencyId : data.id, type) + }, typeChange(val) { this.type = val this.total = 0; diff --git a/src/views/dataBoard/overview/components/MapDialog/List12345.vue b/src/views/dataBoard/overview/components/MapDialog/List12345.vue index eaefc7e64..44aabd98d 100644 --- a/src/views/dataBoard/overview/components/MapDialog/List12345.vue +++ b/src/views/dataBoard/overview/components/MapDialog/List12345.vue @@ -18,7 +18,7 @@ diff --git a/src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue b/src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue index 2c411dc08..c29f5cae8 100644 --- a/src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue +++ b/src/views/dataBoard/overview/components/MapDialog/Njjwtqk.vue @@ -3,18 +3,18 @@
- - - - - - - - + + + + + + + + @@ -27,36 +27,91 @@ @pagination="getList" />
+ + diff --git a/src/views/dataBoard/overview/components/ResourceScheduling.vue b/src/views/dataBoard/overview/components/ResourceScheduling.vue index 5b3a6381c..4f136e422 100644 --- a/src/views/dataBoard/overview/components/ResourceScheduling.vue +++ b/src/views/dataBoard/overview/components/ResourceScheduling.vue @@ -40,15 +40,35 @@ }} - - - + + + + + + + + + + + + + + + + @@ -71,10 +93,11 @@ import Title from "@/views/dataBoard/satisfactionEval/components/Title"; import CallPhone from "@/views/dataBoard/cpts/CallPhone"; import ResourceInfo from "@/views/dataBoard/overview/components/ResourceInfo"; +import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue"; export default { name: "ResourceScheduling", - components: {Title, CallPhone, ResourceInfo}, + components: {Title, CallPhone, ResourceInfo, MapResourceInfo}, props: { currentLevelData: { type: Object, @@ -87,29 +110,34 @@ export default { loading: false, dialogVisible: false, list: [], - peopleType: "staffAgency", + peopleType: "staffGrid", data: [ { label: '人资源', children: [{ - label: '社区工作者', - value: 'staffAgency' - }, { - label: '网格员', - value: 'staffGrid' - }, { - label: '楼组/单元长', - value: 'chief' - }, { - label: '公益岗', - value: 'publicWelfareNum' - }, { - label: '单位/组织', - value: 'staffDepartment' - }, { - label: '志愿者', - value: 'volunteer' - }] + label: "网格员", + value: "staffGrid", + }, + { + label: "公益岗", + value: "publicWelfareNum", + }, + { + label: "志愿者", + value: "volunteer", + }, + { + label: "社区自组织", + value: "4", + }, + { + label: "联建单位", + value: "5", + }, + { + label: "15分钟生活圈商家", + value: "6", + },] }, { label: '物资源', children: [] @@ -143,15 +171,52 @@ export default { this.list = data.personnelInfoVOList; }); }, - handleViews() { - this.$refs.ResourceInfo.open() + getZzzList() { + this.loading = true; + this.$http.post('/actual/base/iccommunityselforganization/communityselforganizationlist', { + agencyId: this.currentLevelData.orgId, + ...this.queryParams + }).then(res => { + this.loading = false; + this.list = res.data.data.list; + this.total = res.data.data.total; + }) + }, + getLjdwList() { + this.loading = true; + this.$http.post('/actual/base/icpartyunit/list', { + agencyId: this.currentLevelData.orgId, + ...this.queryParams + }).then(res => { + this.loading = false; + this.list = res.data.data.list; + this.total = res.data.data.total; + }) + }, + handleViews(data) { + // 1志愿者、2联建单位、3社区自组织、4网格员、5公益岗 + let type = this.peopleType === 'volunteer' ? 1 : + this.peopleType === '5' ? 2 : + this.peopleType === '4' ? 3 : + this.peopleType === 'staffGrid' ? 4 : + this.peopleType === 'publicWelfareNum' ? 5 : '' + this.$refs.MapResourceInfo.open(type === 3 ? data.agencyId : data.id, type) }, + /* handleViews() { + this.$refs.ResourceInfo.open() + },*/ handleNodeClick(data) { console.log(data.value) if (data.value) { this.peopleType = data.value; console.log(data); - this.getList() + if (this.peopleType === '4') { + this.getZzzList(); + } else if (this.peopleType === '5') { + this.getLjdwList(); + } else { + this.getList() + } } }, handleHandle(data) { @@ -170,14 +235,14 @@ export default { .handle { font-size: 14px; margin-left: 10px; - color: #9A69EC; cursor: pointer; + color: #9A69EC; } .view { font-size: 14px; margin-left: 10px; - color: #007FF1; cursor: pointer; + color: #007FF1; } diff --git a/src/views/dataBoard/satisfactionEval/dissatisfieReason/index.vue b/src/views/dataBoard/satisfactionEval/dissatisfieReason/index.vue index 066aa07f0..7e583b95e 100644 --- a/src/views/dataBoard/satisfactionEval/dissatisfieReason/index.vue +++ b/src/views/dataBoard/satisfactionEval/dissatisfieReason/index.vue @@ -182,7 +182,7 @@ export default { } return [startTime, endTime]; }, - handleView(id) { + handleView({id}) { this.id = id; this.$refs.detail.open(id); },