Kaynağa Gözat

修改 地块数据字段名称

hotchicken1996 3 ay önce
ebeveyn
işleme
2114ae9ca0

+ 63 - 60
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -131,7 +131,7 @@
             <div class="title" @click="resetAnswer(index)">
               {{ item.name }}
             </div>
-            <div class="jsz" v-if="item.loading">
+            <div class="jsz" v-if="item.loading && !showResult">
               <Spin />
               {{ hintText }}
             </div>
@@ -183,11 +183,11 @@
                 >
                   <div class="number">{{ i + 1 }}</div>
                   <div class="content">
-                    <h3>{{ citem.name }}</h3>
+                    <h3>{{ citem.dkmc }}</h3>
                     <p>
-                      <span>面积:{{ citem.area ? citem.area.toFixed(2) : '-' }}亩</span>
-                      <span>单价:{{ citem.unit_price ? citem.unit_price.toFixed(2) : '-' }}</span>
-                      <span>行政区:{{ citem.county ? citem.county : '-' }}</span>
+                      <span class='content-item'>面积:{{ citem.dkmj ? citem.dkmj.toFixed(2) : '-' }}亩</span>
+                      <span class='content-item'>土地用途:{{ citem.tdyt ? citem.tdyt : '-' }}</span>
+                      <span class='content-item'>行政区:{{ citem.xzqmc ? citem.xzqmc : '-' }}</span>
                     </p>
                   </div>
                 </div>
@@ -960,33 +960,33 @@ export default {
       }
     },
     initMap() {
-        let CRS_4490 = new Proj.CRS("EPSG:4490", "+proj=longlat +ellps=GRS80 +no_defs", {
-          resolutions: [
-              1.4062500262315807,
-              0.7031249999891485,
-              0.35156249999999994,
-              0.17578124999999997,
-              0.08789062500000012,
-              0.04394531250000006,
-              0.021972656250000007,
-              0.01098632812500002,
-              0.00549316406250001,
-              0.0027465820312500017,
-              0.0013732910156250009,
-              6.866455078124991E-4,
-              3.4332275390624957E-4,
-              1.7166137695312503E-4,
-              8.583068847656251E-5,
-              4.291534423828141E-5,
-              2.1457672119140645E-5,
-              1.0728836059570307E-5,
-              5.364418029785169E-6,
-              2.6822090642902305E-6,
-              1.3411045333348457E-6
-          ],
-          origin: [-180, 90]
-        });
-      this.layers = window.ApplicationConfig.layerTreeConfig;
+      let CRS_4490 = new Proj.CRS('EPSG:4490', '+proj=longlat +ellps=GRS80 +no_defs', {
+        resolutions: [
+          1.4062500262315807,
+          0.7031249999891485,
+          0.35156249999999994,
+          0.17578124999999997,
+          0.08789062500000012,
+          0.04394531250000006,
+          0.021972656250000007,
+          0.01098632812500002,
+          0.00549316406250001,
+          0.0027465820312500017,
+          0.0013732910156250009,
+          6.866455078124991E-4,
+          3.4332275390624957E-4,
+          1.7166137695312503E-4,
+          8.583068847656251E-5,
+          4.291534423828141E-5,
+          2.1457672119140645E-5,
+          1.0728836059570307E-5,
+          5.364418029785169E-6,
+          2.6822090642902305E-6,
+          1.3411045333348457E-6
+        ],
+        origin: [-180, 90]
+      })
+      this.layers = window.ApplicationConfig.layerTreeConfig
       this.layers.forEach((item, index) => {
         if (index == 0) {
           item.checked = true
@@ -996,14 +996,14 @@ export default {
       })
       let myCenter = new L.LatLng(this.latitude, this.longitude) // 设置地图中心
       this.map = L.map(this.id, {
-        zoom:window.ApplicationConfig.mapOptions["zoom"],
-        center: window.ApplicationConfig.mapOptions["center"],
+        zoom: window.ApplicationConfig.mapOptions['zoom'],
+        center: window.ApplicationConfig.mapOptions['center'],
         zoomControl: false,
         crs: CRS_4490,
-        attributionControl: false, //去掉右下角的logo
-      });
-      var tk = window.ApplicationConfig.tk;
-      var tk = "6dfd31e3b55a8466f34997aee5551a9c";
+        attributionControl: false //去掉右下角的logo
+      })
+      var tk = window.ApplicationConfig.tk
+      var tk = '6dfd31e3b55a8466f34997aee5551a9c'
       // 添加天地图底图
       //底图
       // const image = L.tileLayer(
@@ -1040,31 +1040,31 @@ export default {
       // );
       // this.map.addLayer(cia);
       let dtLayers = {
-        name: "底图",
+        name: '底图',
         layers: [
           {
-            name: "浙江影像",
-            id: "zjyx",
+            name: '浙江影像',
+            id: 'zjyx',
             checked: true,
-            type: "wmts",
-            url: "https://kjzl.zrzyt.zj.gov.cn/zdzy/gtkj/zjgt48/34048bffdd0d4d148ca4a40da7eade21/services/wmts/imgmap/default/oss",
-            layername: "imgmap",
+            type: 'wmts',
+            url: 'https://kjzl.zrzyt.zj.gov.cn/zdzy/gtkj/zjgt48/34048bffdd0d4d148ca4a40da7eade21/services/wmts/imgmap/default/oss',
+            layername: 'imgmap'
           },
           {
-            name: "浙江注记",
-            id: "zjzj",
+            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",
-          },
-        ],
-      };
+            type: 'wmts',
+            url: 'https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt49/2003392c13044d3ab3097b0a4328ecf2/services/wmts/imgmap_lab/default/oss',
+            layername: 'imgmap_lab'
+          }
+        ]
+      }
 
