Parcourir la source

差异分析结果工具是否展示,添加查询某项分析结果进行点击查询接口,添加表格双击事件

lkk il y a 1 mois
Parent
commit
0ded07dcdf

+ 12 - 0
website/src/api/ghfxpj/cyfxApi.js

@@ -6,6 +6,7 @@ const cyfxApi = {
     Cyfxjg: '/apply/fxpj/ghcy/cyfxjg',
     getGeomById: '/apply/fxpj/ghcy/getGeomById',
     getAttributesById: '/apply/fxpj/ghcy/getAttributesById',
+    intersects: '/apply/fxpj/ghcy/intersects',
 
 };
 
@@ -49,4 +50,15 @@ export function getAttributesById(parameter) {
             'Content-Type': 'application/json;charset=UTF-8'
         }
     })
+}
+//点击查询某项分析结果点击查询
+export function intersects(parameter) {
+    return request({
+        url: cyfxApi.intersects,
+        method: 'post',
+        data: obj2FormData(parameter),
+        headers: {
+            'Content-Type': 'application/json;charset=UTF-8'
+        }
+    })
 }

+ 1 - 2
website/src/views/ghfxpj/Cyfx.vue

@@ -58,7 +58,7 @@
         <div v-for="(item, i) in cyjgList" :key="i" style="margin-bottom: 5px">
           <div class="cyList">
             <div style="color: #02a7f0">{{ i + 1 }}. {{ item.fxmc }}</div>
-            <div class="icon_list">
+            <div class="icon_list" v-show="item.hasDetail">
               <el-icon color="#02A7F0"
                 ><View style="width: 1.2rem; height: 1.2rem"
               /></el-icon>
@@ -191,7 +191,6 @@ export default {
         });
       },
       subMit() {
-        console.log(fxsz.queryParams, "/////");
         Cyfxjg(fxsz.queryParams).then((res) => {
           if (res.statuscode === 200) {
             fxsz.cyjgList = res.data.fxjg;

+ 12 - 1
website/src/views/ghfxpj/gtkjfxyy/ghcyfx.vue

@@ -46,6 +46,7 @@
             stripe
             style="width: 100%"
             max-height="260"
+            @cell-dblclick="dblClick"
           >
             <el-table-column
               v-for="(key, index) in tableColumns"
@@ -75,7 +76,7 @@ import { GetByBsms } from "@/api/ghyzt/zzllApi.js";
 import { reactive, toRefs, ref } from "@vue/reactivity";
 import { onMounted, watch } from "@vue/runtime-core";
 import { remove } from "@/api/gdal/index.js";
-import { getAttributesById } from "@/api/ghfxpj/cyfxApi.js";
+import { getAttributesById, intersects } from "@/api/ghfxpj/cyfxApi.js";
 
 export default {
   components: {
@@ -166,6 +167,16 @@ export default {
       closeTable() {
         ghcyfx.showTable = false;
       },
+      dblClick(row, column, cell, event) {
+        console.log(row, column, cell, event);
+        intersects({ id: ghcyfx.transfer.id, objectid: row["编号"] }).then(
+          (res) => {
+            if (res.statuscode === 200) {
+              console.log(res, "??????????");
+            }
+          }
+        );
+      },
     });
     watch(
       () => store.state.xmgl.transfer,