实验面板小屏幕下样式

master
yujialong 6 months ago
parent e0f0ed0092
commit ac1914bf1d
  1. 129
      src/components/TestPanel.vue

@ -4,61 +4,59 @@
<el-container class="scrollbar" <el-container class="scrollbar"
id="container" id="container"
v-show="pannelVisible"> v-show="pannelVisible">
<el-header id="header"> <el-header class="panel-header"
<div class="panel-header"
id="panelHeader"> id="panelHeader">
<div class="project"> <div class="project">
<div class="inline-center"> <div class="inline-center">
<p>实训项目</p> <p class="whitespace-nowrap">实训项目</p>
<el-tooltip effect="dark" <el-tooltip effect="dark"
content="点击右侧“下三角”按钮可切换实验项目" content="点击右侧“下三角”按钮可切换实验项目"
placement="bottom"> placement="bottom">
<i class="info el-icon-warning" <i class="info el-icon-warning"
style="margin-left: 10px"></i> style="margin-left: 10px"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<el-select v-model="projectId" <el-select v-model="projectId"
placeholder="请选择" placeholder="请选择"
class="select" class="select"
:disabled="projectPermissions != 0" :disabled="projectPermissions != 0"
@change="selectProject" @change="selectProject"
style="flex: 1"> style="flex: 1">
<el-option v-for="(item, i) in projectList" <el-option v-for="(item, i) in projectList"
:key="item.projectId" :key="item.projectId"
:label="i + 1 + '. ' + item.projectName" :label="i + 1 + '. ' + item.projectName"
:value="item.projectId"></el-option> :value="item.projectId"></el-option>
</el-select> </el-select>
</div> </div>
<div class="item"> <div class="item">
<div class="count"> <div class="count">
实训{{text}}时间 实训{{text}}时间
<span>{{day}}</span> <span>{{day}}</span>
<span>{{hour}}</span>小时 <span>{{hour}}</span>小时
<span>{{minutes}}</span> <span>{{minutes}}</span>
<span>{{seconds}}</span> <span>{{seconds}}</span>
</div> </div>
</div> </div>
<div v-if="!competitionId" <div v-if="!competitionId"
class="item"> class="item">
<div> <div>
总得分 总得分
<span class="total-score">{{grade}}</span> <span class="total-score">{{grade}}</span>
</div> </div>
</div> </div>
<div> <div class="actions">
<el-button @click="toggleReport" <el-button @click="toggleReport"
v-if="$parent.language && !isSubmit && !competitionId">填写实验报告</el-button> v-if="$parent.language && !isSubmit && !competitionId">填写实验报告</el-button>
<el-button @click="toReport" <el-button @click="toReport"
v-if="isSubmit && !competitionId">查看实验报告</el-button> v-if="isSubmit && !competitionId">查看实验报告</el-button>
<el-button class="reload" <el-button class="reload"
@click="reloadConfirm" @click="reloadConfirm"
v-show="projectPermissions == 0">重新开始</el-button> v-show="projectPermissions == 0">重新开始</el-button>
<el-button type="primary" <el-button type="primary"
class="submit btn" class="submit btn"
@click="confirmSubmit" @click="confirmSubmit"
:disabled="isSubmit || !projectList.length">提交</el-button> :disabled="isSubmit || !projectList.length">提交</el-button>
</div> </div>
</div>
</el-header> </el-header>
<div class="report-wrap" <div class="report-wrap"
v-if="reportVisible"> v-if="reportVisible">
@ -1322,6 +1320,8 @@ export default {
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;
@ -1360,6 +1360,9 @@ export default {
background-color: #202020; background-color: #202020;
} }
} }
.whitespace-nowrap {
white-space: nowrap;
}
/deep/.des { /deep/.des {
font-size: 16px; font-size: 16px;
font-family: 'Microsoft YaHei'; font-family: 'Microsoft YaHei';
@ -1483,6 +1486,7 @@ export default {
font-size: 14px; font-size: 14px;
} }
/deep/.select { /deep/.select {
min-width: 180px;
.el-select__caret:before { .el-select__caret:before {
content: '\e78f'; content: '\e78f';
padding: 3px; padding: 3px;
@ -1603,4 +1607,21 @@ export default {
.text-danger { .text-danger {
color: #f56c6c; color: #f56c6c;
} }
@media (max-width: 1550px) {
.panel-header {
.count {
margin-left: 0;
}
}
}
@media (max-width: 1400px) {
.panel-header {
.actions {
position: absolute;
top: 70px;
right: 30px;
}
}
}
</style> </style>
Loading…
Cancel
Save