37 changed files with 1294 additions and 752 deletions
@ -0,0 +1,93 @@ |
|||
<template> |
|||
<div> |
|||
<cpt-bread |
|||
@tap="clickBreadItem" |
|||
v-if="breadList.length > 1" |
|||
:bread-list="breadList" |
|||
/> |
|||
<personnel /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import cptBread from "@/views/dataBoard/renfang/cpts/bread"; |
|||
import personnel from "@/views/dataBoard/cpts/personnel" |
|||
|
|||
export default { |
|||
name: "renfang", |
|||
|
|||
components: { |
|||
cptBread, |
|||
personnel, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
breadList: [ |
|||
{ |
|||
path: "/dataBoard/renfang/index", |
|||
meta: { |
|||
title: "人房总览", |
|||
}, |
|||
}, |
|||
{ |
|||
path: "/dataBoard/renfang/visualizing", |
|||
meta: { |
|||
title: "", |
|||
}, |
|||
}, |
|||
{ |
|||
path: "/dataBoard/renfang/resi-class", |
|||
meta: { |
|||
title: "居民列表", |
|||
}, |
|||
}, |
|||
{ |
|||
path: "/dataBoard/renfang/resident", |
|||
meta: { |
|||
title: "居民画像", |
|||
}, |
|||
}, |
|||
], |
|||
}; |
|||
}, |
|||
|
|||
mounted() { |
|||
const query = this.$route.query; |
|||
this.org_id = query.org_id; |
|||
this.type = query.type; |
|||
this.type_id = query.type_id; |
|||
this.pageType = query.pageType; |
|||
this.type_name = query.type_name; |
|||
let title = query.type_name; |
|||
if (this.type == "jineng" || this.type == "gangwei") { |
|||
title = "失业人员"; |
|||
} |
|||
if (this.type == "wennuan" || this.type == "fuwu") { |
|||
title = "低保人员"; |
|||
} |
|||
this.breadList[1].meta.title = title; |
|||
}, |
|||
watch: {}, |
|||
methods: { |
|||
clickBreadItem({ item }) { |
|||
this.$router.push({ |
|||
path: item.path, |
|||
query: { |
|||
org_id: this.org_id, |
|||
type_id: this.type_id, |
|||
type: this.type, |
|||
type_name: this.type_name, |
|||
pageType: this.pageType, |
|||
}, |
|||
}); |
|||
} |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style |
|||
lang="scss" |
|||
src="@/assets/scss/dataBoard/renfang/index.scss" |
|||
scoped |
|||
></style> |
Loading…
Reference in new issue