|
|
@ -1,13 +1,15 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="flex header"> |
|
|
|
<div class="flex header" :class="{hh: $config.isHh}"> |
|
|
|
<p>{{$config.title}}</p> |
|
|
|
<img v-if="$config.isHh" src="../assets/img/logo-hh.png" alt="" class="logo"> |
|
|
|
|
|
|
|
<p v-else>{{$config.title}}</p> |
|
|
|
<div class="bt"> |
|
|
|
<div class="bt"> |
|
|
|
<el-button type="primary" @click="back()">退出实验</el-button> |
|
|
|
<el-button type="primary" @click="back()">退出实验</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex center"> |
|
|
|
<div class="flex center"> |
|
|
|
|
|
|
|
<p v-if="$config.isHh" style="font-size: 18px">{{$config.title}}</p> |
|
|
|
<p>编程语言</p> |
|
|
|
<p>编程语言</p> |
|
|
|
<el-input placeholder="请输入内容" v-model="value" :disabled="true"></el-input> |
|
|
|
<el-input placeholder="请输入内容" v-model="value" :disabled="true"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -111,7 +113,7 @@ export default { |
|
|
|
? parseInt(sessionStorage.getItem("timer")) |
|
|
|
? parseInt(sessionStorage.getItem("timer")) |
|
|
|
: 0, |
|
|
|
: 0, |
|
|
|
codeKey: 1, |
|
|
|
codeKey: 1, |
|
|
|
host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn/' : 'http://www.occupationlab.com/' |
|
|
|
host: this.$config.host |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -187,17 +189,9 @@ export default { |
|
|
|
back() { |
|
|
|
back() { |
|
|
|
this.leavePage() |
|
|
|
this.leavePage() |
|
|
|
if(this.projectPermissions){ |
|
|
|
if(this.projectPermissions){ |
|
|
|
if(location.host.includes('liuwanr.cn')){ |
|
|
|
location.href = `${this.host}#/dashboard#2` |
|
|
|
location.href = `http://www.liuwanr.cn/#/dashboard#2` |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
location.href = `http://www.occupationlab.com/#/dashboard#2` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(location.host.includes('liuwanr.cn')){ |
|
|
|
location.href = `${this.host}#/dashboard#1` |
|
|
|
location.href = `http://www.liuwanr.cn/#/dashboard#1` |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
location.href = `http://www.occupationlab.com/#/dashboard#1` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.mainindex.getClearTime(); |
|
|
|
this.$refs.mainindex.getClearTime(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -363,6 +357,10 @@ export default { |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
height: 58px; |
|
|
|
height: 58px; |
|
|
|
line-height: 58px; |
|
|
|
line-height: 58px; |
|
|
|
|
|
|
|
.logo{ |
|
|
|
|
|
|
|
width: 200px; |
|
|
|
|
|
|
|
margin-left: 10px; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//公共类 |
|
|
|
//公共类 |
|
|
|
p { |
|
|
|
p { |
|
|
|