|
|
|
@ -6,10 +6,9 @@ |
|
|
|
|
<p v-if="isAI">账号:{{ account }};密码:112233aa</p> |
|
|
|
|
<el-button class="back btn" type="primary" @click="back">退出实验</el-button> |
|
|
|
|
</div> |
|
|
|
|
<template v-if="isAI"> |
|
|
|
|
<iframe class="AI" src="https://ai.huorantech.cn/" frameborder="0" width="100%"></iframe> |
|
|
|
|
</template> |
|
|
|
|
<template v-else-if="!notAllowed"> |
|
|
|
|
<template v-if="!notAllowed"> |
|
|
|
|
<iframe v-if="isAI" class="AI" src="https://ai.huorantech.cn/" frameborder="0" width="100%"></iframe> |
|
|
|
|
<template v-else> |
|
|
|
|
<div class="top"> |
|
|
|
|
<div class="language"> |
|
|
|
|
<p v-if="$config.isHh" style="font-size: 18px">{{ $config.title }}</p> |
|
|
|
@ -42,6 +41,7 @@ |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<div class="menu"> |
|
|
|
|
<testPanel @tell="setPoints" @recoveryCode="recoveryCode" ref="mainindex" :workbench.sync="workbench"> |
|
|
|
@ -75,7 +75,7 @@ export default { |
|
|
|
|
curriculumName: Cookie.get('admin-curriculumName') ? decodeURIComponent(Cookie.get('admin-curriculumName')) : 'python', // 课程名称 |
|
|
|
|
assessmentId: Cookie.get('admin-assessmentId'), // 考核id |
|
|
|
|
mallId: Cookie.get('admin-mallId'), |
|
|
|
|
language: Cookie.get('admin-language') || 'python3.10.9', // 编程语言 |
|
|
|
|
language: Cookie.get('admin-language') || 'python3.7.9', // 编程语言 |
|
|
|
|
projectId: '', |
|
|
|
|
systemId: '', |
|
|
|
|
modelIsShow: false, // 导入模型按钮是否显示 |
|
|
|
@ -100,7 +100,7 @@ export default { |
|
|
|
|
curTab: '', // 选中后绑定的对象 |
|
|
|
|
workbench: [], // 判分点切换列表 |
|
|
|
|
codeKey: 1, // 编辑器索引 |
|
|
|
|
notAllowed: 1, |
|
|
|
|
notAllowed: 0, |
|
|
|
|
account: '', |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -110,11 +110,12 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
if (this.isAI) { |
|
|
|
|
this.language = 'vscode' |
|
|
|
|
this.handleAI() |
|
|
|
|
document.body.style.overflow = 'hidden' |
|
|
|
|
this.loaded = true |
|
|
|
|
} else { |
|
|
|
|
Cookie.set('admin-language', 'python3.10.9') |
|
|
|
|
Cookie.set('admin-language', 'python3.7.9') |
|
|
|
|
// const opened = +localStorage.getItem('opened') |
|
|
|
|
// if (opened) { |
|
|
|
|
// localStorage.setItem('opened', opened + 1) |
|
|
|
|