Browse Source

智能选址,新模型适配

liutao 1 month ago
parent
commit
428d85f960

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

@@ -519,28 +519,28 @@ export default {
 
       // this.showResult = true;
       // this.showQuery = true;
-      // // this.xgdk = [
-      // //   {
-      // //     id: 1839,
-      // //   },
-      // //   {
-      // //     id: 1843,
-      // //   },
-      // //   {
-      // //     id: 1845,
-      // //   },
-      // // ];
       // this.xgdk = [
       //   {
-      //     id: 7685,
+      //     id: 1839,
       //   },
       //   {
-      //     id: 37091,
+      //     id: 1843,
       //   },
       //   {
-      //     id: 40175,
+      //     id: 1845,
       //   },
       // ];
+      // // this.xgdk = [
+      // //   {
+      // //     id: 7685,
+      // //   },
+      // //   {
+      // //     id: 37091,
+      // //   },
+      // //   {
+      // //     id: 40175,
+      // //   },
+      // // ];
       // let that = this;
       // this.getDetailByIdList(this.xgdk, (data) => {
       //   this.xgdk = data;

+ 1 - 0
web_ui/src/views/industrial-land/ZnxzDetail.vue

@@ -1169,6 +1169,7 @@ export default {
     goInfoLocation(wkt) {
       this.$emit("gowkt", wkt);
     },
+    
     getReduceList(arr) {
       let obj = {};
       arr = arr.reduce((cur, next) => {

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

@@ -1704,11 +1704,14 @@ export default {
                     .replaceAll("\n```json\n", "")
                     .replaceAll("```json\n", "")
                     .replaceAll("\n```\n", "");
-                  let json_exec = JSON.parse(exec_res);
 
                   if (exec_res.indexOf("operations") > -1) {
-                    T.handleGisOperation(json_exec);
+                    let cmd = {
+                      operations: [{ action: "open", layer: "永久基本农田" }],
+                    };
+                    T.handleGisOperation(cmd);
                   } else {
+                    let json_exec = JSON.parse(exec_res);
                     var dk = json_exec;
                     T.getDetailByIdList(dk, (data) => {
                       T.clearMark();