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.
195 lines
6.5 KiB
195 lines
6.5 KiB
1 month ago
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
<%@page import="org.wdk.WDK"%>
|
||
|
<%@page import="org.wdk.WDKConstant"%>
|
||
|
<%@page import="org.wdk.WDKCore"%>
|
||
|
<%@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 lang="zh-CN">
|
||
|
<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标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||
|
<title>用户管理-人员管理</title>
|
||
|
<base href="<%=basePath%>" target="_self">
|
||
|
|
||
|
<!-- Bootstrap -->
|
||
|
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/bs/core/js/wdk_bs.js"></script>
|
||
|
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body class="page_body ov_h">
|
||
|
<input type="hidden" id="account_uuid">
|
||
|
<div class="container-fluid h100 pd_t_10" >
|
||
|
<div class="row" style="height:100px;">
|
||
|
<form class="validator-form bv-form form-horizontal" >
|
||
|
<div class="form-group">
|
||
|
<label for="login_name" class="col-lg-2 col-md-2 col-xs-2 col-sm-2 control-label tar">用户:</label>
|
||
|
<div class="col-lg-9 col-md-9 col-xs-9 col-sm-9">
|
||
|
<input type="text" class="form-control" name="login_name" id="login_name" readonly="readonly">
|
||
|
<!-- <span class="glyphicon glyphicon-lock form-control-feedback"></span> -->
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- <div class="form-group">
|
||
|
<label for="user_uuid" class="col-lg-2 col-md-2 col-xs-2 col-sm-2 control-label tar">人员:</label>
|
||
|
<div class="col-lg-9 col-md-9 col-xs-9 col-sm-9">
|
||
|
<div class="input-group">
|
||
|
<input type="text" class="form-control" placeholder="请选择人员" id="user_uuid" name="user_uuid" >
|
||
|
<span class="input-group-btn">
|
||
|
<button class="btn btn-default" type="button" id="btn_userSelect">
|
||
|
<span class="glyphicon glyphicon-search"></span>
|
||
|
</button>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div> -->
|
||
|
<div class="form-group">
|
||
|
<label for="" class="col-lg-2 col-md-2 col-xs-2 col-sm-2 control-label tar">人员:</label>
|
||
|
<div class="col-lg-9 col-md-9 col-xs-9 col-sm-9">
|
||
|
<div id="user_uuid_div" class="btn-group select2-container">
|
||
|
<input id="user_uuid_tree" value="13" type="hidden">
|
||
|
<input aria-haspopup="true" aria-expanded="false" id="user_uuid" class="form-control" name="user_uuid" readOnly="readonly" value="" placeholder="" data-toggle="dropdown">
|
||
|
<span id="user_uuid_arrow" class="arrow"><span class="glyphicon glyphicon-remove"></span><b role="presentation"></b></span>
|
||
|
<ul style="width: 100%;" class="dropdown-menu">
|
||
|
<div style="overflow: auto; min-height: 100px; max-height: 200px;" id="user_uuid_ztree" class="ztree"></div>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="row" style="height:50px;">
|
||
|
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12 tac" >
|
||
|
<span id="flag_info"> </span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row" style="">
|
||
|
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12 tac" >
|
||
|
<input class="btn btn-primary" type="button" value="确定" id="btn_submit">
|
||
|
<input class="btn btn-default" type="button" value="取消" id="btn_close">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
<script>
|
||
|
var param = $.getURLParam('param');
|
||
|
var _wid = $.getURLParam('wid');
|
||
|
var jparam = $.str2json($.urlparam_decode(param));
|
||
|
var _account_uuid = jparam.queryParams.account_uuid;
|
||
|
var _login_name = jparam.queryParams.login_name;
|
||
|
|
||
|
$(function(){
|
||
|
$('#login_name').val(_login_name);
|
||
|
|
||
|
//注册表单验证逻辑
|
||
|
$('.validator-form').bootstrapValidator({
|
||
|
live: "enabled",
|
||
|
feedbackIcons: {
|
||
|
valid: 'glyphicon glyphicon-ok',
|
||
|
invalid: 'glyphicon glyphicon-remove',
|
||
|
validating: 'glyphicon glyphicon-refresh'
|
||
|
},
|
||
|
fields: {
|
||
|
user_uuid:{
|
||
|
validators: {
|
||
|
notEmpty: {
|
||
|
message: '人员不能为空'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
//注册人员选择控件
|
||
|
$.combo_tree({
|
||
|
id:'user_uuid',
|
||
|
checkbox:false,
|
||
|
expandall:false,
|
||
|
cascadeCheck:false,
|
||
|
asyn:true,
|
||
|
queryParams:{
|
||
|
_SRVNAME:'service.uum.staff'
|
||
|
,_SRVMETHOD:'queryOrgStaffTree'
|
||
|
,_DATA:$.json2str({
|
||
|
op_account_uuid:$.getSessionUser().account_id
|
||
|
,manage_unit_uuid:$.getSessionUser().manageunituuid
|
||
|
,parent_uuid:''
|
||
|
})
|
||
|
,_RSTYPE:'tree'
|
||
|
,_RSFIELD:'orgstaff_info'
|
||
|
,_RSPARAM:$.json2str({
|
||
|
idField:'nodeid'
|
||
|
,textField:'nodename'
|
||
|
,parentField:'parentid'
|
||
|
})
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
//注册关闭按钮事件
|
||
|
$("#btn_close").on("click", function(){
|
||
|
$.closeWin();
|
||
|
});
|
||
|
//注册关闭按钮事件
|
||
|
$("#btn_submit").on("click", function(){
|
||
|
var bootstrapValidator = $(".validator-form").data('bootstrapValidator');
|
||
|
bootstrapValidator.validate();
|
||
|
if(bootstrapValidator.isValid()){
|
||
|
$.wait_open();
|
||
|
var _op_account_pwd = $('#op_account_pwd').val();
|
||
|
var dataParam = {
|
||
|
_SRVNAME:'service.uum.account'
|
||
|
,_SRVMETHOD:'resetAcc'
|
||
|
,_DATA:$.json2str({
|
||
|
op_account_uuid:'<%=su.getAccount_id()%>'
|
||
|
,op_account_pwd:_op_account_pwd
|
||
|
,actionflag:_actionflag
|
||
|
,account_uuid:account_uuid
|
||
|
})
|
||
|
};
|
||
|
|
||
|
//通过界面直接调用服务
|
||
|
$.cuajax({
|
||
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime(),
|
||
|
method:"post",
|
||
|
timeout:WDK_Timeout,
|
||
|
data:dataParam,
|
||
|
success:function(result) {
|
||
|
$.wait_close();
|
||
|
//返回值字符串转json
|
||
|
var jres = $.str2json(result);
|
||
|
if(jres.code=="1"){ //操作成功
|
||
|
alert(jres.desc);
|
||
|
$.closeWin();
|
||
|
}else{
|
||
|
alert(jres.desc);
|
||
|
}
|
||
|
|
||
|
},
|
||
|
error:function(result){
|
||
|
$.wait_close();
|
||
|
alert('网络错误!result='+result);
|
||
|
}
|
||
|
});
|
||
|
}else{
|
||
|
alert(bootstrapValidator.getMessages());
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
</html>
|