-      var zjyx = dtLayers.layers[0];
-      this.switchMapLayer(zjyx);
-      var zjzj = dtLayers.layers[1];
-      this.switchMapLayer(zjzj);
+      var zjyx = dtLayers.layers[0]
+      this.switchMapLayer(zjyx)
+      var zjzj = dtLayers.layers[1]
+      this.switchMapLayer(zjzj)
 
       //定位浙江省
       this.location(polygons)
@@ -1287,7 +1287,7 @@ export default {
               '?service=WFS&version=1.0.0&request=GetFeature&typeName=' +
               window.ApplicationConfig.gdLayerName +
               '&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=dkmc=\'' +
-              item.name +
+              item.dkmc +
               '\''
         axios.get(query).then((data) => {
           console.log(data)
@@ -1817,6 +1817,7 @@ export default {
       } else {
         if (e.data == '[FINISH]') {
           console.log('SSE连接关闭')
+          T.loading = false
           T.count = 0
           if (T.eventSource) {
             T.eventSource.close()
@@ -1829,9 +1830,6 @@ export default {
               T.messages.splice(index, 1)
             }
           })
-
-          T.loading = false
-
           T.addHistory(question, T.messages[T.messages.length - 1].content)
         }
       }
@@ -2832,6 +2830,11 @@ export default {
     font-size: 14px;
     color: #666;
   }
+
+  .content p .content-item {
+    margin-right: 5px;
+  }
+
 }
 </style>
 

+ 3 - 3
web_ui/static/config.js

@@ -1,9 +1,9 @@
 (function (window) {
   window.ApplicationConfig = {
     serverURL: "/server",
-    //subscribeUrl: 'http://ai.zjugis.com:8511/subscribe/',
-    subscribeUrl: 'http://localhost:8511/subscribe/',
-    //  subscribeUrl: 'http://10.10.9.143:8511/subscribe/',
+    // subscribeUrl: 'http://ai.zjugis.com:8511/subscribe/',
+    // subscribeUrl: 'http://localhost:8511/subscribe/',
+     subscribeUrl: 'http://10.10.9.143:8511/subscribe/',
     //  subscribeUrl: '/agentai/subscribe/',
     // subscribeUrl: 'http://192.168.0.145:8511/subscribe/',
     // zcbdUrl: 'http://ai.zjugis.com:8510/policy/#/home',