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.
jeecg/src/main/webapp/webpage/system/user/noticeList.jsp

55 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools"></t:base>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:1px;">
<t:datagrid name="noticeList" title="common.notice" actionUrl="noticeController.do?datagrid" idField="id" fit="true" sortName="createTime" sortOrder="desc">
<t:dgCol title="编号" field="id" hidden="true"></t:dgCol>
<t:dgCol title="状态" field="isRead" width="40" replace="已读_1,未读_0"></t:dgCol>
<t:dgCol title="标题" field="noticeTitle" width="120"></t:dgCol>
Author:xugj Date:20160330 for#1012 【平台bug】系统公告列表时间格式不对 -->
<t:dgCol title="时间" field="createTime" formatter="yyyy-MM-dd hh:mm" width="80"></t:dgCol>
<t:dgCol title="common.operation" field="opt" width="40"></t:dgCol>
<t:dgFunOpt funname="doRead(id,isRead)" title="common.read"></t:dgFunOpt>
</t:datagrid>
</div>
</div>
<script type="text/javascript" charset="utf-8">
$('#noticeList').datagrid({
rowStyler:function(index,row){
if (row.isRead!=1){
return 'font-weight:bold !important;';
}
}
});
function doRead(id,isRead){
if(isRead!=1){
var url = "noticeController.do?updateNoticeRead";
$.ajax({
url:url,
type:"GET",
dataType:"JSON",
data:{
noticeId:id
},
success:function(data){
if(data.success){
$('#noticeList').datagrid({
rowStyler:function(index,row){
if (row.isRead!=1){
return 'font-weight:bold !important;';
}else{
return 'font-weight:normal;';
}
}
});
}
}
});
}
var addurl = "noticeController.do?goNotice&id="+id;
createdetailwindow("通知公告详情", addurl, 750, 600);
}
</script>