|
@@ -110,13 +110,22 @@
|
|
<!-- <remark-list-modal v-model="remarkModalVisible" @task-change="historyTaskChange"></remark-list-modal> -->
|
|
<!-- <remark-list-modal v-model="remarkModalVisible" @task-change="historyTaskChange"></remark-list-modal> -->
|
|
<!-- <image-preview v-if="currentTask" v-model="previewModalVisible" :url="currentTask?.url"></image-preview> -->
|
|
<!-- <image-preview v-if="currentTask" v-model="previewModalVisible" :url="currentTask?.url"></image-preview> -->
|
|
<image-preview v-if="currentTask" v-model="previewModalVisible" :url="currentTask?.url"></image-preview>
|
|
<image-preview v-if="currentTask" v-model="previewModalVisible" :url="currentTask?.url"></image-preview>
|
|
|
|
+ <el-dialog v-model="showRejectReason" :title="`打回试卷(${rejectTask?.secretNumber})`" width="500px">
|
|
|
|
+ <span style="font-size: 14px; font-weight: bold; color: #333">原因:</span
|
|
|
|
+ ><span style="font-size: 14px">{{ rejectTask?.rejectReason }}</span>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="showRejectReason = false"> 确定 </el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="MarkingMark">
|
|
<script setup lang="ts" name="MarkingMark">
|
|
/** 阅卷-正式评卷 */
|
|
/** 阅卷-正式评卷 */
|
|
import { computed, nextTick, ref, watch, onBeforeUnmount, unref } from 'vue'
|
|
import { computed, nextTick, ref, watch, onBeforeUnmount, unref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
-import { ElButton, ElRadioGroup, ElRadioButton, ElRadio, ElMessage } from 'element-plus'
|
|
|
|
|
|
+import { ElButton, ElRadioGroup, ElRadioButton, ElRadio, ElMessage, ElDialog } from 'element-plus'
|
|
import { minus } from '@/utils/common'
|
|
import { minus } from '@/utils/common'
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
import useFetch from '@/hooks/useFetch'
|
|
import useFetch from '@/hooks/useFetch'
|
|
@@ -545,6 +554,8 @@ const getEnableRemark = () => {
|
|
// imgWrap.value.scrollTop = 0
|
|
// imgWrap.value.scrollTop = 0
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
+const showRejectReason = ref(false)
|
|
|
|
+const rejectTask = ref<any>(null)
|
|
let timer: any = null
|
|
let timer: any = null
|
|
watch(currentTask, (newVal, oldVal) => {
|
|
watch(currentTask, (newVal, oldVal) => {
|
|
if (!oldVal && !!newVal) {
|
|
if (!oldVal && !!newVal) {
|
|
@@ -553,6 +564,11 @@ watch(currentTask, (newVal, oldVal) => {
|
|
resume()
|
|
resume()
|
|
if (!currentTask.value) {
|
|
if (!currentTask.value) {
|
|
getEnableRemark()
|
|
getEnableRemark()
|
|
|
|
+ } else {
|
|
|
|
+ if (currentTask.value?.rejectReason) {
|
|
|
|
+ showRejectReason.value = true
|
|
|
|
+ rejectTask.value = currentTask.value
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// clearScrollTop()
|
|
// clearScrollTop()
|
|
})
|
|
})
|