diff --git a/src/assets/images/home/dangerHomeBg.png b/src/assets/images/home/dangerHomeBg.png
new file mode 100644
index 000000000..a3102ad73
Binary files /dev/null and b/src/assets/images/home/dangerHomeBg.png differ
diff --git a/src/js/store/modules/chooseArea.js b/src/js/store/modules/chooseArea.js
index 0619530fb..8e138c8db 100644
--- a/src/js/store/modules/chooseArea.js
+++ b/src/js/store/modules/chooseArea.js
@@ -3,6 +3,7 @@ const state = {
orgId: "",
level: "",
},
+ commonLoading: false,
realScale: null,
};
@@ -13,6 +14,9 @@ const mutations = {
CHOOSE_REAL_SCALE: (state, name) => {
state.realScale = name;
},
+ COMMON_LOADING: (state, flag) => {
+ state.commonLoading = flag;
+ },
};
const actions = {
@@ -22,6 +26,9 @@ const actions = {
chooseScale({ commit }, name) {
commit("CHOOSE_REAL_SCALE", name);
},
+ chooseLoading({ commit }, flag) {
+ commit("COMMON_LOADING", flag);
+ },
};
export default {
diff --git a/src/views/dataBoard/cpts/homeDetails/index.vue b/src/views/dataBoard/cpts/homeDetails/index.vue
index 05117bc92..d1e956474 100644
--- a/src/views/dataBoard/cpts/homeDetails/index.vue
+++ b/src/views/dataBoard/cpts/homeDetails/index.vue
@@ -34,7 +34,20 @@
-
{{ itm.doorName }}
+
+
{{ itm.doorName }}
+
+
{{ itm.doorName }}
+
![]()
+
+
+
{{ itm.doorName }}
+
![]()
+
+
+
@@ -56,10 +69,10 @@
-
+
-
+
查询
@@ -69,9 +82,9 @@
-
-
-
+
+
+
@@ -79,14 +92,14 @@
{{ getRentFlag(scope.row.rentFlag) }}
-
-
-
- {{ getHouseType(scope.row.houseType) }}
+
+
+
-
+
{{ $sensitive(scope.row.ownerPhone, 3, 7) }}
@@ -148,22 +161,39 @@ export default {
residentTag: "",
},
orgOptions: [],
- satisfactionSourceOptions: [],
- satisfactionCategoryOptions: [],
+ peopleTypeList: [],
+ riskHomeList: [
+ {
+ label: "风险",
+ value: "1",
+ },
+ {
+ label: "无风险",
+ value: "0",
+ },
+ ],
flexWidth: 0,
loading: false,
homeMsg: {},
list: [],
homeText: "",
buildingList: [],
- houseMountArr: [],
+ houseMountArr: [
+ // [
+ // { doorName: 101, riskyNum: 0, importanceNum: 0, rentFlag: "0" },
+ // { doorName: 102, riskyNum: 1, importanceNum: 0, rentFlag: "0" },
+ // { doorName: 103, riskyNum: 0, importanceNum: 1, rentFlag: "0" },
+ // { doorName: 104, riskyNum: 0, importanceNum: 0, rentFlag: "2" },
+ // ],
+ ],
};
},
watch: {},
mounted() {
const buId = this.$route.query.buId || null;
this.getList(buId);
- this.getTableData();
+ // this.getTableData(this.$route.query.id);
+ this.getPeopleTypeList();
},
methods: {
getDoorNameList(list) {
@@ -197,6 +227,19 @@ export default {
return doorNameList;
},
+ getPeopleTypeList() {
+ this.$http
+ .post("sys/dict/data/dictlist", {
+ dictType: "resident_category",
+ })
+ .then((res) => {
+ const { code, data } = res.data;
+ if (code === 0) {
+ this.peopleTypeList = data;
+ }
+ });
+ },
+
getUnitList(id) {
this.$http.get(`/actual/base/streetOverview/getUnitHouseList?unitId=` + id).then((res) => {
const {
@@ -207,7 +250,7 @@ export default {
let unitInfos = unitInfo || {};
this.homeMsg = unitInfos;
this.homeText = (unitInfos.quartersName ? unitInfos.quartersName : "") + (unitInfos.buildingName ? unitInfos.buildingName : "") + (unitInfos.unitNum ? unitInfos.unitNum + "单元" : "");
- this.houseMountArr = this.getDoorNameList(this.list);
+ this.houseMountArr = this.getDoorNameList(houseList);
if (this.houseMountArr.length > 0) {
this.flexWidth = this.houseMountArr[0].length * 58;
}
@@ -215,14 +258,17 @@ export default {
});
},
- getTableData() {
- const { id } = this.$route.query;
+ getTableData(id) {
this.queryParams.unitId = id;
this.loading = true;
this.$http.get("/actual/base/streetOverview/getUnitHouseOverviewList?" + this.$paramsFormat(this.queryParams)).then((res) => {
- const { code, data } = res.data;
+ const {
+ code,
+ data: { list, total },
+ } = res.data;
if (code === 0) {
- this.list = data;
+ this.list = list;
+ this.total = total;
this.loading = false;
} else {
this.loading = false;
@@ -230,7 +276,10 @@ export default {
});
},
- search() {},
+ search() {
+ this.queryParams.pageNo = 1;
+ this.getTableData();
+ },
getList(buid) {
const homeType = this.$route.query.typeB;
@@ -247,6 +296,7 @@ export default {
if (item.id === buid) {
item.ifActive = true;
this.getUnitList(item.id);
+ this.getTableData(item.id);
} else {
item.ifActive = false;
}
@@ -256,6 +306,7 @@ export default {
if (i === 0) {
item.ifActive = true;
this.getUnitList(item.id);
+ this.getTableData(item.id);
} else {
item.ifActive = false;
}
@@ -269,6 +320,7 @@ export default {
});
} else {
this.getUnitList(this.$route.query.id);
+ this.getTableData(this.$route.query.id);
}
},
@@ -298,6 +350,7 @@ export default {
if (item.id === d.id) {
d.ifActive = true;
this.getUnitList(item.id);
+ this.getTableData(item.id);
} else {
d.ifActive = false;
}
@@ -337,6 +390,22 @@ export default {
cursor: pointer;
}
+@mixin homeCommon {
+ height: 58px;
+ background-size: 100% 100%;
+ display: flex;
+ flex: 0 0 48px;
+ align-items: center;
+ justify-content: center;
+ font-size: 14px;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #fff;
+ &:not(:last-child) {
+ margin-right: 10px;
+ }
+}
+
.top-nav-list {
display: flex;
margin-bottom: 16px;
@@ -403,21 +472,29 @@ export default {
margin-bottom: 20px;
.households {
- height: 58px;
+ @include homeCommon;
background: url("@/assets/images/home/hasPeople.png") no-repeat;
- background-size: 100% 100%;
- display: flex;
- flex: 0 0 48px;
- align-items: center;
- justify-content: center;
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 500;
- color: #7fceff;
- &:not(:last-child) {
- margin-right: 10px;
- }
}
+ .dangerHome,
+ .dangerPeople {
+ @include homeCommon;
+ background: url("@/assets/images/home/dangerHomeBg.png") no-repeat;
+ }
+ .freeHome {
+ @include homeCommon;
+ background: url("@/assets/images/home/freeHome.png") no-repeat;
+ }
+ }
+ }
+
+ .dangerClass {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ div:first-child {
+ margin-bottom: 5px;
+ font-weight: bold;
}
}
diff --git a/src/views/dataBoard/overview/components/jdwgy.vue b/src/views/dataBoard/overview/components/jdwgy.vue
index af9b3e2b3..b6b5f6a3c 100644
--- a/src/views/dataBoard/overview/components/jdwgy.vue
+++ b/src/views/dataBoard/overview/components/jdwgy.vue
@@ -126,9 +126,11 @@ export default {
getData() {
this.loading = true;
if (this.currentLevelData.orgLevel == "grid") {
+ this.$store.dispatch("chooseArea/chooseLoading", true);
const personType = this.ifUnit && this.peopleType === "unit" ? "unit" : this.peopleType;
this.$http.get("/actual/base/streetOverview/queryPersonnelGridGroup?personnelType=" + personType + "&level=" + this.currentLevelData.orgLevel + "&orgId=" + this.currentLevelData.orgId).then(({ data: { data } }) => {
this.loading = false;
+ this.$store.dispatch("chooseArea/chooseLoading", false);
this.wglist = data;
this.$emit(
"setPoint",
diff --git a/src/views/dataBoardMain/main-content.vue b/src/views/dataBoardMain/main-content.vue
index e161f9ef3..d62d01192 100644
--- a/src/views/dataBoardMain/main-content.vue
+++ b/src/views/dataBoardMain/main-content.vue
@@ -5,7 +5,7 @@
-
+
diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue
index 540d4a93e..2731b8a99 100644
--- a/src/views/modules/home/index.vue
+++ b/src/views/modules/home/index.vue
@@ -9,149 +9,90 @@
-
- 查居民
-
-
- 查房屋
-
+
查居民
+
查房屋
-
+
-

+
组织简介
- {{ pandectData.deptName }},划分为{{
- pandectData.underCount
- }}个{{
- pandectData.underName
- }}, 现有房屋{{ pandectData.homeCount }}间,自住房屋{{
- pandectData.selfStay
- }}间、出租房屋{{
- pandectData.rentOut
- }}间、闲置房屋{{
- pandectData.vacantHouse
- }}间,现有居民{{ pandectData.resiCount }}户、{{
- pandectData.totalResidents
- }}人,其中常住人口{{ pandectData.permanentResiCount }}人,流动人口{{
- pandectData.floatingResiCount
- }}人,各类群体分布如下:
+ {{ pandectData.deptName }},划分为{{ pandectData.underCount }}个{{ pandectData.underName }}, 现有房屋{{ pandectData.homeCount }}间,自住房屋{{ pandectData.selfStay }}间、出租房屋{{ pandectData.rentOut }}间、闲置房屋{{ pandectData.vacantHouse }}间,现有居民{{ pandectData.resiCount }}户、{{ pandectData.totalResidents }}人,其中常住人口{{ pandectData.permanentResiCount }}人,流动人口{{ pandectData.floatingResiCount }}人,各类群体分布如下:
-

+
分析结果
-
+
根据数据分析结果,建议重点关注
- {{ resiCategory.list[0].name }}、{{
- resiCategory.list[1].name
- }}、{{ resiCategory.list[2].name }}
+ {{ resiCategory.list[0].name }}、{{ resiCategory.list[1].name }}、{{ resiCategory.list[2].name }}
三类群体,开展相关的社区服务和活动。
-
-
+
+
-
-
- {{
- ("0" + (index + 1)).substr(-2)
- }}.
-
+
+
{{ ("0" + (index + 1)).substr(-2) }}.
{{ item.name }}
-
- {{ item.count }}人
-
+
{{ item.count }}人
-
-
-
- {{ item.per }} %
+
+
{{ item.per }} %
-
+
-
-
- {{
- ("0" + (index + 1)).substr(-2)
- }}.
-
+
+
{{ ("0" + (index + 1)).substr(-2) }}.
{{ item.name }}
-
- {{ item.count }}人
-
+
{{ item.count }}人
-
-
-
- {{ item.per }} %
+
+
{{ item.per }} %
@@ -164,23 +105,15 @@
-
更多>
-
-
-
+
更多>
+
+
- 已读
- 未读
+ 已读
+ 未读
-
+
-

+
暂无提醒~
@@ -204,31 +136,30 @@
-
+