用户管理功能调整

This commit is contained in:
wangwenrui
2018-10-23 17:25:29 +08:00
parent faefebe89a
commit ab59e338a1
8 changed files with 96 additions and 11 deletions

View File

@@ -3754,10 +3754,10 @@ amki.message.state1=Invalid
au.message.title=Add user information
au.message.yhbh1=Username already exists!
au.text.yhbh=Username
au.message.hasSpecialChar=There are special characters in the user name. Please re-enter it.
au.message.hasZH=Username cannot include Chinese, please re-enter
au.message.hasSpecialChar=Tip: only English letters and Numbers are allowed
au.message.hasZH=Tip: only English letters and Numbers are allowed
au.message.onlyNumber=Username cannot be a pure number
au.message.cannotHasZH=Character and numbers are mixed,can not include specil character
au.message.cannotHasZH=Tip: only English letters and Numbers are allowed
au.text.yhmc=Real Name
au.message.email=E-mail format is incorrect, please re-enter!
au.message.js=Please select at least one character!

View File

@@ -19,8 +19,8 @@ main.message.stateInfo2=全部成功
main.message.stateInfo3=全部失败
main.message.stateInfo4=部分成功
main.message.info=下列任务已完成
main.text.logout=退出系统
main.text.systemSelect=系统切换
main.text.logout=退出视图
main.text.systemSelect=视图切换
main.text.welcome=您好
main.text.systemName=当前视图
main.message.I3=浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。
@@ -3756,10 +3756,10 @@ amki.message.state1=无效
au.message.title=添加用户信息
au.message.yhbh1=用户名已存在!
au.text.yhbh=用户名
au.message.hasSpecialChar=用户名存在特殊字符,请重新输入
au.message.hasZH=用户名不能包括中文,请重新输入
au.message.hasSpecialChar=提示 :只允许英文字母和数字
au.message.hasZH=提示 :只允许英文字母和数字
au.message.onlyNumber=用户名不能为纯数字
au.message.cannotHasZH=字符和数字混合,不能包括特殊字符
au.message.cannotHasZH=提示 :只允许英文字母和数字
au.text.yhmc=真实姓名
au.message.email=E-mail格式不正确请重新输入!
au.message.js=请至少选择一个角色!

View File

@@ -193,7 +193,7 @@
$(function(){
var nationRole=${session.nationRole};//配置文件中获取
var preView=${preViewIds};
if(nationRole==null||nationRole=="-1"){
$("input[type='button']").attr("disabled","disabled");
alert("please add or modify 'myconfig.properties' ,there need a parameter 'nation.role.jsbh'");
@@ -213,7 +213,7 @@
});
}
}
preViewCheck(preView);
$(urole).click(function(){
var uroleVal=this.value;
@@ -224,6 +224,7 @@
}else{
$(group).removeProp("disabled");
$(group).removeProp("checked");
preViewCheck(preView);
$(group).click(function(){
if(this.checked||this.checked=="checked"){
$(group).removeProp("checked");
@@ -235,6 +236,27 @@
});
function preViewCheck(preView){
if(preView!=null&&preView!=""&&preView!=undefined){
var objGroup=$("input[name='group']");
var flag=false;
for(var i=0;i<objGroup.length;i++){
var value=$(objGroup[i]).val();
for(var j=0;j<preView.length;j++){
console.log(preView[j]+"-->"+$(objGroup[i]).val());
var preValue=preView[j];
if(value==preValue){
flag=true;
}
}
if(!flag){
$(objGroup[i]).attr("disabled","disabled");
}
flag=false;
}
}
}
</script>
</head>
<body>

View File

@@ -107,6 +107,7 @@
$(function(){
var nationRole=${session.nationRole};//配置文件中获取
var preView=${preViewIds};
if(nationRole==null||nationRole=="-1"){
$("input[type='button']").attr("disabled","disabled");
alert("please add or modify 'myconfig.properties' ,there need a parameter 'nation.role.jsbh'");
@@ -127,6 +128,7 @@
});
}
}
preViewCheck(preView);
$(urole).click(function(){
var uroleVal=this.value;
if(uroleVal!=null&&uroleVal!=""&&uroleVal==nationRole){//角色选择为 nation role ,选择所有用户组,不允许修改
@@ -135,6 +137,7 @@
}else{
$(group).removeAttr("disabled");
$(group).removeAttr("checked");
preViewCheck(preView);
$(group).click(function(){
if(this.checked||this.checked=="checked"){
$(group).removeAttr("checked");
@@ -146,6 +149,27 @@
});
function preViewCheck(preView){
if(preView!=null&&preView!=""&&preView!=undefined){
var objGroup=$("input[name='group']");
var flag=false;
for(var i=0;i<objGroup.length;i++){
var value=$(objGroup[i]).val();
for(var j=0;j<preView.length;j++){
console.log(preView[j]+"-->"+$(objGroup[i]).val());
var preValue=preView[j];
if(value==preValue){
flag=true;
}
}
if(!flag){
$(objGroup[i]).attr("disabled","disabled");
}
flag=false;
}
}
}
</script>
</head>
<body>

View File

@@ -320,7 +320,7 @@
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top"> i18n_gil.text.index_n81i </td>
<td class="color_top">i18n_gil.text.userGroupDesc_n81i</td>
<td class="color_top">i18n_gil.text.userGroup_n81i</td>
<td class="color_top" >i18n_gil.text.userGroupDesc_n81i</td>
<td class="color_top">i18n_gil.text.state_n81i</td>
<td class="color_8" >i18n_gil.text.operation_n81i</td>