|
|
|
@ -98,12 +98,12 @@ |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="实验要求" name="second"> |
|
|
|
|
<el-collapse v-model="curReq"> |
|
|
|
|
<el-collapse-item v-for="(loop, index) in points" :key="index"> |
|
|
|
|
<el-collapse-item v-for="item in points" :name="item.judgmentId" :key="item.judgmentId"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<i class="el-icon-s-ticket"></i> |
|
|
|
|
<div class="break-all" v-html="loop.name"></div> |
|
|
|
|
<div class="break-all" v-html="item.name"></div> |
|
|
|
|
</template> |
|
|
|
|
<div class="break-all" v-html="loop.experimentalRequirements"></div> |
|
|
|
|
<div class="break-all" v-html="item.experimentalRequirements"></div> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
</el-collapse> |
|
|
|
|
</el-tab-pane> |
|
|
|
@ -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; |
|
|
|
|