Commit 78e5deee by lyy

设备管理驾驶舱设备状态

parent 38a6cafc
...@@ -174,8 +174,11 @@ ...@@ -174,8 +174,11 @@
<div class="device-title " style="padding-top: 0.2vh;margin-left: 2vw;display: flex"> <div class="device-title " style="padding-top: 0.2vh;margin-left: 2vw;display: flex">
<div class="device-span" style="width: 50%">{{ item.deviceName }}</div> <div class="device-span" style="width: 50%">{{ item.deviceName }}</div>
<div style="display: flex;width: 50%"> <div style="display: flex;width: 50%">
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw">设备{{ item.status }}</div> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-if="item.status == '3' || item.status == '5' ||item.status == '6'">设备关机</div>
<img src="${ctx}/common/img/powerOn.png" style="width: 1.5vw;height: 3vh" v-if="item.status != '关机' " alt/> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else-if="item.status == '1' || item.status == '2' ||item.status == '4' ">设备开机</div>
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else="item.status == '0'">设备异常</div>
<img src="${ctx}/common/img/powerOn.png" style="width: 1.5vw;height: 3vh" v-if="item.status == '1' || item.status == '2' ||item.status == '4' " alt/>
<img src="${ctx}/common/img/powerDown.png" style="width: 1.5vw;height: 3vh" v-else alt/> <img src="${ctx}/common/img/powerDown.png" style="width: 1.5vw;height: 3vh" v-else alt/>
</div> </div>
</div> </div>
...@@ -269,10 +272,17 @@ ...@@ -269,10 +272,17 @@
setTimeout(function() { setTimeout(function() {
window.location.reload(); this.init();
}, 60000); }, 60000);
}, },
methods: { methods: {
init(){
this.getYesterdayDateFormatted();
this.queryCompanyInfo();
this.queryBySbStatus();
this.querySbYes();
this.querySbNo();
},
formatTime(currentTime) { formatTime(currentTime) {
const formattedTime = const formattedTime =
currentTime.getFullYear() + currentTime.getFullYear() +
...@@ -336,12 +346,12 @@ ...@@ -336,12 +346,12 @@
} }
_this.queryBySbStatusList.push({ _this.queryBySbStatusList.push({
deviceName:'切割机', deviceName:'切割机',
status:'关机', status:'3',
deviceModel:'MZ-1250', deviceModel:'MZ-1250',
}) })
_this.queryBySbStatusList.push({ _this.queryBySbStatusList.push({
deviceName:'焊接机', deviceName:'焊接机',
status:'关机', status:'3',
deviceModel:'H8760', deviceModel:'H8760',
}) })
}, },
...@@ -370,7 +380,7 @@ ...@@ -370,7 +380,7 @@
return { return {
title: { title: {
left: 'left', left: 'left',
text: '设备作业时长/小时', text: '设备作业时长/分钟',
textStyle: { textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色 color: '#ffffff' // 设置标题字体颜色为白色
} }
...@@ -453,7 +463,7 @@ ...@@ -453,7 +463,7 @@
return { return {
title: { title: {
left: 'left', left: 'left',
text: '设备故障次数/小时', text: '设备故障次数/分钟',
textStyle: { textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色 color: '#ffffff' // 设置标题字体颜色为白色
} }
...@@ -523,7 +533,7 @@ ...@@ -523,7 +533,7 @@
this.testOption1 = { this.testOption1 = {
title: { title: {
left: 'left', left: 'left',
text: '设备作业时长/小时', text: '设备作业时长/分钟',
textStyle: { textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色 color: '#ffffff' // 设置标题字体颜色为白色
} }
...@@ -574,7 +584,7 @@ ...@@ -574,7 +584,7 @@
this.testOption2 ={ this.testOption2 ={
title: { title: {
left: 'left', left: 'left',
text: '设备故障次数/小时', text: '设备故障次数/分钟',
textStyle: { textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色 color: '#ffffff' // 设置标题字体颜色为白色
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment