소스 검색

增加评论功能

空白格 2 년 전
부모
커밋
66fa85fd5f

+ 3 - 1
common/apiurl.js

@@ -111,7 +111,9 @@ export const apiurl = {
     // 获取设备异常记录详情接口
     // 获取设备异常记录详情接口
     getDeviceAbnormalDetailsUrl: '/operator/deviceexcptionoper/findById',
     getDeviceAbnormalDetailsUrl: '/operator/deviceexcptionoper/findById',
     // 修改设备异常记录信息为已读接口
     // 修改设备异常记录信息为已读接口
-    updateDeviceAbnormalInfoUrl: '/operator/deviceexcptionoper/updateRedStatus'
+    updateDeviceAbnormalInfoUrl: '/operator/deviceexcptionoper/updateRedStatus',
+		// 添加评论
+		addDeviceAbnormalRecordsEvaluateUrl: '/operator/deviceexcptionevaluate'
   },
   },
 	// 应急处置记录模块接口
 	// 应急处置记录模块接口
   emergencyDisposal: {
   emergencyDisposal: {

+ 3 - 3
common/config.js

@@ -1,6 +1,6 @@
-let baseUrl = 'https://wx.hw.hongweisoft.com/parking/' // 测试环境
-// let baseUrl = 'https://parking.pdzhtc.com/' // 正式环境
+// let baseUrl = 'https://wx.hw.hongweisoft.com/parking/' // 测试环境
+let baseUrl = 'https://parking.pdzhtc.com/' // 正式环境
 export const config = {
 export const config = {
 	baseUrl,
 	baseUrl,
-	version: '0.1.6'
+	version: '0.1.8'
 }
 }

+ 2 - 1
common/http.api.js

@@ -249,7 +249,8 @@ const install = (Vue, vm) => {
         params
         params
       }),
       }),
     // 修改设备异常记录信息为已读
     // 修改设备异常记录信息为已读
