|
@@ -50,8 +50,8 @@
|
|
|
|
|
|
<script setup lang="ts" name="DataMarking">
|
|
|
/** 导入评卷数据 */
|
|
|
-import { computed, reactive, ref, watch } from 'vue'
|
|
|
-import { ElButton, ElInput, ElCard, ElFormItem, ElUpload, ElMessage, ElProgress } from 'element-plus'
|
|
|
+import { computed, nextTick, reactive, ref, watch } from 'vue'
|
|
|
+import { ElButton, ElInput, ElCard, ElFormItem, ElUpload, ElProgress } from 'element-plus'
|
|
|
import { useTimeoutFn } from '@vueuse/core'
|
|
|
import ConfirmButton from '@/components/common/ConfirmButton.vue'
|
|
|
import BaseForm from '@/components/element/BaseForm.vue'
|
|
@@ -201,7 +201,13 @@ const items = computed<EpFormItem[]>(() => {
|
|
|
})
|
|
|
|
|
|
function checkImportStatus() {
|
|
|
- getStudentImportStatus().finally(start)
|
|
|
+ getStudentImportStatus().finally(() => {
|
|
|
+ nextTick(() => {
|
|
|
+ if (!allowImport.value) {
|
|
|
+ start()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
async function onSubmit() {
|