Browse Source

app通知公告查看增加来源显示

娄底高职分支
liangkun 2 years ago
committed by ndbs
parent
commit
e973c9095b
4 changed files with 20 additions and 3 deletions
  1. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js
  2. +0
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/EmpInfo/list.vue
  3. +0
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue
  4. +12
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home/notice.vue

+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js View File

@@ -24,6 +24,14 @@ var bootstrap = function ($, learun) {
$.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + id, function (data) {
$("#F_FullHead").text(data.F_FullHead);
$("#F_CreateDate").text(data.F_CreateDate);
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: data.F_SourceName,
keyId: 'id',
callback: function (_data) {
$("#F_CreateUserName").text(_data['name'] || data.F_SourceName);
}
});
$("#F_CreateUserName").text(data.F_CreateUserName);
$("#F_Category").text(data.F_Category);
//$("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));


+ 0
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/EmpInfo/list.vue View File

@@ -164,7 +164,6 @@ export default {
this.id
);
this.id=result.EmpInfo.EmpId;
console.log(result);
this.origin = await this.formatFormData(result);
}
this.current = this.COPY(this.origin);


+ 0
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue View File

@@ -572,7 +572,6 @@ export default {

// 点击通知公告的标题
async noticeClick(item) {
console.log(item);
if(item.f_category!==undefined){
this.NAV_TO("/pages/home/notice", item, true);
}else{


+ 12
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home/notice.vue View File

@@ -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


Loading…
Cancel
Save