| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <t:datagrid name="noticeAuthorityUserList" checkbox="true" fitColumns="false" title="common.authority.user" actionUrl="noticeAuthorityUserController.do?datagrid¬iceId=${noticeId}" idField="id" fit="true" queryMode="group">
- <t:dgCol title="ID" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="通告ID" field="noticeId" hidden="true" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="common.username" field="user.userName" hidden="false" queryMode="group" width="180"></t:dgCol>
- <t:dgCol title="common.operation" field="opt"></t:dgCol>
- <!-- //update-begin--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
- <t:dgDelOpt title="common.delete" url="noticeAuthorityUserController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
- <!-- //update-end--Author:zhangjq Date:20160904 for:1332 【系统图标统一调整】讲{系统管理模块}{在线开发}的链接按钮,改成ace风格 -->
- <t:dgToolBar title="common.authority.user" icon="icon-add" operationCode="add" url="noticeAuthorityUserController.do?doSave" funname="addAuthorityUser"></t:dgToolBar>
- </t:datagrid>
- <input type="hidden" id="pNoticeId" value="${noticeId}" />
- <script>
- //授权用户
- function addAuthorityUser(title,url, id){
- $.dialog({
- width:600,
- height:400,
- id: 'LHG1976D',
- title: "选择通知公告授权用户",
- max: false,
- min: false,
- resize: false,
- content: 'url:noticeAuthorityUserController.do?selectUser',
- lock:true,
- ok: function(){
- iframe = this.iframe.contentWindow;
- var userId = iframe.getUserId();
- var noticeId = $("#pNoticeId").val();
- if(userId==""){
- return false;
- }else{
- url += '&user.id='+userId;
- url += '¬iceId='+noticeId;
- doAjax(url);
- }
- },
- close: function(){
- }
- });
- }
- function doAjax(url) {
- $.ajax({
- async : false,
- cache : false,
- type : 'POST',
- url : url,// 请求的action路径
- error : function() {// 请求失败处理函数
- },
- success : function(data) {
- var d = data; // ------ $.parseJSON(data);
- if (d.success) {
- tip(d.msg);
- $('#noticeAuthorityUserList').datagrid('reload',{});
- }
- }
- });
- }
- </script>
|