update
This commit is contained in:
parent
f12d994342
commit
ce827a360c
143
src/views/screen/components/ltop1.vue
Normal file
143
src/views/screen/components/ltop1.vue
Normal file
@ -0,0 +1,143 @@
|
||||
<template>
|
||||
<div class="lt-container">
|
||||
<div class="left">
|
||||
<div class="title">
|
||||
{{ tLang('common', '状态') }}
|
||||
</div>
|
||||
<div class="left-content">
|
||||
<div class="status-box" style="background-color: #22C55E;"></div>
|
||||
<div class="status-text">
|
||||
运行中
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="top">
|
||||
<div class="top-item">
|
||||
<div class="title">{{ tLang('message', '检测裁片数') }}</div>
|
||||
<div class="content">
|
||||
{{ 22 }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-item">
|
||||
<div class="title">{{ tLang('message', '运行时长') }}</div>
|
||||
<div class="content">
|
||||
{{ "00:00:00" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="top-item">
|
||||
<div class="title">{{ tLang('message', '耗电量') }}</div>
|
||||
<div class="content">
|
||||
{{ '32 kw·h' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<span class="label">{{ tLang('message', '异常次数') }}</span>
|
||||
<span>{{ 3 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {ref, reactive } from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.title {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
font-size: 14px;
|
||||
color: #cfcfcf;
|
||||
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
height: calc(100% - 20px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.lt-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.left {
|
||||
width: 25%;
|
||||
height: 100%;
|
||||
|
||||
.left-content {
|
||||
width: 100%;
|
||||
height: calc(100% - 20px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.status-box {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.status-text {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
width: 75%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
|
||||
.top {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.top-item {
|
||||
width: 210px;
|
||||
height: 100px;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
background: #1F2937;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
background: #1F2937;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.label {
|
||||
font-size: 14px;
|
||||
color: #cfcfcf;
|
||||
}
|
||||
span {
|
||||
margin: 0 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,7 +1,9 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="left">
|
||||
<div class="lt box-bg-color"></div>
|
||||
<div class="lt box-bg-color">
|
||||
<Ltop1></Ltop1>
|
||||
</div>
|
||||
<div class="lc box-bg-color"></div>
|
||||
<div class="lb box-bg-color"></div>
|
||||
</div>
|
||||
@ -14,12 +16,15 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Ltop1 from './components/ltop1.vue'
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.box-bg-color {
|
||||
background-color: #192124;
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
.container {
|
||||
|
Loading…
Reference in New Issue
Block a user