123456789101112131415161718192021222324252627282930313233343536373839404142 |
- var url={};
- url.pathname = window.location.pathname;
- url.pathname = url.pathname.substring(0, url.pathname.substring(1).indexOf('/') + 1);
- // 项目名称
- url.path = url.pathname + "/";
- // 上下文路径
- url["http_path"] = window.location.protocol + "//" + window.location.host
- + url.pathname + "/";
- var role={
- admin:/*"R002105430214"*/"UjAwMjEwNTQzMDIxNA==",
- sale:/*"R002105430215"*/"UjAwMjEwNTQzMDIxNQ=="
- };
- //系统管理员ID
- var pageStyle={
- style1:{name:"风格1",iconClass:"icon_style1",text:"#fce059",chartColor:["#ebc52b","#3baffd","#eb760f","#ffffff","#9bd6fd","#bcb4a7"]},
- style2:{name:"风格2",iconClass:"icon_style2",text:"#f0f7fe",chartColor:["#00aef1","#91e0ff","#0c7885","#acf000","#ffffff","#126cf3"]},
- style3:{name:"风格3",iconClass:"icon_style3",text:"#fce059",chartColor:["#a3c21c","#8efad8","#0c7885","#1cc48f","#1ca5c4","#1ca5c4"]},
- style4:{name:"风格4",iconClass:"icon_style4",text:"#4dfcfc",chartColor:["#0171c5","#82c9ff","#b90437","#fb3a71","#a9fa9c","#1cc48f"]},
- style5:{name:"风格5",iconClass:"icon_style5",text:"#fce059",chartColor:["#5bb93c","#a9fa9c","#3c5bb9","#aa9ee9","#cd0840","#80aa79"]},
- style6:{name:"风格6",iconClass:"icon_style6",text:"#d8d8d8",chartColor:["#e16a1a","#1a91e0","#e0cc1a","#88fad6","#1c51c4","#2ee01a"]},
- style7:{name:"风格7",iconClass:"icon_style7",text:"#fce059",chartColor:["#00cc99","#99cc00","#88fad6","#0033cc","#0099cc","#9900cc"]},
- style9:{name:"风格9",iconClass:"icon_style8",text:"#codb4c",chartColor:["#efde1f","#9933ff","#ffffff","#8d01bc","#c6fcf4","#a7da0e"]},
- style10:{name:"风格10",iconClass:"icon_style9",text:"#fce059",chartColor:["#66cccc","#d0fefe","#009999","#8c426c","#a7da0e","#c7ff8f"]},
- style11:{name:"风格11",iconClass:"icon_style10",text:"#fce059",chartColor:["#ff9900","#ffff00","#8c426c","#c7ff8f","#a7da0e","#d0fefe"]}
- };
- var warnningnumber="防风防汛-F-2016-1";
- var start=/*"2016-03-09 20:08:21"*/getCurrentDay(1).startTime;
- var end =/*"2016-03-30 16:07:01"*/getCurrentDay(1).endTime;
- function getCurrentDay(mouth){
- var date=allGetServerTime();
- var temp={};
- var date=allGetServerTime();
- temp.endTime=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" 23:59:59";
- date.setMonth(date.getMonth()-mouth);
- temp.startTime=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" 00:00:00";
- return temp;
-
- }
|