diff --git a/src/views/dataBoard/renfang/cpts/fwgl.vue b/src/views/dataBoard/renfang/cpts/fwgl.vue index 04e475d9c..14c1e1440 100644 --- a/src/views/dataBoard/renfang/cpts/fwgl.vue +++ b/src/views/dataBoard/renfang/cpts/fwgl.vue @@ -7,6 +7,7 @@ class="" @myChartMethod="pieInitOk" ref="pieChart" + v-if="pandectData.homeCount" >
@@ -35,7 +36,7 @@
房屋总数
-
{{ info.house_count }}
+
{{ pandectData.homeCount }}
@@ -54,7 +55,7 @@
- {{ info.self_dwelling_count }} + {{ pandectData.selfStay }}
@@ -74,7 +75,7 @@
出租房屋
-
{{ info.lease_count }}
+
{{pandectData.rentOut}}
@@ -92,7 +93,7 @@
闲置房屋
-
{{ info.unused_count }}
+
{{ pandectData.vacantHouse }}
@@ -166,10 +167,13 @@ export default { lease_count: 0, unused_count: 0, }, + pandectData:{} }; }, mounted() { - this.getData(); + this.$nextTick(()=>{ + this.getData(); + }) }, watch: { orgId() { @@ -196,8 +200,9 @@ export default { }, async getData() { await this.getInfo(); + this.getPie(); this.getBar(); - this.getPie(); + }, getBar() { if (this.barInitState) { @@ -251,25 +256,23 @@ export default { } }, // 获取饼状图 - async iniPieChart() { + iniPieChart() { this.$refs.pieChart.clear(); - // this.$refs.pieChart.showLoading() - // 获取pieChart配置 this.pieOption = pieOption(); - - const { info } = this; + const {pandectData} = this + console.log(pandectData); // 设置三个配置值 this.pieOption.title.text = - (info.house_count != 0 + (pandectData.homeCount != 0 ? parseInt( - (100 * info.self_dwelling_count) / info.house_count + (100 * pandectData.selfStay) / pandectData.homeCount ) : "--") + "%"; this.pieData = [ - { value: info.self_dwelling_count, name: "自住房屋" }, - { value: info.lease_count, name: "出租房屋" }, - { value: info.unused_count, name: "闲置房屋" }, + { value: pandectData.selfStay, name: "自住房屋" }, + { value: pandectData.rentOut, name: "出租房屋" }, + { value: pandectData.vacantHouse, name: "闲置房屋" }, ]; this.pieOption.series[0].data = this.pieData; this.$refs.pieChart.setOption(this.pieOption); @@ -282,21 +285,21 @@ export default { fromActionPayload: { dataIndexInside }, } = params; this.pieOption.title.text = - (info.house_count != 0 + (pandectData.homeCount != 0 ? parseInt( (100 * [ - info.self_dwelling_count, - info.lease_count, - info.unused_count, + pandectData.selfStay, + pandectData.rentOut, + pandectData.vacantHouse, ][dataIndexInside]) / - info.house_count + pandectData.homeCount ) : "--") + "%"; this.$refs.pieChart.myChart.setOption(this.pieOption); }); }, - + // 获取房屋总数等 async getBarData() { const url = "house_trend"; diff --git a/src/views/dataBoard/renfang/index.vue b/src/views/dataBoard/renfang/index.vue index f4aa3483a..43ddcdf17 100644 --- a/src/views/dataBoard/renfang/index.vue +++ b/src/views/dataBoard/renfang/index.vue @@ -17,7 +17,7 @@
- +
@@ -31,7 +31,7 @@
- +
@@ -438,6 +438,8 @@ import resiDetails from "@/views/dataBoard/cpts/resi-details"; import { requestPostBi } from "@/js/dai/request-bipass"; import { requestPost } from "@/js/dai/request"; import getQueryPara from "dai-js/modules/getQueryPara"; +import {requestGet} from "@/js/dai/request"; +import resiCategoryMap from "@/views/business/resi-category-map.js"; function iniGetPerInfo() { return { @@ -504,6 +506,8 @@ export default { displayedResiId: "", displayedHouseId: "", + + pandectData: {}, }; }, @@ -531,10 +535,30 @@ export default { await this.getMapData(); await this.getSubMapData(); this.getResiCategoryData(); - this.getResiCategoryForecastData(); this.getPerInfo(); - + this.getResiCategoryForecastData(); + this.getPandectData() this.loading = true; + }, + //加载组织数据 + async getPandectData() { + const url = "/actual/base/residentHouseMerge/communityOverview"; + let params = { + // orgId: "", + // level: "", + }; + + const {data, code, msg} = await requestGet(url, params); + if (code === 0) { + if (data) { + this.$nextTick(()=>{ + this.$refs['fwgl'].pandectData = data + } + ) + } + } else { + this.$message.error(msg); + } }, jumpPath(pageType, type_id = "", type_name) { this.$router.push({ @@ -729,31 +753,25 @@ export default { //居民分类预测数据 async getResiCategoryForecastData() { - const url = "resident_class_predict"; - - const { data, code, msg } = await requestPostBi( - url, - { - queryParam: { - org_id: this.orgId, - }, - }, - { - // mockId: 60064667, - } - ); - + const url = "/actual/base/resiCategory/intelligentPredictioncategoryCountList"; + let params = { + }; + const {data, code, msg} = await requestGet(url, params); if (code === 0) { - this.resiCategoryForecastData = data.map((item) => { - return { - code: item.resident_type, - name: item.resident_type_name, - count: item.resident_count, - ratio: item.resident_ratio, - growth: item.change_count, - growthAbs: Math.abs(item.change_count), - }; - }); + this.resiCategoryForecastData = data.categoryList.map((item) => { + return { + code: item.categoryName, + name: resiCategoryMap[item.categoryName] || "", + count: item.categoryCountNext, + // name:item.categoryCountName, + per: parseInt( + (100 * item.categoryCount) / data.resiCount + ), + // per: item.change_ratio, + growth: item.change_ratio, + growthAbs: Math.abs(item.categoryCountNext - item.categoryCount) + }; + }); } else { this.$message.error(msg); } diff --git a/src/views/modules/base/residentManagement/housingNature/housingNature.vue b/src/views/modules/base/residentManagement/housingNature/housingNature.vue index 10ec1f5e7..a61dfa8dd 100644 --- a/src/views/modules/base/residentManagement/housingNature/housingNature.vue +++ b/src/views/modules/base/residentManagement/housingNature/housingNature.vue @@ -216,7 +216,6 @@ @@ -234,7 +233,7 @@ @@ -246,7 +245,7 @@ @@ -357,7 +356,7 @@ export default { showDetail: false, formType: "add", addDiaTitle: "新增", - detailDiaTitle: "详情", + detailDiaTitle: "编辑", multiSelection: [], // 多选结果 importLoading: false, diff --git a/src/views/modules/base/residentManagement/oldPeople/addForm.vue b/src/views/modules/base/residentManagement/oldPeople/addForm.vue index ca89ac75b..f1fffad4b 100644 --- a/src/views/modules/base/residentManagement/oldPeople/addForm.vue +++ b/src/views/modules/base/residentManagement/oldPeople/addForm.vue @@ -8,7 +8,7 @@ 所属组织: {{ formData.agencyName || "--" }} - + 姓名: {{ formData.name || "--" }} - + @@ -35,7 +35,7 @@ 联系电话: {{ formData.mobile || "--" }} - + @@ -47,7 +47,7 @@ 证件类型: {{ formData.idTypeName || "--" }} - + @@ -60,7 +60,7 @@ 证件号: {{ formData.idNum || "--" }} - + @@ -80,7 +80,7 @@ : "--" }} - + @@ -96,7 +96,7 @@ 户籍地址: {{ formData.placeOfDomicile || "--" }} - + @@ -108,7 +108,7 @@ 现居地址: {{ formData.currentResidence || "--" }} - + @@ -128,7 +128,7 @@ : "--" }} - + @@ -141,7 +141,7 @@ 残疾类别: {{ formData.disabilityCategoryName || "--" }} - + @@ -158,7 +158,7 @@ 残疾级别: {{ formData.disabilityLevelName || "--" }} - + @@ -171,7 +171,7 @@ 残疾证号: {{ formData.disabilityNum || "--" }} - + @@ -183,7 +183,7 @@ 与户主关系: {{ formData.disabilityCategoryName || "--" }} - + @@ -196,7 +196,7 @@ 居住情况: {{ formData.resideSituationName || "--" }} - + @@ -212,7 +212,7 @@ 婚姻情况: {{ formData.marriageName || "--" }} - + @@ -226,7 +226,7 @@ 配偶情况: {{ formData.spouseSituationName || "--" }} - + @@ -241,7 +241,7 @@ 退休金额: {{ formData.retirementAmount || "--" }} - + @@ -251,7 +251,7 @@ 高龄补助: {{ formData.oldSubsidy || "--" }} - + @@ -260,7 +260,7 @@
- 有无赡养老人: + 有无赡养人: {{ formData.elderlyFlag != null ? formData.elderlyFlag === 1 @@ -271,7 +271,7 @@ : "--" }}
- + @@ -284,7 +284,7 @@ 与赡养人关系: {{ formData.elderlyRelationName || "--" }} - + @@ -299,7 +299,7 @@ 赡养人联系电话: {{ formData.dependantMobile || "--" }} - +
@@ -311,7 +311,7 @@ 备注: {{ formData.remark || "--" }} - + diff --git a/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue b/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue index ae65dbff5..b8f834f48 100644 --- a/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue +++ b/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue @@ -304,7 +304,7 @@ prop="elderlyFlag" align="center" width="100" - label="该居民有无赡养老人" + label="该居民有无赡养人" :show-overflow-tooltip="true" >