Selaa lähdekoodia

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

临城职教中职
zhangli 2 vuotta sitten
vanhempi
commit
5f8196ee33
1 muutettua tiedostoa jossa 12 lisäystä ja 10 poistoa
  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 Näytä tiedosto

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


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

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


}
}

} }
}) })
}


}
}); });
}); });


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


//} //}


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

Ladataan…
Peruuta
Tallenna