CRMCategory_wev8.js
1.8 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
70
71
72
/**
* 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 numberTypes={
flowNew:{hoverColor:"#EE5F5F",color:"#EE5F5F",title:getLabel('16400','新的客户') },
flowAll:{hoverColor:"#A6A6A6",color:"black",title:getLabel('15581','所有客户') }
};
$(".ulDiv").leftNumMenu(demoLeftMenus,{
numberTypes:numberTypes,
showZero:false,
menuStyles:["menu_lv1",""],
expand:{
url:function(attr,level){
return attr.urlSum;
},
done:function(children,attr,level){
jQuery(".ulDiv").height(jQuery(".ulDiv").children(":first").height());
jQuery('#overFlowDiv').perfectScrollbar("update");
}
},
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());
});
//$(".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+"&mainTypeId="+attr.parentid+"&subTypeId="+attr.subTypeId;
}else{
url=menuUrl+"&mainTypeId="+attr.mainTypeId;
}
$(".flowFrame").attr("src",url);
if(layout=="1")
showMenu();
}