浏览代码

日常更新

wangtao 8 月之前
父节点
当前提交
c2567b355c
共有 8 个文件被更改,包括 143 次插入37 次删除
  1. 2 1
      proxy-dev.js
  2. 2 3
      public/index.html
  3. 二进制
      src/assets/img/sadian/cyjc.png
  4. 二进制
      src/assets/img/sadian/yyjk.png
  5. 48 8
      src/components/mixins/map-data1.js
  6. 1 0
      src/http/api.js
  7. 2 0
      src/store/modules/public.js
  8. 88 25
      src/views/security-plan.vue

+ 2 - 1
proxy-dev.js

@@ -53,7 +53,8 @@ module.exports = {
         //     },
         "/video-api": {
             // 执法仪视频
-            target: "http://10.107.31.215:50080/video-api",
+            // target: "http://10.107.31.215:50080/video-api",
+            target: "https://mhxfzd.shmh.gov.cn/video-api",
             ws: true, // 代理websockets
             changeOrigin: true,
             pathRewrite: {

+ 2 - 3
public/index.html

@@ -21,10 +21,9 @@
     <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=8e266e1ac2ad2383c7773ff504ac248f"></script>
     <script type="text/javascript" src="//webapi.amap.com/ui/1.1/main.js"></script> -->
     <!-- 大数据地图 -->
-    <script src="http://gis.dcp.shmh.gov.cn/mh_map/js/index_v1.0.js"></script>
-
+    <!-- <script src="http://gis.dcp.shmh.gov.cn/mh_map/js/index_v1.0.js"></script> -->
+    <script src="https://mhxfzd.shmh.gov.cn/js"></script>
 </head>
-
 <body>
 
     <noscript>

二进制
src/assets/img/sadian/cyjc.png


二进制
src/assets/img/sadian/yyjk.png


+ 48 - 8
src/components/mixins/map-data1.js

@@ -2017,6 +2017,7 @@ export default {
          * @param {页面类型} type
          */
         addMarker(lnglats, pageType, type) {
+            console.log(lnglats, pageType, type,1111)
             window.jMap.Locate.clearLocate();
             let that = this
             let icon = "";
@@ -2052,9 +2053,16 @@ export default {
                         image: {
                             url: type == "双随机执法单位" ? this.stores.sadianIcon.ssjzf : type == "安全检查单位" ? this.stores.sadianIcon.aqjcdw : type == "举报投诉" ? this.stores.sadianIcon.jbts : type == "执法记录仪" && val.type == "执法记录仪" ? this.stores.sadianIcon.zfjly :
 
-                                type == "执法记录仪" && val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx :
+                                type == "执法记录仪" && val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx : type == "鹰眼监控" && val.type == '鹰眼监控' ? this.stores.sadianIcon.yyjk :  type == "鹰眼监控" && val.type == '国家会展中心' ? this.stores.sadianIcon.hzzx :
+                                type == "城运检查" ? this.stores.sadianIcon.cyjc :
 
-                                type == "重点单位" ? this.stores.sadianIcon.zddw : type == "龙湖天街(试点)" ? this.stores.sadianIcon.lhtj : type == "一般单位" ? this.stores.sadianIcon.ybdw : type == "九小场所" ? this.stores.sadianIcon.jxcs : type == "其他单位" ? this.stores.sadianIcon.qtdw :
+                                type == "重点单位" && val.type == "重点单位" ? this.stores.sadianIcon.zdwd : type == "重点单位" && val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx : 
+                                type == "非重点单位" ? this.stores.sadianIcon.fdwd : type == "执法监督" ? this.stores.sadianIcon.zfjd : type == "执法检查" ? this.stores.sadianIcon.zfjc :
+                                
+                                
+                                type == "龙湖天街(试点)" ? this.stores.sadianIcon.lhtj : type == "一般单位" ? this.stores.sadianIcon.ybdw : 
+                                type == "九小场所" && val.type== "九小场所" ? this.stores.sadianIcon.jxcs : type == "九小场所" && val.type== "国家会展中心" ? this.stores.sadianIcon.hzzx : 
+                                type == "其他单位" ? this.stores.sadianIcon.qtdw :
 
                                 type == "厂房" ? this.stores.sadianIcon.cf : type == "仓库" ? this.stores.sadianIcon.ck :
 
@@ -2096,10 +2104,20 @@ export default {
 
                                 type == "新消监" & val.facilityType == 39 ? this.stores.sadianIcon.jxcs : type == "新消监" & val.facilityType == 42 ? this.stores.sadianIcon.jdjc :
 
-                                type == "消防安全重点单位" ? this.stores.sadianIcon.zddw : type == "大型商业综合体" ? this.stores.sadianIcon.dxsyzht :
-
-                                type == "酒店/宾馆" ? this.stores.sadianIcon.jdbg : type == "规模租赁" ? this.stores.sadianIcon.gmzl : type == "厂房/仓库" ? this.stores.sadianIcon.cfck : type == "养老机构" ? this.stores.sadianIcon.yljg : type == "儿童福利机构" ? this.stores.sadianIcon.etfljg : type == "医疗机构" ? this.stores.sadianIcon.yljg2 : type == "居民小区" ? this.stores.sadianIcon.jmxq : type == "地铁站" ? this.stores.sadianIcon.dtz : type == "批发市场" ? this.stores.sadianIcon.pfsc :
-                                type == "混合经营场所" ? this.stores.sadianIcon.hhjycs : type == "在建工地" ? this.stores.sadianIcon.zjgd : type == "寄宿学校" ? this.stores.sadianIcon.jsxx :
+                                type == "消防安全重点单位" ? this.stores.sadianIcon.zddw : 
+                                type == "大型商业综合体" && val.type == "大型商业综合体" ? this.stores.sadianIcon.dxsyzht : type == "大型商业综合体" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "酒店/宾馆" && val.type == "酒店/宾馆" ? this.stores.sadianIcon.jdbg :  type == "酒店/宾馆" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "规模租赁" && val.type == "规模租赁" ? this.stores.sadianIcon.gmzl :  type == "规模租赁" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "厂房/仓库" && val.type == "厂房/仓库" ? this.stores.sadianIcon.cfck :  type == "厂房/仓库" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "养老机构" && val.type == "养老机构" ? this.stores.sadianIcon.yljg :  type == "养老机构" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "儿童福利机构" && val.type == "儿童福利机构" ? this.stores.sadianIcon.etfljg :  type == "儿童福利机构" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "医疗机构" && val.type == "医疗机构" ? this.stores.sadianIcon.yljg2 :  type == "医疗机构" && val.type == "国家会展中心" ? this.stores.sadianIcon.jhxzx :
+                                type == "居民小区" && val.type == "居民小区" ? this.stores.sadianIcon.jmxq :  type == "居民小区" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "地铁站" && val.type == "地铁站" ? this.stores.sadianIcon.dtz :  type == "地铁站" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "批发市场" && val.type == "大型商批发市场业综合体" ? this.stores.sadianIcon.pfsc : type == "批发市场" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "混合经营场所" && val.type == "混合经营场所" ? this.stores.sadianIcon.hhjycs :  type == "混合经营场所" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
+                                type == "在建工地" && val.type == "在建工地" ? this.stores.sadianIcon.zjgd :  type == "在建工地" && val.type == "国家会展中心" ? this.stores.sadianIcon.jhxzx :
+                                type == "寄宿学校" && val.type == "寄宿学校" ? this.stores.sadianIcon.jsxx : type == "寄宿学校" && val.type == "国家会展中心" ? this.stores.sadianIcon.hxzx :
 
                                 this.stores.sadianIcon.trsy,
 
@@ -2424,7 +2442,17 @@ export default {
                         }
                         //大型安保 、火灾数据分析
                         if (pageType == "security-plan") {
-                            console.log(type,22222)
+                            if (type == "鹰眼监控") {
+                                let arrayList = [{
+                                    title: [val._attrbutes.groupName, true],
+                                    children: [
+                                        ["安装位置:", val._attrbutes.name, 12],
+                                    ],
+                                    type: type,
+                                    url: val._attrbutes.url,
+                                }]
+                                this.popup(val._attrbutes, arrayList, true)
+                            }
                             if (type == "监控视频") {
                                 let arrayList = [{
                                     title: ["监控视频", true],
@@ -2669,7 +2697,7 @@ export default {
                                         ["联系人/联系方式:", msgParse.test3, 24],
                                         ["联系人/联系方式:", msgParse.test4, 24],
                                         ["名称:", msgParse.test5, 24],
-                                        ["总建筑面积:", msgParse.test6 + "(㎡)", 24],
+                                        ["总建筑面积:", msgParse.test6 ? msgParse.test6 : "-" + "(㎡)", 24],
                                         ["建筑产权所有人性质:", msgParse.test7, 24],
                                     ],
                                 }, ];
@@ -3101,6 +3129,18 @@ export default {
                                 }, ];
                                 this.popup(val._attrbutes, arrayList, true)
                             }
+                            if (type == "九小场所") {
+                                let arrayList = [{
+                                    title: [type, true],
+                                    children: [
+                                        ["单位名称:", val.attrbutes.facilityName, 24],
+                                        ["街镇:", val.attrbutes.streetTown, 24],
+                                        ["地址:", val.attrbutes.address, 24],
+                                        ["联系人:", val.attrbutes.contact, 24],
+                                    ],
+                                }, ];
+                                this.popup(val._attrbutes, arrayList, true)
+                            }
 
                             if(type == "混合经营场所"){
                                 let msgParse = JSON.parse(val.attrbutes.extendData)

+ 1 - 0
src/http/api.js

@@ -2,6 +2,7 @@ let api = {
     // dt: "/api/atlas/encrypt", //地图跨域
     dt: "/prod-api/service-fire/atlas/encrypt", //地图跨域
     sp: "/video-api/kiop-gateway-core/4G/device/ext", //视频
+    zfjlj: "/video-api/kiop-gateway-core/tysbs/device/ext", //执法记录仪视频
     // 个人中心
     home: {},
     fire: {

+ 2 - 0
src/store/modules/public.js

@@ -111,6 +111,8 @@ const useStore = defineStore("public", {
             hhjycs: require("@a/img/sadian/hhjycs.png"), //混合经营场所
             zjgd: require("@a/img/sadian/zjgd.png"), //在建工地
             jsxx: require("@a/img/sadian/jsxx.png"), //寄宿学校
+            yyjk: require("@a/img/sadian/yyjk.png"), //鹰眼监控
+            cyjc: require("@a/img/sadian/cyjc.png"), //城运检查
 
         },
 

+ 88 - 25
src/views/security-plan.vue

@@ -9,7 +9,7 @@
                             size="mini"
                             style="border:none"
                         >
-                        虹桥镇(自选)中网格:2,小网格:22
+                        虹桥镇(自选)中网格:2,小网格:11
                         </el-button>
                     </div>
                     <div class="leftTopContent2">
@@ -349,6 +349,10 @@
                                 <img :src="stores.sadianIcon.zfjly" alt="" />
                                 <span>执法记录仪</span>
                             </div>
+                            <div @click="checkboxChange(21)" :class="checkedArray.checkedData[0] == 21 ? 'checkTypeSelect' : ''">
+                                <img :src="stores.sadianIcon.yyjk" alt="" />
+                                <span>鹰眼监控</span>
+                            </div>
                             
                         </div>
                     </div>
@@ -412,7 +416,7 @@
                     <div class="girdCheckItem">
                         <div class="row_g">
                             <div style="font-size:.175rem">累计:</div>
-                            <div @click="basicStaticsData('新消监')">检查家数<br>4097家次</div>
+                            <div @click="basicStaticsData('新消监')">检查家数<br>4128家次</div>
                             <div @click="basicStaticsData('新消监')">发现隐患数<br>1047处</div>
                             <div @click="basicStaticsData('新消监')">整改隐患<br>786处</div>
                             <div style="font-size:.175rem;margin-left:.125rem" >当日:</div>
@@ -1162,10 +1166,10 @@ export default {
                 //     title: '第三期: 第六届中国国际进口博览会每日工作动态',
                 //     url: 'http://32.0.15.107:8080/mhvi/20231025.pdf',
                 // },
-                // {
-                //     title: '第二期: 第六届中国国际进口博览会每日工作动态',
-                //     url: 'http://32.0.15.107:8080/mhvi/20231024.pdf',
-                // },
+                {
+                    title: '第六期: 第七届中国国际进口博览会每日工作动态',
+                    url: 'https://mhxfzd.shmh.gov.cn/data/10.30闵行疏导区每日动态.pdf',
+                },
                 {
                     title: '第五期: 第七届中国国际进口博览会每日工作动态',
                     url: 'https://mhxfzd.shmh.gov.cn/data/10.29闵行疏导区每日动态.pdf',
@@ -1584,9 +1588,9 @@ export default {
                     "value":29,
                 },
                 {
-                    "name": '儿童福利',
-                    "count": 1,
-                    "value": '41',
+                    "name": '九小场所',
+                    "count": 4128,
+                    "value": '39',
                 },
                 {
                     "name": "居民小区",
@@ -1827,6 +1831,7 @@ export default {
                     { value: 17, label: "监控视频" },
                     { value: 18, label: "监督检查" },
                     { value: 20, label: "执法记录仪" },
+                    { value: 21, label: "鹰眼监控" },
                 ],
             }, //类型筛选
             checkedSelectValue: "40",
@@ -2103,7 +2108,7 @@ export default {
         };
     },
     mounted() {
-        this.gridStatisticsData()//处置网格数据
+        // this.gridStatisticsData()//处置网格数据
         this.grid(15);
         this.tableDataGrid=this.tableDataBigGrid;
         setTimeout(() => {
@@ -2115,7 +2120,7 @@ export default {
         this.dwgjcmcAndhzzx()//大网格名称及会展中心 
         // this.anbaoMap()
         // this.getFireSiteDuty(); //各站点执勤实力
-        this.selectVideo(); //视频在线
+        // this.selectVideo(); //视频在线
         // this.sadianSelect(this.checkedArray.checkedData[0]);  //撒点
         this.getStaticData(this.value111)   //疏导区社会单位情况统计
         this.getZQStaticData()  //执勤战备力量部署
@@ -2129,7 +2134,7 @@ export default {
     },
     methods: {
 
-       
+       //中网格对应左侧疏导区基本情况
         async staticsSd(name,grideGrade,mapGridName){
             let res = await this.$axios.get(
                 this.$api.security.gridMemderStatistic +
@@ -2148,11 +2153,17 @@ export default {
                this.line3Array[4].count=res.data.factoryStoreNum;//厂房仓库
                this.line3Array[5].count=res.data.medicalInstitutionNum;//医疗机构
                this.line3Array[6].count=res.data.elderCareNum;//养老机构
-               this.line3Array[7].count=res.data.dealerMarketNum;//批发市场  ???
-               this.line3Array[8].count=res.data.schoolNum;//儿童福利机构
-               this.line3Array[9].count=res.data.streetFrontNum;//沿街门面
-               this.line3Array[10].count=res.data.villageNum;//居民小区
-               this.line3Array[11].count=res.data.subwayStationNum;//地铁站
+               this.line3Array[7].count=0;//九小场所
+            //    this.line3Array[7].count=res.data.dealerMarketNum;//批发市场  ???
+            //    this.line3Array[8].count=res.data.schoolNum;//儿童福利机构
+            //    this.line3Array[9].count=res.data.streetFrontNum;//沿街门面
+            //    this.line3Array[10].count=res.data.villageNum;//居民小区
+            //    this.line3Array[11].count=res.data.subwayStationNum;//地铁站
+                this.line3Array[8].count=res.data.villageNum//居民小区
+                this.line3Array[9].count=0//混合经营场所
+                
+                this.line3Array[10].count=res.data.constructionSiteNum//在建工地
+                this.line3Array[11].count=res.data.schoolNum;//寄宿学校
                
 
             }
@@ -2391,7 +2402,7 @@ export default {
                         gisY: 31.189991,
                         type: "国家会展中心",
                     };
-                    // arr.push(data)
+                    arr.push(data)
                     if(type == "29" || type == "30"){
                         this.arrayData= res.data;
                     }
@@ -2403,13 +2414,9 @@ export default {
                         if(type == 39){ //九小场所
                             
                             this.anbaoSDUWG()//疏导区网格
-                            if(name){
+                            if(name == "九小场所"){
                                 for(let i=0;i<arr.length;i++){
-                                    if(arr[i].checkComment){
-                                        if(name == arr[i].checkComment){
-                                            dataOther.push(arr[i])
-                                        }
-                                    }
+                                    dataOther.push(arr[i])
                                 }
                                 this.addMarker(dataOther, "security-plan", name)
                             }else{
@@ -2688,6 +2695,20 @@ export default {
          * 在线视频
          */
          async selectVideo(id) {
+            this.$axios
+                .get(
+                    this.$api.zfjlj +
+                        "?" +
+                        this.$qs.stringify({
+                            apikey:"643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414",
+                            pageNo:0,
+                            pageSize:10000
+                        })
+                )
+                .then((res) => {
+                    console.log(res.data)
+                })
+                return
            await  axios({
                 headers: {
                     "Content-Type": "application/json;charset=UTF-8",
@@ -2695,7 +2716,7 @@ export default {
                 method: "get",
                 // url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/4G/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022",
                 // url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
-                url: "http://32.150.119.108:8080/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
+                url: "http://mhxfzd.shmh.gov.cn/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
             }).then((res) => {
                 let arr = [];
                 let zfjly = [];
@@ -2762,6 +2783,42 @@ export default {
             //   this.addMarker(arr, "enforcement-dynamic");
             // }
         },
+        /**
+         * 鹰眼监控
+         */
+        async selectVideo2() {
+            await  axios({
+                headers: {
+                    "Content-Type": "application/json;charset=UTF-8",
+                },
+                method: "get",
+                url: "http://32.1.7.96:8012/apiMhzdZdab/fireMajorSecurityProcess/selectSecurityViewUrl?pageNum=1&pageSize=100&isHG=1",
+            }).then((res) => {
+                var arr = []
+                let data = res.data.data;
+                let data2 = {
+                    gisX: 121.302183,
+                    gisY: 31.189991,
+                    type: "国家会展中心",
+                };
+                arr.push(data2)
+                for (let i = 0; i < data.length; i++) {
+                    var num = {
+                        id: data[i].id,
+                        name: data[i].installPlace,
+                        groupName: data[i].name,
+                        gisX: data[i].longitude,
+                        gisY: data[i].latitude,
+                        type: "鹰眼监控",
+                        url:data[i].viewUrl
+                    };
+                    arr.push(num);
+                }
+               
+                this.addMarker(arr, "security-plan","鹰眼监控");
+               
+            })
+        },
         selectArray(id) {
             this.checkedArray.checkedData[0] = 4;
             let data = this.checkedSelectArray.filter((val) => {
@@ -2909,6 +2966,11 @@ export default {
                 this.gridStatus = id;
                 this.selectVideo(1)
                 this.anbaoSDUWG()//疏导区网格
+            } else if (id == 21) {
+                console.log("鹰眼监控")
+                this.gridStatus = id;
+                this.anbaoSDUWG()//疏导区网格
+                this.selectVideo2()
             } else {
                 this.sadianSelect(id);
                 this.hzzxtb()
@@ -3592,6 +3654,7 @@ export default {
 
     watch: {
         "stores.$state.gridData": function (newValue, oldValue) {
+            console.log(newValue,this.gridStatus)
             if (this.gridStatus == 19) {
                 this.grid(19, newValue.name, newValue.position);
             }