Pārlūkot izejas kodu

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

临城职教中职
zhangli pirms 2 gadiem
vecāks
revīzija
5f8196ee33
1 mainītis faili ar 12 papildinājumiem un 10 dzēšanām
  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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt