| | |
| | | <template> |
| | | <div class="notice-detail-page"> |
| | | <div class="notice-detail-head"> |
| | | <h4 style="margin-bottom: 16px;">消息主题</h4> |
| | | <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> |
| | | <p style="font-size: 12px;color: #999;margin-bottom: 20px;"> |
| | | <!-- <span>消息类型:审批 </span> --> |
| | | <span>发送人:111 </span> |
| | | <span>发送人:{{ noticeInfo.createUser }} </span> |
| | | <span> </span> |
| | | <span>收件人:111</span> |
| | | <span>收件人:{{ noticeInfo.consigneeUser }}</span> |
| | | <span> </span> |
| | | <span>发件时间:111</span> |
| | | <span>发件时间:{{ noticeInfo.createTime }}</span> |
| | | </p> |
| | | <div class="notice-detail-head-content"> |
| | | <label>内容:</label> |
| | | <div></div> |
| | | <div>{{ noticeInfo.content }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="info-box"> |
| | | <component class="notice-content" :is="noticeInfo.u" style="height: 500px;"> |
| | | </component> |
| | | <div class="info-box" v-if="noticeInfo.jumpPath"> |
| | | <!-- <component class="notice-content" :is="noticeInfo.jumpPath" style="height: 500px;" > |
| | | </component> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | components: comObj, |
| | | data() { |
| | | return{ |
| | | noticeInfo:{ |
| | | u:'b1-report-preparation' |
| | | }, |
| | | noticeInfo:{}, |
| | | options:[] |
| | | } |
| | | }, |
| | | created(){ |
| | | this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo")); |
| | | }, |
| | | mounted(){ |
| | | this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo")); |
| | | this.$bus.$on("change", (msg) => { |
| | | this.noticeInfo = JSON.parse(msg); |
| | | console.log(this.noticeInfo); |
| | | sessionStorage.setItem("noticeInfo", msg); |
| | | }); |
| | | this.getTypeDicts() |
| | | }, |
| | | methods:{ |
| | | getTypeDicts() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "消息类型" |
| | | }).then(res => { |
| | | let data = res.data |
| | | this.options = data; |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |