123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- //业务管理员Id
- var role_id_sale = "R002105430215";
- //系统管理员ID
- var role_id_admi = "R002105430214";
- var pathname = window.location.pathname;
- pathname = pathname.substring(0, pathname.substring(1).indexOf('/') + 1);
- // 项目名称
- var path = pathname + "/";
- // 上下文路径
- var http_path = window.location.protocol + "//" + window.location.host
- + pathname + "/";
- //定义驾驶舱统计专题的数据源
- var theMacDataSource=["系统运行部","生产设备部","市场营销部","安全监管部"];
- //默认的历史起始时间
- var defaultStartTime="2015-1-1 00:00:00";
- //机构树加载路径
- var deptTreePath=path+"ws/orgInDeptService/OrgInDeptService/getDeptRootById";
- //HeightChart状态选择
- var HTitle={fixed:"",change:""};
- var tState="fixed";
- //图形自动刷新状态
- var renderState=1;//state:1:自动刷新(刷新按钮或者配置初始化页面);
- // 0:停留在当前页面(查看历史或者配置当前状态)
- //线图自动刷新的时间
- var intervalTime=5;
- var intervalList={list:[{key:"10秒",value:3},
- {key:"30秒",value:30},
- {key:"1分钟",value:60},
- {key:"5分钟",value:300},
- {key:"10分钟",value:600},
- {key:"30分钟",value:1800},
- {key:"1小时",value:3600}
- ]};
- //线图x轴默认的显示的数据个数
- var xn=10;
- //线路跳闸Title
- var lineTitleChart="线路跳闸统计图";
- var lineTitleTrend="线路跳闸趋势图";
- //线路跳闸电压等级
- var lineLevel=[
- { id:1, parentId:0, name:"主网", nocheck:true, clickExpand:true},
- { id:11, parentId:1, name:"500kV" ,column:"ONE"},
- { id:12, parentId:1, name:"220kV",column:"TWO"},
- { id:13, parentId:1, name:"110kV",column:"THREE"},
- { id:2, parentId:0, name:"配网", nocheck:true, clickExpand:true},
- { id:21, parentId:2, name:"35kV", column:"FOUR"},
- { id:22, parentId:2, name:"10kV", column:"FIVE"}
- ];
- //线路跳闸默认显示电压
- var defaultLineLevel=[{name:"500kV",column:"ONE"},
- {name:"220kV",column:"TWO"},
- {name:"110kV",column:"THREE"},
- {name:"35kV",column:"FOUR"} ,
- {name:"10kV",column:"FIVE"}];
- //线路跳闸状态
- var lineState=[{name:"已恢复",column:"TRIP_OUT" } ,
- {name:"未恢复",column:"NO_RECOVER"}];
- //变电站停运Title
- var stationTitleChart="变电站停运统计图";
- var stationTitleTrend="变电站停运趋势图";
- //变电站停运电压等级
- var substationLevel=[
- { id:1, parentId:0, name:"主网", nocheck:true, clickExpand:true},
- { id:11, parentId:1, name:"500KV" ,column:"ONE"},
- { id:12, parentId:1, name:"200KV",column:"TWO"},
- { id:13, parentId:1, name:"110KV",column:"THREE"},
- { id:2, parentId:0, name:"配网", nocheck:true, clickExpand:true},
- { id:21, parentId:2, name:"35KV", column:"FOUR"}
- ];
- var defaultSubstationLevel=[{name:"500KV",column:"ONE"},
- {name:"200KV",column:"TWO"},
- {name:"110KV",column:"THREE"},
- {name:"35KV",column:"FOUR"}]
- var substationState=[{name:"已恢复",column:"PRESSURE_LOSS"},
- {name:"未恢复",column:"NO_RECOVER"}]
- //设备受损Title
- var equipmentTitleChart="设备损失统计图";
- var equipmentTitleTrend="设备损失趋势图";
- //设备受损电压等级
- var equipmentLevel=[
- { id:11, parentId:1, name:"500kV" ,column:"500"},
- { id:12, parentId:1, name:"200kV",column:"200"},
- { id:13, parentId:1, name:"110kV",column:"110"},
- { id:14, parentId:1, name:"35kV",column:"35"},
- { id:15, parentId:1, name:"10kV",column:"10"},
- { id:16, parentId:1, name:"其他",column:"QITA"}
- ];
- var defaultEquipmentLevel=[
- {name:"500kV",column:500} ,
- {name:"200kV",column:200} ,
- {name:"110kV",column:110},
- {name:"35kV",column:35} ,
- {name:"10kV",column:10} ,
- {name:"其他",column:"DIYA"}
- ];
- var equipmentState=[{name:"已恢复",column1:"PLON_DAOTA",column2:"PLON_BIANXING"},
- {name:"未恢复",column1:"UNRECOVER",column2:"PLON_BIANXING"}];
- //电量损失Title
- var lossTitleChart="电量损失统计图";
- var lossTitleTrend="电量损失趋势图";
- //用户停电Title
- var outageTitleChart="用户停电统计图";
- var outageIitleTrend="用户停电趋势图";
- //用户停电等级
- var outageLevel=[
- { id:11, parentId:1, name:"用户数(户)" ,column:"YH"},
- { id:12, parentId:1, name:"特级重要用户(户)",column:"TJYH"},
- { id:13, parentId:1, name:"一级重要用户(户)",column:"YJYH"},
- { id:14, parentId:1, name:"二级重要用户(户)",column:"EJYH"}
- ];
- var defaultOutageLevel=[{name:"用户数(户)",column:"YH"},
- {name:"特级重要用户(户)",column:"TJYH"},
- {name:"一级重要用户(户)",column:"YJYH"},
- {name:"二级重要用户(户)",column:"EJYH"}];
- var outageState=[{name:"已恢复",column:"TD_COUNT" },
- {name:"未恢复",column:"UNRECOVERED"}];
- //台区停电Title
- var taiQuTitleChart="台区停电统计图";
- var taiQuTitleTrend="台区停电趋势图";
- //台区停电状态
- var taiQuState=[{name:"以恢复",column:"TQ_TD_COUNT" } , {name:"未恢复",column:"TQ_UNRECOVERED"}];
- //电量损失状态
- var powerState=[{name:"电量损失",column:"PRESSURE_LOSS" }];
- //应急行动投入
- var personChart="应急人员投入统计图";
- var supplyChart="应急物质投入统计图";
- var equipmentChart="应急装备投入统计图";
- var dailyEquipmentChart="日常应急装备统计图";
- var dailyTeamChart="日常应急人员统计图";
- var planReviseChart="日常应急预案统计图";
- var planDrillChart="日常应急演练统计图";
- //应急预案
- var planLevel=[{ id:11, parentId:1, name:"部门预案" ,column:"102"},
- { id:11, parentId:1, name:"总体预案" ,column:"103"},
- { id:11, parentId:1, name:"专项预案" ,column:"104"},
- { id:11, parentId:1, name:"现场处置" ,column:"105"}]
- //应急演练
- var drillLevel=[
- { id:11, parentId:1, name:"程序性演练" ,column:"10"},
- { id:12, parentId:1, name:"校验性演练",column:"11"}
- ];
- //日常应急处置四张grid表格明细字段
- //应急预案修订明细字段
- var yjyaSERVER=[{key:"预案名称",column:"PLAN_NAME"},
- {key:"预案类型",column:"FD_DESCRIPTION"},
- {key:"适用范围",column:"SYFW"},
- {key:"编制部门",column:"DEPT_NAME"},
- /*{key:"所属单位",column:"UNITS"},*/
- {key:"更新时间",column:"UPDATEDATE"}
- ];
- //应急演练明细字段
- /*异常联系许巍修改sql*/
- var emergencyDRILL=[
- {key:"演练名称",column:"DRILL_NAME"},
- {key:"主办单位",column:"SPONSOR_COMP"},
- {key:"承办单位",column:"UPDERTAKE_COMP"},
- {key:"演练方案",column:"DRILL_SCHEME"},
- {key:"演练类别",column:"FD_DESCRIPTION"},
- {key:"演练形式",column:"DRILL_FORM"},
- {key:"实施状态",column:"IMPLEMENT_STAT"},
- {key:"完成时间",column:"DOWN_TIME"}
- ];
- //应急队伍明细字段
- /*异常联系许巍修改sql*/
- var emergencyTEAM=[
- {key:"队伍名称",column:"TEAM_NAME"},
- {key:"队伍类别",column:"TEAM_TYPE"},
- {key:"队伍状态",column:"TEAM_STATE"},
- {key:"队伍负责人",column:"TEAM_LEADER"},
- {key:"队伍公司",column:"DRILL_NAME"},
- {key:"队伍人数",column:"TEAM_MEMBER_NUMBER"}
- ];
- //应急装备明细字段
- /*异常联系许巍修改sql*/
- var GENERATOR=[
- {key:"装备名称",column:"NAME"},
- {key:"所属单位",column:"DEPT_NAME"},
- {key:"规格型号",column:"MODEL_TYPE"},
- {key:"电压等级",column:"VOLTAGE_LEVEL"},
- {key:"购买日期",column:"BUY_DATE"},
- {key:"装备存放场所",column:"STORE_PLACE"},
- {key:"是否可调用",column:"IS_USED_TEXT"}
- ];
- //设置初始化加载的记录:
- //n:本单位显示本单位下级的数据条数,不足默认的条数,按照实际统计条数获取统计数据
- //0:显示本单位的统计数据
- //
- var loadState={
- lineChart:3,//线路统计
- lineStrend:3,//线路趋势图
- stationChart:3,//变电站停运统计图
- stationStrend:3,//变电站停运趋势图
- equipmentChart:3,//设备损失统计图
- equipmentStrend:3,//设备损失趋势图
- powerChart:3,//电量损失统计图
- powerStrend:3,//电量损失趋势图
- outageChart:3,//用户停电统计图
- outageStrend:3,//用户损失趋势图
- taiquChart:3,//台区停电统计图
- taiquStrend:3,//台区停电趋势图
- emergencyEquipmentChart:3,//应急装备投入统计图
- emergencyPersonChart:3,//应急人员投入统计图
- emergencySupplyChart:3,//应急应急物质投入统计图
- drillChart:3,//应急演练
- planChart:3,//应急预案
- dailyEquipmentChart:3,//日常应急装备
- dailyPersonChart:0//日常应急人员
- };
- /*//三个数组一一对应
- //已恢复颜色数组
- var color2=["#1685a9","#177cb0","#065279","#003472","#4b5cc4","#a1afc9","#2e4e7e",
- "#3b2e7e","#4a4266","#426666","#425066","#574266","#8d4bbb","#815463",
- "#815476","#4c221b","#003371","#56004f","#801dae","#4c8dae","#b0a4e3"];
- //未恢复
- var color3=["#99CC33","#336699","#333300","#3366CC","#99CC33","#333300","#003366",
- "#999933","#FF9933","#996600","#993366","#663366","#CCCC33","#CC3366",
- "#663366","#996699","#CC9999","#006633","#006633","#669933","#669933"];
- //累计
- var color4=["#CCCC33","#CC6699","#CC9933","#CC6600","#CC6600","#CC6600","#339999",
- "#CC6699","#CC6699","#FF6666","#FF99CC","#CC3399","#FF99CC","#CC3399",
- "#CC3399","#FF9999","#996699","#FF33CC","#FF6666","#CC6699","#990066"];*/
- //颜色自定义选择扩展项
- //未恢复自定义颜色样式数组
- var recoveColor=["#424647","#4a4041"];
- //以恢复自定义颜色样式数组
- var restorColor=["#47b657","#626971"];
- //自定义颜色状态
- var colorStyle=0;//不同的数值代表不同的颜色状态
- var color1=["#383a37","#424647","#4a4041","#3f3534","#3c434b","#626971","#a5aaae",
- "#46af91","#ffc631","#ff6742","#ed2b6a","#cd13a5","#735cc6","#b5e4c4",
- "#78ce83","#57c27a","#47b657","#3da159","#3e5d3d","#2f573f","#99b9e2",
- "#7caee1","#6483d3","#005bbb","#103fcb","#1c7e8b","#f4c959","#ec884c",
- "#db443d","#c20a50","#911841"]
- var color=[color1];
|