소스 검색

周期显示

zhengkaixin 2 주 전
부모
커밋
ab87868441
3개의 변경된 파일30개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 1
      pages/myTab/abnormalList.vue
  2. 14 5
      pages/team/stationAdd.vue
  3. 15 7
      pages/team/stationMy.vue

+ 1 - 1
pages/myTab/abnormalList.vue

@@ -2,7 +2,7 @@
 	<view>
 		<u-navbar title="异常告警记录"></u-navbar>
 		<view class="main">
-			<view class="tabs">
+			<view class="tabs" v-if="0">
 				<u-picker v-model="tabsFrom.show1" :default-selector="[tabsFrom.show1Index]" mode="selector"
 					:range="tabsFrom.selector1" range-key="label" @confirm="selector1confirm"></u-picker>
 				<u-picker-select title="日期选择" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index"

+ 14 - 5
pages/team/stationAdd.vue

@@ -19,8 +19,11 @@
 						{{item.stationNo}}<span class="y">|</span>{{item.name}}
 					</view>
 					
-					<view class="v2" v-if="item.stationAddress">
-						{{item.stationAddress}}
+				
+					<view class="v2" :class="{
+						v3:item.inspectionCycle
+					}">
+						{{item.inspectionCycle?'巡检周期:'+item.inspectionCycle+'天':'未设置'}}
 					</view>
 				</view>
 				
@@ -317,9 +320,15 @@
 
 			}
 
-			.v2 {
-				color: rgba(119, 119, 119, 1);
-				font-size: 24rpx;
+			
+			.v2 {
+				color: red;
+				font-size: 24rpx;
+				    white-space: pre;
+			}
+			.v3 {
+				color: rgba(119, 119, 119, 1);
+				font-size: 24rpx;
 			}
 
 		}

+ 15 - 7
pages/team/stationMy.vue

@@ -17,8 +17,10 @@
 					{{item.stationNo}}<span class="y">|</span>{{item.name}}
 				</view>
 
-				<view class="v2" v-if="item.stationAddress">
-					{{item.stationAddress}}
+				<view class="v2" :class="{
+					v3:item.inspectionCycle
+				}">
+					{{item.inspectionCycle?'巡检周期:'+item.inspectionCycle+'天':'未设置'}}
 				</view>
 
 			</view>
@@ -160,9 +162,10 @@
 		.item {
 			padding: 24rpx 32rpx;
 			background: #fff;
-			display: flex;
-			flex-direction: column;
-
+		display: flex;
+			    flex-direction: row;
+			    justify-content: space-between;
+align-items: center;
 			.vquery {
 				display: flex;
 				align-items: center;
@@ -204,8 +207,13 @@
 			}
 
 			.v2 {
-				color: rgba(119, 119, 119, 1);
-				font-size: 24rpx;
+				color: red;
+				font-size: 24rpx;
+				    white-space: pre;
+			}
+			.v3 {
+				color: rgba(119, 119, 119, 1);
+				font-size: 24rpx;
 			}
 
 		}