信呼OA版本v2.3.8
This commit is contained in:
30
webmain/we/ying/yingyong/flow.js
Normal file
30
webmain/we/ying/yingyong/flow.js
Normal file
@@ -0,0 +1,30 @@
|
||||
yy.onclickmenu=function(d){
|
||||
if(d.url=='moreapply'){
|
||||
js.location('?d=we&m=flow&a=apply');
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
function myyingsinit(){
|
||||
var s = '<select id="modeid" style="width:100px;border:none;background:white;font-size:14px"><option value="0">选择模块</option></select>';
|
||||
$('#searsearch_bar').prepend(s);
|
||||
$('#modeid').change(function(){
|
||||
yy.search({'modeid':this.value});
|
||||
});
|
||||
}
|
||||
yy.onshowdata=function(da){
|
||||
if(da.modearr){
|
||||
var s = '<option value="0">选择模块</option>',len=da.modearr.length,i,csd,types='';
|
||||
for(i=0;i<len;i++){
|
||||
csd = da.modearr[i];
|
||||
if(types!=csd.type){
|
||||
if(types!='')s+='</optgroup>';
|
||||
s+='<optgroup label="'+csd.type+'">';
|
||||
}
|
||||
s+='<option value="'+csd.id+'">'+csd.name+'</option>';
|
||||
types = csd.type;
|
||||
}
|
||||
if(len>0)$('#modeid').html(s);
|
||||
}
|
||||
}
|
||||
myyingsinit();
|
||||
Reference in New Issue
Block a user