From 6bda566bcff6002831cb90b41741527b2e9c334a Mon Sep 17 00:00:00 2001 From: liangkun Date: Tue, 6 Sep 2022 17:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A=E9=80=9A=E7=9F=A5=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E9=A1=B5=E9=9D=A2=E5=B5=8C=E5=A5=97iframe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/UtilityController.cs | 20 +++++++++++++++++++ .../Views/Utility/ListContentIndex.cshtml | 5 +++-- .../Views/Utility/ListContentIndex.js | 3 ++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs index 6151dc105..2f5a72623 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs @@ -5,7 +5,9 @@ using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; +using System.Net.Http; using System.Web.Mvc; +using Learun.Application.OA; namespace Learun.Application.Web.Controllers { @@ -595,6 +597,24 @@ namespace Learun.Application.Web.Controllers { return View(); } + + private NoticeIBLL noticeIBLL = new NoticeBLL(); + [HttpGet] + public ActionResult ListContentView(string keyValue) + { + var data = noticeIBLL.GetEntity(keyValue); + data.F_NewsContent = WebHelper.HtmlDecode(data.F_NewsContent); + return Content(data.F_NewsContent); + } + /// + /// 失物招领 + /// + /// + [HttpGet] + public ActionResult ListContentIndexLost() + { + return View(); + } #endregion #region 开发向导 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml index 4581f7574..25b3bc637 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml @@ -23,9 +23,10 @@ 发布: 公告类别: -
+ @*
-
+
*@ +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js index cfc21c109..d56a2b6ac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.js @@ -26,7 +26,8 @@ var bootstrap = function ($, learun) { $("#F_CreateDate").text(data.F_CreateDate); $("#F_CreateUserName").text(data.F_CreateUserName); $("#F_Category").text(data.F_Category); - $("#F_NewsContent").html($('
').html(data.F_NewsContent)); + //$("#F_NewsContent").html($('
').html(data.F_NewsContent)); + $("#newscontentframe").attr("src","/Utility/ListContentView?keyValue="+id); $('#F_NewsImage').lrUploaderSet(data.F_NewsImage); }); }