|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div class="contentBox">
|
|
|
- <div class="leftBox">
|
|
|
+ <div class="leftBox" v-if="leftBtn">
|
|
|
<div class="box">
|
|
|
<basicInfo />
|
|
|
- <basicInfo />
|
|
|
- <basicInfo />
|
|
|
+ <complaintInfo />
|
|
|
+ <matterInfo />
|
|
|
</div>
|
|
|
<div class="box">
|
|
|
<zhiFaInfo />
|
|
@@ -12,54 +12,253 @@
|
|
|
<xinZhengInfo />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="rightBox">
|
|
|
+ <div class="centerBox" style="width: 100%">
|
|
|
+ <div :class="leftBtn ? 'leftBtn btnW' : 'leftBtn0 btnW'" @click="leftBtnClick()">
|
|
|
+ <img src="@/assets/img/svg/left.svg" alt="" class="img" />
|
|
|
+ </div>
|
|
|
+ <!-- <el-col class="centerContent" id="mapF"></el-col> -->
|
|
|
+
|
|
|
+ <div :class="rightBtn ? 'rightBtn btnW' : 'rightBtn0 btnW'" @click="rightBtnClick()">
|
|
|
+ <img src="@/assets/img/svg/left.svg" alt="" class="img" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mapTips_type">
|
|
|
+ <img src="@/assets/img/svg/danweitop.svg" alt="" class="img" />
|
|
|
+ <div class="content">
|
|
|
+ <p>街镇筛选</p>
|
|
|
+ <el-select class="mtb-12" v-model="stroes.$state.streetTown" placeholder="请选择街镇" @change="checkStreetTown">
|
|
|
+ <el-option v-for="item in stroes.$state.streetTownList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ <p>类型筛选</p>
|
|
|
+ <div class="selectType">
|
|
|
+ <div :class="
|
|
|
+ checkedArray.checkedData[0] == 0
|
|
|
+ ? ''
|
|
|
+ : checkedArray.checkedData[0] == 1
|
|
|
+ ? 'checkTypeSelect'
|
|
|
+ : checkedArray.checkedData[0] == 2
|
|
|
+ ? 'checkTypeSelect'
|
|
|
+ : checkedArray.checkedData[0] == 3
|
|
|
+ ? 'checkTypeSelect'
|
|
|
+ : checkedArray.checkedData[0] == 9
|
|
|
+ ? 'checkTypeSelect'
|
|
|
+ : checkedArray.checkedData[0] == 10
|
|
|
+ ? 'checkTypeSelect'
|
|
|
+ : ' '"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="
|
|
|
+ checkedSelectValue == '0'
|
|
|
+ ? stores.sadianIcon.bwg
|
|
|
+ : checkedSelectValue == '1'
|
|
|
+ ? stores.sadianIcon.zddw
|
|
|
+ : checkedSelectValue == '2'
|
|
|
+ ? stores.sadianIcon.ybdw
|
|
|
+ : checkedSelectValue == '3'
|
|
|
+ ? stores.sadianIcon.jxcs
|
|
|
+ : checkedSelectValue == '9'
|
|
|
+ ? stores.sadianIcon.qtdw
|
|
|
+ : checkedSelectValue == '10'
|
|
|
+ ? stores.sadianIcon.dxzht
|
|
|
+ : stores.sadianIcon.bwg
|
|
|
+ "
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <span>{{ checkedSelectLabel }}</span>
|
|
|
+ <el-select
|
|
|
+ v-model="checkedSelectValue"
|
|
|
+ placeholder="单位信息"
|
|
|
+ class="selectTypeIcon"
|
|
|
+ style="display: inline-block; width: 100%; position: absolute; right: 0"
|
|
|
+ @change="selectArray"
|
|
|
+ >
|
|
|
+ <el-option v-for="item in checkedSelectArray" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div @click="checkType('执法记录仪')" :class=" checked == '执法记录仪' ? 'checkTypeSelect' : ''">
|
|
|
+ <img :src="stores.sadianIcon.zfjly" alt="" />
|
|
|
+ <span>执法记录仪</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="rightBox" v-if="rightBtn">
|
|
|
<div class="box" style="margin-left:5px;">
|
|
|
- <basicInfo />
|
|
|
- <basicInfo />
|
|
|
- <basicInfo />
|
|
|
+ <riskInfo />
|
|
|
+ <xunJianInfo />
|
|
|
+ <listingInfo />
|
|
|
</div>
|
|
|
<div class="box">
|
|
|
- <basicInfo />
|
|
|
- <basicInfo />
|
|
|
- <basicInfo />
|
|
|
+ <fireInfo />
|
|
|
+ <IOTInfo />
|
|
|
+ <videoInfo />
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-
|
|
|
import basicInfo from "@c/basicInfo/index"; //基础信息
|
|
|
-import zhiFaInfo from "@c/zhiFaInfo/index"; //执法情况
|
|
|
-
|
|
|
+import complaintInfo from "@c/complaintInfo/index"; //投诉类型排名
|
|
|
+import matterInfo from "@c/matterInfo/index"; //本年度重点事项推进情况
|
|
|
|
|
|
+import zhiFaInfo from "@c/zhiFaInfo/index"; //执法情况
|
|
|
import personnelInfo from "@c/personnelInfo/index"; //人员统计
|
|
|
import xinZhengInfo from "@c/xinZhengInfo/index"; //行政许可
|
|
|
|
|
|
-// import map from "@c/mixins/map-data1";
|
|
|
+
|
|
|
+import riskInfo from "@c/riskInfo/index"; //街镇消防风险评估情况
|
|
|
+import xunJianInfo from "@c/xunJianInfo/index"; //企业自主巡检情况
|
|
|
+import listingInfo from "@c/listingInfo/index"; //挂牌督改情况
|
|
|
+
|
|
|
+import fireInfo from "@c/fireInfo/index"; //消防情况
|
|
|
+import IOTInfo from "@c/IOTInfo/index"; //街镇物联设备情况
|
|
|
+import videoInfo from "@c/videoInfo/index"; //执法记录仪情况
|
|
|
+
|
|
|
+import linstener from "@c/mixins/linstener";
|
|
|
+import map from "@c/mixins/map-data1";
|
|
|
export default {
|
|
|
components: {
|
|
|
- basicInfo, zhiFaInfo,
|
|
|
- personnelInfo,xinZhengInfo
|
|
|
+ basicInfo, complaintInfo, matterInfo,
|
|
|
+ zhiFaInfo, personnelInfo, xinZhengInfo,
|
|
|
+ riskInfo, xunJianInfo, listingInfo,
|
|
|
+ fireInfo, IOTInfo, videoInfo
|
|
|
},
|
|
|
- // mixins: [linstener, map],
|
|
|
+ mixins: [linstener, map],
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ leftBtn:true,
|
|
|
+ rightBtn:true,
|
|
|
+ checkedArray: {
|
|
|
+ checkedData: [1],
|
|
|
+ }, //类型筛选
|
|
|
+ checkedSelectValue: "7",
|
|
|
+ checkedSelectLabel: "单位信息",
|
|
|
+ checkedSelectArray: [
|
|
|
+ { value: 0, label: "单位信息" },
|
|
|
+ { value: 1, label: "重点单位" },
|
|
|
+ { value: 2, label: "一般单位" },
|
|
|
+ { value: 3, label: "九小场所" },
|
|
|
+ { value: 10, label: "大型综合体" },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
+ this.initMap();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //地图区域操作
|
|
|
+ leftBtnClick() {
|
|
|
+ this.leftBtn = !this.leftBtn;
|
|
|
+ },
|
|
|
+ rightBtnClick() {
|
|
|
+ this.rightBtn = !this.rightBtn
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 撒点街镇选择测绘院
|
|
|
+ */
|
|
|
+ checkStreetTown() {
|
|
|
+ let data = undefined;
|
|
|
+ for (let i = 0; i < this.stroes.$state.mhjz.length; i++) {
|
|
|
+ if (
|
|
|
+ this.stroes.$state.streetTown == this.stroes.$state.mhjz[i].streetTown
|
|
|
+ ) {
|
|
|
+ data = this.stroes.$state.mhjz[i];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!this.stroes.$state.streetTown) {
|
|
|
+ data = this.stroes.$state.mhjz[0];
|
|
|
+ }
|
|
|
+ this.streetTownSwitch(data);
|
|
|
+ this.sadian();
|
|
|
+ },
|
|
|
+ async sadian(id,code) {
|
|
|
+ let arr = [];
|
|
|
+ let typeAll = this.checkedSelectArray;
|
|
|
+ let type = null;
|
|
|
+ for (let i = 0; i < typeAll.length; i++) {
|
|
|
+ if (id == typeAll[i].value) {
|
|
|
+ type = typeAll[i].label;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (id == 0) {
|
|
|
+ this.addMarker([], "self-management");
|
|
|
+ }
|
|
|
+ if (id == 1 || id == 2 || id == 3 || id == 9) {
|
|
|
+ await this.$axios
|
|
|
+ .get(
|
|
|
+ this.$api.selfManagement.mapList +
|
|
|
+ "?" +
|
|
|
+ this.$qs.stringify({
|
|
|
+ streetTown: this.stroes.$state.streetTown,
|
|
|
+ companyType: id,
|
|
|
+ })
|
|
|
+ )
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data.length > 0) {
|
|
|
+ //点分布
|
|
|
+ let data = res.data;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ arr[i] = {
|
|
|
+ id: data[i].id ? data[i].id : null,
|
|
|
+ type: data[i].companyTypeName ? data[i].companyTypeName : null,
|
|
|
+ address: data[i].address ? data[i].address : null,
|
|
|
+ companyName: data[i].companyName ? data[i].companyName : null,
|
|
|
+ streetTown: data[i].streetTown ? data[i].streetTown : null,
|
|
|
+ gisX: data[i].longitude,
|
|
|
+ gisY: data[i].latitude,
|
|
|
+ companyId: data[i].companyId,
|
|
|
+ linkPhone: data[i].linkPhone ? data[i].linkPhone : null,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ this.addMarker(arr.splice(0, 500), "self-management", type);
|
|
|
+ }, 500);
|
|
|
+ } else {
|
|
|
+ this.addMarker([], "self-management", type);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ } else if (id == 10) {
|
|
|
+ this.$axios
|
|
|
+ .post(this.$api.water.baseGgpFacilityList, {
|
|
|
+ facilityType: [2, 3],
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ // 2 五万
|
|
|
+ // 3 三至五万
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ arr[i] = {};
|
|
|
+ arr[i].address = res.data[i].address;
|
|
|
+ arr[i].facilityName = res.data[i].facilityName;
|
|
|
+ arr[i].extendData = res.data[i].extendData;
|
|
|
+ arr[i].latitude = res.data[i].latitude;
|
|
|
+ arr[i].longitude = res.data[i].longitude;
|
|
|
+ arr[i].type = "大型综合体";
|
|
|
+ if (res.data[i].id == 48) {
|
|
|
+ //龙湖天街试点
|
|
|
+ arr[i].facilityType = "lhtj";
|
|
|
+ } else {
|
|
|
+ arr[i].facilityType = res.data[i].facilityType;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.addMarker(arr, "self-management", "大型综合体");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.addMarker([], "self-management", "");
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+@import "@/assets/scss/color.scss";
|
|
|
.contentBox {
|
|
|
.box {
|
|
|
width:calc(50% - 15px);
|
|
@@ -74,5 +273,38 @@ export default {
|
|
|
.box:nth-child(2){
|
|
|
margin-left:25px !important;
|
|
|
}
|
|
|
+ .centerBox{
|
|
|
+ .mapTips_type {
|
|
|
+ width: 10%;
|
|
|
+ height: auto;
|
|
|
+ background: $background-color-theme4;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 1.48vh;
|
|
|
+ right: 7.2rem;
|
|
|
+ color: #fff !important;
|
|
|
+ font-size: 0.18rem;
|
|
|
+ p {
|
|
|
+ color: #019fb7;
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ padding: 1.388vh 0.25rem;
|
|
|
+ color: #fff !important;
|
|
|
+ }
|
|
|
+ .img {
|
|
|
+ width: 100%;
|
|
|
+ height: 0.37vh;
|
|
|
+ margin-top: -0.37vh;
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
+</style>
|
|
|
+<style lang="scss">
|
|
|
+.el-input__suffix{
|
|
|
+ top:5px !important;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
</style>
|