用户管理功能调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user