245 lines
8.2 KiB
Vue
245 lines
8.2 KiB
Vue
|
<template>
|
|||
|
<div class="container">
|
|||
|
<div class="header">
|
|||
|
<div class="title">微工厂设备详情</div>
|
|||
|
</div>
|
|||
|
<div class="content">
|
|||
|
<div class="left-plane">
|
|||
|
<div class="lt-plane">
|
|||
|
<div class="ltl-plane">
|
|||
|
<Card class="ltl-item1" title="设备详情">
|
|||
|
<div class="ltl-content">
|
|||
|
<div class="ltl-box">
|
|||
|
<div class="ltl-item-box"><div class="label">名称:</div><div class="value">{{ '什么什么什么什么什么缝纫机' }}</div></div>
|
|||
|
</div>
|
|||
|
<div class="ltl-box">
|
|||
|
<div class="ltl-item-box"><div class="label">编号:</div><div class="value">{{ 'xxxxxx' }}</div></div>
|
|||
|
</div>
|
|||
|
<div class="ltl-box">
|
|||
|
<div class="ltl-item-box"><div class="label">负责人:</div><div class="value">{{ 'xxxxxx' }}</div></div>
|
|||
|
</div>
|
|||
|
<div class="ltl-box">
|
|||
|
<div class="ltl-item-box"><div class="label">所在位置:</div><div class="value">{{ 'xxxxxx' }}</div></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</Card>
|
|||
|
<Card class="ltl-item2" title="设备详情"></Card>
|
|||
|
</div>
|
|||
|
<div class="ltr-plane">
|
|||
|
<div class="c-item c-top">
|
|||
|
<div class="item-box">当前状态:</div>
|
|||
|
<div class="item-box">运行时长:</div>
|
|||
|
</div>
|
|||
|
<div class="c-item c-center">
|
|||
|
<div class="item-box">停机时长:</div>
|
|||
|
<div class="item-box">工作时长:</div>
|
|||
|
</div>
|
|||
|
<div class="c-item c-bottom">
|
|||
|
<div class="item-box">故障时长:</div>
|
|||
|
<div class="item-box">待机时长:</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<Card class="lb-plane" title="设备状态分析">
|
|||
|
<StackBarChart></StackBarChart>
|
|||
|
</Card>
|
|||
|
|
|||
|
</div>
|
|||
|
<div class="right-plane">
|
|||
|
|
|||
|
<Card class="right-item1" title="设备维修记录"></Card>
|
|||
|
|
|||
|
<Card class="right-item2" title="设备保养记录"></Card>
|
|||
|
|
|||
|
<Card class="right-item3" title="设备用电量分析"></Card>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</template>
|
|||
|
|
|||
|
<script setup>
|
|||
|
import Card from './component/card.vue';
|
|||
|
import StackBarChart from './component/stackBarChart.vue';
|
|||
|
</script>
|
|||
|
|
|||
|
<style lang="scss" scoped>
|
|||
|
.container {
|
|||
|
width: 1920px;
|
|||
|
height: 1080px;
|
|||
|
position: relative;
|
|||
|
// display: flex;
|
|||
|
// justify-content: center;
|
|||
|
align-items: center;
|
|||
|
background-image: url('/src/assets/images/screen-bg.png');
|
|||
|
background-repeat: no-repeat;
|
|||
|
/* 如果你不想让背景平铺 */
|
|||
|
background-size: cover;
|
|||
|
/* 或者其他你需要的大小设置 */
|
|||
|
background-position: center;
|
|||
|
|
|||
|
.header {
|
|||
|
width: 100%;
|
|||
|
height: 89px;
|
|||
|
background-image: url('/src/assets/images/screen-header-bg1.png');
|
|||
|
background-size: 100% 100%;
|
|||
|
|
|||
|
.title {
|
|||
|
width: 100%;
|
|||
|
height: 89px;
|
|||
|
font-size: 36px;
|
|||
|
color: #f9f8f4;
|
|||
|
text-align: center;
|
|||
|
line-height: 89px;
|
|||
|
font-weight: 700;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
.content {
|
|||
|
width: 100%;
|
|||
|
height: 975px;
|
|||
|
display: flex;
|
|||
|
justify-content: space-around;
|
|||
|
align-items: center;
|
|||
|
box-sizing: border-box;
|
|||
|
padding: 20px 0;
|
|||
|
|
|||
|
.right-plane {
|
|||
|
width: 488px;
|
|||
|
height: 100%;
|
|||
|
|
|||
|
.right-item1 {
|
|||
|
width: 100%;
|
|||
|
height: 280px;
|
|||
|
}
|
|||
|
|
|||
|
.right-item2 {
|
|||
|
width: 100%;
|
|||
|
height: 280px;
|
|||
|
margin: 10px 0;
|
|||
|
}
|
|||
|
|
|||
|
.right-item3 {
|
|||
|
width: 100%;
|
|||
|
height: 395px;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.left-plane {
|
|||
|
width: 1400px;
|
|||
|
height: 100%;
|
|||
|
|
|||
|
.lt-plane {
|
|||
|
width: 100%;
|
|||
|
height: 635px;
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
|
|||
|
.ltl-plane {
|
|||
|
width: 488px;
|
|||
|
height: 100%;
|
|||
|
|
|||
|
.ltl-item1 {
|
|||
|
width: 100%;
|
|||
|
height: 260px;
|
|||
|
|
|||
|
.ltl-content {
|
|||
|
width: 100%;
|
|||
|
height: 100%;
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
flex-wrap: wrap;
|
|||
|
|
|||
|
.ltl-box {
|
|||
|
width: 48%;
|
|||
|
height: 50%;
|
|||
|
display: flex;
|
|||
|
justify-content: flex-start;
|
|||
|
align-items: center;
|
|||
|
box-sizing: border-box;
|
|||
|
|
|||
|
.ltl-item-box {
|
|||
|
height: 60px;
|
|||
|
width: 100%;
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
background-color: rgba(2, 48, 87, 0.5);
|
|||
|
border: #2A80B8 2px solid;
|
|||
|
padding: 0 10px;
|
|||
|
color: #f9f8f4;
|
|||
|
font-size: 20px;
|
|||
|
font-weight: 500;
|
|||
|
text-align: center;
|
|||
|
.label {
|
|||
|
width: 50%;
|
|||
|
text-wrap: nowrap;
|
|||
|
text-align: left;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
.ltl-item2 {
|
|||
|
width: 100%;
|
|||
|
height: 360px;
|
|||
|
margin-top: 15px;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.ltr-plane {
|
|||
|
width: 892px;
|
|||
|
height: 100%;
|
|||
|
background: url('./image/center-bg.png') no-repeat;
|
|||
|
background-size: 38% auto;
|
|||
|
background-position: 50% 70%;
|
|||
|
display: flex;
|
|||
|
flex-direction: column;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
|
|||
|
.c-top,
|
|||
|
.c-bottom {
|
|||
|
width: 70%;
|
|||
|
height: 120px;
|
|||
|
}
|
|||
|
|
|||
|
.c-center {
|
|||
|
width: 85%;
|
|||
|
height: 100px;
|
|||
|
}
|
|||
|
|
|||
|
.c-item {
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
|
|||
|
.item-box {
|
|||
|
background-color: rgba(2, 48, 87, 0.5);
|
|||
|
border: #2A80B8 2px solid;
|
|||
|
padding: 15px;
|
|||
|
color: #f9f8f4;
|
|||
|
font-size: 22px;
|
|||
|
font-weight: 500;
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.lb-plane {
|
|||
|
width: 100%;
|
|||
|
height: 340px;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
</style>
|