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/views/dataBoard/cpts/map/index.vue b/src/views/dataBoard/cpts/map/index.vue index b96ad5d1a..038c39a8e 100644 --- a/src/views/dataBoard/cpts/map/index.vue +++ b/src/views/dataBoard/cpts/map/index.vue @@ -1,38 +1,17 @@ + + \ No newline at end of file diff --git a/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue b/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue new file mode 100644 index 000000000..00ff17177 --- /dev/null +++ b/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue @@ -0,0 +1,103 @@ + + + + + \ No newline at end of file diff --git a/src/views/dataBoard/overview/components/EventAndFollowUp.vue b/src/views/dataBoard/overview/components/EventAndFollowUp.vue new file mode 100644 index 000000000..8d4d7f6ee --- /dev/null +++ b/src/views/dataBoard/overview/components/EventAndFollowUp.vue @@ -0,0 +1,194 @@ + + + + + \ No newline at end of file diff --git a/src/views/dataBoard/overview/components/RankingGridData.vue b/src/views/dataBoard/overview/components/RankingGridData.vue new file mode 100644 index 000000000..6d6509890 --- /dev/null +++ b/src/views/dataBoard/overview/components/RankingGridData.vue @@ -0,0 +1,99 @@ + + + + diff --git a/src/views/dataBoard/overview/components/jdjs.vue b/src/views/dataBoard/overview/components/jdjs.vue index f674448a0..163c97be3 100644 --- a/src/views/dataBoard/overview/components/jdjs.vue +++ b/src/views/dataBoard/overview/components/jdjs.vue @@ -5,8 +5,7 @@
- XX街道,现有房屋4600间,自 住房屋3800间、出租房屋600、闲 - 置房屋200,现有居民4000户、 8400 + {{overview}}
@@ -17,8 +16,7 @@
总结报告
- 根据数据分析结果,建议重点关注租户、党员、保障房人员三类 - 群体,开展相关的社区服务和活动。 + {{report}}
@@ -26,12 +24,39 @@ - + diff --git a/src/views/dataBoard/overview/components/map-top.vue b/src/views/dataBoard/overview/components/map-top.vue index bc4bffd12..1ca21563c 100644 --- a/src/views/dataBoard/overview/components/map-top.vue +++ b/src/views/dataBoard/overview/components/map-top.vue @@ -72,7 +72,9 @@ diff --git a/src/views/dataBoard/overview/components/rfsjtj.vue b/src/views/dataBoard/overview/components/rfsjtj.vue index 11303d1da..1cb40889d 100644 --- a/src/views/dataBoard/overview/components/rfsjtj.vue +++ b/src/views/dataBoard/overview/components/rfsjtj.vue @@ -3,33 +3,74 @@
采集房屋数
- {{ numFormat(2317) }} + {{ numFormat(house.sumNum) }}
+
今日
-
新增31
-
更新217
+
新增{{ house.dayAddNum }}
+
更新{{ house.dayUpdateNum }}
采集人口数
- {{ numFormat(6302) }} + {{ numFormat(resident.sumNum) }}
今日
-
新增24
-
更新466
+
新增{{ resident.dayAddNum }}
+
更新{{ resident.dayUpdateNum }}
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..eb50fe5c1 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,19 @@ 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){ + this.getMapData() + } + }, methods: { async init(queryOrgId, queryOrgLevel) { @@ -157,12 +244,12 @@ 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); @@ -173,21 +260,23 @@ export default { } }, - clickBreadItem({ item }) { + clickBreadItem({item}) { this.toBread(item); }, clickAgencyItem(item) { + console.log(item, 'item') this.toBread({ orgId: item.id, orgLevel: item.level, - meta: { title: item.name }, + meta: {title: item.name}, }); + this.getMapData(item.id,item.level) }, 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) { @@ -212,39 +301,17 @@ export default { }, //获取地图上显示的组织数据 - async getMapData() { + async getMapData(orgId=this.$store.state.chooseArea.chooseName.orgId,level=this.$store.state.chooseArea.chooseName.level) { console.log("=========================getMapData"); 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}}) => { + console.log(data,'datadatadata') + this.orgData = data; this.orgId = this.orgData.org_id; this.orgLevel = this.orgData.level; - } else { - this.$message.error(msg); - } + this.currentLevel = this.orgData.agencyLevel; + console.log(this.orgData, 'orgData') + }) }, //获取地图上显示的组织数据 @@ -252,20 +319,20 @@ export default { 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,10 +343,10 @@ export default { coordinates: item.coordinates || "", }; }); - this.orgData = { ...orgData }; + this.orgData = {...orgData}; console.log( - "==========================getSubMapData:result", - this.orgData + "==========================getSubMapData:result", + this.orgData ); } else { this.$message.error(msg); @@ -294,7 +361,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 +378,7 @@ export default { diff --git a/src/views/dataBoard/satisfactionEval/components/Tabs/index.vue b/src/views/dataBoard/satisfactionEval/components/Tabs/index.vue index 70597d2a8..93d9bfb22 100644 --- a/src/views/dataBoard/satisfactionEval/components/Tabs/index.vue +++ b/src/views/dataBoard/satisfactionEval/components/Tabs/index.vue @@ -1,6 +1,7 @@