机械分厂车间环境页面显示

This commit is contained in:
hzz 2023-05-16 14:46:59 +08:00
parent 1c5eb321bc
commit 7a793f9f86

View File

@ -13,8 +13,8 @@
<template v-slot> <template v-slot>
<div class="box" ref="classBox1"> <div class="box" ref="classBox1">
<h2>{{ item.name }}</h2> <h2>{{ item.name }}</h2>
<h5 v-if="value.unit">{{ <h5 v-if="value.unit">{{ `${t('messages.NormalValue')}0-${value.quota}${value.unit}` }}</h5>
`${t('messages.NormalValue')}0-${value.quota}${value.unit}` }}</h5> <h5 v-else>&nbsp; </h5>
<!-- <h2>{{ `${t(item.i18n[0])}${t(item.i18n[1])}`}}</h2> --> <!-- <h2>{{ `${t(item.i18n[0])}${t(item.i18n[1])}`}}</h2> -->
<i :class="+item.val > +value.quota <i :class="+item.val > +value.quota
? 'iconfont ' + value.iconname + ' icon-red iconbig-size' ? 'iconfont ' + value.iconname + ' icon-red iconbig-size'
@ -24,6 +24,10 @@
<p class="num">{{ item.val }}&nbsp;</p> <p class="num">{{ item.val }}&nbsp;</p>
<span>{{ value.unit }}</span> <span>{{ value.unit }}</span>
</p> </p>
<p class="unit" v-else>
<p class="num">&nbsp;</p>
<span>&nbsp;</span>
</p>
</div> </div>
</template> </template>
@ -217,5 +221,6 @@
} }
100% {} 100% {}
}</style> }
</style>