whj il y a 1 an
Parent
commit
6312e2e5ff

+ 1 - 1
src/views/idle-assets/modules/BaseForm.vue

@@ -64,7 +64,7 @@
     <template slot="footer">
       <a-button :loading="confirmLoading" type="primary" @click="save()">保存</a-button>
     </template>
-    <sb-info-select-modal ref="sbInfoSelectModal" @selected="handleSbSelectd"/>
+    <sb-info-select-modal v-if="visible" ref="sbInfoSelectModal" @selected="handleSbSelectd"/>
     <UpLoad ref="upLoad" />
   </a-modal>
 </template>

+ 3 - 1
src/views/idle-assets/modules/SbInfoSelectModal.vue

@@ -1,5 +1,5 @@
 <template>
-  <div v-if="visible">
+  <div>
     <a-modal
       :title="modalTitle"
       :width="1300"
@@ -371,6 +371,8 @@ export default {
     handleCancel () {
       this.visible = false
       this.confirmLoading = false
+      this.selectedRowKeys = []
+      this.selectedRows = []
     },
     handleSelect () {
       if (this.selectedRows.length === 0) {