小区页面重置

master
许宏杰 8 months ago
parent 0964e6f937
commit 9502c24eee

@ -203,9 +203,6 @@ aside {
color: #fff; color: #fff;
} }
.el-badge__content.is-fixed {
z-index: 10;
}
.el-dialog { .el-dialog {
background: transparent; background: transparent;
} }
@ -249,6 +246,9 @@ aside {
justify-content: center; justify-content: center;
} }
} }
.el-badge__content.is-fixed {
z-index: 500 !important;
}
.taicang-dialog-small { .taicang-dialog-small {
width: 850px !important; width: 850px !important;
.dialog-main { .dialog-main {

@ -19,7 +19,7 @@
<div class="sub-title" :text="subTitle">{{ subTitle }}</div> <div class="sub-title" :text="subTitle">{{ subTitle }}</div>
</div> </div>
<div class="navigation-right"> <div class="navigation-right">
<div class="reset" v-show="showRight"></div> <div class="reset" v-show="showRight" @click="reset()"></div>
<el-button <el-button
type="text" type="text"
@ -119,7 +119,9 @@ export default {
this.title = title; this.title = title;
this.open = true; this.open = true;
}, },
reset() {
this.$emit("reset");
},
goSteam() { goSteam() {
this.$router.push("/system/user"); this.$router.push("/system/user");
}, },
@ -198,6 +200,7 @@ export default {
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: flex-start; align-items: flex-start;
.reset { .reset {
cursor: pointer;
height: 41px; height: 41px;
width: 58px; width: 58px;
background: url("~@/assets/images/ui/reset.png"); background: url("~@/assets/images/ui/reset.png");

@ -32,5 +32,6 @@ const getters = {
houseItem: (state) => state.xiaoqu.houseItem, houseItem: (state) => state.xiaoqu.houseItem,
refreshBuild: (state) => state.xiaoqu.refreshBuild, refreshBuild: (state) => state.xiaoqu.refreshBuild,
personNum: (state) => state.xiaoqu.personNum, personNum: (state) => state.xiaoqu.personNum,
resetBtn: (state) => state.xiaoqu.reset,
}; };
export default getters; export default getters;

@ -1,26 +1,25 @@
import { listDept } from "@/api/system/dept.js"; import { listDept } from "@/api/system/dept.js";
import { listBuilding } from "@/api/taicangpop/building.js"; import { listBuilding } from "@/api/taicangpop/building.js";
const xiaoqu = { const xiaoqu = {
state: { state: {
//页面接口参数 //页面接口参数
queryParmas: {}, queryParmas: {},
mapParmas: { mapParmas: {},
sd: false,
networkName: undefined,
},
netWorkintroduce: {}, netWorkintroduce: {},
panel: {}, panel: {},
houseItem: {}, houseItem: {},
refreshBuild: 1, refreshBuild: 1,
personNum: { personNum: {},
zz: 0, reset: false,
cz: 0,
},
}, },
mutations: { mutations: {
SET_PERSON_NUM: (state, data) => { SET_PERSON_NUM: (state, data) => {
state.personNum = data; state.personNum = data;
}, },
SET_RESET: (state, boole) => {
state.reset = boole;
},
SET_REFRESH: (state, refresh) => { SET_REFRESH: (state, refresh) => {
state.refreshBuild = refresh; state.refreshBuild = refresh;
}, },
@ -87,6 +86,10 @@ const xiaoqu = {
isx: undefined, isx: undefined,
isj: undefined, isj: undefined,
}; };
state.mapParmas = {
sd: false,
networkName: undefined,
};
state.houseItem = {}; state.houseItem = {};
state.refreshBuild = 1; state.refreshBuild = 1;
state.personNum = { state.personNum = {

@ -216,7 +216,7 @@ export default {
.building-house-container { .building-house-container {
padding-top: 85px; padding-top: 85px;
position: relative; position: relative;
//min-width: 135px; min-width: 300px;
// max-width: 700px; // max-width: 700px;
// overflow-x: auto; // overflow-x: auto;
// overflow-y: hidden; // overflow-y: hidden;
@ -226,8 +226,8 @@ export default {
background-size: cover; background-size: cover;
.building-name { .building-name {
position: absolute; position: absolute;
left: 100px; left: 90px;
top: 25px; top: 30px;
min-width: 170px; min-width: 170px;
height: 32px; height: 32px;
text-align: center; text-align: center;

@ -437,7 +437,10 @@ export default {
watch: { watch: {
houseItem: { houseItem: {
handler(val) { handler(val) {
if (!val.id) return; if (!val.id) {
this.show = false;
return;
}
this.getPersonList(); this.getPersonList();
}, },
deep: true, deep: true,

@ -20,6 +20,7 @@ export default {
computed: { computed: {
...mapGetters(["mapParmas"]), ...mapGetters(["mapParmas"]),
}, },
data() { data() {
const basePathUrl = window.basePathUrl || ""; const basePathUrl = window.basePathUrl || "";
return { return {

@ -42,7 +42,11 @@
<!-- disabled --> <!-- disabled -->
</el-checkbox-group> </el-checkbox-group>
<el-checkbox label="三维图层" @change="handleMapLayer"></el-checkbox> <el-checkbox
v-model="model"
label="三维图层"
@change="handleMapLayer"
></el-checkbox>
<el-checkbox <el-checkbox
v-show="queryParamsXiaoqu.xiaoquId == 267" v-show="queryParamsXiaoqu.xiaoquId == 267"
label="进入商铺系统" label="进入商铺系统"
@ -58,11 +62,13 @@ import { mapGetters } from "vuex";
export default { export default {
dicts: ["b_color_type"], dicts: ["b_color_type"],
computed: { computed: {
...mapGetters(["mapParmas", "queryParamsXiaoqu"]), ...mapGetters(["mapParmas", "queryParamsXiaoqu", "resetBtn"]),
}, },
data() { data() {
return { return {
checkList: [], checkList: [],
model: false,
networkOption: [], networkOption: [],
multipleList: [ multipleList: [
{ key: "type", label: "户籍", value: 1 }, { key: "type", label: "户籍", value: 1 },
@ -86,7 +92,28 @@ export default {
created() { created() {
this.getNetworkList(); this.getNetworkList();
}, },
watch: {
resetBtn(newValue, oldValue) {
if (newValue) {
this.handleReset();
console.log("重置");
}
},
},
methods: { methods: {
handleReset() {
this.model = false;
this.checkList = [];
this.queryParmas = {
parentid: undefined,
color: undefined,
type: undefined,
isd: undefined,
isk: undefined,
isx: undefined,
isj: undefined,
};
},
goShopPath() { goShopPath() {
this.$router.push({ this.$router.push({
path: "/shop", path: "/shop",

@ -3,6 +3,7 @@
<NavigationBar <NavigationBar
:mainTitle="xiaoquIntroduce.deptName + '人口数据管理系统'" :mainTitle="xiaoquIntroduce.deptName + '人口数据管理系统'"
:showStreet="false" :showStreet="false"
@reset="clickReset"
></NavigationBar> ></NavigationBar>
<mapSearchBox /> <mapSearchBox />
<mars-map ref="map" :xiaoquId="queryParamsXiaoqu.xiaoquId"></mars-map> <mars-map ref="map" :xiaoquId="queryParamsXiaoqu.xiaoquId"></mars-map>
@ -51,6 +52,7 @@ import {
building, building,
house, house,
} from "@/views/components/index.js"; } from "@/views/components/index.js";
import { set } from "nprogress";
export default { export default {
data() { data() {
return {}; return {};
@ -74,17 +76,27 @@ export default {
...mapGetters(["xiaoquIntroduce", "queryParamsXiaoqu"]), ...mapGetters(["xiaoquIntroduce", "queryParamsXiaoqu"]),
}, },
created() { created() {
this.$store.commit("RESET_QUERY"); // this.pageCreated();
let id = this.$route.query.xiaoquId;
this.$store.commit("CHANGE_QUERY", { xiaoquId: parseInt(id) }); //
this.$store.commit("SET_QUERY_PARAMS", {
xiaoquId: parseInt(id),
});
this.$store.dispatch("GetYjtotal", {
xiaoquId: id,
}); //
}, },
methods: { methods: {
pageCreated() {
this.$store.commit("RESET_QUERY"); //
let id = this.$route.query.xiaoquId;
this.$store.commit("CHANGE_QUERY", { xiaoquId: parseInt(id) }); //
this.$store.commit("SET_QUERY_PARAMS", {
xiaoquId: parseInt(id),
});
this.$store.dispatch("GetYjtotal", {
xiaoquId: id,
}); //
},
clickReset() {
this.$store.commit("SET_RESET", true);
this.pageCreated();
setTimeout(() => {
this.$store.commit("SET_RESET", false);
}, 1500);
},
filterTitle() { filterTitle() {
return !this.queryParamsXiaoqu.parentid && return !this.queryParamsXiaoqu.parentid &&
!this.queryParamsXiaoqu.buildingId !this.queryParamsXiaoqu.buildingId

Loading…
Cancel
Save