Bläddra i källkod

智能选址详情

liutao 3 månader sedan
förälder
incheckning
71730b8145

+ 14 - 107
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -114,7 +114,7 @@
               autocomplete="off"
               spellcheck="false"
               autocorrect="off"
-              placeholder="您可以试着这样问我,如“帮我在萧山区推荐一宗60亩左右的工业用地”"
+              placeholder="您可以试着这样问我,如“帮我在萧山区推荐一宗30-100亩左右的工业用地”"
               autofocus=""
             >
             </textarea>
@@ -324,7 +324,7 @@ export default {
           name: '请帮我在杭州市萧山机场附近推荐几块总价不超过2000万的工业用地'
         },
         {
-          name: '帮我在萧山区推荐一宗60亩左右的工业用地'
+          name: '帮我在萧山区推荐一宗30-100亩左右的工业用地'
         },
         {
           name: '请帮我杭州市找几块在开发区内,园区主导产业为新能源的工业用地'
@@ -404,99 +404,7 @@ export default {
       startTime: 0,
       showIndentify: false,
       detailData: null,
-      // detailData: {
-      //   'id': 48668,
-      //   'OBJECTID': null,
-      //   'xzq': null,
-      //   'xzqmc': '萧山区',
-      //   'xzqdm': '330109',
-      //   'dkmc': '湘湖国家旅游度假区建设工矿仓储项目',
-      //   'dkbh': '萧政工出[2025]11号',
-      //   'dkmj': 60.714,
-      //   'tdyt': '工业用地',
-      //   'jzdj': null,
-      //   'kfq': null,
-      //   'dkid': '1895353609416212480',
-      //   'dklx': '立即可用',
-      //   'is_valid': null,
-      //   'dlmc': null,
-      //   'group_name': null,
-      //   'shape_leng': null,
-      //   'lysx': 1,
-      //   'kfqdm': null,
-      //   'kfqmc': null,
-      //   'tdzl': null,
-      //   'kfcd': null,
-      //   'is_bdz': null,
-      //   'bzd_gdzctz': null,
-      //   'bzd_mjss': null,
-      //   'bzd_dwnh': null,
-      //   'bzd_dwpf': null,
-      //   'rjl_min': null,
-      //   'rjl_max': null,
-      //   'is_publish': null,
-      //   'lxr': null,
-      //   'lxdh': null,
-      //   'lxdz': null,
-      //   'cryear': null,
-      //   'crway': null,
-      //   'wgyy': null,
-      //   'qjurl': null,
-      //   'syzt': 1,
-      //   'remark': null,
-      //   'district_code': null,
-      //   'district': null,
-      //   'available_sequence': 1,
-      //   'sde_ecgap_klyzy_area': null,
-      //   'development_degree': 0,
-      //   'use': 1,
-      //   'plot_ratio_start': 1.5,
-      //   'plot_ratio_end': 2,
-      //   'investment_scale': 420,
-      //   'tax': 40,
-      //   'unit_energy_consumption_added': '≥13.8万元/吨标煤',
-      //   'unit_emission_added': '≥5640万元/吨',
-      //   'bz': null,
-      //   'create_time': null,
-      //   'create_worker_id': null,
-      //   'update_time': null,
-      //   'update_worker_id': null,
-      //   'is_pub': 1,
-      //   'image_url': null,
-      //   'intr_url': null,
-      //   'zyid': '1895353609416212480',
-      //   'bzdj': null,
-      //   'is_bzd': 1,
-      //   'sskfq': null,
-      //   'introduce': null,
-      //   'xmid': null,
-      //   'coord': '[120.1791595,30.036971]',
-      //   'sde_ecgap_klyzy_fid': null,
-      //   'dksyh': '1895353609416212480',
-      //   'reason_for_invalid': null,
-      //   'is_nz': 1,
-      //   'is_tg': 1,
-      //   'contact_address': null,
-      //   'is_ng': null,
-      //   'file_name': null,
-      //   'address': '位于萧山区义桥镇,东至空地,南至空地,西至空地,北至云临路。',
-      //   'period': 30,
-      //   'status': 1,
-      //   'crfs': 2,
-      //   'xzt_url': null,
-      //   'data_from': 'from dealland',
-      //   'image_id': null,
-      //   'name': '湘湖国家旅游度假区建设工矿仓储项目',
-      //   'sfsj': 1,
-      //   'isbuild': null,
-      //   'is_incircle': null,
-      //   'circlename': null,
-      //   'instance_id': '01954d7c502234619461953e090100e3',
-      //   'sde_ecgap_klyzy_area_1': 60.714,
-      //   'shape_Length': null,
-      //   'shape_Area': null
-      //
-      // },
+
       legend: [
 
         {
@@ -566,7 +474,9 @@ export default {
   mounted() {
     this.$nextTick(() => {
       this.activeIndex = 0
-      this.initMap()
+      this.initMap();
+      // this.detailData = {"id": 48668, "dkid": "1895353609416212480", "xzqmc": "萧山区", "dkmc": "湘湖国家旅游度假区建设工矿仓储项目", "address": "位于萧山区义桥镇,东至空地,南至空地,西至空地,北至云临路。", "dkmj": 60.714, "tdyt": "工业用地", "center_wkt": "POINT(120.912063 29.486802)"};
+      // this.showDetail = true;
       // this.checkPermision();
     })
   },
@@ -675,7 +585,7 @@ export default {
       if (this.inputText == '' || this.inputText == null) {
         // this.$Message.info("请输入");
         // return;
-        this.inputText = '帮我在萧山区推荐一宗60亩左右的工业用地'
+        this.inputText = '帮我在萧山区推荐一宗30-100亩左右的工业用地'
       }
 
       this.zwinputText = ''
@@ -685,7 +595,7 @@ export default {
     },
     zwsend() {
       if (!this.zwinputText) {
-        this.zwinputText = '帮我在萧山区推荐一宗60亩左右的工业用地'
+        this.zwinputText = '帮我在萧山区推荐一宗30-100亩左右的工业用地'
       }
       var item = { name: this.zwinputText, loading: true }
       // this.hzData = [item]
@@ -763,7 +673,7 @@ export default {
               layers: item.layername,
               format: 'image/png',
               layerID: Math.random(),
-              transparent: true
+              transparent: true,
             })
             item.layer.setZIndex(100)
           }
@@ -948,9 +858,6 @@ export default {
     },
     //显示地块详情,先获取地块图斑,定位、路线、和地类分析需要叠加获取相交地块
     showDetailModal(item, index) {
-      // if (index != -1) {
-      //   this.getActiveItemGeometry(item)
-      // }
       if (
         (this.activeItem && this.activeItem.id != item.id) ||
         this.activeItem == null
@@ -1065,14 +972,13 @@ export default {
       if (this.identifyGeojsonLayer) {
         this.map.removeLayer(this.identifyGeojsonLayer)
       }
-
+     console.log("item:"+item);
       let query =
             window.ApplicationConfig.geoserverUrl +
             '?service=WFS&version=1.0.0&request=GetFeature&typeName=' +
             window.ApplicationConfig.gdLayerName +
-            '&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=dkmc=\'' +
-            item.dkmc +
-            '\''
+            '&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=id=' +
+            item.id;
       axios.get(query).then((data) => {
         console.log(data)
         if (data.data.features.length < 1) {
@@ -1080,10 +986,11 @@ export default {
           return
         }
         this.detailData = data.data.features[0].properties
+        this.detailData.center_wkt = item.center_wkt;
         var geojson = data.data.features[0].geometry
         var geos = L.geoJSON(geojson, {
           style: function (feature) {
-            return { color: '#3BA5FF' }
+            return { color: 'red',fillOpacity:0 }
           }
         })
         this.dkGeo = geos

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 831 - 422
web_ui/src/views/industrial-land/ZnxzDetail.vue


Vissa filer visades inte eftersom för många filer har ändrats