瀏覽代碼

上图显示

maxiaoxiao 8 月之前
父節點
當前提交
9007feec62
共有 1 個文件被更改,包括 5 次插入9 次删除
  1. 5 9
      src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

+ 5 - 9
src/views/cockpit/common/VectorSpace/BoxCommonVector.vue

@@ -4,7 +4,7 @@
       <h2 class="PangetitleVector darg-div">
         <span class="pange_textVector">{{ title }}</span>
         <slot name="title"></slot>
-        <span class="clearBtn" @click="cockpit">
+        <span class="clearBtn">
           <i class="el-icon-thumb"></i>
           图斑详情查询
         </span>
@@ -115,13 +115,10 @@ export default {
   },
   methods: {
     closeIsShallow() {
-      this.isShallow = false
-      store.state.vectorData = []
+      this.isShallow = false;
+      store.state.vectorData = [];
     },
     cockpit() {
-      if (!this.isShallow) {
-        this.isShallow = true
-      }
       //驾驶舱矢量数据点选查询
       pick_cockpit_vector.init_handler();
     },
@@ -631,6 +628,7 @@ export default {
     },
     computed_vectorData(newVal, oldVal) {
       this.details = newVal;
+      this.isShallow = true;
       newVal.forEach((res) => {
         if (res.name == "index") {
           const TableRows = this.$refs.singleTable.bodyWrapper.querySelectorAll(
@@ -897,9 +895,7 @@ div::-webkit-scrollbar {
     top: 10px;
     right: 10px;
     font-size: larger;
-    font-weight: bold;
-
-    &:hover {
+    font-weight: bold;&:hover {
       color: aqua;
     }
   }