|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="search-container">
|
|
|
|
|
<div class="option-rows">
|
|
|
|
|
<div class="option-rows" v-if="show_shequ_xiaoqu">
|
|
|
|
|
<el-select
|
|
|
|
|
@change="changeSelect($event, 'xiaoquList')"
|
|
|
|
|
v-model="queryParams.shequId"
|
|
|
|
@ -67,18 +67,18 @@
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in buildingList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:key="item.buildingId"
|
|
|
|
|
:label="item.buildingName"
|
|
|
|
|
:value="item.buildingId"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select v-model="queryParams.houseid" placeholder="选择住户" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in houseList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:key="item.houseId"
|
|
|
|
|
:label="item.houseName"
|
|
|
|
|
:value="item.houseId"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -220,7 +220,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { getLog, exportLog } from "@/api/home/index.js"; //回收
|
|
|
|
|
import { handleTreeId } from "@/utils/findTreeId.js";
|
|
|
|
|
import { treeselect } from "@/api/system/dept"; //部门
|
|
|
|
|
import { treeselect, getsszxBh } from "@/api/system/dept"; //部门
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
import ColorCell from "@/components/ColorCell";
|
|
|
|
|
|
|
|
|
@ -228,7 +228,7 @@ export default {
|
|
|
|
|
// dicts: ["b_color_type"],
|
|
|
|
|
components: { ColorCell },
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters(["leftColor", "rightTopColor", "queryParamsIndex"]),
|
|
|
|
|
...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu"]),
|
|
|
|
|
},
|
|
|
|
|
filters: {
|
|
|
|
|
filterType(target) {
|
|
|
|
@ -244,7 +244,7 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
loading: true,
|
|
|
|
|
|
|
|
|
|
show_shequ_xiaoqu: true,
|
|
|
|
|
currentIndex: 0,
|
|
|
|
|
credentialnoType: 0,
|
|
|
|
|
tabList: [
|
|
|
|
@ -315,8 +315,8 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.queryParams.shequId = this.queryParamsIndex.shequId;
|
|
|
|
|
created() {
|
|
|
|
|
// this.queryParams.shequId = this.queryParamsIndex.shequId;
|
|
|
|
|
|
|
|
|
|
this.getDeptList();
|
|
|
|
|
},
|
|
|
|
@ -334,11 +334,18 @@ export default {
|
|
|
|
|
async getDeptList() {
|
|
|
|
|
let result = await treeselect();
|
|
|
|
|
this.deptList = result.data[0].children;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
if (this.$route.path == "/xiaoqu") {
|
|
|
|
|
this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId;
|
|
|
|
|
this.changeSelect(this.queryParams.xiaoquId, "netList");
|
|
|
|
|
this.show_shequ_xiaoqu = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 级联筛选
|
|
|
|
|
*/
|
|
|
|
|
changeSelect(e, key) {
|
|
|
|
|
async changeSelect(e, key) {
|
|
|
|
|
let list = [];
|
|
|
|
|
let index = this.objList.findIndex((item) => item.key == key);
|
|
|
|
|
if (index > -1) {
|
|
|
|
@ -347,7 +354,15 @@ export default {
|
|
|
|
|
list.map((item) => {
|
|
|
|
|
this.queryParams[item.value] = undefined;
|
|
|
|
|
});
|
|
|
|
|
this[key] = handleTreeId(e, this.deptList);
|
|
|
|
|
if (key == "buildingList" || key == "houseList") {
|
|
|
|
|
let res = await getsszxBh({
|
|
|
|
|
deptId: this.queryParams.yuanid,
|
|
|
|
|
buildingId: this.queryParams.buildingId,
|
|
|
|
|
});
|
|
|
|
|
this[key] = res.data;
|
|
|
|
|
} else {
|
|
|
|
|
this[key] = handleTreeId(e, this.deptList);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|