|
|
@@ -5,6 +5,7 @@ |
|
|
|
<iframe v-if="ready&&contentType == 2" style="width: 100%;height: calc(100vh - 150px);" :src="CONFIG('webHost')+'/Utility/ListContentView?keyValue='+keyValue" frameborder="0"></iframe> |
|
|
|
</view> |
|
|
|
<view class="padding-sm text-grey notice-info"> |
|
|
|
<view class="text-right">信息来源: {{ f_sourcename }}</view> |
|
|
|
<view class="text-right">本页内容发布于 {{ time }}</view> |
|
|
|
<view class="text-right">{{ date }}</view> |
|
|
|
</view> |
|
|
@@ -20,6 +21,8 @@ export default { |
|
|
|
ready: false, |
|
|
|
content: '', |
|
|
|
time: '', |
|
|
|
classdata:new Array(), |
|
|
|
f_sourcename:'', |
|
|
|
date: '', |
|
|
|
contentType:'', |
|
|
|
keyValue:'', |
|
|
@@ -40,10 +43,18 @@ export default { |
|
|
|
}else{ |
|
|
|
this.contentType = 1 |
|
|
|
} |
|
|
|
console.log(noticeItem) |
|
|
|
this.content = this.CONVERT_HTML(noticeItem.f_content) |
|
|
|
this.time = moment(noticeItem.f_time).format('HH : mm') |
|
|
|
this.date = moment(noticeItem.f_time).format('YYYY年 M月 D日') |
|
|
|
this.FETCH_DATASOURCE('classdata').then(data => { |
|
|
|
this.classdata = data.data.map(t => ({ |
|
|
|
text: t.name, |
|
|
|
value: t.id |
|
|
|
})); |
|
|
|
const obj=this.classdata.find(t=>t.value==noticeItem.f_sourcename); |
|
|
|
this.f_sourcename=obj?obj.text:''; |
|
|
|
}) |
|
|
|
|
|
|
|
this.SET_TITLE(noticeItem.f_title) |
|
|
|
|
|
|
|
this.ready = true |
|
|
|