coworkview_wev8.js
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* created by bpf in Oct,2013
**/
window.typeid=null;
window.workflowid=null;
window.nodeids=null;
/**
* wuiform.init针对本页的功能来说无任何作用,纯粹用于解决兼容init.jsp中的JS/css冲突的问题
**/
wuiform.init=function(){
wuiform.textarea();
wuiform.wuiBrowser();
wuiform.select();
}
flowPageManager.loadFunctions.leftNumMenu = function(){
var needflowOut=true;
var needflowResponse=true;
var numberTypes={
flowAll:{hoverColor:"#EE5F5F",color:"#EE5F5F",title:"分类信息"}
};
$(".ulDiv").leftNumMenu(demoLeftMenus,{
numberTypes:numberTypes,
showZero:false,
menuStyles:["menu_lv1",""],
clickFunction:function(attr,level,numberType){
leftMenuClickFn(attr,level,numberType);
}
});
var sumCount=0;
$(".e8_level_2").each(function(){
sumCount+=parseInt($(this).find(".e8_block:last").html());
});
jQuery(".ulDiv").height(jQuery(".ulDiv").children(":first").height());
window.setTimeout(function(){
jQuery(".ulDiv").height(jQuery(".ulDiv").children(":first").height());
},5000);
//$(".leftType").append("("+sumCount+")");
}
function leftMenuClickFn(attr,level,numberType){
var typeid="";
if(level==1){
var mainTypeDiv=$("#overFlowDiv div[parentid="+attr.mainTypeId+"]").each(function(){
typeid+=","+$(this).attr("subTypeId");
});
typeid=typeid.length>0?typeid.substring(1):"";
}else{
typeid=attr.subTypeId;
}
var url = "";
if(level == 2){
url=menuUrl+"&typeid="+attr.subTypeId;
}else{
url=menuUrl+"&mainid="+attr.mainTypeId;
}
$(".flowFrame").attr("src",url);
if(layout=="1")
showMenu();
}