| | |
| | | .w400 {
|
| | | width: 400px;
|
| | | }
|
| | | .w500 {
|
| | | width: 500px;
|
| | | }
|
| | | .mr250 {
|
| | | margin-left: -250px;
|
| | | }
|
| | | </style>
|
| | |
|
| | | </head>
|
| | |
| | | <table>
|
| | | <tr>
|
| | | <td id="ele_content">
|
| | | <div class="siderbar-tools">
|
| | | <div class="siderbar-tools-right">
|
| | | <i class="fa fa-file-text-o" title="机历卡" id="siderbarToolsCard"></i>
|
| | | <i class="fa fa-search" title="查询机房" id="siderbarToolsSearch"></i>
|
| | | <i class="fa fa-outdent" title="全部收缩" id="siderbarToolsHide"></i>
|
| | | </div>
|
| | | </div>
|
| | | <!--电池组菜单栏-->
|
| | | <div id="lside">
|
| | |
|
| | |
| | | <!-- 电池组机历卡详细信息-->
|
| | | <div id="card_infor">
|
| | | <span class="title-log"><s:text name="The_battery_pack_machine_through_the_card"/></span> <!-- 电池组机历卡 -->
|
| | | <div class="con-list ele-infor con-show">
|
| | | <div id="cardInfoTab" class="whyc-tab-card">
|
| | | <ul class="whyc-tab-title">
|
| | | <li class="whyc-tab-this">电池组信息</li>
|
| | | <li class="">基站信息</li>
|
| | | </ul>
|
| | | </div>
|
| | | <div class="con-list ele-infor con-show" style="height: 400px;overflow-y: auto">
|
| | | <table>
|
| | | <tr>
|
| | | <th id="card_infor_left"><s:text name="Parameter_name"/></th> <!-- 参数名称 -->
|
| | |
| | | <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>
|
| | |
| | | <tr>
|
| | | <td><s:text name="Head"/></td> <!-- 负责人 -->
|
| | | <td></td>
|
| | | </tr>
|
| | | </table>
|
| | | </div>
|
| | | <div class="con-list ele-infor" style="height: 400px;overflow-y: auto">
|
| | | <table>
|
| | | <tr>
|
| | | <th id="card_infor_left"><s:text name="Parameter_name"/></th> <!-- 参数名称 -->
|
| | | <th><s:text name="Parameter_value"/></th> <!-- 参数值 -->
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站点ID</td>
|
| | | <td id="station_stationid_ex"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站点名称</td>
|
| | | <td id="station_stationname"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>机房ID</td>
|
| | | <td id="station_stationid"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>所属组织</td>
|
| | | <td id="station_affiliation"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>数据来源</td>
|
| | | <td id="station_dataSources"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址类型</td>
|
| | | <td id="station_stationType"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>经纬度</td>
|
| | | <td id="station_jinweidu"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>所在地址</td>
|
| | | <td id="station_stationAddr"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址状态</td>
|
| | | <td id="station_stationstate"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>维护单位</td>
|
| | | <td id="station_maintenanceCompany"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址场景</td>
|
| | | <td id="station_stationscenario"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址产权</td>
|
| | | <td id="station_stationproperty"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>使用单位</td>
|
| | | <td id="station_useUnit"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>物理站址编码</td>
|
| | | <td id="station_siteCode"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>历史物理站址编码</td>
|
| | | <td id="station_historySiteCode"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址内部编号</td>
|
| | | <td id="station_siteInternalNumber"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址拼音简称</td>
|
| | | <td id="station_sitePinyinReferred"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>中文简称</td>
|
| | | <td id="station_siteChineseReferred"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>是否开通业务</td>
|
| | | <td id="station_isOpenBusiness"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>录入人员</td>
|
| | | <td id="station_schoolPersonnel"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>录入时间</td>
|
| | | <td id="station_entryTime"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>修改人</td>
|
| | | <td id="station_modifyPeople"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>修改时间</td>
|
| | | <td id="station_modifyTime"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>备注</td>
|
| | | <td id="station_note"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>站址接收标记及是否有效</td>
|
| | | <td id="station_receiveorvalidity"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>移动站址名称</td>
|
| | | <td id="station_siteNameCMCC"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>电信站址名称</td>
|
| | | <td id="station_siteNameCTC"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>联通站址名称</td>
|
| | | <td id="station_siteNameCUCC"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>品牌</td>
|
| | | <td id="station_producer"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>续航测算时长</td>
|
| | | <td id="station_lastTimeLong"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>续航测算类别</td>
|
| | | <td id="station_lastTimeType"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>续航发生时间</td>
|
| | | <td id="station_lastTimeDate"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>共享情况</td>
|
| | | <td id="station_shareInfo"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>运营商购买发电服务状况</td>
|
| | | <td id="station_electPower"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>是否具备发电条件</td>
|
| | | <td id="station_isCanElectPower"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>上站路程</td>
|
| | | <td id="station_upperStationRoute"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>上站难易程度</td>
|
| | | <td id="station_upperStationDifficult"></td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>客户问题库未完成蓄电池维修</td>
|
| | | <td id="station_clienteleErrorService"></td>
|
| | | </tr>
|
| | | </table>
|
| | | </div>
|
| | |
| | | </div>
|
| | | </div>
|
| | |
|
| | | <!-- 导航定位 -->
|
| | | <div class="popup w500 mr250" id="localNav">
|
| | | <div class="popup-title"><span>机房查询</span><a href="javascript:;" class="close">X</a></div>
|
| | | <div class="popup-content">
|
| | | <div class="popup-tbl">
|
| | | <table>
|
| | | <tbody>
|
| | | <tr>
|
| | | <th>机房名称/机房id</th>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>
|
| | | <input name="popupHomeName" id="popupHomeName" type="text">
|
| | | </td>
|
| | | </tr>
|
| | | </tbody>
|
| | | </table>
|
| | | </div>
|
| | | </div>
|
| | | |
| | | <div class="popup-footer">
|
| | | <input type="button" name="" id="localNav_en" class="status-change-btn" value="确定" > <!-- 确定 -->
|
| | | <input type="button" name="" class="close" value="取消" > <!-- 取消 -->
|
| | | </div>
|
| | | </div>
|
| | | |
| | | <!-- 最大内阻单体 -->
|
| | | <div class="confirm">
|
| | | <div class="confirm-header"><span>最大内阻单体(前10)</span><a href="javascript:closeConfirm();" class="close">X</a></div>
|
| | |
| | |
|
| | | //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 equip61850_popup = new Popup($('#equip61850'));
|
| | | var BTS_popup = new Popup($('#bts'));
|
| | | var equip4016_popup = new Popup($('#equip4016'));
|
| | | var localNav = new Popup($('#localNav'));
|
| | | // 充放电弹出框设置
|
| | | $(function() {
|
| | | // 初始化LD9充放电弹出框
|
| | |
| | | equip4016_popup.hidePopup(); // 隐藏61850弹出框和遮罩层
|
| | | });
|
| | |
|
| | | // 初始化localNav弹出框
|
| | | $('#localNav').find('.close').bind('click', function() {
|
| | | localNav.hidePopup(); // 隐藏localNav弹出框和遮罩层
|
| | | });
|
| | | |
| | | // 窗口大小改变
|
| | | $(window).resize(function() {
|
| | | LD9_popup.hidePopup(); // 隐藏LD9弹出框和遮罩层
|
| | | equip61850_popup.hidePopup(); // 隐藏61850弹出框和遮罩层
|
| | | BTS_popup.hidePopup(); // 隐藏bts弹出框和遮罩层
|
| | | equip4016_popup.hidePopup(); // 隐藏4016弹出框和遮罩层
|
| | | localNav.hidePopup();
|
| | | });
|
| | | });
|
| | | //初始化柱状图
|
| | |
| | | data = eval("("+data+")");
|
| | | var model = eval("("+data.result+")");
|
| | | //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 batt = getBatt();
|
| | | var province = batt.StationName1;
|
| | | var city = batt.StationName2;
|
| | | var county = batt.StationName5;
|
| | | var home = batt.StationName;
|
| | | $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&home='+home);
|
| | | $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home);
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | val:_data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | county: _data.stationName5,
|
| | | home: _data.stationName,
|
| | | isCharge:0
|
| | | });
|
| | |
| | | val: _data.BattGroupId,
|
| | | province: _data.stationName1,
|
| | | city: _data.stationName2,
|
| | | county: _data.stationName5,
|
| | | 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++;
|
| | | }
|
| | | |
| | | li.data('attr', list[i]);
|
| | | 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() {
|
| | |
|
| | |
| | | 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-mask').hide();
|
| | | }
|
| | |
|
| | | // 机房定位面板数据查询
|
| | | $(function() {
|
| | | |
| | | |
| | | });
|
| | | |
| | | |
| | | |
| | | // siderbar模块
|
| | | $(function() {
|
| | | var TreeView = GLOBAL.pages.TreeView;
|
| | |
| | | var second = GLOBAL.pages.siderbar.second; // 二级导航
|
| | | var third = GLOBAL.pages.siderbar.third; // 三级导航
|
| | | var fourth = GLOBAL.pages.siderbar.fourth; // 四级导航
|
| | | var fifth = GLOBAL.pages.siderbar.fifth; // 五级导航
|
| | | var localSideBar = GLOBAL.pages.siderbar.localSideBar; // 定位机房
|
| | | var treeView = new TreeView($('#lside'));
|
| | | $('#lside').width($('#ele_content').width());
|
| | |
| | | second(treeView, $(this).parent(), province);
|
| | | });
|
| | |
|
| | | // 市->机房
|
| | | // 市->县
|
| | | treeView.ele.on('click', '.city', function() {
|
| | | var city = $(this).data('attr');
|
| | | third(treeView, $(this).parent(), city);
|
| | | });
|
| | | |
| | | // 县->机房
|
| | | treeView.ele.on('click', '.county', function() {
|
| | | var county = $(this).data('attr');
|
| | | fourth(treeView, $(this).parent(), county);
|
| | | });
|
| | |
|
| | | battinlist = [];
|
| | |
| | | var tmp = {
|
| | | StationName1: home.StationName1,
|
| | | StationName2: home.StationName2,
|
| | | StationName5: home.StationName5,
|
| | | StationName: home.StationName,
|
| | | StationId: home.StationId
|
| | | };
|
| | | fourth(treeView, $(this).parent(), tmp);
|
| | | fifth(treeView, $(this).parent(), tmp);
|
| | | });
|
| | |
|
| | | // 电池组
|
| | |
| | | }
|
| | | 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);
|
| | | }
|
| | |
| | | BattGroupId=$(this).attr("id");
|
| | | var disX=(e||event).clientX+10; //得到鼠标点击X的位置
|
| | | var disY=(e||event).clientY+10; //得到鼠标点击Y的位置
|
| | | var scrollY=$("body").scrollTop(); //获取浏览器滚动的高度
|
| | | |
| | | 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';
|
| | | oRightMenu.style.left= disX+'px';
|
| | | oRightMenu.style.top= disY+scrollY+'px';
|
| | |
|
| | | setPosition($("#right_menu"),disX, disY);
|
| | |
|
| | |
| | | treeView.ele.find('li').removeClass('sider-menu-open');
|
| | | });
|
| | |
|
| | | // 工具条整体样式
|
| | | $('.siderbar-tools').tooltip();
|
| | | |
| | | // 工具条-机历卡
|
| | | $('#siderbarToolsCard').click(function(){
|
| | | var batt = getBatt();
|
| | | var tmp = {
|
| | | province: batt.StationName1,
|
| | | city: batt.StationName2,
|
| | | county: batt.StationName5,
|
| | | home: batt.StationName,
|
| | | homeid: batt.StationId,
|
| | | battid: batt.BattGroupId
|
| | | };
|
| | | findBattinfByBattGroupId(batt.BattGroupId);
|
| | | findStationInfoByStation(batt);
|
| | | // 根据数据定位
|
| | | localSideBar(treeView, treeView.container, tmp);
|
| | | });
|
| | | |
| | | // 工具条-全部收缩
|
| | | $('#siderbarToolsHide').click(function(){
|
| | | treeView.ele.find('li').removeClass('sider-menu-open');
|
| | | });
|
| | | |
| | | // 工具条-查询
|
| | | $('#siderbarToolsSearch').click(function(){
|
| | | localNav.homeInfo = undefined;
|
| | | $('#popupHomeName').val('');
|
| | | localNav.showPopup();
|
| | | });
|
| | | |
| | | // 点击面板的确定按钮
|
| | | $('#localNav_en').click(function() {
|
| | | // 定位
|
| | | if(localNav.homeInfo) {
|
| | | localNav.hidePopup();
|
| | | localSideBar(treeView, treeView.container, localNav.homeInfo);
|
| | | }else {
|
| | | |
| | | }
|
| | | });
|
| | | |
| | | // 电池充放电数据监控
|
| | | var batt_list = $('#ele_content .batt-listen .batt-list');
|
| | | batt_list.on('click', 'a', function(){
|
| | |
| | | var tmp = {
|
| | | province: battInfo.province,
|
| | | city: battInfo.city,
|
| | | county: battInfo.county,
|
| | | home: battInfo.home,
|
| | | homeid: battInfo.note,
|
| | | battid: battInfo.val
|
| | | }
|
| | | |
| | | };
|
| | | //console.log(tmp);
|
| | | localSideBar(treeView, treeView.container, tmp);
|
| | | });
|
| | | |
| | | // 查询机房并更新source
|
| | | var homeSource = [];
|
| | | findHome();
|
| | | |
| | | // 定义机房查询信息
|
| | | $( "#popupHomeName" ).autocomplete({
|
| | | source: homeSource,
|
| | | select: function(event, ui) {
|
| | | localNav.homeInfo = ui.item; // 设置机房信息内容
|
| | | }
|
| | | });
|
| | | |
| | | // 查询机房
|
| | | function findHome() {
|
| | | var tmp = {
|
| | | StationName1:'',
|
| | | StationName2: '',
|
| | | StationName5:''
|
| | | };
|
| | | |
| | | // 查询将信息
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(result){
|
| | | var rs = JSON.parse(result.result);
|
| | | if(rs.code==1){
|
| | | homeSource = [];
|
| | | var data = rs.data;
|
| | | for(var i=0; i<data.length; i++) {
|
| | | var _data = data[i];
|
| | | var tmp = {
|
| | | label: _data.StationName+'('+_data.StationId+')',
|
| | | province: _data.StationName1,
|
| | | city: _data.StationName2,
|
| | | county: _data.StationName5,
|
| | | home: _data.StationName,
|
| | | homeid: _data.StationId,
|
| | | battid: undefined
|
| | | };
|
| | | |
| | | // 添加到资源
|
| | | homeSource.push(tmp);
|
| | | }
|
| | | $( "#popupHomeName" ).autocomplete('option', 'source', homeSource);
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | });
|
| | | |
| | | // 机历卡模块
|
| | | $(function() {
|
| | | // 获取选项卡列表
|
| | | var tabs = $('#cardInfoTab .whyc-tab-title li');
|
| | | var tabContents = $('#card_infor .con-list');
|
| | | // 点击tabs触发
|
| | | tabs.click(function() {
|
| | | var index = $(this).index();
|
| | | // 移除特效
|
| | | tabs.removeClass('whyc-tab-this');
|
| | | tabContents.removeClass('con-show');
|
| | | |
| | | // 显示特效
|
| | | $(this).addClass('whyc-tab-this');
|
| | | tabContents.eq(index).addClass('con-show');
|
| | | });
|
| | | });
|
| | | </script>
|
| | | <script type="text/javascript" src="js/Title.js"></script>
|