78b9dfd923c54c60760af5df41cde87d84d77fa3.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. //业务管理员Id
  2. var role_id_sale = "R002105430215";
  3. //系统管理员ID
  4. var role_id_admi = "R002105430214";
  5. var pathname = window.location.pathname;
  6. pathname = pathname.substring(0, pathname.substring(1).indexOf('/') + 1);
  7. // 项目名称
  8. var path = pathname + "/";
  9. // 上下文路径
  10. var http_path = window.location.protocol + "//" + window.location.host
  11. + pathname + "/";
  12. //定义驾驶舱统计专题的数据源
  13. var theMacDataSource=["系统运行部","生产设备部","市场营销部","安全监管部"];
  14. //默认的历史起始时间
  15. var defaultStartTime="2015-1-1 00:00:00";
  16. //机构树加载路径
  17. var deptTreePath=path+"ws/orgInDeptService/OrgInDeptService/getDeptRootById";
  18. //HeightChart状态选择
  19. var HTitle={fixed:"",change:""};
  20. var tState="fixed";
  21. //图形自动刷新状态
  22. var renderState=1;//state:1:自动刷新(刷新按钮或者配置初始化页面);
  23. // 0:停留在当前页面(查看历史或者配置当前状态)
  24. //线图自动刷新的时间
  25. var intervalTime=5;
  26. var intervalList={list:[{key:"10秒",value:3},
  27. {key:"30秒",value:30},
  28. {key:"1分钟",value:60},
  29. {key:"5分钟",value:300},
  30. {key:"10分钟",value:600},
  31. {key:"30分钟",value:1800},
  32. {key:"1小时",value:3600}
  33. ]};
  34. //线图x轴默认的显示的数据个数
  35. var xn=10;
  36. //线路跳闸Title
  37. var lineTitleChart="线路跳闸统计图";
  38. var lineTitleTrend="线路跳闸趋势图";
  39. //线路跳闸电压等级
  40. var lineLevel=[
  41. { id:1, parentId:0, name:"主网", nocheck:true, clickExpand:true},
  42. { id:11, parentId:1, name:"500kV" ,column:"ONE"},
  43. { id:12, parentId:1, name:"220kV",column:"TWO"},
  44. { id:13, parentId:1, name:"110kV",column:"THREE"},
  45. { id:2, parentId:0, name:"配网", nocheck:true, clickExpand:true},
  46. { id:21, parentId:2, name:"35kV", column:"FOUR"},
  47. { id:22, parentId:2, name:"10kV", column:"FIVE"}
  48. ];
  49. //线路跳闸默认显示电压
  50. var defaultLineLevel=[{name:"500kV",column:"ONE"},
  51. {name:"220kV",column:"TWO"},
  52. {name:"110kV",column:"THREE"},
  53. {name:"35kV",column:"FOUR"} ,
  54. {name:"10kV",column:"FIVE"}];
  55. //线路跳闸状态
  56. var lineState=[{name:"已恢复",column:"TRIP_OUT" } ,
  57. {name:"未恢复",column:"NO_RECOVER"}];
  58. //变电站停运Title
  59. var stationTitleChart="变电站停运统计图";
  60. var stationTitleTrend="变电站停运趋势图";
  61. //变电站停运电压等级
  62. var substationLevel=[
  63. { id:1, parentId:0, name:"主网", nocheck:true, clickExpand:true},
  64. { id:11, parentId:1, name:"500KV" ,column:"ONE"},
  65. { id:12, parentId:1, name:"200KV",column:"TWO"},
  66. { id:13, parentId:1, name:"110KV",column:"THREE"},
  67. { id:2, parentId:0, name:"配网", nocheck:true, clickExpand:true},
  68. { id:21, parentId:2, name:"35KV", column:"FOUR"}
  69. ];
  70. var defaultSubstationLevel=[{name:"500KV",column:"ONE"},
  71. {name:"200KV",column:"TWO"},
  72. {name:"110KV",column:"THREE"},
  73. {name:"35KV",column:"FOUR"}]
  74. var substationState=[{name:"已恢复",column:"PRESSURE_LOSS"},
  75. {name:"未恢复",column:"NO_RECOVER"}]
  76. //设备受损Title
  77. var equipmentTitleChart="设备损失统计图";
  78. var equipmentTitleTrend="设备损失趋势图";
  79. //设备受损电压等级
  80. var equipmentLevel=[
  81. { id:11, parentId:1, name:"500kV" ,column:"500"},
  82. { id:12, parentId:1, name:"200kV",column:"200"},
  83. { id:13, parentId:1, name:"110kV",column:"110"},
  84. { id:14, parentId:1, name:"35kV",column:"35"},
  85. { id:15, parentId:1, name:"10kV",column:"10"},
  86. { id:16, parentId:1, name:"其他",column:"QITA"}
  87. ];
  88. var defaultEquipmentLevel=[
  89. {name:"500kV",column:500} ,
  90. {name:"200kV",column:200} ,
  91. {name:"110kV",column:110},
  92. {name:"35kV",column:35} ,
  93. {name:"10kV",column:10} ,
  94. {name:"其他",column:"DIYA"}
  95. ];
  96. var equipmentState=[{name:"已恢复",column1:"PLON_DAOTA",column2:"PLON_BIANXING"},
  97. {name:"未恢复",column1:"UNRECOVER",column2:"PLON_BIANXING"}];
  98. //电量损失Title
  99. var lossTitleChart="电量损失统计图";
  100. var lossTitleTrend="电量损失趋势图";
  101. //用户停电Title
  102. var outageTitleChart="用户停电统计图";
  103. var outageIitleTrend="用户停电趋势图";
  104. //用户停电等级
  105. var outageLevel=[
  106. { id:11, parentId:1, name:"用户数(户)" ,column:"YH"},
  107. { id:12, parentId:1, name:"特级重要用户(户)",column:"TJYH"},
  108. { id:13, parentId:1, name:"一级重要用户(户)",column:"YJYH"},
  109. { id:14, parentId:1, name:"二级重要用户(户)",column:"EJYH"}
  110. ];
  111. var defaultOutageLevel=[{name:"用户数(户)",column:"YH"},
  112. {name:"特级重要用户(户)",column:"TJYH"},
  113. {name:"一级重要用户(户)",column:"YJYH"},
  114. {name:"二级重要用户(户)",column:"EJYH"}];
  115. var outageState=[{name:"已恢复",column:"TD_COUNT" },
  116. {name:"未恢复",column:"UNRECOVERED"}];
  117. //台区停电Title
  118. var taiQuTitleChart="台区停电统计图";
  119. var taiQuTitleTrend="台区停电趋势图";
  120. //台区停电状态
  121. var taiQuState=[{name:"以恢复",column:"TQ_TD_COUNT" } , {name:"未恢复",column:"TQ_UNRECOVERED"}];
  122. //电量损失状态
  123. var powerState=[{name:"电量损失",column:"PRESSURE_LOSS" }];
  124. //应急行动投入
  125. var personChart="应急人员投入统计图";
  126. var supplyChart="应急物质投入统计图";
  127. var equipmentChart="应急装备投入统计图";
  128. var dailyEquipmentChart="日常应急装备统计图";
  129. var dailyTeamChart="日常应急人员统计图";
  130. var planReviseChart="日常应急预案统计图";
  131. var planDrillChart="日常应急演练统计图";
  132. //应急预案
  133. var planLevel=[{ id:11, parentId:1, name:"部门预案" ,column:"102"},
  134. { id:11, parentId:1, name:"总体预案" ,column:"103"},
  135. { id:11, parentId:1, name:"专项预案" ,column:"104"},
  136. { id:11, parentId:1, name:"现场处置" ,column:"105"}]
  137. //应急演练
  138. var drillLevel=[
  139. { id:11, parentId:1, name:"程序性演练" ,column:"10"},
  140. { id:12, parentId:1, name:"校验性演练",column:"11"}
  141. ];
  142. //日常应急处置四张grid表格明细字段
  143. //应急预案修订明细字段
  144. var yjyaSERVER=[{key:"预案名称",column:"PLAN_NAME"},
  145. {key:"预案类型",column:"FD_DESCRIPTION"},
  146. {key:"适用范围",column:"SYFW"},
  147. {key:"编制部门",column:"DEPT_NAME"},
  148. /*{key:"所属单位",column:"UNITS"},*/
  149. {key:"更新时间",column:"UPDATEDATE"}
  150. ];
  151. //应急演练明细字段
  152. /*异常联系许巍修改sql*/
  153. var emergencyDRILL=[
  154. {key:"演练名称",column:"DRILL_NAME"},
  155. {key:"主办单位",column:"SPONSOR_COMP"},
  156. {key:"承办单位",column:"UPDERTAKE_COMP"},
  157. {key:"演练方案",column:"DRILL_SCHEME"},
  158. {key:"演练类别",column:"FD_DESCRIPTION"},
  159. {key:"演练形式",column:"DRILL_FORM"},
  160. {key:"实施状态",column:"IMPLEMENT_STAT"},
  161. {key:"完成时间",column:"DOWN_TIME"}
  162. ];
  163. //应急队伍明细字段
  164. /*异常联系许巍修改sql*/
  165. var emergencyTEAM=[
  166. {key:"队伍名称",column:"TEAM_NAME"},
  167. {key:"队伍类别",column:"TEAM_TYPE"},
  168. {key:"队伍状态",column:"TEAM_STATE"},
  169. {key:"队伍负责人",column:"TEAM_LEADER"},
  170. {key:"队伍公司",column:"DRILL_NAME"},
  171. {key:"队伍人数",column:"TEAM_MEMBER_NUMBER"}
  172. ];
  173. //应急装备明细字段
  174. /*异常联系许巍修改sql*/
  175. var GENERATOR=[
  176. {key:"装备名称",column:"NAME"},
  177. {key:"所属单位",column:"DEPT_NAME"},
  178. {key:"规格型号",column:"MODEL_TYPE"},
  179. {key:"电压等级",column:"VOLTAGE_LEVEL"},
  180. {key:"购买日期",column:"BUY_DATE"},
  181. {key:"装备存放场所",column:"STORE_PLACE"},
  182. {key:"是否可调用",column:"IS_USED_TEXT"}
  183. ];
  184. //设置初始化加载的记录:
  185. //n:本单位显示本单位下级的数据条数,不足默认的条数,按照实际统计条数获取统计数据
  186. //0:显示本单位的统计数据
  187. //
  188. var loadState={
  189. lineChart:3,//线路统计
  190. lineStrend:3,//线路趋势图
  191. stationChart:3,//变电站停运统计图
  192. stationStrend:3,//变电站停运趋势图
  193. equipmentChart:3,//设备损失统计图
  194. equipmentStrend:3,//设备损失趋势图
  195. powerChart:3,//电量损失统计图
  196. powerStrend:3,//电量损失趋势图
  197. outageChart:3,//用户停电统计图
  198. outageStrend:3,//用户损失趋势图
  199. taiquChart:3,//台区停电统计图
  200. taiquStrend:3,//台区停电趋势图
  201. emergencyEquipmentChart:3,//应急装备投入统计图
  202. emergencyPersonChart:3,//应急人员投入统计图
  203. emergencySupplyChart:3,//应急应急物质投入统计图
  204. drillChart:3,//应急演练
  205. planChart:3,//应急预案
  206. dailyEquipmentChart:3,//日常应急装备
  207. dailyPersonChart:0//日常应急人员
  208. };
  209. /*//三个数组一一对应
  210. //已恢复颜色数组
  211. var color2=["#1685a9","#177cb0","#065279","#003472","#4b5cc4","#a1afc9","#2e4e7e",
  212. "#3b2e7e","#4a4266","#426666","#425066","#574266","#8d4bbb","#815463",
  213. "#815476","#4c221b","#003371","#56004f","#801dae","#4c8dae","#b0a4e3"];
  214. //未恢复
  215. var color3=["#99CC33","#336699","#333300","#3366CC","#99CC33","#333300","#003366",
  216. "#999933","#FF9933","#996600","#993366","#663366","#CCCC33","#CC3366",
  217. "#663366","#996699","#CC9999","#006633","#006633","#669933","#669933"];
  218. //累计
  219. var color4=["#CCCC33","#CC6699","#CC9933","#CC6600","#CC6600","#CC6600","#339999",
  220. "#CC6699","#CC6699","#FF6666","#FF99CC","#CC3399","#FF99CC","#CC3399",
  221. "#CC3399","#FF9999","#996699","#FF33CC","#FF6666","#CC6699","#990066"];*/
  222. //颜色自定义选择扩展项
  223. //未恢复自定义颜色样式数组
  224. var recoveColor=["#424647","#4a4041"];
  225. //以恢复自定义颜色样式数组
  226. var restorColor=["#47b657","#626971"];
  227. //自定义颜色状态
  228. var colorStyle=0;//不同的数值代表不同的颜色状态
  229. var color1=["#383a37","#424647","#4a4041","#3f3534","#3c434b","#626971","#a5aaae",
  230. "#46af91","#ffc631","#ff6742","#ed2b6a","#cd13a5","#735cc6","#b5e4c4",
  231. "#78ce83","#57c27a","#47b657","#3da159","#3e5d3d","#2f573f","#99b9e2",
  232. "#7caee1","#6483d3","#005bbb","#103fcb","#1c7e8b","#f4c959","#ec884c",
  233. "#db443d","#c20a50","#911841"]
  234. var color=[color1];