|
@@ -1,5 +1,166 @@
|
|
|
<script setup lang="ts"></script>
|
|
|
|
|
|
-<template><div>runtest</div></template>
|
|
|
+<template>
|
|
|
+ <div class="runtest">
|
|
|
+ <el-scrollbar>
|
|
|
+ <div class="content-A">
|
|
|
+ <el-scrollbar height="100%">
|
|
|
+ <div class="test-list">
|
|
|
+ <div
|
|
|
+ v-for="item in 50"
|
|
|
+ :key="item"
|
|
|
+ class="test-list-item"
|
|
|
+ :class="item === 2 ? 'active' : ''"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="body"
|
|
|
+ :class="['success', 'error', 'progress', 'wait']"
|
|
|
+ >
|
|
|
+ <div class="line"></div>
|
|
|
+ <div class="head">合格</div>
|
|
|
+ <div class="icon">图标</div>
|
|
|
+ <div class="name">增益测试</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+ <div class="content-B">
|
|
|
+ <div class="content-B-1"></div>
|
|
|
+ <div class="content-B-2"></div>
|
|
|
+ <div class="content-B-3"></div>
|
|
|
+ <div class="content-B-4"></div>
|
|
|
+ </div>
|
|
|
+ <div class="content-C"></div>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
|
|
|
-<style scoped lang="scss"></style>
|
|
|
+<style scoped lang="scss">
|
|
|
+.runtest {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ // border: 1px solid red;
|
|
|
+
|
|
|
+ .content-A {
|
|
|
+ width: 100%;
|
|
|
+ height: 300px;
|
|
|
+ background: linear-gradient(180deg, #404040 0%, #505050 100%);
|
|
|
+ border-radius: 0px 0px 0px 0px;
|
|
|
+ ::v-deep .el-scrollbar__view {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .test-list {
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .test-list-item {
|
|
|
+ flex-shrink: 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 142px;
|
|
|
+ height: 100%;
|
|
|
+ text-align: center;
|
|
|
+ &.active {
|
|
|
+ background: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ rgba(255, 255, 255, 0) 0%,
|
|
|
+ #ffffff 100%
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ .body {
|
|
|
+ background: linear-gradient(180deg, #707070 0%, #515151 100%);
|
|
|
+ box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
|
|
|
+ border: 1px solid #7e7e7e;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin: auto;
|
|
|
+ width: 108px;
|
|
|
+ height: 240px;
|
|
|
+ color: var(--hj-white-1);
|
|
|
+ cursor: pointer;
|
|
|
+ .line {
|
|
|
+ width: 100%;
|
|
|
+ height: 6px;
|
|
|
+ border-radius: 5px 5px 0px 0px;
|
|
|
+ }
|
|
|
+ .head {
|
|
|
+ margin: 0 14px;
|
|
|
+ color: var(--fc-color-8);
|
|
|
+ padding: 7px 0;
|
|
|
+ border-bottom: 1px solid #a8a8a8;
|
|
|
+ }
|
|
|
+ .icon {
|
|
|
+ margin: 0 auto;
|
|
|
+ width: 36px;
|
|
|
+ height: 36px;
|
|
|
+ margin-top: 50px;
|
|
|
+ margin-bottom: 50px;
|
|
|
+ }
|
|
|
+ .name {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: var(--hj-fs-14);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .body.success {
|
|
|
+ .line {
|
|
|
+ background-color: #8fe200;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .body.error {
|
|
|
+ .line {
|
|
|
+ background-color: #f83c64;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .body.progress {
|
|
|
+ .line {
|
|
|
+ background-color: #3cbaff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .body.wait {
|
|
|
+ .line {
|
|
|
+ background-color: #ededed;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .content-B {
|
|
|
+ width: 100%;
|
|
|
+ height: 370px;
|
|
|
+ background-color: var(--hj-bg);
|
|
|
+ margin-bottom: 64px;
|
|
|
+ display: flex;
|
|
|
+ > div {
|
|
|
+ border: 1px solid red;
|
|
|
+ }
|
|
|
+ .content-B-1 {
|
|
|
+ flex: 0 0 19%;
|
|
|
+ }
|
|
|
+ .content-B-1 {
|
|
|
+ flex: 0 0 22%;
|
|
|
+ }
|
|
|
+ .content-B-1 {
|
|
|
+ flex: 0 0 19%;
|
|
|
+ }
|
|
|
+ .content-B-1 {
|
|
|
+ flex: 0 0 40%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .content-C {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 64px;
|
|
|
+ background-color: yellow;
|
|
|
+ }
|
|
|
+ // background-color: #fff;
|
|
|
+}
|
|
|
+</style>
|