tSNoticeList.jsp 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  4. <div id="main_depart_list" class="easyui-layout" fit="true">
  5. <div region="center" style="padding:1px;">
  6. <t:datagrid name="tSNoticeList" checkbox="true" fitColumns="true" title="common.notice" actionUrl="noticeController.do?datagrid2" idField="id" fit="true" queryMode="group">
  7. <t:dgCol title="ID" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
  8. <t:dgCol title="通知标题" field="noticeTitle" hidden="false" queryMode="group" width="320"></t:dgCol>
  9. <%-- <t:dgCol title="通知公告内容" field="noticeContent" hidden="true" queryMode="group" width="120"></t:dgCol> --%>
  10. <t:dgCol title="common.type.name" field="noticeType" hidden="false" queryMode="group" width="60" replace="通知_1,公告_2"></t:dgCol>
  11. <t:dgCol title="授权级别" field="noticeLevel" hidden="false" queryMode="group" width="100" replace="全员_1,角色授权_2,用户授权_3"></t:dgCol>
  12. <t:dgCol title="阅读期限" field="noticeTerm" formatter="yyyy-MM-dd" hidden="false" queryMode="group" width="120"></t:dgCol>
  13. <t:dgCol title="common.operation" field="opt"></t:dgCol>
  14. <!-- //update-begin--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
  15. <t:dgDelOpt title="common.delete" url="noticeController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
  16. <!-- //update-end--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
  17. <t:dgToolBar title="common.add" icon="icon-add" operationCode="add" url="noticeController.do?goAdd" funname="add" width="800" height="600"></t:dgToolBar>
  18. <t:dgToolBar title="common.edit" icon="icon-edit" operationCode="edit" url="noticeController.do?goUpdate" funname="update" width="800" height="600"></t:dgToolBar>
  19. <t:dgToolBar title="common.batchDelete" icon="icon-remove" operationCode="remove" url="noticeController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
  20. <!-- //update-begin--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
  21. <%-- <t:dgFunOpt exp="noticeLevel#eq#2" funname="queryRoles(id)" title="common.authority" urlclass="ace_button" urlfont="fa-toggle-on"></t:dgFunOpt>
  22. <t:dgFunOpt exp="noticeLevel#eq#3" funname="queryUsers(id)" title="common.authority" urlclass="ace_button" urlfont="fa-toggle-on"></t:dgFunOpt>--%>
  23. <!-- //update-end--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
  24. </t:datagrid>
  25. </div>
  26. </div>
  27. <div data-options="region:'east',
  28. title:'通知公告授权管理',
  29. collapsed:true,
  30. split:true,
  31. border:false,
  32. onExpand : function(){
  33. li_east = 1;
  34. },
  35. onCollapse : function() {
  36. li_east = 0;
  37. }"
  38. style="width: 500px; overflow: hidden;">
  39. <div class="easyui-panel" style="padding: 1px;" fit="true" border="false" id="subListpanel"></div>
  40. </div>
  41. <script type="text/javascript">
  42. function queryRoles(id){
  43. if(li_east == 0){
  44. $('#main_depart_list').layout('expand','east');
  45. }
  46. $('#subListpanel').panel("refresh", "noticeAuthorityRoleController.do?noticeAuthorityRole&noticeId=" + id);
  47. }
  48. function queryUsers(id){
  49. if(li_east == 0){
  50. $('#main_depart_list').layout('expand','east');
  51. }
  52. $('#subListpanel').panel("refresh", "noticeAuthorityUserController.do?noticeAuthorityUser&noticeId=" + id);
  53. }
  54. </script>