Browse Source

修复地图无法渲染问题

wangtao 9 months ago
parent
commit
aff5a65dd4

+ 5 - 0
README.md

@@ -56,3 +56,8 @@ See 1、修改html页面引入路径
 2、修改vue.config.js中configureWebpack全局变量配置
 3、修改每个mixins中map路径为大数据/高德对应引入文件.
 
+
+### 非国产 32.0.15.107:8080
+### 国产 10.236.244.108:8083
+
+

+ 4 - 3
proxy-dev.js

@@ -16,7 +16,8 @@ module.exports = {
     table: {
         "/prod-api": {
             // target: 'http://32.0.15.107:8080/prod-api', //线上-107测试服务器
-            target: "http://park.usky.cn/prod-api", //线上-20正式服务器
+            target: 'http://10.236.244.108:8083/prod-api', //线上-108测试服务器
+            // target: "http://park.usky.cn/prod-api", //线上-20正式服务器
             //     target: 'http://172.16.120.165:801/dev-api', //165
                 // target: 'http://32.0.15.107:8080/api/', //闵行线上发布时
             //     ws: true, // 代理websockets
@@ -28,8 +29,8 @@ module.exports = {
         },
         "/api": { //和mhapi互换
             // 原有api
-            //     target: 'http://32.0.15.107:8080/api/', //杨强闵行
-            target: 'http://32.0.15.107:8080/api',
+                // target: 'http://32.0.15.107:8080/api/', //杨强闵行
+            target: 'http://10.236.244.108:8083/api',
             ws: true, // 代理websockets
             changeOrigin: true,
             pathRewrite: {

+ 0 - 1
src/components/mixins/map-data1.js

@@ -36,7 +36,6 @@ export default {
                     offset: { heading: -4, pitch: -70, range: 0 },
                 },
                 map_complete_callback: () => {
-                    window.jmapQuery = new JMapQuery(window.jMap);
                     // ToDo...
                 },
                 map_left_click_callback: (obj, type, movement, event) => {

+ 3 - 2
src/http/api.js

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

+ 1 - 1
src/views/fire-signs.vue

@@ -98,7 +98,6 @@
                                         <span>常住人口</span>
                                     </div>
                                 </el-col>
-                                <!-- 、 -->
 
                                 <el-col :span="7" class="basicItem">
                                     <div>
@@ -1663,6 +1662,7 @@ export default {
                                     number: data[i].number ? data[i].number : null,
                                 };
                             }
+                            console.table(arr[0])
                             this.addMarker(arr.splice(0, 500), "enforcement-dynamic", "举报投诉");
                         } else {
                             this.addMarker([], "enforcement-dynamic", this.checked);

+ 1 - 1
src/views/head.vue

@@ -13,7 +13,7 @@
         <el-row class="title" v-if="title">闵行区消防管理数字平台</el-row>
         <el-row class="title4" v-if="!title" style="    font-family: ZhenyanGB!important;">
             <a href="http://32.1.7.96:8010/zhts_mh_20231011_v1/#/ciieSecurity" target="_blank"> <img src="@a/img/securityPlan/zhdd.png" alt="" /></a>
-            第届中国国际进口博览会消防安保指挥平台
+            第届中国国际进口博览会消防安保指挥平台
             <a > <img src="@a/img/securityPlan/hzfk.png" alt="" /></a>
             
         </el-row>

+ 2 - 1
src/views/security-plan.vue

@@ -2475,7 +2475,8 @@ 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.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",
             }).then((res) => {
                 let arr = [];
                 let zfjly = [];

+ 1 - 1
src/views/time-select.vue

@@ -64,7 +64,7 @@
             <el-row class="xj xj2"></el-row>
             <el-row class="xj xj3"></el-row>
             <el-row class="xj xj4"></el-row>
-            <p>安保阶段:2023年10月25日——11月15日</p>
+            <p>安保阶段:2024年10月25日——11月15日</p>
         </el-row>
     </el-row>
 </template>