| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <%@ 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>
- <!-- update-begin Author:xugj Date:20160330 for:#1012 【平台bug】系统公告列表时间格式不对 -->
- <t:dgCol title="时间" field="createTime" formatter="yyyy-MM-dd hh:mm" width="80"></t:dgCol>
- <!-- update-end Author:xugj Date:20160330 for:#1012 【平台bug】系统公告列表时间格式不对 -->
- <t:dgCol title="common.operation" field="opt"></t:dgCol>
- <!-- //update-begin--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
- <t:dgFunOpt funname="doRead(id,isRead)" title="common.read" urlclass="ace_button" urlfont="fa-trash-o"></t:dgFunOpt>
- <!-- //update-end--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
- </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>
|