ezhizao_zx 1 年之前
父節點
當前提交
c6d5dcc8ac
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/dialog/InstructionChoiceDialog.vue

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

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