| | |
| | | <template> |
| | | <div class="notice-detail-page"> |
| | | <div class="notice-detail-head"> |
| | | <h4 style="margin-bottom: 16px;">{{ noticeInfo.theme }} <el-tag style="margin-left: 10px;" :type="options.find(m=>m.value==noticeInfo.messageType).type" v-if="options.find(m=>m.value==noticeInfo.messageType)">{{ options.find(m=>m.value==noticeInfo.messageType).label }}</el-tag></h4> |
| | | <h4 style="margin-bottom: 16px;" v-if="noticeInfo.theme">{{ noticeInfo.theme }} <el-tag style="margin-left: 10px;" :type="options.find(m=>m.value==noticeInfo.messageType).type" v-if="options.find(m=>m.value==noticeInfo.messageType)">{{ options.find(m=>m.value==noticeInfo.messageType).label }}</el-tag></h4> |
| | | <p style="font-size: 12px;color: #999;margin-bottom: 20px;"> |
| | | <!-- <span>消息类型:审批 </span> --> |
| | | <span>发送人:{{ noticeInfo.createUser }} </span> |
| | |
| | | options:[] |
| | | } |
| | | }, |
| | | created(){ |
| | | this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo")); |
| | | }, |
| | | mounted(){ |
| | | this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo")); |
| | | this.noticeInfo = JSON.parse(localStorage.getItem("noticeInfo")); |
| | | this.$bus.$on("change", (msg) => { |
| | | this.noticeInfo = JSON.parse(msg); |
| | | console.log(this.noticeInfo); |
| | | sessionStorage.setItem("noticeInfo", msg); |
| | | localStorage.setItem("noticeInfo", msg); |
| | | }); |
| | | this.getTypeDicts() |
| | | }, |
| | |
| | | <style scoped> |
| | | .notice-detail-page{ |
| | | height: calc(100% - 30px); |
| | | overflow-y: auto; |
| | | padding: 16px 0; |
| | | } |
| | | .notice-detail-page::-webkit-scrollbar { |
| | | width: 0; |
| | | } |
| | | .notice-detail-head{ |
| | | background: #fff; |
| | |
| | | box-sizing: border-box; |
| | | padding: 8px 20px 20px; |
| | | background: rgba(0,0,0, 0.03); |
| | | box-shadow: 0 0 10px 10px #fff; |
| | | /* box-shadow: 0 0 10px 10px #fff; */ |
| | | border-radius: 4px; |
| | | height: calc(100% - 192px - 22px); |
| | | min-height: calc(100% - 192px - 22px); |
| | | } |
| | | .notice-detail-head-content div{ |
| | | border-radius: 8px; |
| | |
| | | } |
| | | |
| | | .notice-content{ |
| | | height: 100%; |
| | | height: 600px; |
| | | } |
| | | </style> |