This commit is contained in:
2023-06-28 14:54:08 +08:00
parent a4c36313b9
commit 41fbd2d507
2 changed files with 14 additions and 8 deletions

View File

@@ -150,8 +150,11 @@
<div class="zhuan_bg_arrow"></div>
</div>
</div>
<div class="sh_machine robot_2 rotate_2">
<img src="../../../images/workshop/robot_cmd_green.png" alt="">
<div v-if="ManipulatorInfoList.length > 0" class="sh_machine robot_2" :class="{'rotate_2': String(ManipulatorInfoList[5].color_status) === '1'}">
<img v-show="String(ManipulatorInfoList[5].color_status) === '0'" src="../../../images/workshop/robot_cmd_gray.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '1'" src="../../../images/workshop/robot_cmd_green.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '2'" src="../../../images/workshop/robot_cmd_red.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '3'" src="../../../images/workshop/robot_cmd_yellow.png" alt="">
</div>
</div>
<div class="machine_wrap cmd_wrap_1 cmd_wrap_2">

View File

@@ -101,8 +101,11 @@
<div class="zhuan_bg_arrow"></div>
</div>
</div>
<div class="sh_machine robot_2 rotate_2" ref="FJMDJXS01" @click.stop="yjInfo('device', 'FJMDJXS01')">
<img src="../../../images/workshop/robot_cmd_green.png" alt="">
<div v-if="ManipulatorInfoList.length > 0" class="sh_machine robot_2" :class="{'rotate_2': String(ManipulatorInfoList[5].color_status) === '1'}" ref="FJCDJXS02" @click.stop="yjInfo('device', 'FJCDJXS02')">
<img v-show="String(ManipulatorInfoList[5].color_status) === '0'" src="../../../images/workshop/robot_cmd_gray.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '1'" src="../../../images/workshop/robot_cmd_green.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '2'" src="../../../images/workshop/robot_cmd_red.png" alt="">
<img v-show="String(ManipulatorInfoList[5].color_status) === '3'" src="../../../images/workshop/robot_cmd_yellow.png" alt="">
</div>
</div>
<div class="machine_wrap cmd_wrap_1 cmd_wrap_2">
@@ -634,10 +637,10 @@ export default {
this.left = this.$refs.FJCDJXS01.getBoundingClientRect().left - 650
this.foldlineStyle = 'foldline_right'
break
case 'FJMDJXS01':
this.pkObj = this.DevicesInfoList.FJMDJXS01
this.top = this.$refs.FJMDJXS01.getBoundingClientRect().top - 31
this.left = this.$refs.FJMDJXS01.getBoundingClientRect().left - 650
case 'FJCDJXS02':
this.pkObj = this.DevicesInfoList.FJCDJXS02
this.top = this.$refs.FJCDJXS02.getBoundingClientRect().top - 31
this.left = this.$refs.FJCDJXS02.getBoundingClientRect().left - 650
this.foldlineStyle = 'foldline_right'
break
case 'BZJ01':