From 18dc0ba04534fe3a0b4e988e9e7e0048b8da12f4 Mon Sep 17 00:00:00 2001 From: "jialong.yu" Date: Fri, 28 Jan 2022 17:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=A6=81=E7=94=A8=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E5=BD=B1=E5=93=8D=E8=BF=9B=E8=A1=8C=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=80=83=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TestPanel.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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)