|
|
|
@ -10,7 +10,7 @@ |
|
|
|
</el-breadcrumb> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="orgLevel!=='people'"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<div class="list_box"> |
|
|
|
<div class="info_tip"> |
|
|
|
@ -115,6 +115,7 @@ export default { |
|
|
|
pageNo: 1, |
|
|
|
total: 0, |
|
|
|
orgLevel: 'search', |
|
|
|
orgId: '', |
|
|
|
selUserId: '', |
|
|
|
//下钻层级记录 |
|
|
|
runNum: 0, |
|
|
|
@ -128,11 +129,18 @@ export default { |
|
|
|
this.searchName = '' |
|
|
|
this.tableData = [] |
|
|
|
const { columnName, label, id, level } = this.$route.query |
|
|
|
this.orgLevel = level |
|
|
|
this.orgId = id |
|
|
|
this.searchName = columnName |
|
|
|
this.tableTitle = label |
|
|
|
this.loadList(id, level) |
|
|
|
|
|
|
|
}, |
|
|
|
deactivated() { |
|
|
|
this.orgLevel = '' |
|
|
|
this.orgId = '' |
|
|
|
this.pageNo = 1 |
|
|
|
}, |
|
|
|
beforeRouteEnter(to, from, next) { |
|
|
|
const arr = [ {...from }, { ...to, meta: { title: '人员列表'}}] |
|
|
|
next((vm) =>{ |
|
|
|
@ -176,24 +184,9 @@ export default { |
|
|
|
|
|
|
|
pageCurrentChangeHandle (val) { |
|
|
|
this.pageNo = val |
|
|
|
this.loadList() |
|
|
|
this.loadList(this.orgId, this.orgLevel) |
|
|
|
}, |
|
|
|
|
|
|
|
//下钻到下一级 type点击的类型:polygon 点击多边形(分为点击组织/小区) people 点击详情 |
|
|
|
async toSubAgency (type, userId) { |
|
|
|
|
|
|
|
|
|
|
|
this.orgLevel = 'people' |
|
|
|
this.selUserId = userId |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//返回所选组织 |
|
|
|
handleClickBack () { |
|
|
|
this.orgLevel = 'search' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
destroyed () { |
|
|
|
|