Browse Source

dd

shibei_master
13176889840 4 years ago
parent
commit
0e7c948f19
  1. 27
      src/views/modules/visual/basicinfo/peopleList.vue

27
src/views/modules/visual/basicinfo/peopleList.vue

@ -10,7 +10,7 @@
</el-breadcrumb> </el-breadcrumb>
</div> </div>
<div v-if="orgLevel!=='people'"> <div>
<div class="list_box"> <div class="list_box">
<div class="info_tip"> <div class="info_tip">
@ -115,6 +115,7 @@ export default {
pageNo: 1, pageNo: 1,
total: 0, total: 0,
orgLevel: 'search', orgLevel: 'search',
orgId: '',
selUserId: '', selUserId: '',
// //
runNum: 0, runNum: 0,
@ -128,11 +129,18 @@ export default {
this.searchName = '' this.searchName = ''
this.tableData = [] this.tableData = []
const { columnName, label, id, level } = this.$route.query const { columnName, label, id, level } = this.$route.query
this.orgLevel = level
this.orgId = id
this.searchName = columnName this.searchName = columnName
this.tableTitle = label this.tableTitle = label
this.loadList(id, level) this.loadList(id, level)
}, },
deactivated() {
this.orgLevel = ''
this.orgId = ''
this.pageNo = 1
},
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
const arr = [ {...from }, { ...to, meta: { title: '人员列表'}}] const arr = [ {...from }, { ...to, meta: { title: '人员列表'}}]
next((vm) =>{ next((vm) =>{
@ -176,24 +184,9 @@ export default {
pageCurrentChangeHandle (val) { pageCurrentChangeHandle (val) {
this.pageNo = 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 () { destroyed () {

Loading…
Cancel
Save