设备screenys
This commit is contained in:
@@ -20,12 +20,26 @@
|
|||||||
<div class="item_tip">
|
<div class="item_tip">
|
||||||
<div class="item_tip_left">设备实时状态</div>
|
<div class="item_tip_left">设备实时状态</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1">
|
<div class="item_5_l">
|
||||||
<div id="echart_d01" style="width: 100%; height: 100%"></div>
|
<div class="item_content_0">
|
||||||
|
<div id="echart_d01" style="width: 100%; height: 100%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="total">
|
||||||
|
<div>110<span>台</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="total-desc">设备总数</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="total">
|
<div class="item_5_r">
|
||||||
<!-- <div>总数</div> -->
|
<div class="right_1_down_inner_3_i" v-for="(e, i) in arrR01" :key="i">
|
||||||
<div>110<span>台</span></div>
|
<div class="right_1_down_inner_3_l">
|
||||||
|
<span :style="{'background-color': e.color}"><i :style="{'background-color': e.color}"></i></span>
|
||||||
|
<span>{{e.name}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="right_1_down_inner_3_r">
|
||||||
|
<span>{{e.qty}}</span>
|
||||||
|
<span>台</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_wrap">
|
<div class="item_wrap">
|
||||||
@@ -48,8 +62,8 @@
|
|||||||
<p class="item_content_1_inner_2_p2">6h</p>
|
<p class="item_content_1_inner_2_p2">6h</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1_inner_2">
|
<div class="item_content_1_inner_2">
|
||||||
<p class="item_content_1_inner_2_p1">报警:</p>
|
<p class="item_content_1_inner_2_p1 cred">报警:</p>
|
||||||
<p class="item_content_1_inner_2_p2">4次</p>
|
<p class="item_content_1_inner_2_p2 cred">4次</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1_inner">
|
<div class="item_content_1_inner">
|
||||||
@@ -66,9 +80,9 @@
|
|||||||
<p class="item_content_1_inner_2_p1">MTTR:</p>
|
<p class="item_content_1_inner_2_p1">MTTR:</p>
|
||||||
<p class="item_content_1_inner_2_p2">6h</p>
|
<p class="item_content_1_inner_2_p2">6h</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1_inner_2">
|
<div class="item_content_1_inner_2 cred">
|
||||||
<p class="item_content_1_inner_2_p1">报警:</p>
|
<p class="item_content_1_inner_2_p1 cred">报警:</p>
|
||||||
<p class="item_content_1_inner_2_p2">4次</p>
|
<p class="item_content_1_inner_2_p2 cred">4次</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1_inner">
|
<div class="item_content_1_inner">
|
||||||
@@ -85,9 +99,9 @@
|
|||||||
<p class="item_content_1_inner_2_p1">MTTR:</p>
|
<p class="item_content_1_inner_2_p1">MTTR:</p>
|
||||||
<p class="item_content_1_inner_2_p2">6h</p>
|
<p class="item_content_1_inner_2_p2">6h</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_1_inner_2">
|
<div class="item_content_1_inner_2 cred">
|
||||||
<p class="item_content_1_inner_2_p1">报警:</p>
|
<p class="item_content_1_inner_2_p1 cred">报警:</p>
|
||||||
<p class="item_content_1_inner_2_p2">4次</p>
|
<p class="item_content_1_inner_2_p2 cred">4次</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -149,7 +163,7 @@
|
|||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div"><span :style="{'background-color': ddddcolor}"><i></i></span>{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
<div class="scroll-ul_1_div">{{e.material_code}}</div>
|
||||||
@@ -218,9 +232,32 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
export default {
|
export default {
|
||||||
name: 'MonitoringScreen1',
|
name: 'MonitoringScreen2',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
ddddcolor: '#f00',
|
||||||
|
arrR01: [
|
||||||
|
{
|
||||||
|
color: '#2D7CEB',
|
||||||
|
name: '正常运行',
|
||||||
|
qty: '10'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
color: '#07E083',
|
||||||
|
name: '暂未生产',
|
||||||
|
qty: '20'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
color: '#00D5FF',
|
||||||
|
name: '空闲设备',
|
||||||
|
qty: '30'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
color: '#CC6060',
|
||||||
|
name: '故障设备',
|
||||||
|
qty: '40'
|
||||||
|
}
|
||||||
|
],
|
||||||
data01: [{value: 500, name: '正常运行'}, {value: 300, name: '暂未生产'}, {value: 200, name: '空闲设备'}, {value: 100, name: '故障设备'}],
|
data01: [{value: 500, name: '正常运行'}, {value: 300, name: '暂未生产'}, {value: 200, name: '空闲设备'}, {value: 100, name: '故障设备'}],
|
||||||
chartData1: [
|
chartData1: [
|
||||||
{
|
{
|
||||||
@@ -353,6 +390,12 @@ export default {
|
|||||||
this.setEchart05()
|
this.setEchart05()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
fontSize (res) {
|
||||||
|
const clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
|
||||||
|
if (!clientWidth) return
|
||||||
|
let fontSize = clientWidth * res / 1920
|
||||||
|
return fontSize
|
||||||
|
},
|
||||||
updateTime () {
|
updateTime () {
|
||||||
let cd = new Date()
|
let cd = new Date()
|
||||||
let year = cd.getFullYear()
|
let year = cd.getFullYear()
|
||||||
@@ -401,11 +444,11 @@ export default {
|
|||||||
{
|
{
|
||||||
axisTick: 'none',
|
axisTick: 'none',
|
||||||
axisLine: 'none',
|
axisLine: 'none',
|
||||||
offset: '27',
|
offset: '5',
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#ffffff', // y轴字体颜色
|
color: '#8FABBF', // y轴字体颜色
|
||||||
fontSize: '16'
|
fontSize: '12'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: ['设备01', '设备02', '设备03', '设备04', '设备05']
|
data: ['设备01', '设备02', '设备03', '设备04', '设备05']
|
||||||
@@ -417,19 +460,19 @@ export default {
|
|||||||
axisLabel: {
|
axisLabel: {
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
fontSize: '16'
|
fontSize: '12'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: [1, 1, 1, 1]
|
data: [1, 1, 1, 1]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
// color: 'rgba(0,0,0,0)' // y轴线颜色
|
// color: 'rgba(0,0,0,0)' // y轴线颜色
|
||||||
color: '#3D5266' // y轴线颜色
|
color: '#3D5266', // y轴线颜色
|
||||||
|
opacity: 0.4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: []
|
data: []
|
||||||
@@ -461,7 +504,7 @@ export default {
|
|||||||
normal: {
|
normal: {
|
||||||
show: false,
|
show: false,
|
||||||
position: 'right',
|
position: 'right',
|
||||||
distance: 10,
|
distance: 2,
|
||||||
formatter: function (param) {
|
formatter: function (param) {
|
||||||
return param.value + '%'
|
return param.value + '%'
|
||||||
},
|
},
|
||||||
@@ -486,7 +529,7 @@ export default {
|
|||||||
// },
|
// },
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: '#B68845',
|
color: '#B68845',
|
||||||
@@ -514,7 +557,7 @@ export default {
|
|||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
position: 'right',
|
position: 'right',
|
||||||
distance: 10,
|
distance: 2,
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
formatter: function (data) {
|
formatter: function (data) {
|
||||||
return dataLine[data.dataIndex] + '次'
|
return dataLine[data.dataIndex] + '次'
|
||||||
@@ -575,7 +618,15 @@ export default {
|
|||||||
},
|
},
|
||||||
setEchart04 () {
|
setEchart04 () {
|
||||||
// 多列柱状图
|
// 多列柱状图
|
||||||
|
// 到外面壳边框的距离
|
||||||
let option = {
|
let option = {
|
||||||
|
grid: {
|
||||||
|
top: this.fontSize(50),
|
||||||
|
left: 0,
|
||||||
|
right: this.fontSize(25),
|
||||||
|
bottom: 0,
|
||||||
|
containLabel: true
|
||||||
|
},
|
||||||
// 图例
|
// 图例
|
||||||
legend: {
|
legend: {
|
||||||
// icon: 'rect',
|
// icon: 'rect',
|
||||||
@@ -605,7 +656,7 @@ export default {
|
|||||||
interval: 0,
|
interval: 0,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#8FABBF',
|
color: '#8FABBF',
|
||||||
fontSize: 16
|
fontSize: 14
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: this.xData
|
data: this.xData
|
||||||
@@ -630,7 +681,8 @@ export default {
|
|||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
color: '#8FABBF'
|
color: '#8FABBF',
|
||||||
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -756,7 +808,7 @@ export default {
|
|||||||
interval: 0,
|
interval: 0,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#8FABBF',
|
color: '#8FABBF',
|
||||||
fontSize: 16
|
fontSize: 14
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: ['设备综合效率OEE', '产能利用效率TEEP']
|
data: ['设备综合效率OEE', '产能利用效率TEEP']
|
||||||
@@ -782,7 +834,8 @@ export default {
|
|||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
color: '#8FABBF'
|
color: '#8FABBF',
|
||||||
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -921,7 +974,7 @@ export default {
|
|||||||
itemGap: 30.86,
|
itemGap: 30.86,
|
||||||
itemWidth: 14.16,
|
itemWidth: 14.16,
|
||||||
itemHeight: 7.38,
|
itemHeight: 7.38,
|
||||||
data: [{name: '运行设备', itemStyle: {color: '#0E90FD'}}, {name: '暂未生产设备', itemStyle: {color: '#33CCCC'}}, {name: '关机设备', itemStyle: {color: '#EAAD24'}}, {name: '故障设备', itemStyle: {color: '#ff0000'}}]
|
data: [{name: '运行设备', itemStyle: {color: '#0E90FD'}}, {name: '暂未生产设备', itemStyle: {color: '#07E083'}}, {name: '关机设备', itemStyle: {color: '#EAAD24'}}, {name: '故障设备', itemStyle: {color: '#CC6060'}}]
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
@@ -939,7 +992,7 @@ export default {
|
|||||||
interval: 0,
|
interval: 0,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#8FABBF',
|
color: '#8FABBF',
|
||||||
fontSize: 16
|
fontSize: 14
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: ['无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1']
|
data: ['无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1', '无屑下料机1']
|
||||||
@@ -964,7 +1017,8 @@ export default {
|
|||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
color: '#8FABBF'
|
color: '#8FABBF',
|
||||||
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1002,7 +1056,7 @@ export default {
|
|||||||
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: '#33CCCC',
|
color: '#07E083',
|
||||||
opacity: 1
|
opacity: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1048,12 +1102,12 @@ export default {
|
|||||||
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: '#ff0000',
|
color: '#CC6060',
|
||||||
opacity: 1
|
opacity: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: 'rgba(122,50,99,0.25)',
|
color: 'rgba(123,33,33,0.25)',
|
||||||
opacity: 0.25
|
opacity: 0.25
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
@@ -1140,24 +1194,23 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: false,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
color: '#8FABBF'
|
color: '#8FABBF',
|
||||||
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
max: max
|
max: max
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '总库存',
|
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barWidth: 10,
|
barWidth: 8,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
// color: '#67c23a',
|
|
||||||
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
@@ -1269,20 +1322,20 @@ export default {
|
|||||||
color: '#909399'
|
color: '#909399'
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: false,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
type: [8, 4],
|
type: [8, 4],
|
||||||
dashOffset: 4,
|
dashOffset: 4,
|
||||||
color: '#8FABBF'
|
color: '#8FABBF',
|
||||||
|
opacity: 0.2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
max: max
|
max: max
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '总库存',
|
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barWidth: 10,
|
barWidth: 8,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
@@ -1414,6 +1467,11 @@ header
|
|||||||
letter-spacing .02rem
|
letter-spacing .02rem
|
||||||
text-shadow 0 0 .09rem #159AFF
|
text-shadow 0 0 .09rem #159AFF
|
||||||
padding-left .38rem
|
padding-left .38rem
|
||||||
|
.item_content_0
|
||||||
|
width 2.2rem
|
||||||
|
height 2.2rem
|
||||||
|
// _fj(space-around)
|
||||||
|
// padding .17rem 0 .24rem
|
||||||
.item_content_1
|
.item_content_1
|
||||||
_wh(100%, calc(100% - .32rem))
|
_wh(100%, calc(100% - .32rem))
|
||||||
_fj(space-around)
|
_fj(space-around)
|
||||||
@@ -1501,6 +1559,12 @@ header
|
|||||||
overflow hidden
|
overflow hidden
|
||||||
&:nth-child(8)
|
&:nth-child(8)
|
||||||
width 13.2%
|
width 13.2%
|
||||||
|
&:nth-child(4)
|
||||||
|
span
|
||||||
|
_wh(.0725rem, .0725rem)
|
||||||
|
border-radius 100%
|
||||||
|
background-color #2D7CEB
|
||||||
|
margin-right .1rem
|
||||||
// scroll2
|
// scroll2
|
||||||
.scroll_tab_2
|
.scroll_tab_2
|
||||||
_wh(100%, .4rem)
|
_wh(100%, .4rem)
|
||||||
@@ -1612,7 +1676,7 @@ header
|
|||||||
&:nth-child(1)
|
&:nth-child(1)
|
||||||
_wh(.0725rem, .0725rem)
|
_wh(.0725rem, .0725rem)
|
||||||
border-radius 100%
|
border-radius 100%
|
||||||
background-color #07E083
|
background-color #2D7CEB
|
||||||
margin-left .15rem
|
margin-left .15rem
|
||||||
&:nth-child(2)
|
&:nth-child(2)
|
||||||
font-family "SourceHanSansCN"
|
font-family "SourceHanSansCN"
|
||||||
@@ -1641,22 +1705,26 @@ header
|
|||||||
_wh(1.83rem, .3rem)
|
_wh(1.83rem, .3rem)
|
||||||
.item_5_r
|
.item_5_r
|
||||||
float right
|
float right
|
||||||
_wh(1.83rem, .3rem)
|
margin-top .4rem
|
||||||
|
_wh(1.83rem, 60%)
|
||||||
|
_fj()
|
||||||
|
flex-direction column
|
||||||
.right_1_down_inner_3_i
|
.right_1_down_inner_3_i
|
||||||
margin-bottom .045rem
|
margin-bottom .045rem
|
||||||
.item_5_l_1
|
.item_5_l_1
|
||||||
_wh(100%, 1.42rem)
|
_wh(100%, 60%)
|
||||||
background right center / .02rem 100% url(../assets/images/screen1/line_3.png) no-repeat
|
background right center / .02rem 100% url(../assets/images/screen1/line_3.png) no-repeat
|
||||||
.item_5_l_2
|
.item_5_l_2
|
||||||
_wh(100%, calc(100% - 1.42rem))
|
_wh(100%, 40%)
|
||||||
.right_1_down_inner_3_i
|
.right_1_down_inner_3_i
|
||||||
margin-bottom .03rem
|
&:nth-child(1), &:nth-child(2)
|
||||||
|
margin-bottom 5%
|
||||||
.total
|
.total
|
||||||
position absolute
|
position absolute
|
||||||
top 2.7rem
|
top 2.5rem
|
||||||
left 0.3rem
|
left .3rem
|
||||||
text-align center
|
text-align center
|
||||||
width 4rem
|
width 2.2rem
|
||||||
div
|
div
|
||||||
line-height 0.24rem
|
line-height 0.24rem
|
||||||
// color #f80
|
// color #f80
|
||||||
@@ -1664,4 +1732,9 @@ header
|
|||||||
font-size .3rem
|
font-size .3rem
|
||||||
margin-top 0.08rem
|
margin-top 0.08rem
|
||||||
font-weight 700
|
font-weight 700
|
||||||
|
.total-desc
|
||||||
|
width 2.2rem
|
||||||
|
text-align center
|
||||||
|
.cred
|
||||||
|
color #CC6060
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user