接口节流优化
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
<template v-for="(item,index) in IOData">
|
||||
<view class="item">{{ item.clDid }}</view>
|
||||
<view class="item">
|
||||
<!-- <view class="status-point-success mr10"></view>-->
|
||||
<view style="width: 30rpx"> {{ item.value || '-'}}</view>
|
||||
<view v-if="item.value"> °C</view>
|
||||
</view>
|
||||
@@ -119,7 +118,7 @@ export default {
|
||||
navMenuActive: 0,
|
||||
navHeight: 0,
|
||||
img: '',
|
||||
topoImg:'',
|
||||
topoImg: '',
|
||||
navMenuList: [
|
||||
{
|
||||
text: '基本',
|
||||
@@ -369,10 +368,10 @@ export default {
|
||||
// }
|
||||
// })
|
||||
this.IOData = JSON.parse(message.toString())
|
||||
this.IOData.forEach(item=>{
|
||||
if(item.value === 0){
|
||||
this.IOData.forEach(item => {
|
||||
if (item.value === 0) {
|
||||
item.value = '0'
|
||||
}else if(!item.value){
|
||||
} else if (!item.value) {
|
||||
item.value = ''
|
||||
}
|
||||
})
|
||||
@@ -467,6 +466,7 @@ export default {
|
||||
width: 110rpx;
|
||||
font-size: 16rpx;
|
||||
opacity: 0.8;
|
||||
|
||||
.grid-card-content-2,
|
||||
.grid-card-content-1 {
|
||||
font-size: 16rpx;
|
||||
@@ -484,6 +484,7 @@ export default {
|
||||
right: 10rpx;
|
||||
width: 200rpx;
|
||||
opacity: 0.8;
|
||||
|
||||
.grid-card-content-2,
|
||||
.grid-card-content-1 {
|
||||
font-size: 16rpx;
|
||||
|
||||
Reference in New Issue
Block a user