|
|
|
@ -164,7 +164,7 @@ |
|
|
|
|
<script> |
|
|
|
|
import newmain from "../util/newMain"; |
|
|
|
|
import quill from "@/components/quill"; |
|
|
|
|
import util from '@/util' |
|
|
|
|
import Util from '@/util' |
|
|
|
|
import Config from '@/config' |
|
|
|
|
import Cookie from 'js-cookie' |
|
|
|
|
import 'quill/dist/quill.core.css'; |
|
|
|
@ -824,7 +824,7 @@ export default { |
|
|
|
|
const date = await this.getNow() |
|
|
|
|
const { entryTime } = this |
|
|
|
|
const timeSum = Math.ceil((date - entryTime) / 60000) // 计算实验用时(分钟),向上取整 |
|
|
|
|
const submitTime = util.formatDate('yyyy-MM-dd hh:mm:ss', date) |
|
|
|
|
const submitTime = Util.formatDate('yyyy-MM-dd hh:mm:ss', date) |
|
|
|
|
const projectId = this.projectId |
|
|
|
|
const pro = this.projectList.find(e => e.projectId == projectId) |
|
|
|
|
const projectName = pro ? pro.projectName : '' // 获取项目名称 |
|
|
|
@ -847,7 +847,7 @@ export default { |
|
|
|
|
classId: this.classId ? this.classId : '', |
|
|
|
|
className: this.className ? this.className : '', |
|
|
|
|
curriculumId: this.courseId, |
|
|
|
|
startTime: util.formatDate('yyyy-MM-dd hh:mm:ss', entryTime), // 取页面进入的时间 |
|
|
|
|
startTime: Util.formatDate('yyyy-MM-dd hh:mm:ss', entryTime), // 取页面进入的时间 |
|
|
|
|
endTime: this.projectPermissions ? this.endTime : submitTime, // 结束时间(考核:直接从职站取考核的结束时间;练习:取提交时间) |
|
|
|
|
submitTime, // 提交时间,即当前时间(这3个时间都是传完整的日期时间格式) |
|
|
|
|
timeSum, |
|
|
|
@ -881,7 +881,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
score += e.examScore // 计算总分 |
|
|
|
|
}) |
|
|
|
|
this.grade = util.handleZero(score) // 前置加0(竞赛不显示分数) |
|
|
|
|
this.grade = Util.handleZero(score) // 前置加0(竞赛不显示分数) |
|
|
|
|
this.reportId = reportId |
|
|
|
|
this.$store.commit('setReportId', reportId) |
|
|
|
|
this.$store.commit('setTaskList', taskList) |
|
|
|
|