|
|
|
@ -56,8 +56,8 @@ |
|
|
|
|
<p>实验目标</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="font_css"> |
|
|
|
|
<div class="experimentalGoal"> |
|
|
|
|
<div class="break-all" v-html="experimentalGoal"></div> |
|
|
|
|
<div class="experimentTarget"> |
|
|
|
|
<div class="break-all" v-html="experimentTarget"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -98,21 +98,21 @@ |
|
|
|
|
<el-main> |
|
|
|
|
<el-tabs v-model="activeName" type="card"> |
|
|
|
|
<el-tab-pane label="案例" name="first"> |
|
|
|
|
<div class="break-all" v-html="caseDescription"></div> |
|
|
|
|
<div class="break-all" v-html="experimentDescription"></div> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="实验要求" name="second"> |
|
|
|
|
<el-collapse v-model="activeNames"> |
|
|
|
|
<el-collapse-item v-for="(loop, index) in points" :key="index"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<i class="el-icon-s-ticket"></i> |
|
|
|
|
<span style="font-size:16px">{{loop.judgmentPointsName}}</span> |
|
|
|
|
<span style="font-size:16px">{{loop.experimentalRequirements}}</span> |
|
|
|
|
</template> |
|
|
|
|
<div class="break-all" v-html="loop.experimentalRequirements"></div> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
</el-collapse> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="实验提示" name="fifth" v-if="isstartexperimentSuggests"> |
|
|
|
|
<div class="break-all" v-html="experimentSuggests"></div> |
|
|
|
|
<div class="break-all" v-html="experimentHint"></div> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</el-main> |
|
|
|
@ -183,9 +183,9 @@ export default { |
|
|
|
|
actEndTime: "", //倒计时结束时间 |
|
|
|
|
value1: "", //选中后绑定的对象 |
|
|
|
|
value: [], |
|
|
|
|
experimentalGoal: "", //实验目标 |
|
|
|
|
caseDescription: "", //案例描述 |
|
|
|
|
experimentSuggests: "", //实验提示 |
|
|
|
|
experimentTarget: "", //实验目标 |
|
|
|
|
experimentDescription: "", //案例描述 |
|
|
|
|
experimentHint: "", //实验提示 |
|
|
|
|
judgmentPointsName: "", // 判分点名称 |
|
|
|
|
points: [], |
|
|
|
|
activeNames: [], |
|
|
|
@ -267,7 +267,7 @@ export default { |
|
|
|
|
this.userId = this.getCookie("userId"); |
|
|
|
|
this.studentId = this.getCookie("studentId"); |
|
|
|
|
this.projectId = this.getCookie("projectId"); |
|
|
|
|
// this.courseId = this.getCookie("courseId"); |
|
|
|
|
this.courseId = this.getCookie("courseId"); |
|
|
|
|
this.startTime = this.getCookie("startTime") ? new Date(this.getCookie("startTime")).getTime() : '' |
|
|
|
|
this.stopTime = this.getCookie("stopTime") ? new Date(this.getCookie("stopTime")).getTime() : '' |
|
|
|
|
|
|
|
|
@ -459,33 +459,30 @@ export default { |
|
|
|
|
this.projectId = type == 2 ? project[0].projectId : this.projectId |
|
|
|
|
if(type == 2) this.getQueryProject(0,1) |
|
|
|
|
this.projectPermissions = type == 1 ? project[0].projectPermissions : this.projectPermissions |
|
|
|
|
this.$emit("tell", this.value1, this.projectPermissions,this.isRecovery ? this.workbenchCus : []); |
|
|
|
|
this.experimentalGoal = project[0].experimentalGoal; |
|
|
|
|
this.caseDescription = project[0].caseDescription; |
|
|
|
|
this.experimentSuggests = project[0].experimentSuggests; |
|
|
|
|
this.experimentTarget = project[0].experimentTarget; |
|
|
|
|
this.experimentDescription = project[0].experimentDescription; |
|
|
|
|
this.experimentHint = project[0].experimentHint; |
|
|
|
|
this.actEndTime = project[0].endTime; |
|
|
|
|
this.isRecovery = false |
|
|
|
|
}, |
|
|
|
|
getQueryProject(projectId,type) { |
|
|
|
|
//项目名称+实验目标+案例描述+实验提示+实验要求 |
|
|
|
|
this.$get(this.api.QueryProject, { |
|
|
|
|
studentId: this.studentId, |
|
|
|
|
projectId: projectId ? projectId : this.projectId, |
|
|
|
|
assessmentId: this.assessmentId |
|
|
|
|
projectId: projectId ? projectId : this.projectId |
|
|
|
|
}) |
|
|
|
|
.then(res => { |
|
|
|
|
if(!type){ |
|
|
|
|
this.handleData(res.message.project,1) |
|
|
|
|
this.projectId = res.message.project[0].projectId |
|
|
|
|
this.handleData(res.projectManage,1) |
|
|
|
|
this.projectId = res.projectManage[0].projectId |
|
|
|
|
} |
|
|
|
|
this.points = res.message.points; |
|
|
|
|
|
|
|
|
|
this.points = res.projectJudgmentVos; |
|
|
|
|
this.$emit("tell", this.value1, this.projectPermissions, this.points); |
|
|
|
|
// 切换实训项目-标签页回到第一个位置 |
|
|
|
|
if (this.points.length) { |
|
|
|
|
this.$parent.workbench1 = '0'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.tableData = res.message.points; |
|
|
|
|
this.tableData = res.message.projectJudgmentVos; |
|
|
|
|
let arr1 = this.tableData; |
|
|
|
|
let result1 = arr1.map(e => e.judgmentPointsId); |
|
|
|
|
this.judgmentPointsIds = this.judgmentPointsIds.concat(result1) |
|
|
|
@ -541,10 +538,11 @@ export default { |
|
|
|
|
getProjects(){ |
|
|
|
|
let data = { |
|
|
|
|
systemId: 1, |
|
|
|
|
schoolId: '' |
|
|
|
|
cId: this.courseId, |
|
|
|
|
permissions: 0 |
|
|
|
|
} |
|
|
|
|
this.$get(`${this.api.queryTestProject}`,data).then(res => { |
|
|
|
|
this.handleData(res.message,2) |
|
|
|
|
this.handleData(res.projects,2) |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}, |
|
|
|
|
selectProject(){ |
|
|
|
|