| | |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <div class="type-tab-box"> |
| | | <div class="tab-item" :class="{ 'tab-choose-item': hushiPeoTy == 1 }" @click="hushiPeoTyClick(1)"> |
| | | 户籍人口</div> |
| | | <div class="tab-item" :class="{ 'tab-choose-item': hushiPeoTy == 2 }" @click="hushiPeoTyClick(2)"> |
| | | 实有人口</div> |
| | | <div class="tab-item" :class="{ 'tab-choose-item': hushiPeoTy == 3 }" @click="hushiPeoTyClick(3)">其他 |
| | | </div> |
| | | </div> |
| | | <el-table :data="houseDate" |
| | | :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" v-loading="residentLoading" |
| | |
| | | isQFL27: false, |
| | | businessChooseItem: {}, |
| | | isBusinessHoverShow: false, |
| | | hushiPeoTy: 1, |
| | | residentIdSave: '', |
| | | } |
| | | }, |
| | | |
| | |
| | | updated () { }, |
| | | |
| | | methods: { |
| | | // 户室人口类型切换 |
| | | hushiPeoTyClick (type) { |
| | | this.hushiPeoTy = type |
| | | this.getVillagePersonInfo(this.residentIdSave, '', { personType: this.hushiPeoTy }) |
| | | console.log('hushiPeoTyClick', type) |
| | | }, |
| | | |
| | | // 鼠标移入商业数据 |
| | | businessMouseEnter (row) { |
| | | if (this.isQFL27) { |
| | |
| | | this.houseDate = [] |
| | | if (params.exttype == 'room') { |
| | | residentId = params.std_addr_id.split('|')[2] |
| | | this.getVillagePersonInfo(residentId) |
| | | this.residentIdSave = residentId |
| | | this.getVillagePersonInfo(residentId, '', { personType: this.hushiPeoTy }) |
| | | this.floorChoosed = params.sname |
| | | this.getResident3DData(residentId) |
| | | } else { |
| | |
| | | }, |
| | | |
| | | residentDetailsClose () { |
| | | this.hushiPeoTy = 1 |
| | | this.residentDetailsShow = false |
| | | }, |
| | | |
| | |
| | | } else if (this.keyPeopleType == 4) { |
| | | this.peopleNoDataText = '暂无未成年人口信息' |
| | | } else { |
| | | this.residentNoDataText = '暂无户室信息' |
| | | if (this.hushiPeoTy == 1) { |
| | | this.residentNoDataText = '暂无户籍人口信息' |
| | | } else if (this.hushiPeoTy == 2) { |
| | | this.residentNoDataText = '暂无实有人口信息' |
| | | } else if (this.hushiPeoTy == 3) { |
| | | this.residentNoDataText = '暂无其他信息' |
| | | } |
| | | } |
| | | } |
| | | // 户室为楼栋情况 |
| | |
| | | this.residentLoading = false |
| | | }, 500) |
| | | if (res.data.data.records.length == 0) { |
| | | this.residentNoDataText = '暂无户室信息' |
| | | if (this.hushiPeoTy == 1) { |
| | | this.residentNoDataText = '暂无户籍人口信息' |
| | | } else if (this.hushiPeoTy == 2) { |
| | | this.residentNoDataText = '暂无实有人口信息' |
| | | } else if (this.hushiPeoTy == 3) { |
| | | this.residentNoDataText = '暂无其他信息' |
| | | } |
| | | } |
| | | } |
| | | }).catch((res) => { |
| | |
| | | } else if (this.keyPeopleType == 4) { |
| | | this.peopleNoDataText = '暂无未成年人口信息' |
| | | } else { |
| | | this.residentNoDataText = '暂无户室信息' |
| | | if (this.hushiPeoTy == 1) { |
| | | this.residentNoDataText = '暂无户籍人口信息' |
| | | } else if (this.hushiPeoTy == 2) { |
| | | this.residentNoDataText = '暂无实有人口信息' |
| | | } else if (this.hushiPeoTy == 3) { |
| | | this.residentNoDataText = '暂无其他信息' |
| | | } |
| | | } |
| | | }, 500) |
| | | }) |