Files
laws_weilai/jero-web/src/views/system/MessageDetails.vue
T
2022-07-21 17:52:01 +08:00

95 lines
2.2 KiB
Java

<template>
<div class="box">
<div class="box-header">
<a-icon type="left-circle" @click="iconClick" class="icon" theme="filled"/>
<span class="box-header-left-text">
{{this.$route.query.msgContent}}
</span>
<span class="box-header-right-text">
{{$t('NotificationTime')}}: {{this.$route.query.sendTime || this.$route.query.createTime}}
</span>
</div>
<div class="box-content" v-html="this.$route.query.msgContentInfo">
<!-- {{this.$route.query.msgContentInfo}}-->
</div>
</div>
</template>
<script>
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
export default {
name: 'MessageDetails',
methods: {
iconClick() {
if (this.$route.query.isCustomContentList) {
this.$router.push({
path: '/customContentList'
})
} else {
this.$router.push({
path: '/isps/userAnnouncement'
})
}
}
},
mounted() {
if (this.$route.query.msgContentInfo && this.$route.query.msgContentInfo.includes('downLoadFile')) {
let index = this.$route.query.msgContentInfo.indexOf('target')
this.$route.query.msgContentInfo = this.$route.query.msgContentInfo.slice(0, index - 2) + '&token=' + Vue.ls.get(ACCESS_TOKEN) + '\' '
+ this.$route.query.msgContentInfo.slice(index)
}
}
}
</script>
<style scoped>
.box {
width: 100%;
}
.box-header {
padding: 0 32px;
height: 68px;
line-height: 68px;
border-bottom: 2px #eff1f3 solid;
}
.icon {
font-size: 32px;
color: #00A0E9;
margin-right: 30px;
display: inline-block;
float: left;
line-height: 75px;
}
.box-header-left-text {
width: calc(100% - 420px);
font-size: 18px;
display: inline-block;
color: #040B29;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-header-right-text {
font-size: 16px;
float: right;
display: inline-block;
line-height: 88px;
color: #040B29;
opacity: 0.5;
}
.box-content {
padding: 40px 70px;
box-sizing: border-box;
color: #040B29;
font-size: 16px;
text-indent: 24px;
/*letter-spacing: 1px*/
}
</style>