| | |
| | | <link href="css/basic.css" type="text/css" rel="stylesheet" />
|
| | | <link href="css/control_style.css" type="text/css" rel="stylesheet" />
|
| | | <link rel="stylesheet" href="css/BrdwMaint.css">
|
| | | <link rel="stylesheet" href="css/common.css">
|
| | | <link href="jqueryui/jquery-ui.css" type="text/css" rel="stylesheet" />
|
| | | <!-- <link rel="stylesheet" type="text/css" href="css/popup.css"> -->
|
| | | <link rel="stylesheet" type="text/css" href="css/popup-tbl.css">
|
| | |
| | | <table>
|
| | | <tr>
|
| | | <td id="ele_content">
|
| | | <!-- 机房数电池组数 -->
|
| | | <div id="mach_num">
|
| | | <s:text name="Room_num"></s:text>:<span id="room_num"></span>; <s:text name="Batt_group_num"></s:text>:<span id="batt_group_num"></span>
|
| | | <div style="float: right; margin-right: 5px"><i class="fa"></i></div>
|
| | | </div>
|
| | | <!--电池组菜单栏-->
|
| | | <div id="lside">
|
| | |
|
| | |
| | | <div id="right_menu">
|
| | | <ul>
|
| | | <li><a href="javascript:"><s:text name="Check_the_battery_card"></s:text></a></li> <!-- 查看电池组机历卡 -->
|
| | | <li><a href="upload.jsp" target="_blank"><s:text name="Upload_FBO/IDC_data"></s:text></a></li> <!-- 上传'FBO/IDC'数据 -->
|
| | | <li><a href="uploadresis.jsp" target="_blank"><s:text name="Upload_resistance_conductivity_data"></s:text></a></li> <!-- 上传电阻电导数据 -->
|
| | | <!-- <li><a href="upload.jsp" target="_blank"><s:text name="Upload_FBO/IDC_data"></s:text></a></li> --> <!-- 上传'FBO/IDC'数据 -->
|
| | | <!-- <li><a href="uploadresis.jsp" target="_blank"><s:text name="Upload_resistance_conductivity_data"></s:text></a></li> --> <!-- 上传电阻电导数据 -->
|
| | | <li><a href="eleBrdwMaint.jsp" target="_blank"><s:text name="Batt_failure_maintenance_record_query" /></a></li> <!-- 电池故障维护记录查询 -->
|
| | | <li><a href="javascript:targetBattReport();"><s:text name="Battery_statistical_analysis_queries"></s:text></a></li> <!-- 电池统计分析查询-->
|
| | | <!--<li><a href="eleMonomer.jsp"><s:text name="Batt_statistical_analysis_query"></s:text></a></li> 电池单体统计分析查询 -->
|
| | |
|
| | | <li style="display:none;"><a href="javascript:"><s:text name="Search_engine_or_the_batt_group"></s:text></a></li> <!-- 搜索机房或电池组-->
|
| | | <li><a href="javascript:" id="all_show"><s:text name="Expand_all"></s:text></a></li> <!-- 全部展开 -->
|
| | | <!-- <li><a href="javascript:" id="all_show"><s:text name="Expand_all"></s:text></a></li> --> <!-- 全部展开 -->
|
| | | <li><a href="javascript:" id="all_hide"><s:text name="Collapse_all"></s:text></a></li> <!-- 全部收缩 -->
|
| | | </ul>
|
| | | </div>
|
| | |
| | | <td><s:text name="Computer_room_IP"/></td> <!-- 机房IP -->
|
| | | <td id="StationIP"></td>
|
| | | </tr>
|
| | | <!-- <tr>
|
| | | <td><s:text name="Batt_group"/>ID</td> 电池组ID
|
| | | <tr>
|
| | | <td><s:text name="Batt_group"/>ID</td> <!-- 电池组ID -->
|
| | | <td id="batt_group_id"></td>
|
| | | </tr> -->
|
| | | </tr>
|
| | | <tr>
|
| | | <td><s:text name="Battery_name"/></td> <!-- 电池组名称 -->
|
| | | <td id="BattGroupName"></td>
|
| | |
| | | <script type="text/javascript" src="js/dischargetest/bts.js"></script>
|
| | | <script type="text/javascript" src="js/dischargetest/4016.js"></script>
|
| | | <script type="text/javascript" src="pages/js/pages/control-common.js"></script>
|
| | | <script type="text/javascript" src="pages/js/pages/siderbar.js"></script>
|
| | | <!-- 引入电路图 -->
|
| | | <script type="text/javascript" src="js/elecircle.js"></script>
|
| | | <script type="text/javascript" src="js/elecircle.content.js"></script>
|
| | |
| | |
|
| | | //var eMenuWidth = $('#echarts_menu').width();
|
| | | //$('#echarts_menu').width(eMenuWidth);
|
| | | var isnotshowvalue=false; //是否显示柱状值
|
| | | var isnotshowvalue=true; //是否显示柱状值
|
| | | var mon_res_list; //电池内阻数组
|
| | | var mon_vol_list; //电池电压数组
|
| | | var mon_ser_list; //电池电导数组
|
| | |
| | | var winHt = $(window).height();
|
| | | var bodyHt = $('body').height();
|
| | | var batt_listen = $('#ele_content .batt-listen').height();
|
| | | //console.info('*****');
|
| | | //console.info(batt_listen);
|
| | | var shiftHt = winHt - bodyHt;
|
| | | var graph = $('.graph').height();
|
| | | var lSide = $('#lside').height();
|
| | |
| | | var unit = "";
|
| | | if(lname == 'Voltage'){
|
| | | unit ="V";
|
| | | max = batt.MonVolStd*1.25;
|
| | | /* max = batt.MonVolStd*1.25;
|
| | | var tempmax = Math.max.apply( Math, array);
|
| | | if(tempmax > max){
|
| | | max = tempmax*1.25;
|
| | | } |
| | | } */ |
| | | max = Math.max.apply( Math, array)*1.1;
|
| | | max = max.toFixed(3);
|
| | | }else if(lname == 'Resistance'){
|
| | | unit = "mΩ";
|
| | | max = (batt.MonResStd*1.25);
|
| | | /* max = (batt.MonResStd*1.25);
|
| | | max = 10;
|
| | | var tempmax = Math.max.apply( Math, array)*1.25;
|
| | | if(tempmax<max){
|
| | | max = tempmax;
|
| | | }
|
| | | } */
|
| | | max = Math.max.apply( Math, array)*1.1;
|
| | | max = (max).toFixed(3);
|
| | | }else if(lname == 'Temperature'){
|
| | | unit = "℃";
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.5).toFixed(3);
|
| | | }else if(lname == 'Conductance'){
|
| | | max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | //max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }else if(lname == 'MonJHCurr') {
|
| | | unit = "mA";
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }
|
| | | //console.info("max:"+max+" min:"+min);
|
| | | if(lname=='Resistance' || lname=='Temperature'){
|
| | |
| | | }
|
| | |
|
| | |
|
| | | seachAllStation();
|
| | | //seachAllStation();
|
| | | //查询所有机房
|
| | | function seachAllStation(){
|
| | | $.ajax({
|
| | |
| | |
|
| | | }); */
|
| | |
|
| | | //屏蔽浏览器右键菜单功能
|
| | | //屏蔽浏览器右键菜单功能
|
| | | $(document).ready(function(){
|
| | | document.oncontextmenu=function(){
|
| | | return false;
|
| | | };
|
| | | // 屏蔽#lside的右键菜单
|
| | | document.oncontextmenu=function(){
|
| | | return false;
|
| | | };
|
| | | });
|
| | | // 菜单栏鼠标右键菜单显示
|
| | | $(document).ready(function(){
|
| | | $('.thr').mousedown(function(e){
|
| | | $('#ele_content').on('mousedown', '.eleGroup', function(e){
|
| | | alert(123);
|
| | | //利用jquery的方式获取当前点击的是否是右键
|
| | | if(e.which==3)
|
| | | {
|
| | |
| | | //根据设备id查询设备当前的开关状态
|
| | | function searchDevStatusByDev_id(){
|
| | | var obj = getBatt();
|
| | | //console.info(obj);
|
| | | console.info(obj);
|
| | | var lasttype = mygraph.graphtype; //记录上一次的状态
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | success: function(data){
|
| | | data = eval("("+data+")");
|
| | | var model = eval("("+data.result+")");
|
| | | //console.log(model);
|
| | | console.log(model);
|
| | | |
| | | var outTime = 2*60; //设备超时时间(2分钟)
|
| | | var isOutTime = true; //通讯中断 判断设备是否通讯中断 true:中断 false:正常
|
| | | var batt = getBatt(); //获取当前选中的电池组
|
| | |
| | | }else {
|
| | | _str = GLOBAL.circleStatus.BTSCircle(batt, model, mygraph, updateEleCircle);
|
| | | }
|
| | | console.log(mygraph);
|
| | | debugger;
|
| | | if(model.code == 1) {
|
| | | var nowTime = new Date().getTime(); //当前时间
|
| | | var record = new Date(model.data[0].record_datetime).getTime();
|
| | |
| | | var array = getArray(lname);
|
| | | var batt = getBatt();
|
| | | var min = (Math.min.apply( Math, array)*0.9).toFixed(3);
|
| | | var max = 0 ;
|
| | | var max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | //console.info(batt);
|
| | | if(lname == 'Voltage'){
|
| | | max = (batt.MonVolStd*1.25).toFixed(3); |
| | | //max = (batt.MonVolStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3); |
| | | }else if(lname == 'Resistance'){
|
| | | //max = (batt.MonResStd*1.25).toFixed(3);
|
| | | max =10;
|
| | | //max =10;
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }else if(lname == 'Temperature'){
|
| | | max = (Math.max.apply( Math, array)*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.5).toFixed(3);
|
| | | }else if(lname == 'Conductance'){
|
| | | max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | //max = (batt.MonSerStd*1.25).toFixed(3);
|
| | | max = (Math.max.apply( Math, array)*1.1).toFixed(3);
|
| | | }
|
| | | //console.info("max:"+max+" min:"+min);
|
| | | if(lname=='Resistance' || lname=='Temperature'){
|
| | |
| | |
|
| | | //根据当前选中的电池组id获取当前电池组的信息
|
| | | function getBatt(){
|
| | | if(battinlist!=undefined && BattGroupId!=undefined){
|
| | | /* if(battinlist!=undefined && BattGroupId!=undefined){
|
| | | for(var i=0;i<battinlist.length;i++){
|
| | | for(var k=0;k<battinlist[i].length;k++){
|
| | | if(BattGroupId==battinlist[i][k].BattGroupId){
|
| | | console.info(battinlist);
|
| | | return battinlist[i][k];
|
| | | }
|
| | | }
|
| | | }
|
| | | } */
|
| | | var activeFile = $('.whyc-sider-menu .sider-menu-file.active');
|
| | | if(activeFile.length == 1) {
|
| | | return activeFile.data('attr');
|
| | | }else {
|
| | | return undefined;
|
| | | }
|
| | | return undefined;
|
| | | |
| | | }
|
| | |
|
| | | //将指定列中的与value相等的值的单元格变为红色
|
| | |
| | |
|
| | | // 实时-历史切换定位到具体电池组
|
| | | $(function() {
|
| | | $('body').on('click', '#nav a[href="charge-test.jsp"]', function() {
|
| | | $('body').on('click', '#nav a[href="charge-test.jsp"]', function(event) {
|
| | | var batt = getBatt();
|
| | | $(this).attr('href', 'charge-test.jsp?battgroupId='+BattGroupId+"&stationId="+batt.StationId);
|
| | | var province = batt.StationName1;
|
| | | var city = batt.StationName2;
|
| | | var home = batt.StationName;
|
| | | $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | });
|
| | | });
|
| | | |
| | | |
| | | $(function() {
|
| | | $('#ele_content').resizable({
|
| | | minWidth: 240,
|
| | | maxWidth: 520,
|
| | | handles: 'e',
|
| | | edge: 10
|
| | | });
|
| | | });
|
| | | |
| | |
|
| | | $(function(){
|
| | | //启动查询电池充放电状态的线程
|
| | |
| | | //console.info(model);
|
| | | if(model.code == 1){
|
| | | for(var i = 0;i<model.data.length;i++){
|
| | | if(model.data[i].batt_test_type == 3){
|
| | | var _data = model.data[i];
|
| | | if(_data.batt_test_type == 3){
|
| | | arr.push({
|
| | | note:model.data[i].note,
|
| | | val:model.data[i].BattGroupId,
|
| | | note:_data.note,
|
| | | val:_data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | home: _data.stationName,
|
| | | isCharge:0
|
| | | });
|
| | | }else if(model.data[i].batt_test_type == 2){
|
| | | }else if(_data.batt_test_type == 2){
|
| | | arr.push({
|
| | | note: model.data[i].note,
|
| | | val:model.data[i].BattGroupId,
|
| | | note: _data.note,
|
| | | val: _data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | home: _data.stationName,
|
| | | isCharge:1
|
| | | });
|
| | | }
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | //生成充放电监测模块内容
|
| | | function createBattListen(ele, list) {
|
| | | ele.text("");
|
| | | var discharge_num = 0;
|
| | | var charge_num = 0;
|
| | | var ul = $('<ul></ul>');
|
| | | for(var i = 0; i < list.length; i++) {
|
| | | var li = "";
|
| | | if(list[i].isCharge) {
|
| | | li = $('<li><a href="javascript:;" class="batt-charge" value="'+list[i].val+'" note="'+list[i].note+'">'+list[i].val+'电池组充电测试!</a></li>');
|
| | | charge_num++;
|
| | | }else {
|
| | | li = $('<li><a href="javascript:;" class="batt-discharge" value="'+list[i].val+'" note="'+list[i].note+'">'+list[i].val+'电池组放电测试!</a></li>');
|
| | | discharge_num++;
|
| | | }
|
| | | ul.append(li);
|
| | | }
|
| | | $('#ele_content .batt-listen .count-num').find('span').eq(0).text(discharge_num);
|
| | | $('#ele_content .batt-listen .count-num').find('span').eq(1).text(charge_num);
|
| | | ele.append(ul);
|
| | | }
|
| | | |
| | | // 点击电池充放电监测列表触发事件
|
| | | $(function() {
|
| | | var batt_list = $('#ele_content .batt-listen .batt-list');
|
| | | batt_list.on('click', 'a', function(){
|
| | | batt_list.find('a').removeClass('active');
|
| | | $(this).addClass('active'); |
| | | locationBattPos($(this).attr('note'), $(this).attr('value'));
|
| | | });
|
| | | |
| | | });
|
| | | function BattlocationById(battid){
|
| | | if(battid!=undefined){
|
| | |
| | |
|
| | | });
|
| | | });
|
| | | //全部收缩
|
| | | $('#all_hide').click(function(){
|
| | | $('.fir').next().slideUp();
|
| | | //$('.sec').next().slideUp();
|
| | | $("#lside").scrollTop(0);
|
| | | $(".arrow").removeClass("up");
|
| | | $(".arrow").addClass("down");
|
| | | $(".mark").text("+");
|
| | | $(".mark").removeClass("black");
|
| | | });
|
| | | |
| | | });
|
| | |
|
| | | // 显示电池总数
|
| | |
| | | }
|
| | |
|
| | | // 根据机房id和电池组id定位
|
| | | function locationBattPos(stationid, battId) {
|
| | | var _firTag = $('#lside .fir[name="'+stationid+'"]');
|
| | | |
| | | if(_firTag.next('ul').length == 0) {
|
| | | addLoadingToMenu(stationid); // 添加数据加载等待
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchBattByStation", |
| | | async:true, |
| | | dataType:'text',
|
| | | data:"json = "+JSON.stringify({
|
| | | StationId:stationid
|
| | | }), |
| | | success: function(data){ |
| | | data = eval('('+data+')');
|
| | | var model = eval('('+data.result+')');
|
| | | removeLoadingMenu(stationid); // 移除数据加载等待
|
| | | if(model.code == 1){
|
| | | //console.info(model.data);
|
| | | battinlist.push(model.data);
|
| | | createLsideSec(model.data, battId);
|
| | | }
|
| | | },
|
| | | error:function(){
|
| | | |
| | | } |
| | | }); |
| | | }else {
|
| | | var _ul = _firTag.next();
|
| | | _ul.slideDown();
|
| | | _ul.find('.thr').each(function() {
|
| | | if($(this).attr('id') == battId) {
|
| | | $('#lside a').css('background-color', "");
|
| | | $(this).css('background-color', '#9bbaf3');
|
| | | BattGroupId = battId;
|
| | | location.hash = '#'+battId;
|
| | | location.hash = "";
|
| | | }
|
| | | });
|
| | | getBattStr();
|
| | | searchBattAlarmParam(); //查询电池告警参数
|
| | | clearInterval(time);
|
| | | showtable();
|
| | | time=window.setInterval("showtable()",4000);
|
| | | }
|
| | | function locationBattPos(info) {
|
| | | console.log(info);
|
| | | }
|
| | |
|
| | | // 向页面的左侧添加加载等待
|
| | |
| | | function getBattStr() {
|
| | | var battInfo = getBatt();
|
| | | //console.info(battInfo);
|
| | | var battStr = battInfo.StationName+'-'+battInfo.BattGroupName;
|
| | | var battStr = battInfo.StationName+'-'+battInfo.BattGroupName+'-标称容量'+battInfo.MonCapStd+'AH';
|
| | | $('#address_infor').text(battStr);
|
| | | }
|
| | |
|
| | |
| | | searchBtsBattInfoByStation(temp); // 查询机房信息
|
| | | searchBTSTestParam({
|
| | | num: CMD_BTS_GetDischargeParm,
|
| | | dev_id: batt.FBSDeviceId
|
| | | dev_id: batt.FBSDeviceId,
|
| | | TestCmd: 0
|
| | | });
|
| | | BTS_popup.showPopup();
|
| | |
|
| | |
| | | if(regEquipType(batt.FBSDeviceId, globalPattern.BTS)) {
|
| | | var temp = {
|
| | | num: CMD_BTS_Stop,
|
| | | dev_id: batt.FBSDeviceId
|
| | | dev_id: batt.FBSDeviceId,
|
| | | TestCmd: 0
|
| | | };
|
| | | // 显示是否停止测试
|
| | | myConfirm.show({
|
| | |
| | | $('#btn_flush').click(function (){
|
| | | var temp = {
|
| | | dev_id:$('#dev_id').val(),
|
| | | num:CMD_BTS_GetDischargeParm
|
| | | num:CMD_BTS_GetDischargeParm,
|
| | | TestCmd: 0
|
| | | };
|
| | | searchBTSTestParam(temp);
|
| | | });
|
| | |
| | | // 构造启动条件
|
| | | var temp = {
|
| | | num: CMD_BTS_Start,
|
| | | dev_id: $('#dev_id').val()
|
| | | dev_id: $('#dev_id').val(),
|
| | | TestCmd: $('#discharge_type').val()
|
| | | };
|
| | | sendCmdToBTSDev(temp);
|
| | | });
|
| | |
| | | $('.confirm').hide();
|
| | | $('.confirm-mask').hide();
|
| | | }
|
| | | |
| | | // siderbar模块
|
| | | $(function() {
|
| | | var TreeView = GLOBAL.pages.TreeView;
|
| | | var first = GLOBAL.pages.siderbar.first; // 一级导航
|
| | | var second = GLOBAL.pages.siderbar.second; // 二级导航
|
| | | var third = GLOBAL.pages.siderbar.third; // 三级导航
|
| | | var fourth = GLOBAL.pages.siderbar.fourth; // 四级导航
|
| | | var localSideBar = GLOBAL.pages.siderbar.localSideBar; // 定位机房
|
| | | var treeView = new TreeView($('#lside'));
|
| | | $('#lside').width($('#ele_content').width());
|
| | | treeView.setContainer();
|
| | | // 设置容器可拖动
|
| | | $('#ele_content').resizable({
|
| | | handles: 'e',
|
| | | maxWidth: 520,
|
| | | minWidth: 200,
|
| | | alsoResize: $('#lside'),
|
| | | resize:function() {
|
| | | treeView.setContainer();
|
| | | }
|
| | | });
|
| | | |
| | | // 生成一级导航-省
|
| | | first(treeView, treeView.container);
|
| | | |
| | | // 省->市
|
| | | treeView.ele.on('click', '.province', function() {
|
| | | var province = $(this).data('attr');
|
| | | second(treeView, $(this).parent(), province);
|
| | | });
|
| | | |
| | | // 市->机房
|
| | | treeView.ele.on('click', '.city', function() {
|
| | | var city = $(this).data('attr');
|
| | | third(treeView, $(this).parent(), city);
|
| | | });
|
| | | |
| | | battinlist = [];
|
| | | // 机房->电池组
|
| | | treeView.ele.on('click', '.home', function() {
|
| | | var home = $(this).data('attr');
|
| | | var tmp = {
|
| | | StationName1: home.StationName1,
|
| | | StationName2: home.StationName2,
|
| | | StationName: home.StationName,
|
| | | StationId: home.StationId
|
| | | };
|
| | | fourth(treeView, $(this).parent(), tmp);
|
| | | });
|
| | | |
| | | // 电池组
|
| | | treeView.ele.on('click', '.eleGroup', function() {
|
| | | var eleGroup = $(this).data('attr');
|
| | | // 根据BattGroupId查询数据
|
| | | if(BattGroupId != eleGroup.BattGroupId) {
|
| | | BattGroupId = eleGroup.BattGroupId;
|
| | | // 对BTS9611做特殊的处理
|
| | | var batt = getBatt();
|
| | | //console.info(batt);
|
| | | $('#eleCircleBtn').removeClass('hide');
|
| | | if(regEquipType(batt.FBSDeviceId, globalPattern.BTSSreen)) {
|
| | | var isAct = $('#eleCircleBtn').hasClass('action');
|
| | | if(isAct) {
|
| | | lname = 'Voltage';
|
| | | $('#'+lname).addClass('action');
|
| | | }
|
| | | |
| | | $('#eleCircleBtn').removeClass('action').addClass('hide');
|
| | | $('.ele-circle').hide();
|
| | | $('.graph').show();
|
| | | myChart.resize();
|
| | | }
|
| | | mygraph.ischange = 1; //重新绘制拓扑图
|
| | | |
| | | |
| | | // 负载电流
|
| | | var loadCurr = batt.Load_curr+'A';
|
| | | changeEleCircleOpt(eleCircle, 'loaderCurr', {name:'最大负载电流:'+loadCurr});
|
| | | |
| | | // 最大核容电流
|
| | | var disCurrMax = batt.DisCurrMax+'A';
|
| | | changeEleCircleOpt(eleCircle, 'disCurrMax', {name:'最大核容电流:'+disCurrMax});
|
| | | |
| | | getBattStr();
|
| | | searchBattAlarmParam(); //查询电池告警参数
|
| | | clearInterval(time);
|
| | | mygraph.graphtype = 4;
|
| | | showtable();
|
| | | time=window.setInterval("showtable()",4000);
|
| | | }
|
| | | });
|
| | | |
| | | // 右键菜单显示
|
| | | treeView.ele.on('mousedown', '.eleGroup', function(e) {
|
| | | //利用jquery的方式获取当前点击的是否是右键
|
| | | if(e.which==3)
|
| | | {
|
| | | BattGroupId=$(this).attr("id");
|
| | | var disX=(e||event).clientX+10; //得到鼠标点击X的位置
|
| | | var disY=(e||event).clientY+10; //得到鼠标点击Y的位置
|
| | | var scrollY=$(window).scrollTop(); //获取浏览器滚动的高度
|
| | | console.log(scrollY);
|
| | | var oRightMenu=document.getElementById("right_menu");
|
| | | |
| | | $(this).click();
|
| | | |
| | | //显示菜单内容
|
| | | $("#right_menu").show();
|
| | | $("#right_menu .more_menu").hide();
|
| | | $("#right_menu .angle").hide();
|
| | | console.log(disX+"***"+disY);
|
| | | //使菜单跟随鼠标位置
|
| | | oRightMenu.style.left= disX+'px';
|
| | | oRightMenu.style.top= disY+scrollY+'px';
|
| | | |
| | | setPosition($("#right_menu"),disX, disY);
|
| | | |
| | | }
|
| | | });
|
| | | |
| | | //全部收缩
|
| | | $('#all_hide').click(function(){
|
| | | treeView.ele.find('li').removeClass('sider-menu-open');
|
| | | });
|
| | | |
| | | // 电池充放电数据监控
|
| | | var batt_list = $('#ele_content .batt-listen .batt-list');
|
| | | batt_list.on('click', 'a', function(){
|
| | | batt_list.find('a').removeClass('active');
|
| | | $(this).addClass('active');
|
| | | var battInfo = $(this).parent().data('attr'); |
| | | |
| | | var tmp = {
|
| | | province: battInfo.province,
|
| | | city: battInfo.city,
|
| | | home: battInfo.home,
|
| | | homeid: battInfo.note,
|
| | | battid: battInfo.val
|
| | | }
|
| | | |
| | | localSideBar(treeView, treeView.container, tmp);
|
| | | });
|
| | | });
|
| | | </script>
|
| | | <script type="text/javascript" src="js/Title.js"></script>
|
| | | <script type="text/javascript" src="js/control.js"></script>
|