YaolongHan před 4 roky
rodič
revize
ddd7d833fe
1 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. 7 3
      src/components/edit/left_toolbar.vue

+ 7 - 3
src/components/edit/left_toolbar.vue

@@ -77,7 +77,7 @@
           @close="onClose"
           :getContainer="false"
         >
-          <div class="drawer-model-body">
+          <div class="drawer-model-body" v-if="!isExtract">
             <div class="btn-list">
               <a-button-group>
                 <a-button type="primary">绘制</a-button>
@@ -102,7 +102,7 @@
               </ul>
             </div>
           </div>
-          <div class="drawer-model-body drawer-model-body-extract">
+          <div v-else class="drawer-model-body drawer-model-body-extract">
             <a-table :columns="columns" :data-source="data" size="small" :pagination="false">
               <a-tag
                 slot="address"
@@ -164,7 +164,7 @@ export default {
   props: {
     cmdType: {
       type: String,
-      default: '',
+      default: "",
       required: false
     }
   },
@@ -242,6 +242,7 @@ export default {
           name: "提取" //类型
         }
       ],
+      isExtract: false, //是否为提取框
       data,
       columns,
       itemList: [] //图例数组
@@ -272,6 +273,7 @@ export default {
       this.$emit("setCmdType", item.type);
     },
     showDrawer(item) {
+      this.isExtract = false;
       if (item.isChoice) {
         this.systemChoice.forEach(a => {
           a.isChoice = false;
@@ -313,6 +315,8 @@ export default {
     },
     // 提取元素
     extractItem() {
+      // 打开提取元素列表
+      this.isExtract = true;
       this.visible = !this.visible;
       bus.$emit("extractItem");
     },