Browse Source

选址前端

liutao 2 months ago
parent
commit
5ebd703029

+ 1 - 1
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -483,7 +483,7 @@ export default {
       // this.showQuery = true;
       // this.showQuery = true;
       // this.xgdk = [
       // this.xgdk = [
       //   {
       //   {
-      //     objectid: 1699,
+      //     objectid: 18249,
       //     xzqmc: "萧山区",
       //     xzqmc: "萧山区",
       //     xzqdm: 330109,
       //     xzqdm: 330109,
       //     dymc: "",
       //     dymc: "",

+ 53 - 45
web_ui/src/views/industrial-land/ZnxzDetail.vue

@@ -116,8 +116,8 @@
               <template v-if="qytsTabs[qytsIndex].result.length > 0">
               <template v-if="qytsTabs[qytsIndex].result.length > 0">
                 <div
                 <div
                   class="zbcy-item"
                   class="zbcy-item"
-                  @click="industryDetail(item)"
                   v-for="(item, index) in qytsTabs[qytsIndex].result"
                   v-for="(item, index) in qytsTabs[qytsIndex].result"
+                  @click="zbcyClick(item)"
                   :key="index"
                   :key="index"
                 >
                 >
                   <div class="icon" v-if="false"></div>
                   <div class="icon" v-if="false"></div>
@@ -143,7 +143,7 @@
                 <div
                 <div
                   class="zbyq-item"
                   class="zbyq-item"
                   v-for="(item, index) in qytsTabs[qytsIndex].result"
                   v-for="(item, index) in qytsTabs[qytsIndex].result"
-                  @click="parkDetail(item)"
+                  @click="zbyqClick(item)"
                   :key="index"
                   :key="index"
                 >
                 >
                   <div class="icon zbyqdiv"></div>
                   <div class="icon zbyqdiv"></div>
@@ -154,17 +154,19 @@
                         item.address ? item.address : "-"
                         item.address ? item.address : "-"
                       }}
                       }}
                     </div>
                     </div>
-                    <div class="value">
+                    <!-- <div class="value">
                       <img src="~@/assets/image/icon-yqlx.png" />园区类型:{{
                       <img src="~@/assets/image/icon-yqlx.png" />园区类型:{{
                         item.parkType
                         item.parkType
                       }}
                       }}
-                    </div>
+                    </div> -->
                     <div class="value">
                     <div class="value">
                       <img src="~@/assets/image/icon-zycy.png" />招引产业:{{
                       <img src="~@/assets/image/icon-zycy.png" />招引产业:{{
                         item.primaryindustry
                         item.primaryindustry
                       }}
                       }}
                     </div>
                     </div>
-                    <div class="btn-type">省级开发区</div>
+                    <div class="btn-type">
+                      {{ item.kfqjb == 2 ? "省级开发区" : "国家级开发区" }}
+                    </div>
                   </div>
                   </div>
                 </div>
                 </div>
               </template>
               </template>
@@ -760,9 +762,9 @@ export default {
         { name: "三区三线分析", icon: "icon-wxpck" },
         { name: "三区三线分析", icon: "icon-wxpck" },
       ],
       ],
       qytsTabs: [
       qytsTabs: [
-        { name: "人口特征", icon: "icon-zdxm",result:[] },
-        { name: "周边产业", icon: "icon-zdxm" ,result:[]},
-        { name: "周边园区", icon: "icon-zdxm" ,result:[]},
+        { name: "人口特征", icon: "icon-zdxm", result: [] },
+        { name: "周边产业", icon: "icon-zdxm", result: [] },
+        { name: "周边园区", icon: "icon-zdxm", result: [] },
       ],
       ],
       qytsIndex: 0,
       qytsIndex: 0,
       jbxxIndex: 0,
       jbxxIndex: 0,
@@ -1073,6 +1075,12 @@ export default {
         this.analysis();
         this.analysis();
       }, 500);
       }, 500);
     },
     },
