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.
177 lines
4.7 KiB
177 lines
4.7 KiB
1 month ago
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
<%@ page import="org.wdk.WDKConstant"%>
|
||
|
<%@ page import="org.wdk.WDKCore"%>
|
||
|
<%@ page import="org.wdk.WDK"%>
|
||
|
<%@ page import="com.noblelift.imp.platform.module.portal.source.SessionUser"%>
|
||
|
<%
|
||
|
String path = request.getContextPath();
|
||
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
|
||
|
String WDK_ROOT = WDKCore.WDK_ROOT;
|
||
|
SessionUser su = (SessionUser)WDK.getSessionUser(request, response);
|
||
|
WDK.writeSessionUser(out, su);
|
||
|
%>
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||
|
|
||
|
<base href="<%=basePath%>" target="_self">
|
||
|
<title>应用云平台-应用注册</title>
|
||
|
<style type="text/css">
|
||
|
</style>
|
||
|
|
||
|
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/je/core/js/wdk.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
<% if(null==su){%>
|
||
|
$.timeout();
|
||
|
<%}%>
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="easyui-layout" data-options="fit:true,border:false,collapsed:false">
|
||
|
<div data-options="region:'north',border:false,collapsed:false" class="page-title" style="overflow:hidden">
|
||
|
<div class="page-toolbar">
|
||
|
|
||
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-plus'" onclick="roleAcc()">设置管理员</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div data-options="region:'center',border:false,collapsed:false" >
|
||
|
<div class="easyui-layout" data-options="fit:true">
|
||
|
<div data-options="region:'north',border:false,collapsed:false" class="row-1" style="padding:0 10px;overflow:hidden;" >
|
||
|
<form id="search_form" >
|
||
|
<div class="h_layout">
|
||
|
<div >
|
||
|
<div class="inputgroup " >
|
||
|
<label>关键字</label>
|
||
|
<div>
|
||
|
<input id="conditions" type="text" class="easyui-validatebox" placeholder="" aria-describedby="basic-addon1">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div style="width:125px;">
|
||
|
<a class="eapbutton" style="float:right;" onclick="opt_query()"><i class="fa fa-search" aria-hidden="true"></i><span><span>查询</span></span></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
</div>
|
||
|
<div id="layout_grid" data-options="region:'center',border:false,collapsed:false" style="padding:0px 10px;" >
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
var _gridcode = "platform.portal.saconsole.appadmingrid";
|
||
|
var _gridid = $.getUUID();
|
||
|
//页面初始化
|
||
|
$(function() {
|
||
|
|
||
|
var dataParam = getGridQueryParam();
|
||
|
//查询grid数据
|
||
|
var gridid = $.grid({
|
||
|
id : _gridid,
|
||
|
containerid : 'layout_grid',
|
||
|
gridcode : _gridcode,
|
||
|
checkbox : false,
|
||
|
checkOnSelect : true,
|
||
|
selectOnCheck : true,
|
||
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime(),
|
||
|
queryParams:dataParam,
|
||
|
idField:"app_uuid",
|
||
|
commandField:"command",
|
||
|
fitColumns:true, //是否自动填充满
|
||
|
nowrap:false, //自动换行
|
||
|
pagination:true,
|
||
|
formatter:{
|
||
|
|
||
|
is_active:'formatter_active',
|
||
|
command:'formatter_command'
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
//获取grid查询参数
|
||
|
function getGridQueryParam(){
|
||
|
var account_name = $('#account_name').val();
|
||
|
var dataParam = {
|
||
|
_SRVNAME:'service.portal.appadmin'
|
||
|
,_SRVMETHOD:'query'
|
||
|
,_DATA:$.json2str({
|
||
|
op_account_uuid : $.getSessionUser().account_id,
|
||
|
conditions:$("#conditions").val()
|
||
|
})
|
||
|
,_RSTYPE:'grid'
|
||
|
,_RSFIELD:'app_info'
|
||
|
,_RSPARAM:$.json2str({pagequery:'1'})
|
||
|
};
|
||
|
return dataParam;
|
||
|
}
|
||
|
|
||
|
//是否
|
||
|
function formatter_active(value,row,index){
|
||
|
return (value == '1') ? "是" : "否";
|
||
|
}
|
||
|
//操作
|
||
|
function formatter_command(value,row,index) {
|
||
|
return "<a href='javascript:void(0);' onclick=roleAcc('"+row.app_uuid+"','"+row.role_uuid+"')>设置管理员</a>"
|
||
|
;
|
||
|
}
|
||
|
|
||
|
//查询
|
||
|
function opt_query() {
|
||
|
//组织参数
|
||
|
var dataParam = getGridQueryParam();
|
||
|
$.grid_reload({
|
||
|
id:_gridid,
|
||
|
queryParams:dataParam
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
$("#conditions").on("keydown", function (e) {
|
||
|
if (e.which === 13) {
|
||
|
opt_query();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
function roleAcc() {
|
||
|
var row = $.grid_getSelected({
|
||
|
id : _gridid
|
||
|
});
|
||
|
if(row.app_uuid==undefined||row.app_uuid==""){
|
||
|
alert("当前应用管理员角色不存在");
|
||
|
return;
|
||
|
}
|
||
|
var wid = $.getUUID();
|
||
|
$.openWin({
|
||
|
id: wid,
|
||
|
title: '角色关联用户',
|
||
|
height: 500,
|
||
|
width: 800,
|
||
|
url: 'platform/uum/uum_role_roleacc.jsp',
|
||
|
queryParams:{
|
||
|
actionflag: 'roleacc',
|
||
|
selected_id: row.role_uuid,
|
||
|
app_uuid:row.app_uuid
|
||
|
},
|
||
|
onClose: function() {
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</html>
|