feat:增加评估答题开始时间

This commit is contained in:
wyx
2023-01-10 10:36:07 +08:00
parent e67dc797aa
commit dabb995a30

View File

@@ -326,6 +326,7 @@ import { request, usePage, useRequest } from "@/api/request";
import { ASSESSMENT_QUERY, ASSESSMENT_SUBMIT } from "@/api/api"; import { ASSESSMENT_QUERY, ASSESSMENT_SUBMIT } from "@/api/api";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { ref } from "vue"; import { ref } from "vue";
import dayjs from "dayjs";
const { const {
query: { courseId, id: taskId, infoId, type, pName, sName, chapterOrStageId, projectStatus, projectEndTime }, query: { courseId, id: taskId, infoId, type, pName, sName, chapterOrStageId, projectStatus, projectEndTime },
@@ -341,7 +342,7 @@ console.log('我是查询评估的参数', { id: courseId, type, chapterOrStageI
console.log('我是需要排序得题目', data) console.log('我是需要排序得题目', data)
// 答题时间 // 答题时间
const answerTime = new Date(); const answerTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
console.log('录入首次进入页面时间', answerTime) console.log('录入首次进入页面时间', answerTime)
@@ -445,6 +446,7 @@ function submit() {
taskId: taskId ? taskId : 0, taskId: taskId ? taskId : 0,
type, type,
result: JSON.stringify(data.value), result: JSON.stringify(data.value),
beginTime: answerTime
}).then(() => { }).then(() => {
open(); open();
}); });