魏志佳 vor 4 Jahren
Ursprung
Commit
ec75fa2e05
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 5 2
      src/views/modules/BatchCreate/singleLayerSelecte.vue

+ 5 - 2
src/views/modules/BatchCreate/singleLayerSelecte.vue

@@ -19,7 +19,7 @@
           ></a-checkbox-group>
         </div>
       </div>
-      <!-- <div class="selectRight">
+      <div class="selectRight">
         <div class="title">
           已选
           <a-button class="clearAllBtn" type="link" @click="clearAll">清空</a-button>
@@ -30,7 +30,7 @@
             <a-icon type="close" id="close" @click="deleteItem(item)" />
           </span>
         </div>
-      </div> -->
+      </div>
     </div>
   </div>
 </template>
@@ -64,6 +64,7 @@ export default {
     listArr:{
         handler(n,o){
             this.plainOptions = this.listArr
+            this.valueOptions=[];
             this.listArr.forEach((item) => {
                     this.valueOptions.push(item.value)
             })
@@ -77,6 +78,7 @@ export default {
                 this.checkedList=[]
                 this.checkedShowList=[];
                 this.plainOptions = this.listArr
+                this.valueOptions=[]
                 this.listArr.forEach((item) => {
                     this.valueOptions.push(item.value)
                 })
@@ -173,6 +175,7 @@ export default {
   },
   mounted() {
     this.plainOptions = this.listArr
+    this.valueOptions=[]
     this.listArr.forEach((item) => {
       this.valueOptions.push(item.value)
     })