+

{{ dataitem.yellow_warn }}栋 ({{
- dataitem.yellow_threshold
- }})
+ />{{ dataitem.yellow_warn }}栋
{{ dataitem.red_warn }}栋 ({{ dataitem.red_threshold }})
+ />{{ dataitem.red_warn }}栋
diff --git a/src/views/dataBoard/renfang/house/list.vue b/src/views/dataBoard/renfang/house/list.vue
index c24681e2c..591f40966 100644
--- a/src/views/dataBoard/renfang/house/list.vue
+++ b/src/views/dataBoard/renfang/house/list.vue
@@ -152,9 +152,12 @@ export default {
};
},
- mounted() {
+ activated() {
this.org_id = getQueryPara("org_id");
this.houseType = getQueryPara("type");
+ const type_name = getQueryPara("type_name");
+ this.breadList[1].meta.title = type_name + "房屋列表";
+ this.tableTitle = type_name + "房屋列表";
this.getList();
},
diff --git a/src/views/dataBoard/renfang/index.vue b/src/views/dataBoard/renfang/index.vue
index a3064a605..8a7d90acb 100644
--- a/src/views/dataBoard/renfang/index.vue
+++ b/src/views/dataBoard/renfang/index.vue
@@ -245,9 +245,14 @@
src="~@/assets/images/shuju/main/card-title-bg-800.png"
class="box-title-bg"
/>
-
居民分类分析
+
居民分类分析
+
居民分类分析-智能预测
-
+

@@ -256,9 +261,20 @@
src="~@/assets/images/shuju/renfang/index/i-hint.png"
/>
+
+
+

+
返回
+
-
+
+
+
+
+
{{ ("0" + (index + 1)).substr(-2) }}.
+
{{ item.name }}
+
+ {{ item.count }} 人
+
+
+
+
+
+
+
较上一年
+

+

+
{{ item.growthAbs }}
+
人
+
+
+
@@ -413,7 +460,9 @@ export default {
},
],
- resiCategoryData: [],
+ resiCategoryData: [], // 居民分类分析
+ resiCategoryForecastData: [], // 居民分类预测
+ displayedForecast: false, //显示居民分类分析 还是居民分类预测
searchModule: {
displayedCard: false,
@@ -465,6 +514,7 @@ export default {
// await this.getMapData();
// await this.getSubMapData();
this.getResiCategoryData();
+ this.getResiCategoryForecastData();
this.getPerInfo();
this.loading = true;
@@ -639,6 +689,39 @@ export default {
}
},
+ //居民分类预测数据
+ async getResiCategoryForecastData() {
+ console.log("=========================getResiCategoryForecastData");
+ const url = "resident_class_predict";
+
+ const { data, code, msg } = await requestPostBi(
+ url,
+ {
+ queryParam: {
+ org_id: this.orgData.id,
+ },
+ },
+ {
+ mockId: 60064667,
+ }
+ );
+
+ 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),
+ };
+ });
+ } else {
+ this.$message.error(msg);
+ }
+ },
+
//获取地图上显示的组织数据
async getMapData() {
console.log("=========================getMapData");
diff --git a/src/views/dataBoard/renfang/resi/class.vue b/src/views/dataBoard/renfang/resi/class.vue
index 079fa9560..4c79b68fd 100644
--- a/src/views/dataBoard/renfang/resi/class.vue
+++ b/src/views/dataBoard/renfang/resi/class.vue
@@ -159,13 +159,14 @@ export default {
};
},
- mounted() {
+ activated() {
this.org_id = getQueryPara("org_id");
this.type_id = getQueryPara("type_id");
const type_name = getQueryPara("type_name");
- this.getList();
- this.breadList[1].meta.title = type_name;
+ this.breadList[1].meta.title = type_name + "居民列表";
+ this.tableTitle = type_name + "居民列表";
+ this.getList();
if (this.type_id == "6") {
this.getSubclass();
}
diff --git a/src/views/dataBoardMain/main.vue b/src/views/dataBoardMain/main.vue
index d334a310b..1d166dfbd 100644
--- a/src/views/dataBoardMain/main.vue
+++ b/src/views/dataBoardMain/main.vue
@@ -1,46 +1,51 @@
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+