|
|
@ -117,8 +117,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div :class="['toggle-panel', {active: pannelVisible}]"> |
|
|
|
<div :class="['toggle-panel', {active: pannelVisible}]"> |
|
|
|
<div @click="togglePannel"> |
|
|
|
<div @click="togglePannel"> |
|
|
|
<img :src="require(`@/assets/images/system/${systemId}/left.png`)" alt class="c-p" v-if="pannelVisible" /> |
|
|
|
<img :src="require(`@/assets/images/system/${$config.defaultSystem}/left.png`)" alt class="c-p" v-if="pannelVisible" /> |
|
|
|
<img :src="require(`@/assets/images/system/${systemId}/right.png`)" alt class="c-p" v-if="!pannelVisible" /> |
|
|
|
<img :src="require(`@/assets/images/system/${$config.defaultSystem}/right.png`)" alt class="c-p" v-if="!pannelVisible" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -130,12 +130,13 @@ import util from '@/util' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
systemId: Number(util.getCookie('systemId') || 1), |
|
|
|
systemId: util.getCookie('systemId') || 1, |
|
|
|
classId: util.getCookie('classId'), |
|
|
|
classId: util.getCookie('classId'), |
|
|
|
className: util.getCookie('className') ? decodeURI(util.getCookie('className')) : '', |
|
|
|
className: util.getCookie('className') ? decodeURI(util.getCookie('className')) : '', |
|
|
|
courseId: util.getCookie('courseId'), |
|
|
|
courseId: util.getCookie('courseId'), |
|
|
|
projectId: util.getCookie('projectId') ? Number(util.getCookie('projectId')) : '', |
|
|
|
projectId: util.getCookie('projectId') ? Number(util.getCookie('projectId')) : '', |
|
|
|
assessmentId: util.getCookie('assessmentId'), |
|
|
|
assessmentId: util.getCookie('assessmentId'), |
|
|
|
|
|
|
|
curSystemId: 1, |
|
|
|
projectPermissions: 0, // 项目权限(0、练习 1、考核 2、竞赛) |
|
|
|
projectPermissions: 0, // 项目权限(0、练习 1、考核 2、竞赛) |
|
|
|
isSubmit: false, // 是否提交的标识 |
|
|
|
isSubmit: false, // 是否提交的标识 |
|
|
|
entryTime: new Date(), |
|
|
|
entryTime: new Date(), |
|
|
@ -232,6 +233,9 @@ export default { |
|
|
|
projectName: project.projectName |
|
|
|
projectName: project.projectName |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const { systemId } = project |
|
|
|
|
|
|
|
this.curSystemId = systemId |
|
|
|
|
|
|
|
this.$parent.getModelStatus(systemId) |
|
|
|
this.curReq = curReq // 实验要求默认全部展开,通过judgmentId来选中item |
|
|
|
this.curReq = curReq // 实验要求默认全部展开,通过judgmentId来选中item |
|
|
|
this.points = points |
|
|
|
this.points = points |
|
|
|
this.taskList = points // 实验任务 |
|
|
|
this.taskList = points // 实验任务 |
|
|
@ -240,7 +244,7 @@ export default { |
|
|
|
this.experimentDescription = project.experimentDescription |
|
|
|
this.experimentDescription = project.experimentDescription |
|
|
|
this.experimentHint = project.experimentHint |
|
|
|
this.experimentHint = project.experimentHint |
|
|
|
this.hintOpen = !res.projectManage.hintOpen // 0显示,1不显示 |
|
|
|
this.hintOpen = !res.projectManage.hintOpen // 0显示,1不显示 |
|
|
|
this.$emit('tell', projectId, this.points) |
|
|
|
this.$emit('tell', projectId, systemId, this.points) |
|
|
|
const isAss = this.projectPermissions == 1 // 是否是考核 |
|
|
|
const isAss = this.projectPermissions == 1 // 是否是考核 |
|
|
|
this.text = isAss ? '剩余' : '已用' |
|
|
|
this.text = isAss ? '剩余' : '已用' |
|
|
|
this.countVal = isAss ? (new Date(this.endTime).getTime() - Date.now()) / 1000 : 0 // 如果是考核,取考核的结束时间减去当前时间去做倒计时,练习则直接给0做计时 |
|
|
|
this.countVal = isAss ? (new Date(this.endTime).getTime() - Date.now()) / 1000 : 0 // 如果是考核,取考核的结束时间减去当前时间去做倒计时,练习则直接给0做计时 |
|
|
@ -349,7 +353,7 @@ export default { |
|
|
|
const item = points.find(n => n.judgmentId === e.judgmentId) |
|
|
|
const item = points.find(n => n.judgmentId === e.judgmentId) |
|
|
|
if (item && item.code) this.$set(e, 'code', item.code) |
|
|
|
if (item && item.code) this.$set(e, 'code', item.code) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$emit('tell', projectId, this.points) |
|
|
|
this.$emit('tell', projectId, this.curSystemId, this.points) |
|
|
|
this.$emit('recoveryCode', newJudgmentId + '') // 切换为缓存的判分点,tab索引值要为字符串 |
|
|
|
this.$emit('recoveryCode', newJudgmentId + '') // 切换为缓存的判分点,tab索引值要为字符串 |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => {}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -357,7 +361,7 @@ export default { |
|
|
|
const item = points.find(n => n.judgmentId === e.judgmentId) |
|
|
|
const item = points.find(n => n.judgmentId === e.judgmentId) |
|
|
|
if (item && item.code) this.$set(e, 'code', item.code) |
|
|
|
if (item && item.code) this.$set(e, 'code', item.code) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$emit('tell', projectId, this.points) |
|
|
|
this.$emit('tell', projectId, this.curSystemId, this.points) |
|
|
|
this.$emit('recoveryCode') |
|
|
|
this.$emit('recoveryCode') |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
@ -419,7 +423,7 @@ export default { |
|
|
|
e.answer = '' |
|
|
|
e.answer = '' |
|
|
|
e.retResult = '' |
|
|
|
e.retResult = '' |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$emit('tell', this.projectId, points) |
|
|
|
this.$emit('tell', this.projectId, this.curSystemId, points) |
|
|
|
this.$emit('recoveryCode') |
|
|
|
this.$emit('recoveryCode') |
|
|
|
this.startCount() |
|
|
|
this.startCount() |
|
|
|
}, |
|
|
|
}, |
|
|
@ -471,7 +475,7 @@ export default { |
|
|
|
projectName, |
|
|
|
projectName, |
|
|
|
assessmentId: this.assessmentId ? this.assessmentId : '', |
|
|
|
assessmentId: this.assessmentId ? this.assessmentId : '', |
|
|
|
totalScore: 100, // 判分点总分固定为100 |
|
|
|
totalScore: 100, // 判分点总分固定为100 |
|
|
|
systemId: this.systemId, |
|
|
|
systemId: this.curSystemId, |
|
|
|
purpose: this.experimentTarget, // 实验目的 |
|
|
|
purpose: this.experimentTarget, // 实验目的 |
|
|
|
attributesReqList |
|
|
|
attributesReqList |
|
|
|
} |
|
|
|
} |
|
|
|