-    updateDeviceAbnormalInfoApi: (params = {}) => vm.$u.http.put(apiurl.deviceAbnormal.updateDeviceAbnormalInfoUrl, params)
+    updateDeviceAbnormalInfoApi: (params = {}) => vm.$u.http.put(apiurl.deviceAbnormal.updateDeviceAbnormalInfoUrl, params),
+		addDeviceAbnormalRecordsEvaluateApi: (params = {}) => vm.$u.http.post(apiurl.deviceAbnormal.addDeviceAbnormalRecordsEvaluateUrl, params)
   };
   };
 	// 应急处置记录模块
 	// 应急处置记录模块
 	let emergencyDisposalApi = {
 	let emergencyDisposalApi = {

+ 248 - 239
pages.json

@@ -1,241 +1,250 @@
 {
 {
-  "pages": [
-    {
-      "path": "pages/index/index",
-      "style": {
-        "navigationBarTitleText": "首页",
-        "navigationStyle": "custom"
-      }
-    },
-    {
-      "path": "pages/login/login",
-      "style": {
-        "navigationBarTitleText": "登录",
-        "enablePullDownRefresh": false,
-        "navigationStyle": "custom"
-      }
-    },
-    {
-      "path": "pages/dataOverview/todayOverview/todayOverview",
-      "style": {
-        "navigationBarTitleText": "今日概况",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/dataOverview/operationalAnalysis/operationalAnalysis",
-      "style": {
-        "navigationBarTitleText": "运营分析",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/dataOverview/statisticalReport/statisticalReport",
-      "style": {
-        "navigationBarTitleText": "统计报表",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/parkingRecord/parkingRecord",
-      "style": {
-        "navigationBarTitleText": "停车记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/arrearageRecord/arrearageRecord",
-      "style": {
-        "navigationBarTitleText": "欠费记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/collectionRecord/collectionRecord",
-      "style": {
-        "navigationBarTitleText": "收款记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/feeEvasionRecord/feeEvasionRecord",
-      "style": {
-        "navigationBarTitleText": "逃费记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/voidRecord/voidRecord",
-      "style": {
-        "navigationBarTitleText": "作废记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/orderManagement/recoveryRecord/recoveryRecord",
-      "style": {
-        "navigationBarTitleText": "追缴记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/patrolManagement/patrolRecord/patrolRecord",
-      "style": {
-        "navigationBarTitleText": "巡检记录",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/patrolManagement/deviceAbnormalRecords/deviceAbnormalRecords",
-      "style": {
-        "navigationBarTitleText": "设备异常记录",
-        "enablePullDownRefresh": true,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/patrolManagement/deviceAbnormalRecords/recordsDetails/recordsDetails",
-      "style": {
-        "navigationBarTitleText": "设备异常记录详情",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/collectorManagement/performanceRanking/performanceRanking",
-      "style": {
-        "navigationBarTitleText": "业绩排名",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/collectorManagement/performanceAnalysis/performanceAnalysis",
-      "style": {
-        "navigationBarTitleText": "业绩分析",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/collectorManagement/assessmentRanking/assessmentRanking",
-      "style": {
-        "navigationBarTitleText": "考核排名",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/collectorManagement/assessmentAnalysis/assessmentAnalysis",
-      "style": {
-        "navigationBarTitleText": "考核分析",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/collectorManagement/shiftScheduling/shiftScheduling",
-      "style": {
-        "navigationBarTitleText": "排班情况",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/patrolManagement/emergencyDisposalRecords/emergencyDisposalRecords",
-      "style": {
-        "navigationBarTitleText": "应急处置记录",
-        "enablePullDownRefresh": true,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/operationalAnalysis/roadModel/index",
-      "style": {
-        "navigationBarTitleText": "路段分析",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/operationalAnalysis/parkModel/index",
-      "style": {
-        "navigationBarTitleText": "停车场分析",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/statisticalReport/roadModel/index",
-      "style": {
-        "navigationBarTitleText": "路段统计",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/statisticalReport/parkModel/index",
-      "style": {
-        "navigationBarTitleText": "停车场统计",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white"
-      }
-    },
-    {
-      "path": "pages/appUpdate/appUpdate",
-      "style": {
-        "navigationBarTitleText": "应用更新",
-        "enablePullDownRefresh": false,
-        "navigationStyle": "custom"
-      }
-    },
-    {
-      "path": "pages/patrolManagement/emergencyDisposalRecords/recordsDetails/recordsDetails",
-      "style": {
-        "navigationBarTitleText": "详情",
-        "enablePullDownRefresh": false,
-        "navigationBarBackgroundColor": "#1767F2",
-        "navigationBarTextStyle": "white",
-        "backgroundColor": "#1767F2"
-      }
-    }
-  ],
-  "globalStyle": {
-    "navigationBarTextStyle": "black",
-    "navigationBarTitleText": "智慧停车运营端",
-    "navigationBarBackgroundColor": "#F8F8F8",
-    "backgroundColor": "#F8F8F8"
-  }
+	"pages": [{
+			"path": "pages/index/index",
+			"style": {
+				"navigationBarTitleText": "首页",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/login/login",
+			"style": {
+				"navigationBarTitleText": "登录",
+				"enablePullDownRefresh": false,
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/dataOverview/todayOverview/todayOverview",
+			"style": {
+				"navigationBarTitleText": "今日概况",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/dataOverview/operationalAnalysis/operationalAnalysis",
+			"style": {
+				"navigationBarTitleText": "运营分析",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/dataOverview/statisticalReport/statisticalReport",
+			"style": {
+				"navigationBarTitleText": "统计报表",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/parkingRecord/parkingRecord",
+			"style": {
+				"navigationBarTitleText": "停车记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/arrearageRecord/arrearageRecord",
+			"style": {
+				"navigationBarTitleText": "欠费记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/collectionRecord/collectionRecord",
+			"style": {
+				"navigationBarTitleText": "收款记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/feeEvasionRecord/feeEvasionRecord",
+			"style": {
+				"navigationBarTitleText": "逃费记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/voidRecord/voidRecord",
+			"style": {
+				"navigationBarTitleText": "作废记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/orderManagement/recoveryRecord/recoveryRecord",
+			"style": {
+				"navigationBarTitleText": "追缴记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/patrolManagement/patrolRecord/patrolRecord",
+			"style": {
+				"navigationBarTitleText": "巡检记录",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/patrolManagement/deviceAbnormalRecords/deviceAbnormalRecords",
+			"style": {
+				"navigationBarTitleText": "设备异常记录",
+				"enablePullDownRefresh": true,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/patrolManagement/deviceAbnormalRecords/recordsDetails/recordsDetails",
+			"style": {
+				"navigationBarTitleText": "设备异常记录详情",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/collectorManagement/performanceRanking/performanceRanking",
+			"style": {
+				"navigationBarTitleText": "业绩排名",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/collectorManagement/performanceAnalysis/performanceAnalysis",
+			"style": {
+				"navigationBarTitleText": "业绩分析",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/collectorManagement/assessmentRanking/assessmentRanking",
+			"style": {
+				"navigationBarTitleText": "考核排名",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/collectorManagement/assessmentAnalysis/assessmentAnalysis",
+			"style": {
+				"navigationBarTitleText": "考核分析",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/collectorManagement/shiftScheduling/shiftScheduling",
+			"style": {
+				"navigationBarTitleText": "排班情况",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/patrolManagement/emergencyDisposalRecords/emergencyDisposalRecords",
+			"style": {
+				"navigationBarTitleText": "应急处置记录",
+				"enablePullDownRefresh": true,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/operationalAnalysis/roadModel/index",
+			"style": {
+				"navigationBarTitleText": "路段分析",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/operationalAnalysis/parkModel/index",
+			"style": {
+				"navigationBarTitleText": "停车场分析",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/statisticalReport/roadModel/index",
+			"style": {
+				"navigationBarTitleText": "路段统计",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/statisticalReport/parkModel/index",
+			"style": {
+				"navigationBarTitleText": "停车场统计",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/appUpdate/appUpdate",
+			"style": {
+				"navigationBarTitleText": "应用更新",
+				"enablePullDownRefresh": false,
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/patrolManagement/emergencyDisposalRecords/recordsDetails/recordsDetails",
+			"style": {
+				"navigationBarTitleText": "详情",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white",
+				"backgroundColor": "#1767F2"
+			}
+		}, {
+			"path": "pages/patrolManagement/deviceAbnormalRecords/addEvaluate/addEvaluate",
+			"style": {
+				"navigationBarTitleText": "评论",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#1767F2",
+				"navigationBarTextStyle": "white",
+				"backgroundColor": "#1767F2"
+			}
+
+		}
+	],
+	"globalStyle": {
+		"navigationBarTextStyle": "black",
+		"navigationBarTitleText": "智慧停车运营端",
+		"navigationBarBackgroundColor": "#F8F8F8",
+		"backgroundColor": "#F8F8F8"
+	}
 }
 }

+ 74 - 0
pages/patrolManagement/deviceAbnormalRecords/addEvaluate/addEvaluate.vue

@@ -0,0 +1,74 @@
+<template>
+	<view class="evaluate">
+		<u--form labelPosition="left" :model="form" :rules="rules" ref="form">
+			<u-form-item label="评价" prop="evaluateDes">
+				<u--textarea v-model="form.evaluateDes" placeholder="请输入评价内容" height="100" count :maxlength="200">
+				</u--textarea>
+			</u-form-item>
+			<u-form-item>
+				<u-button type="primary" text="评价" @click="submitForm" :loading="loading" />
+			</u-form-item>
+		</u--form>
+		<u-toast ref="uToast"></u-toast>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				loading: false,
+				form: {
+					evaluateDes: '',
+					deviceExcptionId: ''
+				},
+				rules: {
+					evaluateDes: {
+						type: 'string',
+						required: true,
+						message: '请填写评价内容',
+						trigger: ['blur', 'change']
+					},
+				}
+			}
+		},
+		onLoad(page) {
+			this.form.deviceExcptionId = page.id
+		},
+		methods: {
+			submitForm() {
+				this.$refs.form.validate().then(res => {
+					this.loading = true
+					uni.$u.api.deviceAbnormalApi.addDeviceAbnormalRecordsEvaluateApi(this.form).then(res => {
+						if (res.code === 200) {
+							this.$refs.uToast.show({
+								loading: true,
+								message: '添加评论成功!',
+								type: 'success',
+								complete() {
+									this.loading = false
+									uni.$u.route({
+										type: 'back'
+									})
+								}
+							});
+						} else {
+							this.$refs.uToast.show({
+								message: '添加评论失败!',
+								type: 'error'
+							});
+						}
+					})
+				}).catch(errors => {
+					uni.$u.toast('校验失败')
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.evaluate {
+		padding: 15px;
+	}
+</style>

+ 7 - 0
pages/patrolManagement/deviceAbnormalRecords/recordsDetails/recordsDetails.scss

@@ -1,4 +1,5 @@
 .details {
 .details {
+	padding-bottom: 40px;
   &-item {
   &-item {
     &-title {
     &-title {
       padding: 10px 15px;
       padding: 10px 15px;
@@ -48,4 +49,10 @@
 		background-color: #fff;
 		background-color: #fff;
 		padding: 30px;
 		padding: 30px;
 	}
 	}
+	&-evaluate {
+		position: fixed;
+		bottom: 3px;
+		padding: 0 15px;
+		width: calc(100% - 30px);
+	}
 }
 }

+ 154 - 142
pages/patrolManagement/deviceAbnormalRecords/recordsDetails/recordsDetails.vue

@@ -1,155 +1,167 @@
 <template>
 <template>
-  <view class="details">
-    <view class="details-item">
-      <view class="details-item-title">
-        <view class="details-item-title-text">异常信息</view>
-      </view>
-      <view class="details-item-content">
-        <template v-if="Number(type) === 3">
+	<view class="details">
+		<view class="details-item">
+			<view class="details-item-title">
+				<view class="details-item-title-text">异常信息</view>
+			</view>
+			<view class="details-item-content">
+				<template v-if="Number(type) === 3">
 					<view class="details-item-content-item">停车场:{{ detailsInfo.roadName || '-' }}</view>
 					<view class="details-item-content-item">停车场:{{ detailsInfo.roadName || '-' }}</view>
 				</template>
 				</template>
-        <template v-else>
-          <view class="details-item-content-item">路段:{{ detailsInfo.roadName || '-' }}</view>
-          <view class="details-item-content-item">泊位号:{{ detailsInfo.spaceNo || '-' }}</view>
-        </template>
-        <view class="details-item-content-item">问题描述:{{ detailsInfo.exceprionDes || '-' }}</view>
-        <view class="details-item-content-item">
-          <view class="left">图片:</view>
-          <view class="right" v-if="detailsInfo.imgList && detailsInfo.imgList.length">
-            <u--image
-              class="right-img"
-              v-for="(item, index) in detailsInfo.imgList"
-              :key="index"
-              :showLoading="true"
-              :src="item"
-              width="80px"
-              height="80px"
-              @click="previewImgae(detailsInfo.imgList, index)"
-            >
-              <view slot="error" style="font-size: 24rpx">加载失败</view>
-            </u--image>
-          </view>
-          <view v-else>暂无</view>
-        </view>
-      </view>
-    </view>
-    <view class="details-item">
-      <view class="details-item-title">
-        <view class="details-item-title-text">处理信息</view>
-      </view>
-      <view class="details-item-content">
-        <view class="details-item-content-item">处理状态:{{ detailsInfo.isProcess | filtersStatus }}</view>
-        <view class="details-item-content-item">处理设备:{{ detailsInfo.processDeviceName || '-' }}</view>
-        <view class="details-item-content-item">损坏方式:{{ detailsInfo.damageTypeName || '-' }}</view>
-        <view class="details-item-content-item">处理方式:{{ detailsInfo.processTypeName || '-' }}</view>
-        <view class="details-item-content-item">处理员:{{ detailsInfo.processBy || '-' }}</view>
-        <view class="details-item-content-item">上报时间:{{ detailsInfo.updateTime || '-' }}</view>
-        <view class="details-item-content-item">上报人:{{ detailsInfo.createBy || '-' }}</view>
-      </view>
-    </view>
-    <view class="details-item">
-      <view class="details-item-title">
-        <view class="details-item-title-text">评价信息</view>
-      </view>
-      <view class="details-item-content" v-if="detailsInfo.evaluateList && detailsInfo.evaluateList.length">
-        <view class="details-item-content-item" v-for="(item, index) in detailsInfo.evaluateList" :key="index">
-          {{ item.evaluateDes }} ------- {{ item.createBy }}
-        </view>
-      </view>
-      <view class="empty" v-else>
-        <u-empty mode="comment" icon="http://cdn.uviewui.com/uview/empty/comment.png" text="暂无评价" iconSize="40" width="120px" height="120px" />
-      </view>
-    </view>
-  </view>
+				<template v-else>
+					<view class="details-item-content-item">路段:{{ detailsInfo.roadName || '-' }}</view>
+					<view class="details-item-content-item">泊位号:{{ detailsInfo.spaceNo || '-' }}</view>
+				</template>
+				<view class="details-item-content-item">问题描述:{{ detailsInfo.exceprionDes || '-' }}</view>
+				<view class="details-item-content-item">
+					<view class="left">图片:</view>
+					<view class="right" v-if="detailsInfo.imgList && detailsInfo.imgList.length">
+						<u--image class="right-img" v-for="(item, index) in detailsInfo.imgList" :key="index"
+							:showLoading="true" :src="item" width="80px" height="80px"
+							@click="previewImgae(detailsInfo.imgList, index)">
+							<view slot="error" style="font-size: 24rpx">加载失败</view>
+						</u--image>
+					</view>
+					<view v-else>暂无</view>
+				</view>
+			</view>
+		</view>
+		<view class="details-item">
+			<view class="details-item-title">
+				<view class="details-item-title-text">处理信息</view>
+			</view>
+			<view class="details-item-content">
+				<view class="details-item-content-item">处理状态:{{ detailsInfo.isProcess | filtersStatus }}</view>
+				<view class="details-item-content-item">处理设备:{{ detailsInfo.processDeviceName || '-' }}</view>
+				<view class="details-item-content-item">损坏方式:{{ detailsInfo.damageTypeName || '-' }}</view>
+				<view class="details-item-content-item">处理方式:{{ detailsInfo.processTypeName || '-' }}</view>
+				<view class="details-item-content-item">处理员:{{ detailsInfo.processBy || '-' }}</view>
+				<view class="details-item-content-item">上报时间:{{ detailsInfo.updateTime || '-' }}</view>
+				<view class="details-item-content-item">上报人:{{ detailsInfo.createBy || '-' }}</view>
+			</view>
+		</view>
+		<view class="details-item">
+			<view class="details-item-title">
+				<view class="details-item-title-text">评价信息</view>
+			</view>
+			<view class="details-item-content" v-if="detailsInfo.evaluateList && detailsInfo.evaluateList.length">
+				<view class="details-item-content-item" v-for="(item, index) in detailsInfo.evaluateList" :key="index">
+					{{ item.evaluateDes }} ------- {{ item.createBy }}
+				</view>
+			</view>
+			<view class="empty" v-else>
+				<u-empty mode="comment" icon="http://cdn.uviewui.com/uview/empty/comment.png" text="暂无评价" iconSize="40"
+					width="120px" height="120px" />
+			</view>
+		</view>
+		<view class="details-evaluate">
+			<u-button type="primary" text="评价"
+				@click="jumpPage('pages/patrolManagement/deviceAbnormalRecords/addEvaluate/addEvaluate', { id: detailsInfo.deviceExcptionId })">
+			</u-button>
+		</view>
+	</view>
 </template>
 </template>
 
 
 <script>
 <script>
-export default {
-  data() {
-    return {
-      id: undefined,
-      detailsInfo: {},
-      loading: false,
-      type: 1
-    };
-  },
-  onLoad(page) {
-    this.id = page.id;
-    this.type = page?.type ?? 1;
-  },
-  onShow() {
-    if (this.id) {
-      this.getDetails(this.id);
-    }
-  },
-  methods: {
-    getDetails(id) {
-      uni.$u.api.deviceAbnormalApi
-        .getDeviceAbnormalDetailsApi({
-          id
-        })
-        .then((res) => {
-          if (res.code === 200) {
-            this.detailsInfo = res.data;
-          }
-        })
-    },
-    /**
-     * 设置消息已读
-     * @param { String } id
-     */
-    updateDeviceAbnormalInfo(id) {
-      uni.$u.api.deviceAbnormalApi
-        .updateDeviceAbnormalInfoApi({
-          id
-        })
-        .then((res) => {
-          console.log('已读:', id);
-        });
-    },
-    /**
-     * 预览图片
-     * @date 2022-08-23
-     * @param {any} imgList
-     * @param {any} index
-     * @returns {any}
-     */
-    previewImgae(imgList, index) {
-      uni.previewImage({
-        current: index,
-        urls: imgList
-      });
-    }
-  },
-  filters: {
-    filtersStatus(val) {
-      let label = '-';
-      if (val || val === 0) {
-        switch (Number(val)) {
-          case 0:
-            label = '未处理';
-            break;
-          case 1:
-            label = '已处理';
-            break;
-          case 2:
-            label = '部分处理';
-            break;
-        }
-      }
-      return label;
-    }
-  }
-};
+	export default {
+		data() {
+			return {
+				id: undefined,
+				detailsInfo: {},
+				loading: false,
+				type: 1
+			};
+		},
+		onLoad(page) {
+			this.id = page.id;
+			this.type = page?.type ?? 1;
+		},
+		onShow() {
+			if (this.id) {
+				this.getDetails(this.id);
+			}
+		},
+		methods: {
+			getDetails(id) {
+				uni.$u.api.deviceAbnormalApi
+					.getDeviceAbnormalDetailsApi({
+						id
+					})
+					.then((res) => {
+						if (res.code === 200) {
+							this.detailsInfo = res.data;
+						}
+					})
+			},
+			/**
+			 * 设置消息已读
+			 * @param { String } id
+			 */
+			updateDeviceAbnormalInfo(id) {
+				uni.$u.api.deviceAbnormalApi
+					.updateDeviceAbnormalInfoApi({
+						id
+					})
+					.then((res) => {
+						console.log('已读:', id);
+					});
+			},
+			/**
+			 * 预览图片
+			 * @date 2022-08-23
+			 * @param {any} imgList
+			 * @param {any} index
+			 * @returns {any}
+			 */
+			previewImgae(imgList, index) {
+				uni.previewImage({
+					current: index,
+					urls: imgList
+				});
+			},
+			/**
+			 * 跳转页面
+			 * @date 2022-09-06
+			 * @param {any} url
+			 * @param {any} params
+			 * @returns {any}
+			 */
+			jumpPage(url, params) {
+				uni.$u.route({
+					url,
+					params
+				})
+			}
+		},
+		filters: {
+			filtersStatus(val) {
+				let label = '-';
+				if (val || val === 0) {
+					switch (Number(val)) {
+						case 0:
+							label = '未处理';
+							break;
+						case 1:
+							label = '已处理';
+							break;
+						case 2:
+							label = '部分处理';
+							break;
+					}
+				}
+				return label;
+			}
+		}
+	};
 </script>
 </script>
 
 
 <style lang="scss">
 <style lang="scss">
-page {
-  min-height: calc(100vh - 44px);
-  background-color: #f6f6f6;
-}
+	page {
+		min-height: calc(100vh - 44px);
+		background-color: #f6f6f6;
+	}
 </style>
 </style>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
-@import './recordsDetails.scss';
+	@import './recordsDetails.scss';
 </style>
 </style>