소스 검색

评价信息改成列表

gcz 2 년 전
부모
커밋
26b03f091c
1개의 변경된 파일16개의 추가작업 그리고 8개의 파일을 삭제
  1. 16 8
      pages/center/reportList/reportDetails.vue

+ 16 - 8
pages/center/reportList/reportDetails.vue

@@ -49,14 +49,11 @@
 				<view class=""><b>上报时间:</b>{{pageData.updateTime}}</view>
 			</view>
 		</view>
-		<view class="evaluateDes-wrap" v-if="pageData.evaluateDes">
+		<view class="evaluateDes-wrap" v-if="pageData.evaluateList.length>=1">
 			<view class="block-til">评价信息</view>
-			<view class="base-info">
-				<view class="base-info-item">
-					<view class=""><b>评价内容:</b>{{pageData.evaluateDes}}</view>
-				</view>
-				<view class="base-info-item">
-					<view class=""><b>评价人:</b>{{pageData.evaluateBy}}</view>
+			<view class="evaluate-list">
+				<view class="evaluate-item" v-for="(item,index) in pageData.evaluateList" :key="index">
+					{{item.evaluateDes}}--{{item.createBy}}
 				</view>
 			</view>
 		</view>
@@ -74,7 +71,7 @@
 		data(){
 			return{
 				title:'记录详情',
-				pageData:[],
+				pageData:{evaluateList:[]},
 				id:'',
 				deviceId:'',
 				dataList:[],
@@ -150,4 +147,15 @@
 .block-til{
 	margin-left: 24rpx;
 }
+.evaluate-list{
+	margin: 24rpx;
+	padding: 24rpx;
+	border-radius: 10rpx;
+	background: #fff;
+	.evaluate-item{
+		&+.evaluate-item{
+			margin-top: 10rpx;
+		}
+	}
+}
 </style>