瀏覽代碼

SYZHZL-Ⅳ-1 SYZHZL-Ⅳ-3

lkk 3 月之前
父節點
當前提交
7b316e90f9
共有 1 個文件被更改,包括 20 次插入2 次删除
  1. 20 2
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

+ 20 - 2
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -48,9 +48,11 @@
             :label="item">
           </el-table-column>
 
-          <el-table-column fixed="right" label="操作" :width="cockpit_vector.action ? 100 : 50">
+          <!-- <el-table-column fixed="right" label="操作" :width="cockpit_vector.action ? 100 : 50"> -->
+          <el-table-column fixed="right" label="操作" :width="cockpit_vector.action ? 150 : 100">
             <template slot-scope="scope">
               <!-- <el-button @click="info(scope.row)" type="text" size="small">详情</el-button> -->
+              <el-button @click="goDetail(scope.row)" type="text" size="small">详情</el-button>
               <el-button @click="go(scope.row)" type="text" size="small">定位</el-button>
               <el-button v-if="cockpit_vector.action" @click="start(scope.row)" type="text" size="small">开工</el-button>
             </template>
@@ -409,6 +411,23 @@ export default {
           }
         }
       }
+      // store.setVectordataid(item.dataid);
+      // let arr = [];
+      // // BoxCommonVector_entity = new Cesium.CustomDataSource("BoxCommonVector_entity");
+      // // viewer.dataSources.add(BoxCommonVector_entity);
+
+      // Object.keys(item).forEach((key) => {
+      //   arr.push({
+      //     name: key,
+      //     value: item[key],
+      //   });
+      // });
+      this.scrollTop_index = item.index;
+      // this.details = arr;
+      // this.isShallow = true;
+      // store.setActiveToolBar(9);
+    },
+    goDetail(item){
       store.setVectordataid(item.dataid);
       let arr = [];
       // BoxCommonVector_entity = new Cesium.CustomDataSource("BoxCommonVector_entity");
@@ -423,7 +442,6 @@ export default {
       this.scrollTop_index = item.index;
       this.details = arr;
       this.isShallow = true;
-      // store.setActiveToolBar(9);
     },
     addpolygon(item) {
       const that = this;