|
|
@ -1,35 +1,50 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div v-show="loaded"> |
|
|
|
<div v-show="loaded"> |
|
|
|
<div class="header" :class="{hh: $config.isHh}"> |
|
|
|
<div class="header" |
|
|
|
<img v-if="$config.isHh" src="@/assets/images/logo-hh.png" alt="" class="logo"> |
|
|
|
:class="{hh: $config.isHh}"> |
|
|
|
|
|
|
|
<img v-if="$config.isHh" |
|
|
|
|
|
|
|
src="@/assets/images/logo-hh.png" |
|
|
|
|
|
|
|
alt="" |
|
|
|
|
|
|
|
class="logo"> |
|
|
|
<p v-else>{{curriculumName}}</p> |
|
|
|
<p v-else>{{curriculumName}}</p> |
|
|
|
<el-button class="back btn" type="primary" @click="back">退出实验</el-button> |
|
|
|
<el-button class="back btn" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="back">退出实验</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="top"> |
|
|
|
<div class="top"> |
|
|
|
<div class="language"> |
|
|
|
<div class="language"> |
|
|
|
<p v-if="$config.isHh" style="font-size: 18px">{{$config.title}}</p> |
|
|
|
<p v-if="$config.isHh" |
|
|
|
|
|
|
|
style="font-size: 18px">{{$config.title}}</p> |
|
|
|
<p>编程语言</p> |
|
|
|
<p>编程语言</p> |
|
|
|
<el-input placeholder="请输入内容" v-model="language" :disabled="true"></el-input> |
|
|
|
<el-input placeholder="请输入内容" |
|
|
|
|
|
|
|
v-model="language" |
|
|
|
|
|
|
|
:disabled="true"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inline-center"> |
|
|
|
<div class="inline-center"> |
|
|
|
<el-tooltip class="item" effect="dark" content="支持导入其它数据用于实验,总上传的文件大小不可以超过10M" placement="bottom"> |
|
|
|
<el-tooltip class="item" |
|
|
|
<i class="info el-icon-warning" style="margin-right: 10px"></i> |
|
|
|
effect="dark" |
|
|
|
|
|
|
|
content="支持导入其它数据用于实验,总上传的文件大小不可以超过10M" |
|
|
|
|
|
|
|
placement="bottom"> |
|
|
|
|
|
|
|
<i class="info el-icon-warning" |
|
|
|
|
|
|
|
style="margin-right: 10px"></i> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-document" @click="toData">我的数据</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
icon="el-icon-document" |
|
|
|
|
|
|
|
@click="toData">我的数据</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="tab"> |
|
|
|
<div class="tab"> |
|
|
|
<el-tabs v-model="curTab" type="card" @tab-click="judChange"> |
|
|
|
<el-tabs v-model="curTab" |
|
|
|
<el-tab-pane |
|
|
|
type="card" |
|
|
|
v-for="(item, i) in workbench" |
|
|
|
@tab-click="judChange"> |
|
|
|
|
|
|
|
<el-tab-pane v-for="(item, i) in workbench" |
|
|
|
:key="item.judgmentId" |
|
|
|
:key="item.judgmentId" |
|
|
|
:label="item.name" |
|
|
|
:label="item.name" |
|
|
|
:value="item.judgmentId" |
|
|
|
:value="item.judgmentId"> |
|
|
|
> |
|
|
|
<codemirror :ref="'code' + i" |
|
|
|
<codemirror |
|
|
|
|
|
|
|
:ref="'code' + i" |
|
|
|
|
|
|
|
:key="codeKey" |
|
|
|
:key="codeKey" |
|
|
|
:projectId.sync="projectId" |
|
|
|
:projectId.sync="projectId" |
|
|
|
:systemId.sync="systemId" |
|
|
|
:systemId.sync="systemId" |
|
|
@ -39,19 +54,16 @@ |
|
|
|
:answer.sync="item.answer" |
|
|
|
:answer.sync="item.answer" |
|
|
|
:retResult.sync="item.retResult" |
|
|
|
:retResult.sync="item.retResult" |
|
|
|
:modelIsShow.sync="modelIsShow" |
|
|
|
:modelIsShow.sync="modelIsShow" |
|
|
|
@cache="leavePage" |
|
|
|
@cache="leavePage"></codemirror> |
|
|
|
></codemirror> |
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="menu"> |
|
|
|
<div class="menu"> |
|
|
|
<testPanel |
|
|
|
<testPanel @tell="setPoints" |
|
|
|
@tell="setPoints" |
|
|
|
|
|
|
|
@recoveryCode="recoveryCode" |
|
|
|
@recoveryCode="recoveryCode" |
|
|
|
ref="mainindex" |
|
|
|
ref="mainindex" |
|
|
|
:workbench.sync="workbench" |
|
|
|
:workbench.sync="workbench"></testPanel> |
|
|
|
></testPanel> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -71,6 +83,7 @@ export default { |
|
|
|
courseId: Cookie.get('admin-courseId'), // 课程id |
|
|
|
courseId: Cookie.get('admin-courseId'), // 课程id |
|
|
|
curriculumName: Cookie.get('admin-curriculumName') ? unescape(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 |
|
|
|
curriculumName: Cookie.get('admin-curriculumName') ? unescape(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 |
|
|
|
assessmentId: Cookie.get('admin-assessmentId'), // 考核id |
|
|
|
assessmentId: Cookie.get('admin-assessmentId'), // 考核id |
|
|
|
|
|
|
|
mallId: Cookie.get('admin-mallId'), |
|
|
|
projectId: '', |
|
|
|
projectId: '', |
|
|
|
systemId: '', |
|
|
|
systemId: '', |
|
|
|
modelIsShow: false, // 导入模型按钮是否显示 |
|
|
|
modelIsShow: false, // 导入模型按钮是否显示 |
|
|
@ -185,7 +198,7 @@ export default { |
|
|
|
href += `match/list` |
|
|
|
href += `match/list` |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 练习 |
|
|
|
// 练习 |
|
|
|
href += `station/preview?courseId=${this.courseId}&curriculumName=${this.curriculumName}` |
|
|
|
href += `station/preview?courseId=${this.courseId}&curriculumName=${this.curriculumName}&mallId=${this.mallId}` |
|
|
|
} |
|
|
|
} |
|
|
|
location.href = href |
|
|
|
location.href = href |
|
|
|
}, |
|
|
|
}, |
|
|
@ -287,7 +300,7 @@ export default { |
|
|
|
color: #bfbfbf; |
|
|
|
color: #bfbfbf; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
opacity: .9; |
|
|
|
opacity: 0.9; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |