Browse Source

修复消息提醒没有实例Id时报错问题

临城职教中职
zhangli 2 years ago
parent
commit
5f8196ee33
1 changed files with 12 additions and 10 deletions
  1. +12
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml

+ 12
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/MessageRind/UnreadIndex.cshtml View File

@@ -39,7 +39,7 @@
"~/Areas/LR_Desktop/Views/MessageRind/Index.js"
)

<script type='text/javascript'>
<script type='text/javascript'>
var name = '@(ViewBag.Name)';
$(document).ready(function () {
getdata();
@@ -83,7 +83,6 @@
$('#uldata .lr-item').on('click', function () {
var $obj = $(this);
var params = ($obj.attr('id')).split('、');

//更改状态为已读
var MessageId = params[2];
if (top.learun.checkrow(MessageId)) {
@@ -93,28 +92,31 @@
data: { keyValue: MessageId },
dataType: "json",
async: false,
success: function (data) {
success: function(data) {
//弹窗查看详情
var keyValue = params[1];
var ConnectionUrl = params[3];
var title = params[0];
if (top.learun.checkrow(keyValue)) {
if (!!ConnectionUrl) {
var url = top.$.rootUrl + ConnectionUrl;
if (!!keyValue && keyValue != 'null' && keyValue != 'undefined') {
url += keyValue;
}
top.learun.layerForm({
id: 'formview',
title: title,
url: top.$.rootUrl + ConnectionUrl + keyValue,
url: url,
width: 1000,
height: 650,
maxmin: true,
btn: null,
});

}
}

}
})
}


}
});
});

@@ -136,6 +138,6 @@

//}

</script>
</script>
</body>
</html>

Loading…
Cancel
Save