68186dd66e258518bca37bac82b905f2d7cbe854.svn-base 2.3 KB

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