You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ListContentIndex.js 2.7 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  3. * Copyright (c) 2013-2018 北京泉江科技有限公司
  4. * 创建人:陈彬彬
  5. * 日 期:2018.04.28
  6. * 描 述:桌面消息查看
  7. */
  8. var id = request('id');
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. $('#F_NewsImage').lrUploader({ isUpload: false, isView:false});
  14. $('.warpper').lrscroll();
  15. var item = top['dtlist' + id];
  16. if(false){// (!!item) {
  17. $("#F_FullHead").text(item.f_title);
  18. $("#F_CreateDate").text(item.f_createdate);
  19. $("#F_CreateUserName").text(item.f_createusername);
  20. $("#F_Category").text(item.f_category);
  21. $("#F_NewsContent").html($('<div></div>').html(item.f_content).text());
  22. } else {
  23. $.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + id, function (data) {
  24. $("#F_FullHead").text(data.F_FullHead);
  25. $("#F_CreateDate").text(data.F_CreateDate);
  26. learun.clientdata.getAsync('custmerData', {
  27. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
  28. key: data.F_SourceName,
  29. keyId: 'id',
  30. callback: function (_data) {
  31. $("#F_CreateUserName").text(_data['name'] || data.F_SourceName);
  32. }
  33. });
  34. $("#F_Category").text(data.F_Category);
  35. //$("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));
  36. $("#newscontentframe").attr("src","/Utility/ListContentView?keyValue="+id);
  37. $('#F_NewsImage').lrUploaderSet(data.F_NewsImage);
  38. });
  39. }
  40. //阅读
  41. learun.httpAsyncPost(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/NewsRead", { newsId: id }, function (res) {
  42. });
  43. //阅读者列表
  44. learun.httpAsyncGet(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/GetNewsReadList?newsId=" + id, function (res) {
  45. if (res.code == 200) {
  46. var html = '';
  47. for (var i = 0; i < res.data.rows.length; i++) {
  48. var item = res.data.rows[i];
  49. html += '<li><span class="listSec2sT">' + item.RUserName + '</span><span class="listSec2sTime">' + item.RTime + '</span></li>';
  50. }
  51. $('#readlist').html(html);
  52. }
  53. });
  54. }
  55. };
  56. page.init();
  57. }