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.
 
 
 
 
 
 

123 lines
4.0 KiB

<%@ 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 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">
<title>用户管理-密码重置</title>
<base href="<%=basePath%>" target="_self">
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/je/core/js/wdk.js"></script>
<script type="text/javascript">
var param = $.getURLParam('param');
var _wid = $.getURLParam('wid');
var jparam = $.str2json($.urlparam_decode(param));
/*
操作类型
actionflag=resetpwd 重置密码
actionflag=unlock 解锁
actionflag=active 激活
actionflag=disable 停用
*/
var _actionflag = jparam.queryParams.actionflag;
var _account_uuid = jparam.queryParams.account_uuid;
$(function(){
if('disable'==_actionflag){
flag_info = '确定要停用该账号吗?';
}else if('active'==_actionflag){
flag_info = '确定要启用该账号吗?';
}else if('resetpwd'==_actionflag){
flag_info = '确定要重置密码吗?';
}else if('unlock'==_actionflag){
flag_info = '确定要解锁该账号吗?';
}
});
function opt_save(){
if($('#op_account_pwd').val()==""){
alert("请输入管理员密码!");
return ;
}
confirmDialog(flag_info,function(){
$.wait_open();
$.cuajax({
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
,method:"post"
,timeout:WDK_Timeout
,data:{
_SRVNAME:'service.uum.account'
,_SRVMETHOD:'resetAcc'
,_DATA:$.json2str({
op_account_uuid:$.getSessionUser().account_id
,op_account_pwd:$('#op_account_pwd').val()
,actionflag:_actionflag
,account_uuid:_account_uuid
})
},
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);
}
});
},function(){});
}
//关闭当前页面
function opt_close() {
var wid = $.getURLParam("wid");
$.closeWin(wid);
}
</script>
</head>
<body class="easyui-layout win" data-options="fit:true">
<div data-options="region:'north',border:false,collapsed:false" class="page-title" style="height:50px;line-height:35px;">
<div class="page-toolbar">
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="opt_save()">确定</a>
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="opt_close()">关闭</a>
</div>
</div>
<div data-options="region:'center',border:false,collapsed:false" >
<div class="edit-container-win1">
<form id="edit_form">
<input type="hidden" id="account_uuid">
<div class="row">
<div class="formgroup">
<label class="required">管理员密码</label>
<div>
<input type="password" class="easyui-validatebox" id="op_account_pwd" name="op_account_pwd" value="" placeholder="请输入管理员密码" style="width:70%;" onkeydown="if(event.keyCode==13){return false;}"/>
</div>
</div>
</div>
</form>
</div>
</div>
</body>
</html>