mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +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 { 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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user