|
|
@ -1,38 +1,36 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div v-if="!hidePanel" :class="['panel', { active: visible }]" id="panel" ref="container" :style="style"> |
|
|
|
<div v-if="!hidePanel" :class="['panel', { active: visible }]" id="panel" ref="container" :style="style"> |
|
|
|
<el-container class="scrollbar" id="container" v-show="visible"> |
|
|
|
<el-container class="scrollbar" id="container" v-show="visible"> |
|
|
|
<el-header id="header"> |
|
|
|
<el-header class="panel-header" id="panelHeader"> |
|
|
|
<div class="panel-header" id="panelHeader"> |
|
|
|
<div class="project"> |
|
|
|
<div class="project"> |
|
|
|
<div class="inline-flex items-center"> |
|
|
|
<div class="inline-flex items-center"> |
|
|
|
<p class="whitespace-nowrap">实训项目</p> |
|
|
|
<p>实训项目</p> |
|
|
|
<el-tooltip effect="dark" content="点击右侧“下三角”按钮可切换实验项目" placement="bottom"> |
|
|
|
<el-tooltip effect="dark" content="点击右侧“下三角”按钮可切换实验项目" placement="bottom"> |
|
|
|
<i class="info el-icon-warning" style="margin-left: 10px"></i> |
|
|
|
<i class="info el-icon-warning" style="margin-left: 10px"></i> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<el-select v-model="param.projectId" placeholder="请选择" class="select" :disabled="per != 0" @change="getCache(1)"> |
|
|
|
|
|
|
|
<el-option v-for="(item, i) in projectList" :key="item.projectId" :label="i + 1 + '. ' + item.projectName" :value="item.projectId"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="item"> |
|
|
|
|
|
|
|
<div class="count"> |
|
|
|
|
|
|
|
实训{{ text }}时间 <span>{{ day }}</span |
|
|
|
|
|
|
|
>天 <span>{{ hour }}</span |
|
|
|
|
|
|
|
>小时 <span>{{ minutes }}</span |
|
|
|
|
|
|
|
>分 <span>{{ seconds }}</span |
|
|
|
|
|
|
|
>秒 |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="per !== 2" class="item"> |
|
|
|
|
|
|
|
总得分: |
|
|
|
|
|
|
|
<span class="total-score">{{ grade }}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-select v-model="param.projectId" placeholder="请选择" class="select" :disabled="per != 0" @change="getCache(1)"> |
|
|
|
<el-button class="h-[40px]" @click="toReport" v-if="isSubmit">查看实验报告</el-button> |
|
|
|
<el-option v-for="(item, i) in projectList" :key="item.projectId" :label="i + 1 + '. ' + item.projectName" :value="item.projectId"></el-option> |
|
|
|
<el-button class="reload h-[40px]" @click="reloadConfirm" v-show="per == 0">重新开始</el-button> |
|
|
|
</el-select> |
|
|
|
<el-button type="primary" class="submit btn h-[40px]" :loading="submiting" @click="confirmSubmit" :disabled="isSubmit || !projectList.length">提交</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="item"> |
|
|
|
|
|
|
|
<div class="count"> |
|
|
|
|
|
|
|
实训{{ text }}时间 <span>{{ day }}</span |
|
|
|
|
|
|
|
>天 <span>{{ hour }}</span |
|
|
|
|
|
|
|
>小时 <span>{{ minutes }}</span |
|
|
|
|
|
|
|
>分 <span>{{ seconds }}</span |
|
|
|
|
|
|
|
>秒 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="per !== 2" class="item"> |
|
|
|
|
|
|
|
总得分: |
|
|
|
|
|
|
|
<span class="total-score">{{ grade }}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="actions"> |
|
|
|
|
|
|
|
<el-button class="h-[40px]" @click="toReport" v-if="isSubmit">查看实验报告</el-button> |
|
|
|
|
|
|
|
<el-button class="reload h-[40px]" @click="reloadConfirm" v-show="per == 0">重新开始</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" class="submit btn h-[40px]" :loading="submiting" @click="confirmSubmit" :disabled="isSubmit || !projectList.length">提交</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-header> |
|
|
|
</el-header> |
|
|
|
<el-container id="infoContainer"> |
|
|
|
<el-container id="infoContainer"> |
|
|
|
<el-aside id="aside" width="30%"> |
|
|
|
<el-aside id="aside" width="30%"> |
|
|
@ -749,19 +747,14 @@ onUnmounted(() => { |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.el-main { |
|
|
|
.el-main { |
|
|
|
width: 60%; |
|
|
|
@apply w-[60%] p-0 mr-5 mb-2 ml-2 text-[#333] text-base whitespace-pre-wrap bg-white overflow-hidden; |
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
padding: 0; |
|
|
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
|
|
margin: 0px 20px 10px 10px; |
|
|
|
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
.panel-header { |
|
|
|
.panel-header { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
height: auto !important; |
|
|
|
.project { |
|
|
|
.project { |
|
|
|
display: inline-flex; |
|
|
|
display: inline-flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
@ -902,7 +895,7 @@ onUnmounted(() => { |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(.select) { |
|
|
|
:deep(.select) { |
|
|
|
@apply flex-1; |
|
|
|
@apply flex-1 min-w-[180px]; |
|
|
|
.el-select__caret:before { |
|
|
|
.el-select__caret:before { |
|
|
|
// content: '\e78f'; |
|
|
|
// content: '\e78f'; |
|
|
|
padding: 3px; |
|
|
|
padding: 3px; |
|
|
@ -976,4 +969,13 @@ onUnmounted(() => { |
|
|
|
.ql-editor { |
|
|
|
.ql-editor { |
|
|
|
@apply text-sm; |
|
|
|
@apply text-sm; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@media (max-width: 1450px) { |
|
|
|
|
|
|
|
.panel-header { |
|
|
|
|
|
|
|
.actions { |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 70px; |
|
|
|
|
|
|
|
right: 30px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|