+    zbcyClick(item) {
+      console.log(item);
+    },
+    zbyqClick(item) {
+      console.log(item);
+    },
     //地类图斑定位
     //地类图斑定位
     goInfoLocation(wkt) {
     goInfoLocation(wkt) {
       this.$emit("gowkt", wkt);
       this.$emit("gowkt", wkt);
@@ -1611,17 +1619,17 @@ export default {
     },
     },
     initQyyq(wktStr) {
     initQyyq(wktStr) {
       let kfqintersectUrl = window.ApplicationConfig.kfqintersectUrl;
       let kfqintersectUrl = window.ApplicationConfig.kfqintersectUrl;
-      axios.get(kfqintersectUrl, { params: { wkt: wktStr} }).then((data) => {
+      axios.get(kfqintersectUrl, { params: { wkt: wktStr } }).then((data) => {
         if (data && data.data && data.data.length) {
         if (data && data.data && data.data.length) {
-         this.qytsTabs[2].result = data.data;
+          this.qytsTabs[2].result = data.data;
         }
         }
       });
       });
     },
     },
     initZbcy(wktStr) {
     initZbcy(wktStr) {
       let gyydintersectUrl = window.ApplicationConfig.gyydintersectUrl;
       let gyydintersectUrl = window.ApplicationConfig.gyydintersectUrl;
-      axios.get(gyydintersectUrl, { params: { wkt: wktStr} }).then((data) => {
+      axios.get(gyydintersectUrl, { params: { wkt: wktStr } }).then((data) => {
         if (data && data.data && data.data.length) {
         if (data && data.data && data.data.length) {
-         this.qytsTabs[1].result = data.data;
+          this.qytsTabs[1].result = data.data;
         }
         }
       });
       });
     },
     },
@@ -1668,39 +1676,39 @@ export default {
       //   });
       //   });
       // }
       // }
       that.zbTabs = [];
       that.zbTabs = [];
-      // if (data.trafficConditions) {
-      //   var str = "省道国道乡道县道";
-      //   var roadData = [];
-      //   data.trafficConditions.forEach((item) => {
-      //     if (str.indexOf(item.name) > -1) {
-      //       if (item.result) {
-      //         var label = "G";
-      //         if (item.name == "省道") {
-      //           label = "S";
-      //         }
-      //         if (item.name == "国道") {
-      //           label = "G";
-      //         }
-      //         if (item.name == "县道") {
-      //           label = "X";
-      //         }
-      //         if (item.name == "乡道") {
-      //           label = "S";
-      //         }
-      //         item.result.forEach((t) => {
-      //           t.label = label;
-      //           roadData.push(t);
-      //         });
-      //       }
-      //     } else {
-      //       that.zbTabs.push(item);
-      //     }
-      //   });
-      //   if (roadData) {
-      //     that.zbTabs.push({ name: "公路", result: roadData });
-      //   }
-      //   that.yyList = that.zbTabs[0].result;
-      // }
+      if (data.trafficConditions) {
+        var str = "省道国道乡道县道";
+        var roadData = [];
+        data.trafficConditions.forEach((item) => {
+          if (str.indexOf(item.name) > -1) {
+            if (item.result) {
+              var label = "G";
+              if (item.name == "省道") {
+                label = "S";
+              }
+              if (item.name == "国道") {
+                label = "G";
+              }
+              if (item.name == "县道") {
+                label = "X";
+              }
+              if (item.name == "乡道") {
+                label = "S";
+              }
+              item.result.forEach((t) => {
+                t.label = label;
+                roadData.push(t);
+              });
+            }
+          } else {
+            that.zbTabs.push(item);
+          }
+        });
+        if (roadData) {
+          that.zbTabs.push({ name: "公路", result: roadData });
+        }
+        that.yyList = that.zbTabs[0].result;
+      }
       that.ggssTabs = [];
       that.ggssTabs = [];
       if (data.publicService) {
       if (data.publicService) {
         data.publicService.forEach((item) => {
         data.publicService.forEach((item) => {

+ 116 - 14
web_ui/static/config.js

@@ -2,9 +2,9 @@
   window.ApplicationConfig = {
   window.ApplicationConfig = {
     serverURL: "/server",
     serverURL: "/server",
     // subscribeUrl: 'http://ai.zjugis.com:8511/subscribe/',
     // subscribeUrl: 'http://ai.zjugis.com:8511/subscribe/',
-    subscribeUrl: 'http://localhost:8511/subscribe/',
-    queryGeometryUrl: 'http://localhost:8511/queryGeometry',
-    queryGeometryListUrl: 'http://localhost:8511/queryGeometryList',
+    subscribeUrl: 'http://10.249.6.132:8528/agentai/subscribe/',
+    queryGeometryUrl: 'http://10.249.6.132:8528/agentai/queryGeometry',
+    queryGeometryListUrl: 'http://10.249.6.132:8528/agentai/queryGeometryList',
     kfqintersectUrl: 'http://localhost:8511/kfqintersect',
     kfqintersectUrl: 'http://localhost:8511/kfqintersect',
     gyydintersectUrl: 'http://localhost:8511/intersect_gyyd',
     gyydintersectUrl: 'http://localhost:8511/intersect_gyyd',
     //  subscribeUrl: 'http://10.10.9.143:8511/subscribe/',
     //  subscribeUrl: 'http://10.10.9.143:8511/subscribe/',
@@ -118,14 +118,6 @@
             // url: 'http://60.191.110.204:8515/geoserver/nrllm/wms',
             // url: 'http://60.191.110.204:8515/geoserver/nrllm/wms',
             // layername: 'nrllm:ecgap_klyzy'
             // layername: 'nrllm:ecgap_klyzy'
           },
           },
-          {
-            name: "控规",
-            id: "KG",
-            checked: false,
-            type: 'tile2',
-            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/877a7710f9d7477f88120d5b30ab488a/arcgis/rest/services/GCS330000K2007_KZXXXGH_GHDK/GCS330000_2007_KZXXXGH_GHDK_GKY_2022/MapServer',
-            zindex: 1
-          },
           {
           {
             name: "开发区",
             name: "开发区",
             id: "KFQ",
             id: "KFQ",
@@ -143,9 +135,103 @@
             url: 'https://kjzl.zrzyt.zj.gov.cn/zdzy/geoserver/sde/wms',
             url: 'https://kjzl.zrzyt.zj.gov.cn/zdzy/geoserver/sde/wms',
             layername: 'sde:zjgyddc',
             layername: 'sde:zjgyddc',
             zindex: 1
             zindex: 1
-
           }
           }
-
+        ]
+      },
+      {
+        name: '变更调查', layers: [
+          {
+            name: "湿地",
+            id: "SD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/3a92d7f92e8f45ea92e1e83be0e52291/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_SD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "耕地",
+            id: "GD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/ff1cca31b3a244b78f6e3cf64e7bd71d/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_GD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "种植园地",
+            id: "ZZYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/30731be1e964442b85adad8e7edc74cf/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_ZZYYD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "林地",
+            id: "LD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/c01be7d0f2ef48b289d91d0b694cc303/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_LD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "草地",
+            id: "CD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/c52a1605393540f0b3a13a75e054a8d6/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_CD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "交通运输用地",
+            id: "JTYSYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/d90ecb07391b4e47a65a514a261a49f0/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_JTYSYD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "水域及水利设施用地",
+            id: "SYJSSYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/e72be3d0da9042ac8f6fe1ac97d70377/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_SYJSLSSYD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "设施农用地",
+            id: "SSNYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/09d60c0e015c42d1a267b3481a69c7cf/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_SSNYD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "城镇村及建设用地",
+            id: "CZCJJSYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/9d894ce773064ac1a342747cb050156f/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_CZCJGKYD_2024/MapServer',
+            zindex: 1
+          },
+          {
+            name: "建设用地",
+            id: "JSYD",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/f005c047b4c245fca2d629de912285dc/arcgis/rest/services/GCS330000_1002_GTBGDC_ZWB_2024/GCS330000_1002_GTBGDC_JSYD_2024/MapServer',
+            zindex: 1
+          },
+        ]
+      },
+      {
+        name: '规划', layers: [
+          {
+            name: "控制性详细规划",
+            id: "KG",
+            checked: false,
+            type: 'tile2',
+            url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy231/877a7710f9d7477f88120d5b30ab488a/arcgis/rest/services/GCS330000K2007_KZXXXGH_GHDK/GCS330000_2007_KZXXXGH_GHDK_GKY_2022/MapServer',
+            zindex: 1
+          },
         ]
         ]
       },
       },
       {
       {
@@ -155,7 +241,23 @@
           checked: false,
           checked: false,
           type: 'tile2',
           type: 'tile2',
           url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy226/a119e0e024944866a260798599aa19f4/arcgis/rest/services/GCS330000_2001_YJJBNT_GX/GCS330000_2001_YJJBNT_GX_XSB/MapServer',
           url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy226/a119e0e024944866a260798599aa19f4/arcgis/rest/services/GCS330000_2001_YJJBNT_GX/GCS330000_2001_YJJBNT_GX_XSB/MapServer',
-          zindex: 2
+          zindex: 1
+        },
+        {
+          name: "城镇开发边界",
+          id: "czkfbj",
+          checked: false,
+          type: 'tile2',
+          url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy226/a119e0e024944866a260798599aa19f4/arcgis/rest/services/GCS330000_2001_YJJBNT_GX/GCS330000_2001_YJJBNT_GX_XSB/MapServer',
+          zindex: 1
+        },
+        {
+          name: "生态保护红线",
+          id: "stbhhx",
+          checked: false,
+          type: 'tile2',
+          url: 'https://ai.zrzyt.zj.gov.cn/mapserver/GDPProxy226/a119e0e024944866a260798599aa19f4/arcgis/rest/services/GCS330000_2001_YJJBNT_GX/GCS330000_2001_YJJBNT_GX_XSB/MapServer',
+          zindex: 1
         }]
         }]
       }
       }