实验要求默认全部展开

develop
jialong.yu 3 years ago
parent e12ee2a220
commit ade1279281
  1. 12
      src/components/TestPanel.vue

@ -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 = '' // codeIdcodeId
e.answer = '' //
curReq.push(e.judgmentId)
})
this.curReq = curReq // judgmentIditem
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;

Loading…
Cancel
Save