Selaa lähdekoodia

实验室传感器展示修改

dedsudiyu 3 viikkoa sitten
vanhempi
commit
04b659f0ed
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      pages_manage/views/laboratory/iotControl.vue

+ 5 - 4
pages_manage/views/laboratory/iotControl.vue

@@ -16,7 +16,7 @@
 			<view class="sensor-min" v-for="(item,index) in sensorData" :key="index">
 				<img class="sensor-l" :src="baseUrl+item.icon" />
 				<view class="sensor-r" :class="item.type?'color-B':'color-A'">{{item.deviceName}}:
-					{{item.deviceValue?item.deviceValue:''}}{{item.unit?item.unit:''}}
+					{{item.deviceValue?item.deviceValue:'--'}}{{item.unit&&item.deviceValue?item.unit:''}}
 				</view>
 			</view>
 		</view>
@@ -530,18 +530,19 @@
 					width: 42rpx;
 					height: 42rpx;
 					margin-right: 20rpx;
+					margin-top:12rpx;
 				}
 
 				.sensor-r {
+					display: inline-block;
 					font-family: PingFang SC;
 					font-weight: 500;
 					font-size: 28rpx;
-
+					height:30rpx;
 					line-height: 30rpx;
+					margin-top:18rpx;
 					overflow: hidden;
-
 					text-overflow: ellipsis;
-
 					white-space: nowrap;
 				}