You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
3.7 KiB
141 lines
3.7 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
|
|
<title>查看系统消息详情</title>
|
|
<script type="text/javascript">
|
|
<% if(null==su){%>
|
|
$.timeout();
|
|
<%}%>
|
|
</script>
|
|
<style>
|
|
.syscreatedate{
|
|
color: #999999;
|
|
}
|
|
.content{
|
|
padding-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="easyui-layout" data-options="fit:true">
|
|
<!-- div data-options="region:'north',border:false,collapsed:false" class="page-title" style="height:45px;line-height:34px;">
|
|
<div class="page-title-text"></div>
|
|
<div class="page-toolbar" id="button_div">
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-close'" onclick="opt_close()">关闭</a>
|
|
</div>
|
|
</div> -->
|
|
<div data-options="region:'center',border:false,collapsed:false,fit:true" style="padding: 20px 20px ">
|
|
<div class="edit-container1">
|
|
<div class="row" >
|
|
<div id="syscreatedate" class="syscreatedate"></div>
|
|
<div id="content" class="content"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<script>
|
|
var _wid = $.getURLParam('wid');
|
|
var param = $.getURLParam('param');
|
|
var jparam = $.str2json($.urlparam_decode(param));
|
|
var _msg_uuid = jparam.queryParams.msg_uuid;
|
|
|
|
$(function() {
|
|
initData();
|
|
});
|
|
|
|
|
|
//初始化对象数据
|
|
function initData(){
|
|
$.wait_open();
|
|
//组织参数
|
|
var dataParam = {
|
|
_SRVNAME:'service.pf.sysmsg'
|
|
,_SRVMETHOD:'queryMsgById'
|
|
,_DATA:$.json2str({
|
|
user_info:{
|
|
account_id:$.getSessionUser().account_id
|
|
,personuuid:$.getSessionUser().personuuid
|
|
,manageunituuid:$.getSessionUser().manageunituuid
|
|
}
|
|
,msg_uuid:_msg_uuid
|
|
,result_fields:''
|
|
})
|
|
};
|
|
|
|
//加载数据
|
|
$.cuajax({
|
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
|
,method:"post"
|
|
,timeout:WDK_Timeout
|
|
,data:dataParam
|
|
,success:function(result) {
|
|
$.wait_close();
|
|
var jres = $.str2json(result);
|
|
//加载成功
|
|
if(jres.code=="1"){
|
|
//回填数据
|
|
if(jres.result){
|
|
if(jres.result.content){
|
|
$("#content").html(jres.result.content);
|
|
}
|
|
if(jres.result.syscreatedate){
|
|
$("#syscreatedate").html(jres.result.syscreatedate);
|
|
}
|
|
if(jres.result.is_readed && jres.result.is_readed=="0"){
|
|
setReaded();
|
|
}
|
|
}
|
|
}
|
|
},
|
|
error:function(result){
|
|
$.wait_close();
|
|
alert('网络错误!result='+result);
|
|
}
|
|
});
|
|
}
|
|
//如果是未读的,设置为已读,且触发监听
|
|
function setReaded(){
|
|
//组织参数
|
|
var dataParam = {
|
|
_SRVNAME:'service.pf.sysmsg'
|
|
,_SRVMETHOD:'setReaded'
|
|
,_DATA:$.json2str({
|
|
user_info:{
|
|
account_id:$.getSessionUser().account_id
|
|
,personuuid:$.getSessionUser().personuuid
|
|
,manageunituuid:$.getSessionUser().manageunituuid
|
|
}
|
|
,msg_uuid:_msg_uuid
|
|
})
|
|
};
|
|
|
|
//加载数据
|
|
$.cuajax({
|
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
|
,method:"post"
|
|
,timeout:WDK_Timeout
|
|
,data:dataParam
|
|
,success:function(result) {
|
|
var jres = $.str2json(result);
|
|
//加载成功
|
|
if(jres.code=="1"){
|
|
//触发监听
|
|
$.notify("sysmsg_unread");
|
|
$.notify("sysmsg_list");
|
|
}
|
|
},
|
|
error:function(result){
|
|
alert('网络错误!result='+result);
|
|
}
|
|
});
|
|
}
|
|
|
|
// 关闭
|
|
function opt_close(){
|
|
$.closeWin(_wid);
|
|
}
|
|
</script>
|
|
</html>
|