单击底部筛选列表记录查看building/House

master
许宏杰 6 months ago
parent 473b9dca0f
commit ef377216a7

@ -44,8 +44,8 @@
> >
<div class="dialog-main"> <div class="dialog-main">
<div class="dialog-title"><span></span> {{ title }}</div> <div class="dialog-title"><span></span> {{ title }}</div>
<peopleCentre v-if="title == ''" /> <peopleCentre v-if="title == ''" @lookBuild="lookBuild" />
<warningCentre v-if="title == ''" /> <warningCentre v-if="title == ''" @lookBuild="lookBuild" />
<recycleCentre v-if="title == ''" /> <recycleCentre v-if="title == ''" />
<logCentre v-if="title == ''" /> <logCentre v-if="title == ''" />
</div> </div>
@ -112,6 +112,16 @@ export default {
handleBack() { handleBack() {
this.$router.back(); this.$router.back();
}, },
lookBuild(item) {
this.open = false;
this.$store.commit("SET_CLICK_RESULT", {
id: item.houseId,
buildingId: item.buildingId,
name: item.housename,
keyId: item.houseId,
});
this.$store.commit("CHANGE_QUERY", { buildingId: item.buildingId });
},
/** /**
* 是个中心 * 是个中心
*/ */

@ -241,7 +241,16 @@
> >
</div> </div>
<div>住户名称</div> <div>住户名称</div>
<div>{{ infoData.housename }}</div> <div>
{{ infoData.housename }}
<el-link
v-show="!this.show_shequ_xiaoqu"
style="margin-left: 10px"
type="success"
@click="handlerClick()"
>查看详情</el-link
>
</div>
<div class="no-left">社保缴纳单位</div> <div class="no-left">社保缴纳单位</div>
<div>{{ "/" }}</div> <div>{{ "/" }}</div>
<div>实际工作单位</div> <div>实际工作单位</div>
@ -357,6 +366,10 @@ export default {
this.getDeptList(); this.getDeptList();
}, },
methods: { methods: {
handlerClick() {
this.openInfo = false;
this.$emit("lookBuild", this.infoData);
},
/** /**
* 详情 * 详情
*/ */

@ -244,7 +244,16 @@
> >
</div> </div>
<div>住户名称</div> <div>住户名称</div>
<div>{{ infoData.housename }}</div> <div>
{{ infoData.housename }}
<el-link
v-show="!this.show_shequ_xiaoqu"
style="margin-left: 10px"
type="success"
@click="handlerClick()"
>查看详情</el-link
>
</div>
<div class="no-left">社保缴纳单位</div> <div class="no-left">社保缴纳单位</div>
<div>{{ "/" }}</div> <div>{{ "/" }}</div>
<div>实际工作单位</div> <div>实际工作单位</div>
@ -352,6 +361,10 @@ export default {
this.getDeptList(); this.getDeptList();
}, },
methods: { methods: {
handlerClick() {
this.openInfo = false;
this.$emit("lookBuild", this.infoData);
},
/** /**
* 详情 * 详情
*/ */

@ -154,7 +154,6 @@ export default {
handleChange(newValue) { handleChange(newValue) {
this.reset(); this.reset();
this.queryParams = { ...this.queryParams, ...this.queryParamsXiaoqu }; this.queryParams = { ...this.queryParams, ...this.queryParamsXiaoqu };
this.queryParams.buildingId = undefined; this.queryParams.buildingId = undefined;
// this.queryParams.deptId = undefined; // this.queryParams.deptId = undefined;
this.disabled = false; this.disabled = false;
@ -175,7 +174,6 @@ export default {
}, },
async getList() { async getList() {
this.loading = true; this.loading = true;
let res = await inputSearch(this.queryParams); let res = await inputSearch(this.queryParams);
let handleColor = this.handleColor(res.data.xinxilist.rows); let handleColor = this.handleColor(res.data.xinxilist.rows);
this.list = [...this.list, ...handleColor]; this.list = [...this.list, ...handleColor];

Loading…
Cancel
Save