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 { 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();
});