修改机械分厂安全 传感器报警显示

This commit is contained in:
hzz 2023-05-22 18:19:39 +08:00
parent 2633d970cc
commit 9312aee29f

View File

@ -13,7 +13,7 @@
<template v-slot> <template v-slot>
<div class="box" ref="classBox1"> <div class="box" ref="classBox1">
<div class="icontip"> <div class="icontip">
<div v-for="items in value.data" style="margin: auto 5px;" v-show="(+items.val > +value.quota)&&item.status"> <div v-for="items in value.data" style="margin: auto 5px;" v-show="(+items.val > +value.quota)&&items.status">
<el-popover placement="bottom" :width="250" trigger="hover" effect="dark" <el-popover placement="bottom" :width="250" trigger="hover" effect="dark"
:popper-style="{ 'background-color': 'rgba(0,0,0,.8)' }"> :popper-style="{ 'background-color': 'rgba(0,0,0,.8)' }">
<ul class="icontipBox"> <ul class="icontipBox">
@ -78,7 +78,6 @@ let item = computed(() => {
return value.data[i.value]||{"name":"","val":"0","type":"","field":"","ts":0,"status":false}; return value.data[i.value]||{"name":"","val":"0","type":"","field":"","ts":0,"status":false};
}); });
let iconcolor = computed(() => { let iconcolor = computed(() => {
console.log(value.data[i.value]);
// //
if (value.data[i.value]) { if (value.data[i.value]) {
return value.data[i.value].status ? +value.data[i.value].val > +value.quota ? "icon-red" : "icon-blue" : "icon-grey"; return value.data[i.value].status ? +value.data[i.value].val > +value.quota ? "icon-red" : "icon-blue" : "icon-grey";