|
@@ -67,7 +67,7 @@
|
|
|
<div>
|
|
|
<el-button type="primary" @click="onSave(ruleFormRef)" :loading="state.loading" v-if="!isView">保存</el-button>
|
|
|
<!-- <el-button type="primary" @click="onSubmit" :loading="state.loading">提交</el-button>-->
|
|
|
- <el-button class="default-button" @click="onCancel" :loading="state.loading">关闭 </el-button>
|
|
|
+ <el-button class="default-button" @click="onCancel" :loading="state.loading">取消 </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</pane>
|
|
@@ -78,16 +78,12 @@
|
|
|
|
|
|
<script setup lang="ts" name="examTrainExamMarkingEdit">
|
|
|
import { computed, onMounted, reactive, ref } from 'vue';
|
|
|
-import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
import mittBus from '@/utils/mitt';
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import { Splitpanes, Pane } from 'splitpanes';
|
|
|
import 'splitpanes/dist/splitpanes.css';
|
|
|
-import { Local } from '@/utils/storage';
|
|
|
-import other from '@/utils/other';
|
|
|
-import { throttle, transformFile, guid } from '@/utils/tools';
|
|
|
-import { addExamManage, editExamManage, getExamManageDetail, getTestPaperQuestionCount } from '@/api/examTrain/examManage';
|
|
|
+import { throttle } from '@/utils/tools';
|
|
|
import { batchMarking, getMarkingDetailByUser, getMarkingDetailUser } from '@/api/examTrain/marking';
|
|
|
|
|
|
// 定义变量内容
|
|
@@ -144,7 +140,8 @@ const onSave = throttle(() => {
|
|
|
isCheck: true,
|
|
|
};
|
|
|
});
|
|
|
- batchMarking({items:request})
|
|
|
+ state.loading = true;
|
|
|
+ batchMarking({ items: request })
|
|
|
.then(() => {
|
|
|
state.loading = false;
|
|
|
handleSuccess();
|