Browse Source

数据看板人口预警

feature
mk 3 years ago
parent
commit
b3d58a4017
  1. 22
      src/views/dataBoard/renfang/warn/building.vue
  2. 59
      src/views/dataBoard/renfang/warn/resi.vue

22
src/views/dataBoard/renfang/warn/building.vue

@ -30,7 +30,7 @@
></cpt-tb> ></cpt-tb>
</div> </div>
<resi-list :building_id="displayedId" :resident_type="type_id" v-if="displayedId" /> <!-- <resi-list :building_id="displayedId" :resident_type="type_id" /> -->
</div> </div>
</template> </template>
@ -153,13 +153,19 @@ export default {
showInfo(index) { showInfo(index) {
let item = this.srcTableData[index]; let item = this.srcTableData[index];
this.displayedId = item.building_id; // this.displayedId = item.building_id;
this.$router.push({
this.breadList.push({ path:"/dataBoard/renfang/warn-resi",
meta: { query:{
title: "预警人员列表", building_id:item.building_id,
}, resident_type:this.type_id
}); }
})
// this.breadList.push({
// meta: {
// title: "",
// },
// });
}, },
handlePageNoChange(pageNo) { handlePageNoChange(pageNo) {

59
src/views/dataBoard/renfang/warn/resi.vue

@ -1,5 +1,10 @@
<template> <template>
<div class="g-pgi"> <div class="g-pgi">
<cpt-bread
:separator="'/'"
@tap="handleClickBreadItem"
:breadList="breadList"
></cpt-bread>
<div class="m-title"> <div class="m-title">
<img <img
class="title_img" class="title_img"
@ -40,14 +45,14 @@ export default {
name: "resi-list", name: "resi-list",
props: { props: {
building_id: { // building_id: {
type: String, // type: String,
default: "", // default: "",
}, // },
resident_type: { // resident_type: {
type: String, // type: String,
default: "", // default: "",
}, // },
}, },
components: { components: {
@ -124,14 +129,38 @@ export default {
], ],
displayedResiId: "", displayedResiId: "",
breadList: [
{
type: "back",
meta: {
title: "人房总览",
},
},
{
type: "building",
meta: {
title: "预警楼栋列表",
},
},
{
type: "resi",
meta: {
title: "预警人员列表",
},
},
],
}; };
}, },
mounted() {
activated() {
this.building_id = getQueryPara("building_id");
this.resident_type = getQueryPara('resident_type')
this.pageNo = 1;
this.getList(); this.getList();
this.getCount(); this.getCount();
}, },
methods: { methods: {
showInfo(index) { showInfo(index) {
let item = this.srcTableData[index]; let item = this.srcTableData[index];
@ -223,6 +252,16 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
handleClickBreadItem({ item }) {
if (item.type == "back") {
this.$router.push({
path:"/dataBoard/renfang/index"
})
} else if (item.type == "building") {
this.displayedId = "";
this.$router.back();
}
},
}, },
destroyed() { destroyed() {

Loading…
Cancel
Save