浏览代码

Merge branch 'master' of http://114.55.67.98:8070/Natural_p1/CSPON

liutao 2 月之前
父节点
当前提交
76708b8882
共有 1 个文件被更改,包括 119 次插入2 次删除
  1. 119 2
      web_ui/src/views/znzt-land/AiZtzsDetail.vue

+ 119 - 2
web_ui/src/views/znzt-land/AiZtzsDetail.vue

@@ -173,6 +173,21 @@
               </div>
               <p class="xg-des">
                 萧山区永久基本农田规模为:19.99万亩。
+                <p>各乡镇永久基本农田规模如下:</p>
+                <table class="table_result" >
+                  <thead>
+                    <tr>
+                      <th>序号</th>
+                      <th>乡镇名称</th>
+                      <th>面积(亩)</th>
+                    </tr>
+                  </thead>
+                  <tr v-for="(item, index) in mockData3" :key="index">
+                    <td>{{ index+1 }}</td>
+                    <td>{{item['name']}}</td>
+                    <td>{{item['area']}}</td>
+                  </tr>
+                </table>
               </p>
             </template>
             <template v-if="showResult && listType !== '1' && listType !== '3'">
@@ -317,6 +332,92 @@ export default {
   },
   data() {
     return {
+      mockData3: [
+  {
+    "name": "瓜沥镇",
+    "area": 37604.67
+  },
+  {
+    "name": "益农镇",
+    "area": 29442.14
+  },
+  {
+    "name": "党湾镇",
+    "area": 19893.58
+  },
+  {
+    "name": "新街街道",
+    "area": 16692.27
+  },
+  {
+    "name": "进化镇",
+    "area": 10265.46
+  },
+  {
+    "name": "临浦镇",
+    "area": 9727.09
+  },
+  {
+    "name": "浦阳镇",
+    "area": 9549.16
+  },
+  {
+    "name": "南阳街道",
+    "area": 8149.73
+  },
+  {
+    "name": "靖江街道",
+    "area": 7704.54
+  },
+  {
+    "name": "河上镇",
+    "area": 7533.9
+  },
+  {
+    "name": "戴村镇",
+    "area": 6789.32
+  },
+  {
+    "name": "楼塔镇",
+    "area": 6772.57
+  },
+  {
+    "name": "义桥镇",
+    "area": 6639.47
+  },
+  {
+    "name": "所前镇",
+    "area": 5509.48
+  },
+  {
+    "name": "蜀山街道",
+    "area": 4394.41
+  },
+  {
+    "name": "衙前镇",
+    "area": 3778.95
+  },
+  {
+    "name": "新塘街道",
+    "area": 2918.65
+  },
+  {
+    "name": "宁围街道",
+    "area": 2873.62
+  },
+  {
+    "name": "盈丰街道",
+    "area": 2786.85
+  },
+  {
+    "name": "顺坝垦区",
+    "area": 724.88
+  },
+  {
+    "name": "闻堰街道",
+    "area": 0.93
+  }
+],
       geoLayer: null,
       listType: '',
       nearMarkerList: [],
@@ -925,6 +1026,7 @@ export default {
       }
       this.closeXzqLayer();
       this.tabIndex = index;
+      this.hintText = '思考中...'
       if (this.inputText) {
         this.wt = this.inputText;
         this.hzData = [];
@@ -967,7 +1069,7 @@ export default {
         }else if (this.listType === '3') {
           const str1 = 'Question: 请帮统计萧山区永久基本农田规模,Thought: 用户的需求是统计萧山区永久基本农田总面积。首先我要先打开永久基本农田图层';
           const str2 = '图层打开操作已执行完毕。\n\n\n其次,我要定位到萧山区';
-          const str3 = '已定位到萧山区\n\n\n然后我要进行规模统计,因此选择LandSiteSelectionPlan执行用户需求最为合适。根据用户的需求,需要生成一个SQL查询语句来从永久基本农田表中统计出总面积: Action: LandFindSqlAgent Action Input: {“sql_code”: “SELECT Sum(yjjbnttbmj) FROM dligis.gcs330000g2001_yjjbnt_gx_xsb WHERE xzqmc = ‘萧山区‘”;} \n\n\n以上是我思考的所有内容。';
+          const str3 = '已定位到萧山区\n\n\n然后我要进行规模统计,因此选择LandSiteSelectionPlan执行用户需求最为合适。根据用户的需求,需要生成一个SQL查询语句来从永久基本农田表中统计出总面积: Action: LandFindSqlAgent Action Input: {“sql_code”: “SELECT Sum(yjjbnttbmj) FROM dlgis.gcs330000g2001_yjjbnt_gx_xsb WHERE xzqmc = ‘萧山区‘”;} \n\n\n以上是我思考的所有内容。';
           this.hzData = [{
             name: '请帮统计萧山区永久基本农田规模',
             summary: '',
@@ -991,7 +1093,7 @@ export default {
                 this.bindPopup();
                 this.hintText = '思考完成'
                 this.hzData = [{
-                  name: '请帮我打开永久基本农田图层',
+                  name: '请帮统计萧山区永久基本农田规模',
                   summary: ``,
                   loading: false
                 }]
@@ -1029,6 +1131,7 @@ export default {
       this.hzData = []
       this.listType = ''
       this.inputText = ''
+      this.hintText = '思考中...'
       this.closeXzqLayer();
       _timers1.forEach((timer1,index) => {
         clearInterval(timer1)
@@ -1700,6 +1803,20 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+.table_result {
+  width: 100%;
+  border: 1px solid #dededf;
+  border-collapse: collapse; /* 确保边框不会重叠 */
+  margin-top: 10px;
+  th,td {
+    padding: 5px;
+    font-size: 15px;
+    border: 1px solid #dededf;
+  }
+  th {
+    background: #f5f6f7;
+  }
+}
 .ivu-spin-fix {
   border-radius: 10px;
   position: relative;