screenFront/src/views/MicroExhibition/index.vue

209 lines
5.2 KiB
Vue
Raw Normal View History

2023-08-23 10:06:47 +00:00
<template>
<div class="container">
<div class="header">
<div class="title">
2023-09-06 10:05:57 +00:00
<header2 ref="headerref" :width="'100%'" :height="'100px'" :title="'设备大屏展示系统'" :titleTip="[]"
2023-08-24 10:10:09 +00:00
:typeFun="['time']" :alarmType="[]"></header2>
2023-08-23 10:06:47 +00:00
</div>
</div>
<div class="content">
<div class="left">
<div class="lt">
2023-09-06 10:05:57 +00:00
<NewBoder :title="'裁剪设备'">
<DevCard :dev_title="dev_title" :dev_value="dev_value">
<BarChart style="width: 100%;height: 100%;"></BarChart>
</DevCard>
</NewBoder>
2023-08-23 10:06:47 +00:00
</div>
<div class="lb">
2023-09-06 10:05:57 +00:00
<NewBoder :title="'缝中设备'"></NewBoder>
2023-08-23 10:06:47 +00:00
</div>
</div>
<div class="center">
<div class="ct">
<div class="top-item">
<h2>设备总数</h2>
<div class="div_p" style="color: #ff9e5b;font-size: 40px;">
<!-- <i class="iconfont icon-zhengque1 div-p-tip"></i> -->
<h5>{{ store.devnum.all }} {{ t('messages.units') }}</h5>
2023-08-23 10:06:47 +00:00
</div>
</div>
<div class="top-item">
<h2>网关状态</h2>
<div class="div_p">
<i :class="true
2023-08-24 10:10:09 +00:00
? 'iconfont icon-beikongshuiwupingtaimenhu-tubiao_zhinengwangguan on'
: 'iconfont icon-beikongshuiwupingtaimenhu-tubiao_zhinengwangguan off'
2023-08-23 10:06:47 +00:00
"></i>
</div>
</div>
</div>
2023-09-06 10:05:57 +00:00
<div class="cc">
<NewBoder :title="'设备状态总览'">
<ringChart :data="ringData"></ringChart>
</NewBoder>
</div>
2023-08-24 10:10:09 +00:00
<div class="cb">
2023-09-06 10:05:57 +00:00
<NewBoder :title="'板房设备'">
</NewBoder>
2023-08-24 10:10:09 +00:00
</div>
</div>
<div class="right">
<div class="rt">
2023-09-06 10:05:57 +00:00
<NewBoder :title="'一次性拖鞋自动生产线'">
2023-08-25 09:54:48 +00:00
<DevCard :dev_title="dev_title" :dev_value="dev_value">
<BarChart style="width: 100%;height: 100%;"></BarChart>
2023-08-24 10:10:09 +00:00
</DevCard>
2023-09-06 10:05:57 +00:00
</NewBoder>
</div>
<div class="rb">
<NewBoder :title="'座椅面套生产线'"></NewBoder>
2023-08-24 10:10:09 +00:00
</div>
2023-08-23 10:06:47 +00:00
</div>
</div>
</div>
</template>
<script setup lang='ts'>
import header2 from '@/components/headerBox/header2.vue'
2023-09-06 10:05:57 +00:00
import NewBoder from './components/NewBoder.vue';
import DevCard from "./components/DevCard.vue";
2023-08-24 10:10:09 +00:00
import BarChart from './components/BarChart.vue'
import ringChart from "./components/ringChart.vue";
2023-09-06 10:05:57 +00:00
import { ref, onMounted, onUnmounted, getCurrentInstance, watch, onUpdated } from 'vue'
import { useMicroExhibitionStore } from '@/store/module/MicroExhibition'
2023-08-23 10:06:47 +00:00
import { useI18n } from 'vue-i18n'
let { t } = useI18n();
const store = useMicroExhibitionStore()
2023-08-24 10:10:09 +00:00
let ringData = ref([]);
ringData.value = [
{ name: '工作', value: 7 },
2023-09-06 10:05:57 +00:00
{ name: '停机', value: 7 },
2023-08-24 10:10:09 +00:00
{ name: '待机', value: 3 },
]
2023-09-06 10:05:57 +00:00
let dev_title = ['设备名称', '设备编码', '稼动率', '状态']
2023-08-24 10:10:09 +00:00
let dev_value = [
2023-09-06 10:05:57 +00:00
['全自动针梭两用铺布机', '待机', '40层', '1000片'],
['全自动9公分电脑裁床', '待机', '40层', '1000片'],
2023-08-24 10:10:09 +00:00
]
2023-08-23 10:06:47 +00:00
</script>
2023-09-06 10:05:57 +00:00
<style>
#app {
background-color: #0E0E0E;
}
</style>
2023-08-23 10:06:47 +00:00
<style scoped>
.container {
height: 1080px;
width: 1920px;
2023-09-06 10:05:57 +00:00
color: #FFFFFF;
background-color: #0E0E0E;
2023-08-23 10:06:47 +00:00
}
.header {
2023-09-06 10:05:57 +00:00
height: 100px;
2023-08-23 10:06:47 +00:00
width: 1920px;
}
.content {
2023-09-06 10:05:57 +00:00
height: 980px;
2023-08-23 10:06:47 +00:00
width: 1920px;
display: flex;
flex-direction: row;
justify-content: space-between;
2023-09-06 10:05:57 +00:00
padding: 0 5px;
box-sizing: border-box;
2023-08-23 10:06:47 +00:00
}
.left,
.right {
2023-09-06 10:05:57 +00:00
height: 980px;
2023-08-23 10:06:47 +00:00
width: 600px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.center {
flex: 1;
2023-09-06 10:05:57 +00:00
height: 980px;
2023-08-23 10:06:47 +00:00
margin: 0 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
2023-09-06 10:05:57 +00:00
.lt,.rt {
2023-08-23 10:06:47 +00:00
width: 100%;
2023-09-06 10:05:57 +00:00
height: 450px;
2023-08-23 10:06:47 +00:00
}
2023-09-06 10:05:57 +00:00
.lb,.rb {
2023-08-23 10:06:47 +00:00
width: 100%;
height: 530px;
}
.ct {
width: 100%;
height: 110px;
display: flex;
flex-direction: row;
justify-content: space-around;
}
2023-09-06 10:05:57 +00:00
.cc {
width: 100%;
height: 350px;
}
.cb {
width: 100%;
height: 500px;
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
.top-item {
2023-08-24 10:10:09 +00:00
width: 30%;
height: 100%;
background-image: url(@/assets/img/u8.png);
background-size: 100% 100%;
box-sizing: border-box;
padding: 5px;
2023-08-23 10:06:47 +00:00
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
.top-item .div_p {
2023-08-24 10:10:09 +00:00
height: 60%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
2023-08-23 10:06:47 +00:00
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
.div_p .div-p-tip {
2023-08-24 10:10:09 +00:00
position: absolute;
font-size: 1.5rem;
top: 10%;
left: 20%;
2023-08-23 10:06:47 +00:00
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
h2 {
2023-08-24 10:10:09 +00:00
/* color: #fff; */
font-size: 18px;
line-height: 1.5rem;
2023-09-06 10:05:57 +00:00
color: #02C1D7;
2023-08-23 10:06:47 +00:00
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
.on {
2023-08-24 10:10:09 +00:00
color: #20AEC5;
font-size: 3.5rem;
2023-08-23 10:06:47 +00:00
}
2023-08-24 10:10:09 +00:00
2023-08-23 10:06:47 +00:00
.off {
2023-08-24 10:10:09 +00:00
color: #797979;
font-size: 3.5rem;
2023-08-23 10:06:47 +00:00
}
</style>