mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
feat:增加评估答题开始时间
This commit is contained in:
@@ -326,6 +326,7 @@ import { request, usePage, useRequest } from "@/api/request";
|
||||
import { ASSESSMENT_QUERY, ASSESSMENT_SUBMIT } from "@/api/api";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ref } from "vue";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
const {
|
||||
query: { courseId, id: taskId, infoId, type, pName, sName, chapterOrStageId, projectStatus, projectEndTime },
|
||||
@@ -341,7 +342,7 @@ console.log('我是查询评估的参数', { id: courseId, type, chapterOrStageI
|
||||
console.log('我是需要排序得题目', data)
|
||||
|
||||
// 答题时间
|
||||
const answerTime = new Date();
|
||||
const answerTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
|
||||
|
||||
console.log('录入首次进入页面时间', answerTime)
|
||||
|
||||
@@ -445,6 +446,7 @@ function submit() {
|
||||
taskId: taskId ? taskId : 0,
|
||||
type,
|
||||
result: JSON.stringify(data.value),
|
||||
beginTime: answerTime
|
||||
}).then(() => {
|
||||
open();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user