|
@@ -21,7 +21,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="message-center">
|
|
|
- <view class="message-center-item">{{messageItem.content.replace(/<[^>]+>/g,' ')}}</view>
|
|
|
+ <view class="message-center-item">
|
|
|
+ {{messageItem.content.replace(/<[^>]+>/g,' ')}}
|
|
|
+ <text v-if="messageItem.msgType=='1'">--{{messageItem.createBy}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="message-bottom">
|
|
|
<u-cell-item title="查看详情" style="color: #008CFF;"></u-cell-item>
|
|
@@ -103,17 +106,14 @@
|
|
|
// 跳转消息详情
|
|
|
goDetails(item) {
|
|
|
if (Number(item.readFlag) === 0) {
|
|
|
+ // console.log('item',item);
|
|
|
+ // return
|
|
|
this.$u.api.updateInspecMsgStatus({
|
|
|
id: item.id
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$u.route({
|
|
|
- url: 'pages/center/message/messageInfo',
|
|
|
- params: {
|
|
|
- details: JSON.stringify(item)
|
|
|
- }
|
|
|
- });
|
|
|
+ this.goLink(item);
|
|
|
} else {
|
|
|
this.$refs.uToast.show({
|
|
|
title: res.msg,
|
|
@@ -122,12 +122,28 @@
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ this.goLink(item);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ goLink(item){
|
|
|
+ if(item.msgType=='0'){
|
|
|
this.$u.route({
|
|
|
url: 'pages/center/message/messageInfo',
|
|
|
params: {
|
|
|
details: JSON.stringify(item)
|
|
|
}
|
|
|
});
|
|
|
+ }else if(item.msgType=='1'){
|
|
|
+ this.$u.route({
|
|
|
+ url: 'pages/center/reportList/reportDetails',
|
|
|
+ params:{
|
|
|
+ id:item.tabId,
|
|
|
+ // deviceId:item.deviceId,
|
|
|
+ // roadNo:this.roadNo,
|
|
|
+ // roadName:this.roadName,
|
|
|
+ // deviceType:this.deviceType,
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
},
|