设备状态

This commit is contained in:
2024-03-07 09:53:32 +08:00
parent 33a06c25a8
commit 1196a96979
2 changed files with 14 additions and 14 deletions

View File

@@ -13,8 +13,8 @@
<div class="pop_status_text fgray">{{ ['运行', '暂停', '停机', '故障'][Number(data.stat) - 1] }}</div>
</div>
<div v-show="type === 'yj' || type === 'jxs' || type === 'hlj'" class="pop_status">
<div class="pop_status_dot" :class="['green', 'yellow', 'gray', 'red'][Number(data.device_status) - 1]"></div>
<div class="pop_status_text fgray">{{ ['运行', '暂停', '停机', '故障'][Number(data.device_status) - 1] }}</div>
<div class="pop_status_dot" :class="['yellow', 'green', 'red'][Number(data.device_status) - 1]"></div>
<div class="pop_status_text fgray">{{ ['待机', '生产中', '故障'][Number(data.device_status) - 1] }}</div>
</div>
<div v-show="type === 'yjmdw'" class="pop_status">
<div class="pop_status_dot" :class="['green', 'yellow', 'gray', 'red'][Number(data.color_status) - 1]"></div>

View File

@@ -51,7 +51,7 @@
</div>
</div>
<div v-show="i === 1" class="p_device robot_cmd_wrap robot_cmd_wrap_1" v-for="e in ManipulatorInfoList.slice(0,1)" :key="e.device_code" :class="{'rotate_3': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -59,7 +59,7 @@
></device-pop>
</div>
<div v-show="i === 0" class="p_device robot_cmd_wrap robot_cmd_wrap_2" v-for="e in ManipulatorInfoList.slice(2,3)" :key="e.device_code" :class="{'rotate_4': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -67,7 +67,7 @@
></device-pop>
</div>
<div v-show="i === 1" class="p_device robot_cmd_wrap robot_cmd_wrap_2" v-for="e in ManipulatorInfoList.slice(1,2)" :key="e.device_code" :class="{'rotate_4': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_cmd_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -240,7 +240,7 @@
</div>
<div class="p_device yj_630_wrap">
<div v-show="index === 0" class="yj_630" v-for="e in PressMachineList.slice(0,2)" :key="e.device_code" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/yj_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/yj_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<p>{{ e.device_code }}</p>
<device-pop
:pkId="pkId"
@@ -249,7 +249,7 @@
></device-pop>
</div>
<div v-show="index === 1" class="yj_630" v-for="e in PressMachineList.slice(2,4)" :key="e.device_code" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/yj_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/yj_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<p>{{ e.device_code }}</p>
<device-pop
:pkId="pkId"
@@ -259,7 +259,7 @@
</div>
</div>
<div class="p_device robot_630_wrap" v-for="e in ManipulatorInfoList.slice(3+index,4+index)" :key="e.device_code" :class="{'rotate_1': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -292,7 +292,7 @@
</div>
<div class="p_device yj_630_wrap">
<div class="yj_630" v-for="e in PressMachineList.slice(4,6)" :key="e.device_code" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/yj_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/yj_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<p>{{ e.device_code }}</p>
<device-pop
:pkId="pkId"
@@ -302,7 +302,7 @@
</div>
</div>
<div class="p_device robot_630_wrap" v-for="e in ManipulatorInfoList.slice(5,6)" :key="e.device_code" :class="{'rotate_1': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -339,7 +339,7 @@
</div>
<div class="p_device yj_630_wrap">
<div class="yj_630 yj_1250" v-for="e in PressMachineList.slice(6+index,7+index)" :key="e.device_code" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/yj_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/yj_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<p>{{ e.device_code }}</p>
<device-pop
:pkId="pkId"
@@ -349,7 +349,7 @@
</div>
</div>
<div class="p_device robot_630_wrap" v-for="e in ManipulatorInfoList.slice(6+index,7+index)" :key="e.device_code" :class="{'rotate_5': Number(e.device_status) === 1}" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/robot_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')">
<img class="device_img" :src="require('../../../images/device/robot_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')">
<device-pop
:pkId="pkId"
type="jxs"
@@ -379,7 +379,7 @@
<div class="p_device yj_630_wrap yyj_wrap">
<div class="yj_630" style="opacity:0.1">
<img class="device_img" src="../../../images/device/yyj_gray.png" alt="">
<!-- <img class="device_img" :src="require('../../../images/device/yyj_' + ['green', 'yellow', 'gray', 'red'][Number(PressMachineList[8+i].device_status) - 1] + '.png')"> -->
<!-- <img class="device_img" :src="require('../../../images/device/yyj_' + ['yellow', 'green', 'red'][Number(PressMachineList[8+i].device_status) - 1] + '.png')"> -->
</div>
</div>
<div class="p_device robot_630_wrap" style="opacity:0.1">
@@ -408,7 +408,7 @@
</div>
<div class="hlj_wrap">
<div class="hlj" v-for="e in MixMachineList" :key="e.device_code" @click="getInfo2(e)">
<img class="device_img" :src="require('../../../images/device/hlj_' + ['green', 'yellow', 'gray', 'red'][Number(e.device_status) - 1] + '.png')" alt="">
<img class="device_img" :src="require('../../../images/device/hlj_' + ['yellow', 'green', 'red'][Number(e.device_status) - 1] + '.png')" alt="">
<device-pop
:pkId="pkId"
type="hlj"