From ade1279281ce8282f2240d82243c8204d07f0692 Mon Sep 17 00:00:00 2001 From: "jialong.yu" Date: Mon, 27 Dec 2021 20:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E8=A6=81=E6=B1=82=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=85=A8=E9=83=A8=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TestPanel.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index a78c367..4bd3743 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -98,12 +98,12 @@ - + -
+
@@ -213,11 +213,14 @@ export default { }).then(res => { const points = res.projectJudgmentVos const project = res.projectManage - points.map(e => { + const curReq = [] + points.map((e, i) => { e.code = '' // 后端返回的字段没有code,要手动加上以存储运行的代码 e.codeId = '' // 代码通过接口传给后端运行后,接口会返回一个codeId,提交的时候需要传这个codeId e.answer = '' // 代码运行结果 + curReq.push(e.judgmentId) }) + this.curReq = curReq // 实验要求默认全部展开,通过judgmentId来选中item this.points = points this.taskList = points // 实验任务 this.judgmentId = points[0].judgmentId // 默认取第一个判分点 @@ -660,6 +663,7 @@ export default { padding: 10px 0; } .el-input--suffix .el-input__inner { + height: 40px !important; padding-right: 50px; margin-left: 15px; color: #333;