ezhizao_zx há 1 ano atrás
pai
commit
c6d5dcc8ac
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/views/dialog/InstructionChoiceDialog.vue

+ 2 - 1
src/views/dialog/InstructionChoiceDialog.vue

@@ -61,7 +61,7 @@
               </el-form>
             </div>
             <div class="el-table-container" :style="{ bottom: instructionTotal > 0 ? '35px' : '0' }">
-              <el-table ref="employeeTable" v-loading="instructionLoading" row-key="id"
+              <el-table ref="instructionTable" v-loading="instructionLoading" row-key="id"
                 :data="currentCategory ? instructionList : []" size="default" border height="100%"
                 header-row-class-name="list-header-row" row-class-name="list-row"
                 @selection-change="handleSelectionChange"
@@ -147,6 +147,7 @@ function close() {
 
 function open() {
   visible.value = true
+  proxy.$refs.instructionTable.clearSelection()
   loadCategory()
 }