2 Коміти 7a19bd0b3c ... c34c57de62

Автор SHA1 Опис Дата
  hotchicken1996 c34c57de62 Merge remote-tracking branch 'origin/master' 3 місяців тому
  hotchicken1996 2114ae9ca0 修改 地块数据字段名称 3 місяців тому

+ 13 - 7
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>
@@ -1076,7 +1076,7 @@ export default {
         })
       });
       // var gd = this.layers[0].layers[0]
-     
+
     },
     //属性识别
     mapClick(e) {
@@ -1293,7 +1293,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)
@@ -1823,6 +1823,7 @@ export default {
       } else {
         if (e.data == '[FINISH]') {
           console.log('SSE连接关闭')
+          T.loading = false
           T.count = 0
           if (T.eventSource) {
             T.eventSource.close()
@@ -2838,6 +2839,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',