소스 검색

前端修改

liutao 3 달 전
부모
커밋
23170c3b4e
3개의 변경된 파일36개의 추가작업 그리고 12개의 파일을 삭제
  1. 8 5
      web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue
  2. 3 3
      web_ui/src/views/industrial-land/ZnxzDetail.vue
  3. 25 4
      web_ui/static/config.js

+ 8 - 5
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -863,6 +863,7 @@ export default {
       }
     },
     initMap() {
+
       this.layers = window.ApplicationConfig.layerTreeConfig;
       this.layers.forEach((item, index) => {
         if (index == 0) {
@@ -878,7 +879,7 @@ export default {
         zoomControl: false,
         attributionControl: false, //去掉右下角的logo
       });
-      // var tk = window.ApplicationConfig.tk;
+      var tk = window.ApplicationConfig.tk;
       var tk = "6dfd31e3b55a8466f34997aee5551a9c";
       // 添加天地图底图
       //底图
@@ -915,6 +916,8 @@ export default {
         }
       );
       this.map.addLayer(cia);
+
+
       //定位浙江省
       this.location(polygons);
       //默认加载供地图层
@@ -1133,8 +1136,8 @@ export default {
           window.ApplicationConfig.geoserverUrl +
           "?service=WFS&version=1.0.0&request=GetFeature&typeName=" +
           window.ApplicationConfig.gdLayerName +
-          "&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=id=" +
-          item.name;
+          "&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=dkmc='" +
+          item.dkmc+"'";
         axios.get(query).then((data) => {
           console.log(data);
           if (data.data.features.length < 1) {
@@ -1162,8 +1165,8 @@ export default {
           window.ApplicationConfig.geoserverUrl +
           "?service=WFS&version=1.0.0&request=GetFeature&typeName=" +
           window.ApplicationConfig.gdLayerName +
-          "&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=id=" +
-          item.name;
+          "&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=dkmc='" +
+          item.dkmc+"'";
         axios.get(query).then((data) => {
           if (data.data.features.length < 1) {
             this.$Message.info("未查询到数据");

+ 3 - 3
web_ui/src/views/industrial-land/ZnxzDetail.vue

@@ -1194,11 +1194,11 @@ export default {
   border-radius: 5px;
   border: 1px solid #e4e7ea;
   position: absolute;
-  top: 145px;
+  top: 255px;
   z-index: 20;
-  width: 446px;
+  width: 340px;
   // width: 486px;
-  height: 75%;
+  height: 45%;
   right: 55px;
   .title {
     height: 60px;

+ 25 - 4
web_ui/static/config.js

@@ -3,11 +3,12 @@
     serverURL: "/server",
     // subscribeUrl: 'http://ai.zjugis.com:8511/subscribe/',
     subscribeUrl: 'http://localhost:8511/subscribe/',
+    // subscribeUrl: '/agentai/subscribe/',
     // subscribeUrl: 'http://192.168.0.145:8511/subscribe/',
     // zcbdUrl: 'http://ai.zjugis.com:8510/policy/#/home',
     // fgbdUrl: 'http://ai.zjugis.com:8510/policy/#/regulation',
     zcbdUrl: "http://121.40.148.47:8529/#/zcbd/ai-search",
-    fgbdUrl:'http://121.40.148.47:8529/#/zcbd/ai-search',
+    fgbdUrl: 'http://121.40.148.47:8529/#/zcbd/ai-search',
     wadsUrl: 'http://ai.zjugis.com:8523/home',
     landuseAiUrl: 'http://ai.zjugis.com:8510/#/assistant',
     aiUrl: 'http://ai.zjugis.com:8510/#/ai',
@@ -17,8 +18,8 @@
     gdUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZPGGD/MapServer',
     landUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ecgap_klyzy/MapServer',
     xzqUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZJXZQ/MapServer',
-    geoserverUrl:'/geoserver-host/geoserver/sde/ows',
-    gdLayerName:'sde%3Aecgap_klyzy',
+    geoserverUrl: '/geoserver-host/geoserver/sde/ows',
+    gdLayerName: 'sde%3Aecgap_klyzy',
     aiAgent: [
       'plan_dispatcher',
       'summary',
@@ -54,8 +55,28 @@
     zlzdPic: 'https://zlzd.zrzyt.zj.gov.cn/clzyzp//msydfile/online/file/zlzd/',
     zlzdDetail: 'https://zlzd.zrzyt.zj.gov.cn/#/develop/developDetails?id=',
     tk: 'f7c3163e305d6b2a4b6a14938b1932ae',
-    routeUrl:'http://api.tianditu.gov.cn/drive?postStr=',
+    routeUrl: 'http://api.tianditu.gov.cn/drive?postStr=',
     layerTreeConfig: [
+      // {
+      //   name: '底图', layers: [
+      //     {
+      //       name: "浙江影像",
+      //       id: "zjyx",
+      //       checked: true,
+      //       type: 'wmts',
+      //       url: 'https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt48/34048bffdd0d4d148ca4a40da7eade21/services/wmts/imgmap/default/oss',
+      //       layername: 'imgmap'
+      //     },
+      //     {
+      //       name: "浙江注记",
+      //       id: "zjzj",
+      //       checked: true,
+      //       type: 'wmts',
+      //       url: 'https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt49/2003392c13044d3ab3097b0a4328ecf2/services/wmts/imgmap_lab/default/oss',
+      //       layername: 'imgmap_lab'
+      //     }
+      //   ]
+      // }, 
       {
         name: '现状图层', layers: [
           {