|
|
@ -1,11 +1,10 @@ |
|
|
|
<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>实训项目</p> |
|
|
|
<p class="whitespace-nowrap">实训项目</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> |
|
|
@ -27,12 +26,11 @@ |
|
|
|
总得分: |
|
|
|
总得分: |
|
|
|
<span class="total-score">{{ grade }}</span> |
|
|
|
<span class="total-score">{{ grade }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div class="actions"> |
|
|
|
<el-button class="h-[40px]" @click="toReport" v-if="isSubmit">查看实验报告</el-button> |
|
|
|
<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 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> |
|
|
|
<el-button type="primary" class="submit btn h-[40px]" :loading="submiting" @click="confirmSubmit" :disabled="isSubmit || !projectList.length">提交</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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> |
|
|
|