diff --git a/src/assets/images/gailan/tag_blue.png b/src/assets/images/gailan/tag_blue.png new file mode 100644 index 000000000..ff745ad2c Binary files /dev/null and b/src/assets/images/gailan/tag_blue.png differ diff --git a/src/assets/images/gailan/tag_orange.png b/src/assets/images/gailan/tag_orange.png new file mode 100644 index 000000000..95855764b Binary files /dev/null and b/src/assets/images/gailan/tag_orange.png differ diff --git a/src/assets/images/gailan/yuan_bg.png b/src/assets/images/gailan/yuan_bg.png new file mode 100644 index 000000000..9ffe2d329 Binary files /dev/null and b/src/assets/images/gailan/yuan_bg.png differ diff --git a/src/assets/images/gailan/zq_bg.png b/src/assets/images/gailan/zq_bg.png new file mode 100644 index 000000000..1a310e6ab Binary files /dev/null and b/src/assets/images/gailan/zq_bg.png differ diff --git a/src/assets/scss/dataBoard/overview/index.scss b/src/assets/scss/dataBoard/overview/index.scss index 19e707779..69d4eda69 100644 --- a/src/assets/scss/dataBoard/overview/index.scss +++ b/src/assets/scss/dataBoard/overview/index.scss @@ -494,7 +494,6 @@ height: 40px; line-height: 40px; font-size: 14px; - font-family: PingFang SC; font-weight: 400; color: #A3B9DA; } @@ -508,11 +507,12 @@ height: 40px; line-height: 40px; width: 110px; - height: 14px; + overflow: hidden; font-size: 14px; - font-family: PingFang SC; font-weight: 400; color: #FFFFFF; + text-overflow: ellipsis; + white-space: nowrap; // padding: 0 8px; // overflow: hidden; // white-space: nowrap; diff --git a/src/components/GridTree/nodeWrap.vue b/src/components/GridTree/nodeWrap.vue index c22d450d1..0f046637d 100644 --- a/src/components/GridTree/nodeWrap.vue +++ b/src/components/GridTree/nodeWrap.vue @@ -96,7 +96,8 @@ export default { }, gotoPersonnel(item) { const grandPid = this.findParentParentId(this.nodeConfig, item.pid); - this.$router.push(`/organizational/microgrid/${item.id}/${grandPid}`); + const name = item.name ? item.name : "恭喜发财"; + this.$router.push(`/organizational/microgrid/${item.id}/${grandPid}/${name}`); }, }, }; diff --git a/src/components/Tree/nodeWrap.vue b/src/components/Tree/nodeWrap.vue index 36fda9d08..680c93c18 100644 --- a/src/components/Tree/nodeWrap.vue +++ b/src/components/Tree/nodeWrap.vue @@ -134,11 +134,13 @@ export default { getHomeTypes(id) { this.$http.get(`/actual/base/organizational/structure/getResidentCategoryByHouseId?houseId=${"1495582904602800129"}`).then((res) => { - const { code, data } = res.data; + const { code, msg, data } = res.data; if (code === 0) { const newItem = data[0]; const itemNumOne = Object.keys(newItem).filter((key) => newItem[key] === 1); this.homeTypeArr = itemNumOne; + } else { + this.$message.error(msg); } }); }, diff --git a/src/main.js b/src/main.js index f27ee6174..a0549cc5d 100644 --- a/src/main.js +++ b/src/main.js @@ -22,7 +22,8 @@ import { message } from "@/utils/message.js"; import http from "@/utils/request"; import cloneDeep from "lodash/cloneDeep"; - +// 引入工具类 +import './utils/jwTool' // axios封装 import ajax from "@/js/ajax"; // service @@ -32,6 +33,7 @@ import store from "@/js/store"; //系统工具 import util from "@js/util"; // import Cookies from "js-cookie"; + import Moment from "moment"; import getQueryPara from "dai-js/modules/getQueryPara"; import NodeWrap from "@/components/Tree/nodeWrap.vue"; @@ -103,6 +105,7 @@ window.SITE_CONFIG["storeState"] = cloneDeep(store.state); Vue.prototype.tableHeaderStyle = { background: "linear-gradient(0deg, #005EB3 0%, #0083F0 100%)", color: "#FFFFFF", padding: "6px 0px" }; + new Vue({ i18n, router, diff --git a/src/router/index.js b/src/router/index.js index adf278a25..13a2561bc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -236,7 +236,17 @@ export const dataBoardRoutes = { meta: { title: "可视化数据", isTab: false, - keepAlive:false + keepAlive: false, + }, + }, + { + path: "renfang/resident", + props: true, + component: () => import("@/views/dataBoard/renfang/resident/index"), + name: "dataBoard-renfang-resident", + meta: { + title: "居民画像", + isTab: false, }, }, { @@ -414,7 +424,7 @@ export const dataBoardRoutes = { { path: "/organizational/orgPersonnel", props: true, - component: () => import("@/views/dataBoard/organizational/personnel/index"), + component: () => import("@/views/dataBoard/cpts/personnel/index"), name: "OrgPersonnel", meta: { title: "居民画像", @@ -422,7 +432,7 @@ export const dataBoardRoutes = { }, }, { - path: "/organizational/microgrid/:id/:pid", + path: "/organizational/microgrid/:id/:pid/:name", props: true, component: () => import("@/views/dataBoard/organizational/microgrid/index"), name: "Microgrid", diff --git a/src/utils/jwTool.js b/src/utils/jwTool.js new file mode 100644 index 000000000..5e797cf78 --- /dev/null +++ b/src/utils/jwTool.js @@ -0,0 +1,10 @@ +import Vue from "vue"; + +const paramsFormat = function (params) { + let strArray = [] + for(let key in params) { + strArray.push(key+'='+params[key]) + } + return strArray.join('&') +} +Vue.prototype.$paramsFormat = paramsFormat diff --git a/src/views/dataBoard/cpts/map/index.vue b/src/views/dataBoard/cpts/map/index.vue index b96ad5d1a..2d1931720 100644 --- a/src/views/dataBoard/cpts/map/index.vue +++ b/src/views/dataBoard/cpts/map/index.vue @@ -1,38 +1,17 @@ @@ -83,4 +80,7 @@ export default { .breadcrumb { margin-bottom: 25px; } +a:hover { + cursor: pointer; +} diff --git a/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue b/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue new file mode 100644 index 000000000..92eb8db3b --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/EnjoyService.vue b/src/views/dataBoard/cpts/personnel/modules/EnjoyService.vue new file mode 100644 index 000000000..077432189 --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/EnjoyService.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/Family.vue b/src/views/dataBoard/cpts/personnel/modules/Family.vue new file mode 100644 index 000000000..57886409d --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/Family.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/dataBoard/organizational/personnel/modules/MatterDetails.vue b/src/views/dataBoard/cpts/personnel/modules/MatterDetails.vue similarity index 50% rename from src/views/dataBoard/organizational/personnel/modules/MatterDetails.vue rename to src/views/dataBoard/cpts/personnel/modules/MatterDetails.vue index b965bc1e4..a8563dc3e 100644 --- a/src/views/dataBoard/organizational/personnel/modules/MatterDetails.vue +++ b/src/views/dataBoard/cpts/personnel/modules/MatterDetails.vue @@ -1,23 +1,60 @@ \ No newline at end of file + diff --git a/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue b/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue new file mode 100644 index 000000000..c671a394a --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/community.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/community.vue new file mode 100644 index 000000000..1a6478844 --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/community.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/complaint.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/complaint.vue new file mode 100644 index 000000000..89738d2b6 --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/complaint.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/economize.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/economize.vue new file mode 100644 index 000000000..b43a87b55 --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/economize.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/give-service.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/give-service.vue new file mode 100644 index 000000000..c4e39494e --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/give-service.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/reporting-events.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/reporting-events.vue new file mode 100644 index 000000000..9e98eb14d --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/reporting-events.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/src/views/dataBoard/cpts/personnel/modules/businessTables/resident.vue b/src/views/dataBoard/cpts/personnel/modules/businessTables/resident.vue new file mode 100644 index 000000000..e41d3d87f --- /dev/null +++ b/src/views/dataBoard/cpts/personnel/modules/businessTables/resident.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/dataBoard/cpts/resi-details.vue b/src/views/dataBoard/cpts/resi-details.vue index 7863b005f..741ac6096 100644 --- a/src/views/dataBoard/cpts/resi-details.vue +++ b/src/views/dataBoard/cpts/resi-details.vue @@ -964,7 +964,6 @@ export default { if (code === 0) { this.srcTableData = data; - console.log('this.srcTableData ', this.srcTableData); // this.total = data.total; // service_num avg_satisfaction this.list = data.map((item, index) => { @@ -981,7 +980,6 @@ export default { ]; }); - console.log('this.list', this.list); } else { this.$message.error(msg); } diff --git a/src/views/dataBoard/organizational/dangTree/index.vue b/src/views/dataBoard/organizational/dangTree/index.vue index 29fa0ca9f..913ce7552 100644 --- a/src/views/dataBoard/organizational/dangTree/index.vue +++ b/src/views/dataBoard/organizational/dangTree/index.vue @@ -68,21 +68,19 @@ export default { //获取树状结构 getTreeData() { this.loading = true; - this.$http - .get(`/actual/base/organizational/structure/partyCommitteeOrg?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`) - .then((res) => { - const { - data: { code, data }, - } = res; - if (code === 0) { - this.nodeConfig = data[0]; - this.getDataPLevel(data); - this.loading = false; - } - }) - .catch(() => { + this.$http.get(`/actual/base/organizational/structure/partyCommitteeOrg?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`).then((res) => { + const { + data: { code, msg, data }, + } = res; + if (code === 0) { + this.nodeConfig = data[0]; + this.getDataPLevel(data); this.loading = false; - }); + } else { + this.loading = false; + this.$message.error(msg); + } + }); }, getTitleNameMapFun(i) { diff --git a/src/views/dataBoard/organizational/gridTree/index.vue b/src/views/dataBoard/organizational/gridTree/index.vue index 93605bb76..5d80b7ba4 100644 --- a/src/views/dataBoard/organizational/gridTree/index.vue +++ b/src/views/dataBoard/organizational/gridTree/index.vue @@ -72,21 +72,19 @@ export default { //获取树状结构 getTreeData() { this.loading = true; - this.$http - .get(`/gov/org/organizational/neighborhood/getGridCommitteeOrgTreeList?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`) - .then((res) => { - const { - data: { code, data }, - } = res; - if (code === 0) { - this.nodeConfig = data[0]; - this.getDataPLevel(data); - this.loading = false; - } - }) - .catch(() => { + this.$http.get(`/gov/org/organizational/neighborhood/getGridCommitteeOrgTreeList?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`).then((res) => { + const { + data: { code, msg, data }, + } = res; + if (code === 0) { + this.nodeConfig = data[0]; + this.getDataPLevel(data); this.loading = false; - }); + } else { + this.loading = false; + this.$message.error(msg); + } + }); }, getTitleNameMapFun(i) { diff --git a/src/views/dataBoard/organizational/jwTree/index.vue b/src/views/dataBoard/organizational/jwTree/index.vue index d44934d76..cfd63391d 100644 --- a/src/views/dataBoard/organizational/jwTree/index.vue +++ b/src/views/dataBoard/organizational/jwTree/index.vue @@ -74,21 +74,19 @@ export default { //获取树状结构 getTreeData() { this.loading = true; - this.$http - .get(`/gov/org/organizational/neighborhood/getNeighborhoodCommitteeOrgTreeList?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`) - .then((res) => { - const { - data: { code, data }, - } = res; - if (code === 0) { - this.nodeConfig = data[0]; - this.getDataPLevel(data); - this.loading = false; - } - }) - .catch(() => { + this.$http.get(`/gov/org/organizational/neighborhood/getNeighborhoodCommitteeOrgTreeList?agencyId=${this.$store.state.chooseArea.chooseName.orgId}`).then((res) => { + const { + data: { code, msg, data }, + } = res; + if (code === 0) { + this.nodeConfig = data[0]; + this.getDataPLevel(data); this.loading = false; - }); + } else { + this.loading = false; + this.$message.error(msg); + } + }); }, getTitleNameMapFun(i) { diff --git a/src/views/dataBoard/organizational/microgrid/components/popDetails.vue b/src/views/dataBoard/organizational/microgrid/components/popDetails.vue index ed8354954..0fc402117 100644 --- a/src/views/dataBoard/organizational/microgrid/components/popDetails.vue +++ b/src/views/dataBoard/organizational/microgrid/components/popDetails.vue @@ -794,7 +794,6 @@ export default { if (code === 0) { this.srcTableData = data; - console.log("this.srcTableData ", this.srcTableData); // this.total = data.total; // service_num avg_satisfaction this.list = data.map((item, index) => { @@ -811,7 +810,6 @@ export default { ]; }); - console.log("this.list", this.list); } else { this.$message.error(msg); } diff --git a/src/views/dataBoard/organizational/microgrid/components/reportAnEvent.vue b/src/views/dataBoard/organizational/microgrid/components/reportAnEvent.vue index 03355c59c..31f1fddfc 100644 --- a/src/views/dataBoard/organizational/microgrid/components/reportAnEvent.vue +++ b/src/views/dataBoard/organizational/microgrid/components/reportAnEvent.vue @@ -191,32 +191,28 @@ export default { getDetailsData(id) { this.loading = true; - this.$http - .post("/governance/icEvent/detail", { icEventId: id }) - .then((res) => { - const { code, data } = res.data; - if (code === 0) { - this.item = data; - } - }) - .catch((res) => { + this.$http.post("/governance/icEvent/detail", { icEventId: id }).then((res) => { + const { code, data, msg } = res.data; + if (code === 0) { + this.item = data; + } else { this.loading = false; - }); + this.$message.error(msg); + } + }); }, getProcessData(id) { - this.$http - .post("/governance/icEvent/process", { icEventId: id }) - .then((res) => { - const { code, data } = res.data; - if (code === 0) { - this.activities = data; - this.loading = false; - } - }) - .catch((err) => { + this.$http.post("/governance/icEvent/process", { icEventId: id }).then((res) => { + const { code, data, msg } = res.data; + if (code === 0) { + this.activities = data; + this.loading = false; + } else { this.loading = false; - }); + this.$message.error(msg); + } + }); }, // /governance/icEvent/detail diff --git a/src/views/dataBoard/organizational/microgrid/index.vue b/src/views/dataBoard/organizational/microgrid/index.vue index 568729d22..300df0841 100644 --- a/src/views/dataBoard/organizational/microgrid/index.vue +++ b/src/views/dataBoard/organizational/microgrid/index.vue @@ -9,45 +9,44 @@
- + - - + + + + + + - + + + + + + - + + + + + + + + + - + + + + + + + diff --git a/src/views/dataBoard/overview/components/sq12345.vue b/src/views/dataBoard/overview/components/sq12345.vue index ba0622bfb..16a67796a 100644 --- a/src/views/dataBoard/overview/components/sq12345.vue +++ b/src/views/dataBoard/overview/components/sq12345.vue @@ -8,14 +8,14 @@
处理中
已办结
-
-
- {{ item.num }} +
+
+ {{ index - 0 + 1 }}
-
{{ item.shequ }}
-
{{ item.fwgxs }}
-
{{ item.rkgxs }}
-
{{ item.rfgxzs }}
+
{{ item.orgName }}
+
{{ item.sumNum }}
+
{{ item.processNum }}
+
{{ item.closedNum }}
@@ -23,55 +23,40 @@ diff --git a/src/views/dataBoard/overview/components/sqrfph.vue b/src/views/dataBoard/overview/components/sqrfph.vue index d7d23363c..591adcb70 100644 --- a/src/views/dataBoard/overview/components/sqrfph.vue +++ b/src/views/dataBoard/overview/components/sqrfph.vue @@ -8,14 +8,14 @@
人口更新数
人房更新总数
-
-
- {{ item.num }} +
+
+ {{ index - 0 + 1 }}
-
{{ item.shequ }}
-
{{ item.fwgxs }}
-
{{ item.rkgxs }}
-
{{ item.rfgxzs }}
+
{{ item.orgName }}
+
{{ item.houseNum }}
+
{{ item.residentNum }}
+
{{ item.sumNum }}
@@ -23,55 +23,40 @@ diff --git a/src/views/dataBoard/overview/index.vue b/src/views/dataBoard/overview/index.vue index a2fceff2b..bf2c82236 100644 --- a/src/views/dataBoard/overview/index.vue +++ b/src/views/dataBoard/overview/index.vue @@ -1,83 +1,147 @@ @@ -93,8 +157,15 @@ import jdwgy from "@/views/dataBoard/overview/components/jdwgy.vue"; import rfsjtj from "@/views/dataBoard/overview/components/rfsjtj.vue"; import sqrfph from "@/views/dataBoard/overview/components/sqrfph.vue"; import sq12345 from "@/views/dataBoard/overview/components/sq12345.vue"; -import { requestPostBi } from "@/js/dai/request-bipass"; -import { requestPost } from "@/js/dai/request"; + +import DynamicHumanRoomData from "@/views/dataBoard/overview/components/DynamicHumanRoomData.vue"; +import CommunityResult from "@/views/dataBoard/overview/components/CommunityResult.vue"; +import EventAndFollowUp from "@/views/dataBoard/overview/components/EventAndFollowUp.vue"; +import RankingGridData from "@/views/dataBoard/overview/components/RankingGridData.vue"; + + +import {requestPostBi} from "@/js/dai/request-bipass"; +import {requestPost} from "@/js/dai/request"; import getQueryPara from "dai-js/modules/getQueryPara"; export default { @@ -112,22 +183,31 @@ export default { rfsjtj, sqrfph, sq12345, + DynamicHumanRoomData, + CommunityResult, + EventAndFollowUp, + RankingGridData }, data() { return { loading: false, - rfphDate: "2023-03", + rfphDate: this.$moment().format('YYYY-MM'), + sq12345Date: this.$moment().format('YYYY-MM'), + sqzcDate: this.$moment().format('YYYY-MM'), + sjhfDate: this.$moment().format('YYYY-MM'), + sqwggxDate: this.$moment().format('YYYY-MM'), orgData: { children: [], }, //当前组织对象 orgId: "", orgLevel: "", + currentLevel: "", breadList: [ { orgId: "", orgLevel: "", - meta: { title: "人房总览" }, + meta: {title: "人房总览"}, }, ], @@ -137,12 +217,21 @@ export default { }, mounted() { - const queryOrgId = getQueryPara("orgId"); - const queryOrgLevel = getQueryPara("orgLevel"); - this.init(queryOrgId, queryOrgLevel); + // const queryOrgId = getQueryPara("orgId"); + // const queryOrgLevel = getQueryPara("orgLevel"); + // this.init(queryOrgId, queryOrgLevel); + if(this.$store.state.chooseArea.chooseName.orgId) { + this.getMapData() + } }, - watch: {}, + watch: { + "$store.state.chooseArea.chooseName"(val){ + if(val.orgId) { + this.getMapData() + } + } + }, methods: { async init(queryOrgId, queryOrgLevel) { @@ -157,15 +246,14 @@ export default { //加载组织数据 this.loading = false; await this.getMapData(); - await this.getSubMapData(); + // await this.getSubMapData(); this.loading = true; }, - changeDate(e){ - this.rfphDate=e; + changeDate(e) { + this.rfphDate = e; }, handleClickDotBtn(type, info) { - console.log("handleClickDotBtn", type, info); if (type == "watch-resi") { this.displayedResiId = info.user_id; } else if (type == "watch-house") { @@ -173,7 +261,7 @@ export default { } }, - clickBreadItem({ item }) { + clickBreadItem({item}) { this.toBread(item); }, @@ -181,13 +269,13 @@ export default { this.toBread({ orgId: item.id, orgLevel: item.level, - meta: { title: item.name }, + meta: {title: item.name}, }); }, toBread(item) { - const { orgId } = item; - const { breadList } = this; + const {orgId} = item; + const {breadList} = this; let index = breadList.findIndex((val) => val.orgId === orgId); // return console.log(item, breadList, index); if (index >= 0) { @@ -196,12 +284,11 @@ export default { breadList.push(item); this.breadList = breadList; } - this.init(item.orgId, item.orgLevel); + this.getMapData(item.orgId,item.orgLevel) }, // 点击搜索结果条目,在地图上显示点和详情弹窗 handleClickSearchItem(item) { - console.log("handleClickSearchItem", item); if (!item.longitude) { return this.$message.error("请先设置坐标"); } @@ -212,60 +299,34 @@ export default { }, //获取地图上显示的组织数据 - async getMapData() { - console.log("=========================getMapData"); + async getMapData(orgId=this.$store.state.chooseArea.chooseName.orgId,level=this.$store.state.chooseArea.chooseName.level) { const url = "org_map"; - - const { data, code, msg } = await requestPostBi( - url, - { - queryParam: { - org_id: this.orgId, - }, - }, - { - // mockId: 60810589, - } - ); - - if (code === 0) { - console.log("data::", data); - let info = data[0]; - this.orgData = { - ...info, - id: info.org_id, - name: info.org_name, - latitude: parseFloat(info.latitude), - longitude: parseFloat(info.longitude), - coordinates: info.coordinates || "", - children: [], - }; + this.$http.post(`/gov/org/agency/maporg`, {orgId, level}).then(({data: {data}}) => { + this.orgData = data; this.orgId = this.orgData.org_id; this.orgLevel = this.orgData.level; - } else { - this.$message.error(msg); - } + this.currentLevel = this.orgData.agencyLevel; + }) }, //获取地图上显示的组织数据 async getSubMapData() { - console.log("=========================getSubMapData"); const url = "sub_org_map"; - const { data, code, msg } = await requestPostBi( - url, - { - queryParam: { - org_id: this.orgId, + const {data, code, msg} = await requestPostBi( + url, + { + queryParam: { + org_id: this.orgId, + }, }, - }, - { - // mockId: 61831860, - } + { + // mockId: 61831860, + } ); if (code === 0) { - const { orgData } = this; + const {orgData} = this; orgData.children = data.map((item) => { return { ...item, @@ -276,11 +337,7 @@ export default { coordinates: item.coordinates || "", }; }); - this.orgData = { ...orgData }; - console.log( - "==========================getSubMapData:result", - this.orgData - ); + this.orgData = {...orgData}; } else { this.$message.error(msg); } @@ -294,7 +351,7 @@ export default { level: this.orgLevel, }; - const { data, code, msg } = await requestPost(url, params); + const {data, code, msg} = await requestPost(url, params); if (code === 0) { this.orgData = data; this.orgId = this.orgId; @@ -311,7 +368,7 @@ export default { diff --git a/src/views/dataBoard/renfang/index.vue b/src/views/dataBoard/renfang/index.vue index c4b495411..6bc85b7fc 100644 --- a/src/views/dataBoard/renfang/index.vue +++ b/src/views/dataBoard/renfang/index.vue @@ -583,7 +583,6 @@ export default { const { orgId } = item; const { breadList } = this; let index = breadList.findIndex((val) => val.orgId === orgId); - // return console.log(item, breadList, index); if (index >= 0) { this.breadList = breadList.slice(0, index + 1); } else { @@ -607,7 +606,6 @@ export default { // 根据类别搜索 async handleSearch() { this.searchModule.result = []; - console.log(this.searchModule); const { searchModule } = this; const url = [ @@ -662,10 +660,6 @@ export default { ...detailJson, }; }); - console.log( - "==========this.searchModule.result", - this.searchModule.result - ); } else { this.$message.error(msg); } @@ -673,7 +667,6 @@ export default { //地图上居民分类百分比数据 ps:感觉有点重复显示 async getPerInfo() { - console.log("=========================getPerInfo"); const url = "resident_ratio"; const { data, code, msg } = await requestPostBi( @@ -700,7 +693,6 @@ export default { //居民分类分析数据 async getResiCategoryData() { - console.log("=========================getResiCategoryData"); const url = "resident_class_statics"; const { data, code, msg } = await requestPostBi( @@ -733,7 +725,6 @@ export default { //居民分类预测数据 async getResiCategoryForecastData() { - console.log("=========================getResiCategoryForecastData"); const url = "resident_class_predict"; const { data, code, msg } = await requestPostBi( @@ -766,7 +757,6 @@ export default { //获取地图上显示的组织数据 async getMapData() { - console.log("=========================getMapData"); const url = "org_map"; const { data, code, msg } = await requestPostBi( @@ -801,7 +791,6 @@ export default { //获取地图上显示的组织数据 async getSubMapData() { - console.log("=========================getSubMapData"); const url = "sub_org_map"; const { data, code, msg } = await requestPostBi( @@ -829,10 +818,6 @@ export default { }; }); this.orgData = { ...orgData }; - console.log( - "==========================getSubMapData:result", - this.orgData - ); } else { this.$message.error(msg); } diff --git a/src/views/dataBoard/renfang/resi/analyze.vue b/src/views/dataBoard/renfang/resi/analyze.vue index 9f5b084dc..4653a10a6 100644 --- a/src/views/dataBoard/renfang/resi/analyze.vue +++ b/src/views/dataBoard/renfang/resi/analyze.vue @@ -1,41 +1,37 @@ diff --git a/src/views/dataBoard/renfang/resi/class.vue b/src/views/dataBoard/renfang/resi/class.vue index 6d89da5b7..2a8f4d827 100644 --- a/src/views/dataBoard/renfang/resi/class.vue +++ b/src/views/dataBoard/renfang/resi/class.vue @@ -223,6 +223,12 @@ export default { title: "人房总览", }, }, + { + path: "/dataBoard/renfang/visualizing", + meta: { + title: "", + }, + }, { meta: { title: "居民列表", @@ -418,13 +424,22 @@ export default { }, activated() { - this.org_id = getQueryPara("org_id"); - this.type = getQueryPara("type"); - this.type_id = getQueryPara("type_id"); - this.pageType = getQueryPara("pageType"); - this.type_name = getQueryPara("type_name"); - const type_name = getQueryPara("type_name"); - this.breadList[1].meta.title = type_name + "居民列表"; + const query = this.$route.query; + this.org_id = query.org_id; + this.type = query.type; + this.type_id = query.type_id; + this.pageType = query.pageType; + this.type_name = query.type_name; + const type_name = query.type_name; + let title = type_name; + if (this.type == "jineng" || this.type == "gangwei") { + title = "失业人员"; + } + if (this.type == "wennuan" || this.type == "fuwu") { + title = "低保人员"; + } + this.type_name1 = title; + this.breadList[1].meta.title = title; this.tableTitle = type_name + "居民列表"; this.pageNo = 1; const type = this.type; @@ -467,7 +482,6 @@ export default { }; } this.getList(); - // this.getCount(); if (this.pageType != "normal") { this.colList = [ { @@ -555,6 +569,8 @@ export default { type_id: this.type_id, type_name: item.meta.title, pageType: this.pageType, + type: this.type, + pageType: this.pageType, }, }); }, @@ -569,13 +585,15 @@ export default { }, jumpPage(index) { let item = this.listData[index]; - console.log("item::", item); this.$router.push({ - path: "/organizational/orgPersonnel", + path: "/dataBoard/renfang/resident", query: { org_id: this.org_id, type_id: this.type_id, user_id: item.id, + type: this.type, + pageType: this.pageType, + type_name: this.type_name, }, }); }, diff --git a/src/views/dataBoard/renfang/resident/index.vue b/src/views/dataBoard/renfang/resident/index.vue new file mode 100644 index 000000000..3838d6e25 --- /dev/null +++ b/src/views/dataBoard/renfang/resident/index.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue b/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue index 8201a13ba..a11809a02 100644 --- a/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue +++ b/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue @@ -3,6 +3,7 @@
{{ title }}
+ \ No newline at end of file + diff --git a/src/views/dataBoard/satisfactionEval/dissatisfied/detail.vue b/src/views/dataBoard/satisfactionEval/dissatisfied/detail.vue index 18658c207..6bd2b2eff 100644 --- a/src/views/dataBoard/satisfactionEval/dissatisfied/detail.vue +++ b/src/views/dataBoard/satisfactionEval/dissatisfied/detail.vue @@ -1,8 +1,8 @@