diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index 7bb636c..ae9af6e 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -220,6 +220,12 @@ export default { e.retResult = '' // 返回结果(1为正确 0为错误) curReq.push(e.judgmentId) }) + if (this.projectPermissions) { + this.projectList = [{ + projectId: projectId, + projectName: project.projectName + }] + } this.curReq = curReq // 实验要求默认全部展开,通过judgmentId来选中item this.points = points this.taskList = points // 实验任务 @@ -256,6 +262,7 @@ export default { const classId = this.classId // 匹配到该考核,并且已经提交过(有reportId则说明有实验记录),并且classId跟当前用户的classId相同,就提示提交了考核然后返回上一页 if (list.find(e => e.assessmentId == assessmentId && e.reportId && e.classId == classId)) { + console.log(33) done = true this.isSubmit = true newmain.$emit('isSubmit', this.isSubmit)