Browse Source

多选打回的交互优化

刘洋 1 year ago
parent
commit
ad1af829bc
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/modules/analysis/view-marked-detail/index.vue

+ 9 - 1
src/modules/analysis/view-marked-detail/index.vue

@@ -9,7 +9,12 @@
       <!-- <el-button :disabled="!current?.taskId" class="m-l-base" size="small" type="primary" @click="onEditScore"
         >修改给分</el-button
       > -->
-      <el-button :disabled="!current?.taskId" class="m-l-base" size="small" type="primary" @click="onSendBack"
+      <el-button
+        :disabled="isMult ? !rejectIds?.length : !current?.taskId"
+        class="m-l-base"
+        size="small"
+        type="primary"
+        @click="onSendBack"
         >打回</el-button
       >
       <el-button
@@ -184,6 +189,9 @@ const onRejected = () => {
   // onRefresh()
   ElMessage.success('打回成功')
   // fetchTable()
+  if (isMult.value) {
+    multToggle()
+  }
 }
 /** 给分板 */
 const editScoreVisible = ref<boolean>(true)