From 320c17c6aa6c0157300b2d1005a0c9a5ed311a70 Mon Sep 17 00:00:00 2001
From: zhangli <1109134334@qq.com>
Date: Mon, 10 May 2021 12:25:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/MessageRindController.cs | 1 -
.../Views/MessageRind/UnreadIndex.cshtml | 66 +++++++------------
.../Views/LR_Content/script/lr-layer.js | 2 +-
3 files changed, 24 insertions(+), 45 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/MessageRindController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/MessageRindController.cs
index 19bd02828..35f6e64ca 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/MessageRindController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/MessageRindController.cs
@@ -171,7 +171,6 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
/// 实体
///
[HttpPost]
- [ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveReadSigns(string keyValue)
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml
index fb0603873..5012d734d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml
@@ -85,51 +85,31 @@
//更改状态为已读
var MessageId = params[2];
if (top.learun.checkrow(MessageId)) {
- top.learun.deleteForm(top.$.rootUrl + '/LR_Desktop/MessageRind/SaveReadSigns', { keyValue: MessageId }, function () {
- //弹窗查看详情
- var keyValue = params[1];
- var ConnectionUrl = params[3];
- var title = params[0];
- if (top.learun.checkrow(keyValue)) {
- top.learun.layerForm({
- id: 'formview',
- title: title,
- url: top.$.rootUrl + ConnectionUrl + keyValue,
- width: 1000,
- height: 650,
- maxmin: true,
- btn: null,
- });
+ $.ajax({
+ url: top.$.rootUrl + '/LR_Desktop/MessageRind/SaveReadSigns',
+ type: "post",
+ data: { keyValue: MessageId },
+ dataType: "json",
+ async: false,
+ success: function (data) {
+ //弹窗查看详情
+ var keyValue = params[1];
+ var ConnectionUrl = params[3];
+ var title = params[0];
+ if (top.learun.checkrow(keyValue)) {
+ top.learun.layerForm({
+ id: 'formview',
+ title: title,
+ url: top.$.rootUrl + ConnectionUrl + keyValue,
+ width: 1000,
+ height: 650,
+ maxmin: true,
+ btn: null,
+ });
+ }
}
- });
-
-
- //$.ajax({
- // url: top.$.rootUrl + '/LR_Desktop/MessageRind/SaveReadSigns',
- // type: "post",
- // data: { keyValue: MessageId },
- // dataType: "json",
- // async: false,
- // success: function (data) {
- // //弹窗查看详情
- // var keyValue = params[1];
- // var ConnectionUrl = params[3];
- // var title = params[0];
- // if (top.learun.checkrow(keyValue)) {
- // top.learun.layerForm({
- // id: 'formview',
- // title: title,
- // url: top.$.rootUrl + ConnectionUrl + keyValue,
- // width: 1000,
- // height: 650,
- // maxmin: true,
- // btn: null,
- // });
-
- // }
- // }
- //})
+ })
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-layer.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-layer.js
index 91d496ea3..6e90f97e0 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-layer.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-layer.js
@@ -70,7 +70,7 @@
dfop.width = dfop.width > $(window).width() ? $(window).width() - 10 : dfop.width;
dfop.height = dfop.height > $(window).height() ? $(window).height() - 10 : dfop.height;
var r = 0;
- r=top.layer.open({
+ r = top.layer.open({
id: dfop.id,
maxmin: dfop.maxmin,
type: 2, //0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层)