Browse Source

Merge branch 'dev-0420' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-0420

shibei_master
jiangyy 3 years ago
parent
commit
fcf48c5142
  1. 12
      src/views/modules/base/resi.vue
  2. 27
      src/views/modules/visual/basicinfo/peopleList.vue

12
src/views/modules/base/resi.vue

@ -3,7 +3,10 @@
<el-card class="resi-card"> <el-card class="resi-card">
<el-collapse v-if="openSearch" v-model="activeNames"> <el-collapse v-if="openSearch" v-model="activeNames">
<el-collapse-item v-for="item in searchList" :key="item.itemGroupId" <el-collapse-item v-for="item in searchList" :key="item.itemGroupId"
:title="item.groupName" :name="item.itemGroupId"> :name="item.itemGroupId">
<template slot="title">
<div class="collapse-title">{{ item.groupName }}</div>
</template>
<resi-search v-if="searchList.length > 0" <resi-search v-if="searchList.length > 0"
:ref="'resiSearch' + item.itemGroupId" :ref="'resiSearch' + item.itemGroupId"
:form-list="item.queryItemList" :form-list="item.queryItemList"
@ -411,8 +414,8 @@ export default {
computed: { computed: {
...mapGetters(['clientHeight', 'iframeHeight']), ...mapGetters(['clientHeight', 'iframeHeight']),
tableHeight() { tableHeight() {
const h = this.clientHeight - this.searchH - 280 + this.iframeHeigh const h = this.clientHeight - this.searchH - 310 + this.iframeHeigh
const _h = this.clientHeight - 280 - this.searchH const _h = this.clientHeight - 310 - this.searchH
return this.$store.state.inIframe ? h : _h return this.$store.state.inIframe ? h : _h
} }
}, },
@ -1359,6 +1362,9 @@ export default {
// border-right: 1px solid rgba(33, 149, 254, 1); // border-right: 1px solid rgba(33, 149, 254, 1);
} }
} }
.collapse-title {
font-weight: bold;
}
.resi-table { .resi-table {
::v-deep .el-button--text { ::v-deep .el-button--text {
text-decoration: underline; text-decoration: underline;

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