楼栋图例/修复城北社区四个搜索中心没有条件过滤

master
许宏杰 6 months ago
parent 5420136712
commit d8a9abe809

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

@ -413,3 +413,6 @@
font-size: 14px; font-size: 14px;
} }
} }
.popperclass {
background: transparent !important;
}

@ -137,11 +137,12 @@ export default {
}, },
}, },
computed: { computed: {
...mapGetters(["name", "yjTotal"]), ...mapGetters(["name", "yjTotal", "dept"]),
handlerBtn() { handlerBtn() {
return ( return (
this.$route.name == "xiaoqu" && this.$route.name == "xiaoqu" &&
this.$auth.hasRoleOr(["admin", "leader"]) (this.$auth.hasRoleOr(["admin", "leader"]) ||
(this.$auth.hasRoleOr(["xiaoqu"]) && this.dept.xiaoquId == 238))
); );
}, },
}, },

@ -6,6 +6,7 @@
v-model="queryParams.shequId" v-model="queryParams.shequId"
placeholder="选择社区" placeholder="选择社区"
clearable clearable
v-show="deptXiaoqu"
> >
<el-option <el-option
v-for="item in deptList" v-for="item in deptList"
@ -279,7 +280,7 @@ export default {
// dicts: ["b_color_type"], // dicts: ["b_color_type"],
components: { ColorCell }, components: { ColorCell },
computed: { computed: {
...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu"]), ...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu", "dept"]),
}, },
filters: { filters: {
filterType(target) { filterType(target) {
@ -298,6 +299,7 @@ export default {
infoData: {}, infoData: {},
loading: true, loading: true,
show_shequ_xiaoqu: true, show_shequ_xiaoqu: true,
deptXiaoqu: true,
currentIndex: 0, currentIndex: 0,
credentialnoType: 0, credentialnoType: 0,
tabList: [ tabList: [
@ -400,6 +402,10 @@ export default {
this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId; this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId;
this.changeSelect(this.queryParams.xiaoquId, "netList"); this.changeSelect(this.queryParams.xiaoquId, "netList");
this.show_shequ_xiaoqu = false; this.show_shequ_xiaoqu = false;
} else if (this.$route.query.deptId) {
this.queryParams.shequId = this.dept.xiaoquId;
this.deptXiaoqu = false;
this.changeSelect(this.queryParams.shequId, "xiaoquList");
} }
}); });
}, },
@ -494,7 +500,9 @@ export default {
this.timer = ""; this.timer = "";
this.queryParams.mark = ""; this.queryParams.mark = "";
this.queryParams.type = undefined; this.queryParams.type = undefined;
this.queryParams.shequId = undefined; this.queryParams.shequId = this.deptXiaoqu
? undefined
: this.dept.xiaoquId;
this.queryParams.xiaoquId = this.queryParams.xiaoquId =
this.$route.path == "/xiaoqu" this.$route.path == "/xiaoqu"
? this.queryParamsXiaoqu.xiaoquId ? this.queryParamsXiaoqu.xiaoquId

@ -6,6 +6,7 @@
v-model="queryParams.shequId" v-model="queryParams.shequId"
placeholder="选择社区" placeholder="选择社区"
clearable clearable
v-show="deptXiaoqu"
> >
<el-option <el-option
v-for="item in deptList" v-for="item in deptList"
@ -283,13 +284,14 @@ export default {
dicts: ["b_color_type"], dicts: ["b_color_type"],
components: { ColorCell }, components: { ColorCell },
computed: { computed: {
...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu"]), ...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu", "dept"]),
}, },
data() { data() {
return { return {
openInfo: false, openInfo: false,
infoData: {}, infoData: {},
show_shequ_xiaoqu: true, show_shequ_xiaoqu: true,
deptXiaoqu: true,
show_net: false, show_net: false,
loading: true, loading: true,
currentIndex: 0, currentIndex: 0,
@ -301,9 +303,9 @@ export default {
], ],
optionList: [ optionList: [
{ name: "完整身份证号", value: 0 }, { name: "完整身份证号", value: 0 },
// { name: "(2)", value: 1 }, { name: "省级(前2位)", value: 1 },
// { name: "(4)", value: 2 }, { name: "市级(前4位)", value: 2 },
// { name: "(6)", value: 3 }, { name: "县级(前6位)", value: 3 },
], ],
isCheck: [], isCheck: [],
isList: [ isList: [
@ -387,6 +389,10 @@ export default {
this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId; this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId;
this.changeSelect(this.queryParams.xiaoquId, "netList"); this.changeSelect(this.queryParams.xiaoquId, "netList");
this.show_shequ_xiaoqu = false; this.show_shequ_xiaoqu = false;
} else if (this.$route.query.deptId) {
this.queryParams.shequId = this.dept.xiaoquId;
this.deptXiaoqu = false;
this.changeSelect(this.queryParams.shequId, "xiaoquList");
} }
}); });
}, },
@ -488,7 +494,9 @@ export default {
this.keyWord = ""; this.keyWord = "";
this.credentialnoType = 0; this.credentialnoType = 0;
this.queryParams.type = undefined; this.queryParams.type = undefined;
this.queryParams.shequId = undefined; this.queryParams.shequId = this.deptXiaoqu
? undefined
: this.dept.xiaoquId;
this.queryParams.xiaoquId = this.queryParams.xiaoquId =
this.$route.path == "/xiaoqu" this.$route.path == "/xiaoqu"
? this.queryParamsXiaoqu.xiaoquId ? this.queryParamsXiaoqu.xiaoquId

@ -6,6 +6,7 @@
v-model="queryParams.shequId" v-model="queryParams.shequId"
placeholder="选择社区" placeholder="选择社区"
clearable clearable
v-show="deptXiaoqu"
> >
<el-option <el-option
v-for="item in deptList" v-for="item in deptList"
@ -289,6 +290,7 @@ export default {
"rightTopColor", "rightTopColor",
"userId", "userId",
"queryParamsXiaoqu", "queryParamsXiaoqu",
"dept",
]), ]),
}, },
data() { data() {
@ -297,6 +299,7 @@ export default {
infoData: {}, infoData: {},
loading: true, loading: true,
show_shequ_xiaoqu: true, show_shequ_xiaoqu: true,
deptXiaoqu: true,
currentIndex: 0, currentIndex: 0,
credentialnoType: 0, credentialnoType: 0,
// tabList: [ // tabList: [
@ -411,6 +414,10 @@ export default {
this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId; this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId;
this.changeSelect(this.queryParams.xiaoquId, "netList"); this.changeSelect(this.queryParams.xiaoquId, "netList");
this.show_shequ_xiaoqu = false; this.show_shequ_xiaoqu = false;
} else if (this.$route.query.deptId) {
this.queryParams.shequId = this.dept.xiaoquId;
this.deptXiaoqu = false;
this.changeSelect(this.queryParams.shequId, "xiaoquList");
} }
}); });
}, },
@ -504,7 +511,9 @@ export default {
this.credentialnoType = 0; this.credentialnoType = 0;
this.queryParams.mark = ""; this.queryParams.mark = "";
// this.queryParams.type = undefined; // this.queryParams.type = undefined;
this.queryParams.shequId = undefined; this.queryParams.shequId = this.deptXiaoqu
? undefined
: this.dept.xiaoquId;
this.queryParams.xiaoquId = this.queryParams.xiaoquId =
this.$route.path == "/xiaoqu" this.$route.path == "/xiaoqu"
? this.queryParamsXiaoqu.xiaoquId ? this.queryParamsXiaoqu.xiaoquId

@ -6,6 +6,7 @@
v-model="queryParams.shequId" v-model="queryParams.shequId"
placeholder="选择社区" placeholder="选择社区"
clearable clearable
v-show="deptXiaoqu"
> >
<el-option <el-option
v-for="item in deptList" v-for="item in deptList"
@ -284,7 +285,7 @@ export default {
dicts: ["b_color_type"], dicts: ["b_color_type"],
components: { ColorCell }, components: { ColorCell },
computed: { computed: {
...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu"]), ...mapGetters(["leftColor", "rightTopColor", "queryParamsXiaoqu", "dept"]),
}, },
data() { data() {
return { return {
@ -292,6 +293,7 @@ export default {
infoData: {}, infoData: {},
loading: true, loading: true,
show_shequ_xiaoqu: true, show_shequ_xiaoqu: true,
deptXiaoqu: true,
currentIndex: 0, currentIndex: 0,
credentialnoType: 0, credentialnoType: 0,
tabList: [ tabList: [
@ -382,6 +384,10 @@ export default {
this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId; this.queryParams.xiaoquId = this.queryParamsXiaoqu.xiaoquId;
this.changeSelect(this.queryParams.xiaoquId, "netList"); this.changeSelect(this.queryParams.xiaoquId, "netList");
this.show_shequ_xiaoqu = false; this.show_shequ_xiaoqu = false;
} else if (this.$route.query.deptId) {
this.queryParams.shequId = this.dept.xiaoquId;
this.deptXiaoqu = false;
this.changeSelect(this.queryParams.shequId, "xiaoquList");
} }
}); });
}, },
@ -475,7 +481,9 @@ export default {
this.credentialnoType = 0; this.credentialnoType = 0;
this.queryParams.mark = ""; this.queryParams.mark = "";
// this.queryParams.type = undefined; // this.queryParams.type = undefined;
this.queryParams.shequId = undefined; this.queryParams.shequId = this.deptXiaoqu
? undefined
: this.dept.xiaoquId;
this.queryParams.xiaoquId = this.queryParams.xiaoquId =
this.$route.path == "/xiaoqu" this.$route.path == "/xiaoqu"
? this.queryParamsXiaoqu.xiaoquId ? this.queryParamsXiaoqu.xiaoquId

@ -40,4 +40,7 @@ export default {
.mini { .mini {
padding: 2px 11px 4px 11px; padding: 2px 11px 4px 11px;
} }
.medium {
padding: 4px 16px 6px 16px;
}
</style> </style>

@ -11,6 +11,19 @@
alt="" alt=""
/> />
</div> </div>
<div class="fold-buttom">
<!-- @handlerClcik="lookSocialSecurity(item.id)" -->
<el-tooltip
placement="left-start"
popper-class="popperclass"
:visible-arrow="false"
>
<div slot="content" class="legend-img"></div>
<imageButton size="medium" v-show="queryParamsXiaoqu.buildingId"
>查看图例</imageButton
>
</el-tooltip>
</div>
<div :class="['panel-main', { collapsed: panel.bottomPanel }]"> <div :class="['panel-main', { collapsed: panel.bottomPanel }]">
<slot></slot> <slot></slot>
</div> </div>
@ -25,7 +38,7 @@ export default {
return {}; return {};
}, },
computed: { computed: {
...mapGetters(["panel"]), ...mapGetters(["panel", "queryParamsXiaoqu"]),
}, },
created() {}, created() {},
@ -61,6 +74,12 @@ export default {
width: 100%; width: 100%;
} }
} }
.fold-buttom {
position: absolute;
top: 6px;
right: 10px;
}
.panel-main { .panel-main {
position: relative; position: relative;
width: 100%; width: 100%;
@ -76,4 +95,11 @@ export default {
} }
} }
} }
.legend-img {
height: 500px;
width: 400px;
background: url("~@/assets/images/ui/legend.png");
background-size: 100% 100%;
}
</style> </style>

@ -134,9 +134,9 @@ export default {
"queryParamsXiaoqu.type"(newValue, oldValue) { "queryParamsXiaoqu.type"(newValue, oldValue) {
this.handleChange(); this.handleChange();
}, },
// "queryParamsXiaoqu.buildingId"(newValue, oldValue) { "queryParamsXiaoqu.buildingId"(newValue, oldValue) {
// this.handleChange(); this.handleChange();
// }, },
}, },
created() { created() {
this.handleChange(); this.handleChange();
@ -154,7 +154,7 @@ 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;
this.load(); this.load();

Loading…
Cancel
Save