信呼v2.5.2版本
This commit is contained in:
@@ -128,7 +128,7 @@ class deptClassAction extends Action
|
||||
$bo = $this->contain($val, $ars['did']);
|
||||
}
|
||||
$ars['checked']=$bo;
|
||||
}
|
||||
}
|
||||
}
|
||||
$rows[] = $ars;
|
||||
}
|
||||
@@ -137,7 +137,14 @@ class deptClassAction extends Action
|
||||
|
||||
public function deptuserjsonAjax()
|
||||
{
|
||||
$udarr = m('dept')->getdeptuserdata(1);
|
||||
$udarr = m('dept')->getdeptuserdata(1);
|
||||
$bool = false;
|
||||
if(!ISMORECOM && !$udarr['uarr'] && $udarr['isall']){
|
||||
$udarrs = c('cache')->get('deptuserjson');
|
||||
if($udarrs)$udarr = $udarrs;
|
||||
$bool = true;
|
||||
}
|
||||
|
||||
$userarr = $udarr['uarr'];
|
||||
$deptarr = $udarr['darr'];
|
||||
$grouparr = $udarr['garr'];
|
||||
@@ -145,6 +152,8 @@ class deptClassAction extends Action
|
||||
$arr['deptjson'] = json_encode($deptarr);
|
||||
$arr['userjson'] = json_encode($userarr);
|
||||
$arr['groupjson'] = json_encode($grouparr);
|
||||
$arr['iscache'] = getconfig('usercache');
|
||||
if(!ISMORECOM && $udarr['isall'] && !$bool)c('cache')->set('deptuserjson', $udarr);
|
||||
$this->showreturn($arr);
|
||||
}
|
||||
}
|
||||
@@ -55,15 +55,21 @@ var c = {
|
||||
$('#showtype').css('height',''+he+'px');
|
||||
},
|
||||
loaddata:function(iscs){
|
||||
var url = js.getajaxurl('deptuserjson','dept','system',{'changerange':this.changerange});
|
||||
var url = js.getajaxurl('deptuserjson','dept','system',{'changerange':this.changerange,'gtype':'change'});
|
||||
$('#showdiv_0').html('<div align="center" style="margin-top:30px"><img src="images/mloading.gif"></div>')
|
||||
$.get(url,function(ret){
|
||||
var d = js.decode(ret);
|
||||
ret = d.data;
|
||||
if(c.changerange==''){
|
||||
js.setoption('deptjson', ret.deptjson);
|
||||
js.setoption('userjson', ret.userjson);
|
||||
js.setoption('groupjson', ret.groupjson);
|
||||
if(ret.iscache=='1'){
|
||||
js.setoption('deptjson', '');
|
||||
js.setoption('userjson', '');
|
||||
js.setoption('groupjson', '');
|
||||
}else{
|
||||
js.setoption('deptjson', ret.deptjson);
|
||||
js.setoption('userjson', ret.userjson);
|
||||
js.setoption('groupjson', ret.groupjson);
|
||||
}
|
||||
}
|
||||
|
||||
c.userarr = js.decode(ret.userjson);
|
||||
|
||||
Reference in New Issue
Block a user