maxiaoxiao 9 meses atrás
pai
commit
29b8868e9b

+ 7 - 5
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">
+        <span class="clearBtn" @click="cockpit">
           <i class="el-icon-thumb"></i>
           图斑详情查询
         </span>
@@ -32,7 +32,7 @@
           </div>
         </div>
         <div v-if="cockpit_vector.showtotal" class="shownum">
-          上报总数量:{{ active_dableData.length }}个
+          上报总数量:{{ active_dableData.length }}{{ isShallow }}
         </div>
         <el-table :row-class-name="tableRowClassName" ref="singleTable" :data="active_dableData" style="width: 100%"
           height="670" :header-cell-style="{
@@ -100,7 +100,7 @@ export default {
       state: "",
       timeout: null,
       title: "",
-      active_dableData: null,
+      active_dableData: [],
       tableData: null,
       layersData: {},
       scrollTop_index: null,
@@ -116,7 +116,7 @@ export default {
   methods: {
     closeIsShallow() {
       this.isShallow = false;
-      store.state.vectorData = [];
+      this.details = [];
     },
     cockpit() {
       //驾驶舱矢量数据点选查询
@@ -895,7 +895,9 @@ div::-webkit-scrollbar {
     top: 10px;
     right: 10px;
     font-size: larger;
-    font-weight: bold;&:hover {
+    font-weight: bold;
+
+    &:hover {
       color: aqua;
     }
   }

+ 1 - 1
src/views/modelStretch/index.vue

@@ -236,7 +236,7 @@ export default {
       this.$refs.ruleForm.validate((valid) => {
         if (valid) {
           if (!this.form.xzfw) {
-            Message.warning("请绘制或导入平面范围!");
+            this.$message.warning("请绘制或导入平面范围!");
             return;
           }
           this.form.geojson = parse(_temp.geom);