Merge branch 'dev_lxw' of https://whyclj@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
| | |
| | | <html>
|
| | | <head>
|
| | | <base href="<%=basePath%>">
|
| | | |
| | | <title><s:text name="Station_life_query"/></title> <!--机房续航能力查询-->
|
| | | <meta charset="UTF-8">
|
| | | <meta name="viewport" content="width=device-width, initial-scale=1">
|
| | | <link href="css/basic.css" rel="stylesheet">
|
| | | <link rel="stylesheet" href="css/BrdwMaint.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/loading.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/dischargeplan_layout.css">
|
| | | <meta http-equiv="pragma" content="no-cache">
|
| | | <meta http-equiv="cache-control" content="no-cache">
|
| | | <meta http-equiv="expires" content="0">
|
| | | <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
| | | <meta http-equiv="description" content="This is my page">
|
| | | <meta charset="UTF-8">
|
| | | <meta name="viewport" content="width=device-width, initial-scale=1">
|
| | | <title><s:text name="Station_life_query"/></title> <!--机房续航能力查询-->
|
| | | <link href="css/basic.css" rel="stylesheet">
|
| | | <link rel="stylesheet" href="css/BrdwMaint.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/loading.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/dischargeplan_layout.css">
|
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | | <style type="text/css">
|
| | | body {
|
| | | overflow-x: hidden !important;
|
| | |
| | | <form action="" id="search_form">
|
| | | <table>
|
| | | <tr class="fWeight">
|
| | | <td>省</td> <!-- 省 -->
|
| | | <td>省</td> <!-- 省 -->
|
| | | <td>市</td> <!-- 市 -->
|
| | | <td>区/县</td> <!-- 区/县 -->
|
| | | <td><s:text name="Computer_name"/></td> <!-- 机房名称 -->
|
| | | <td>掉站</td>
|
| | | <td>实际续航时间</td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>
|
| | | <select id="station_name1">
|
| | | |
| | | </select>
|
| | | <select id="station_name1"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="city">
|
| | | |
| | | </select>
|
| | | <select id="city"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name">
|
| | | |
| | | </select>
|
| | | <select id="county"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="is_stand">
|
| | |
| | | <div id="allShade"></div>
|
| | | <script type="text/javascript" src="js/loading.js"></script>
|
| | | <script type="text/javascript" src="js/createTab.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript">
|
| | | var Page={
|
| | | pageCurr:1,
|
| | |
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | |
|
| | | $('#paging .search').click(function() {
|
| | | searchBattLife();
|
| | | /* loading.showLoading();
|
| | | arrTd = [
|
| | | '维护区1', '机房名称1', '电池组名称1', '标称容量1', '实际容量1', '实时电流1', '续航时间1'
|
| | | ];
|
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | | setTimeout(function() {
|
| | | loading.hideLoading();
|
| | | }, 2000); */
|
| | | searchBattLife(true);
|
| | | });
|
| | |
|
| | | // 点击表格选项显示表格选项弹出框
|
| | |
| | | }
|
| | |
|
| | |
|
| | | // 省-市-机房-电池组
|
| | | // 省-市-机房-电池组
|
| | | var filterLoad; |
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | |
| | | });
|
| | | });
|
| | |
|
| | | function findCity() {
|
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | // 查询区/县
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findCounty(true);
|
| | | });
|
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | }else{
|
| | | $("#station_name").text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | searchBattLife(true);
|
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | pageCurr:Page.pageCurr,
|
| | | },
|
| | | stationName:$('#station_name').val(), //机房名
|
| | | stationName5:$('#county').val(),
|
| | | stationName2:$('#city').val(), //市
|
| | | stationName1:$('#station_name1').val(), //省
|
| | | is_out_stand:$('#is_stand').val(), //是否掉站
|
| | |
| | | return temp;
|
| | | }
|
| | |
|
| | | function searchBattLife(){
|
| | | var temp = createSearchParam();
|
| | | var json = JSON.stringify(temp);
|
| | | var arrTd = new Array();
|
| | | // 查询内容
|
| | | function searchBattLife(isLoad){
|
| | | var temp = createSearchParam();
|
| | | var json = JSON.stringify(temp);
|
| | | var arrTd = new Array();
|
| | | var load;
|
| | | if(isLoad) {
|
| | | load = layer.load(1);
|
| | | }
|
| | | $.ajax({
|
| | | type:"post",
|
| | | url:"Batt_enduranceAction!serchByCondition",
|
| | |
| | | success:function(data){
|
| | | //console.info(data);
|
| | | var data = JSON.parse(data.result);
|
| | | //console.info(data);
|
| | | layer.close(load);
|
| | | if(data.code==1&&data.data.length>0){
|
| | | data=data.data;
|
| | | var index = 0;
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | })
|
| | | });
|
| | | }
|
| | | //首页
|
| | | $('#home').click(function(){
|
| | |
| | | <html>
|
| | | <head>
|
| | | <base href="<%=basePath%>">
|
| | | |
| | | <title><s:text name="Station_statequery"/></title> <!-- 机房状态查询 -->
|
| | | <meta charset="UTF-8">
|
| | | <meta name="viewport" content="width=device-width, initial-scale=1">
|
| | | <meta http-equiv="pragma" content="no-cache">
|
| | | <meta http-equiv="cache-control" content="no-cache">
|
| | | <meta http-equiv="expires" content="0"> |
| | | <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
| | | <meta http-equiv="description" content="This is my page">
|
| | | <title><s:text name="Station_statequery"/></title> <!-- 机房状态查询 -->
|
| | | <link href="css/basic.css" rel="stylesheet">
|
| | | <link rel="stylesheet" href="css/BrdwMaint.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/loading.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/basic-layout.css"/>
|
| | | <link rel="stylesheet" href="css/nocontent.css">
|
| | | <link rel="stylesheet" href="alifont/iconfont.css">
|
| | | <meta http-equiv="pragma" content="no-cache">
|
| | | <meta http-equiv="cache-control" content="no-cache">
|
| | | <meta http-equiv="expires" content="0"> |
| | | <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
| | | <meta http-equiv="description" content="This is my page">
|
| | |
|
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | | <style type="text/css">
|
| | | body {
|
| | | overflow-x: hidden !important;
|
| | |
| | | <tr class="fWeight">
|
| | | <td>省</td> <!-- 省 -->
|
| | | <td>市</td> <!-- 市 -->
|
| | | <td>区/县</td> <!-- 区/县 -->
|
| | | <td><s:text name="Computer_name"/></td> <!-- 机房名称 -->
|
| | |
|
| | | </tr>
|
| | | <tr>
|
| | | <td>
|
| | | <select id="station_name1" name="stationname1">
|
| | | |
| | | </select>
|
| | | <select id="station_name1" name="stationname1"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="city">
|
| | | |
| | | </select>
|
| | | <select id="city"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name3" name="stationname">
|
| | | |
| | | </select>
|
| | | <select id="county"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name3" name="stationname"></select>
|
| | | </td>
|
| | |
|
| | |
|
| | |
| | | <script type="text/javascript" src="js/loading.js"></script>
|
| | | <script type="text/javascript" src="js/nocontent.js"></script>
|
| | | <script type="text/javascript" src="js/createTab.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript" src="pages/js/common.js"></script>
|
| | | <script type="text/javascript">
|
| | | var Page={
|
| | |
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | |
|
| | | $('#paging .search').click(function() {
|
| | | |
| | | searchstationstate(); |
| | | //noContent.showNoContent(); //显示查询失败框
|
| | | |
| | | searchstationstate(true); |
| | | });
|
| | |
|
| | | // 点击表格选项显示表格选项弹出框
|
| | |
| | |
|
| | |
|
| | |
|
| | | // 省-市-机房-电池组
|
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询省
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | |
| | | });
|
| | | });
|
| | |
|
| | | function findCity() {
|
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | | //当维护区的值变换时更新市
|
| | | |
| | | // 查询区/县
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | // 当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | | //当维护区的值变换时更新机房站点
|
| | | // 当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findCounty(true);
|
| | | });
|
| | | // 当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | | |
| | | // 当电池组的值变化时更新内容
|
| | | $('#station_name3').change(function() {
|
| | | searchstationstate(true);
|
| | | });
|
| | |
|
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | var optsList = [];
|
| | | //console.info(_data[0]);
|
| | | for(var i=0;i<_data.length;i++){
|
| | | /* if(i==0){
|
| | | $select.html("<s:text name='All'/>(<s:text name='Common'/>"+data.length+"<s:text name='Species'/>)"); |
| | | $select.attr("value","");
|
| | | }else{
|
| | | $select.text(_data[i-1].StationName3);
|
| | | $select.attr("value",_data[i-1].StationId); |
| | | }*/
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | |
| | | $("#station_name3").text('').html('<option>暂无可测机房站点</option>');
|
| | |
|
| | | }
|
| | | |
| | | searchstationstate(); |
| | | layer.close(filterLoad);
|
| | | searchstationstate(true); |
| | | });
|
| | | }
|
| | |
|
| | |
| | | pageSize:$('#number').val(),
|
| | | pageCurr:Page.pageCurr,
|
| | | },
|
| | | StationName1:$('#station_name1').val(), //市
|
| | | StationName2:$('#city').val(), |
| | | StationName1:$('#station_name1').val(), // 省
|
| | | StationName2:$('#city').val(), // 市
|
| | | StationName5:$('#county').val(), // 区/县 |
| | | StationName3:$('#station_name3').val(),
|
| | | StationId: stationid?stationid:0,
|
| | | BattGroupNum:battgroupid,
|
| | |
| | | //console.info(temp);
|
| | | return temp;
|
| | | }
|
| | | function batt_condition(){
|
| | | var POFF_ComError = 0;
|
| | | var XUHANG_ComError = 0;
|
| | | var FADIAN_ComError = 0;
|
| | | var DIAOZHAN = 0;
|
| | | var DOOROPEN_ComError = 0;
|
| | | var condition = 0;
|
| | | if($('#ALM_TYPE_BTS9100S_POFF_ComError').attr("checked")){
|
| | | POFF_ComError = $('#ALM_TYPE_BTS9100S_POFF_ComError').val();
|
| | | condition+=parseInt(POFF_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_XUHANG_ComError').attr("checked")){
|
| | | XUHANG_ComError = $('#ALM_TYPE_BTS9100S_XUHANG_ComError').val();
|
| | | condition+=parseInt(XUHANG_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_FADIAN_ComError').attr("checked")){
|
| | | FADIAN_ComError = $('#ALM_TYPE_BTS9100S_FADIAN_ComError').val();
|
| | | condition+=parseInt(FADIAN_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_DIAOZHAN_ComError').attr("checked")){
|
| | | DIAOZHAN = $('#ALM_TYPE_BTS9100S_DIAOZHAN_ComError').val();
|
| | | condition+=parseInt(DIAOZHAN);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_DOOROPEN_ComError').attr("checked")){
|
| | | DOOROPEN_ComError = $('#ALM_TYPE_BTS9100S_DOOROPEN_ComError').val();
|
| | | condition+=parseInt(DOOROPEN_ComError);
|
| | | }
|
| | | //condition = POFF_ComError+XUHANG_ComError+DIAOZHAN+DOOROPEN_ComError+FADIAN_ComError;
|
| | | //console.info(condition);
|
| | | return condition;
|
| | | |
| | | function batt_condition(){
|
| | | var POFF_ComError = 0;
|
| | | var XUHANG_ComError = 0;
|
| | | var FADIAN_ComError = 0;
|
| | | var DIAOZHAN = 0;
|
| | | var DOOROPEN_ComError = 0;
|
| | | var condition = 0;
|
| | | if($('#ALM_TYPE_BTS9100S_POFF_ComError').attr("checked")){
|
| | | POFF_ComError = $('#ALM_TYPE_BTS9100S_POFF_ComError').val();
|
| | | condition+=parseInt(POFF_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_XUHANG_ComError').attr("checked")){
|
| | | XUHANG_ComError = $('#ALM_TYPE_BTS9100S_XUHANG_ComError').val();
|
| | | condition+=parseInt(XUHANG_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_FADIAN_ComError').attr("checked")){
|
| | | FADIAN_ComError = $('#ALM_TYPE_BTS9100S_FADIAN_ComError').val();
|
| | | condition+=parseInt(FADIAN_ComError);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_DIAOZHAN_ComError').attr("checked")){
|
| | | DIAOZHAN = $('#ALM_TYPE_BTS9100S_DIAOZHAN_ComError').val();
|
| | | condition+=parseInt(DIAOZHAN);
|
| | | }
|
| | | if($('#ALM_TYPE_BTS9100S_DOOROPEN_ComError').attr("checked")){
|
| | | DOOROPEN_ComError = $('#ALM_TYPE_BTS9100S_DOOROPEN_ComError').val();
|
| | | condition+=parseInt(DOOROPEN_ComError);
|
| | | }
|
| | | //condition = POFF_ComError+XUHANG_ComError+DIAOZHAN+DOOROPEN_ComError+FADIAN_ComError;
|
| | | //console.info(condition);
|
| | | return condition;
|
| | | }
|
| | |
|
| | | var myTimeOut;
|
| | | //查询机房状态
|
| | | function searchstationstate(){
|
| | | function searchstationstate(isLoad){
|
| | | var temp = createSearchParam();
|
| | | arrTd = new Array();
|
| | | // 是否添加等待
|
| | | var load;
|
| | | if(isLoad) {
|
| | | load = layer.load(1);
|
| | | }
|
| | | $.ajax({
|
| | | type: "post",
|
| | | url: "Bts_station_stateAction_action_serchByCondition",
|
| | |
| | | $('#total').text(Page.pageAll);
|
| | | $('#current').text(Page.pageCurr+"/"+pageNum);
|
| | | }
|
| | | layer.close(load);
|
| | | createAllTbl(tblHd, tblBd, arrTh, arrTd, tblStatus);
|
| | |
|
| | | window.clearTimeout(myTimeOut);
|
| | |
| | | <tr>
|
| | | <th>省</th> <!-- 省 -->
|
| | | <th>市</th> <!-- 市 -->
|
| | | <th>区/县</th> <!-- 区/县 -->
|
| | | <th><s:text name="Computer_site"/></th> <!-- 机房站点 -->
|
| | |
|
| | | <th colspan="2" style="width: 30%;">时间</th> <!-- 开始告警日期 -->
|
| | |
| | | </tr>
|
| | | <tr>
|
| | | <td>
|
| | | <select name="" id="station_name1">
|
| | | |
| | | </select>
|
| | | <select name="" id="station_name1"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select name="" id="city">
|
| | | |
| | | </select>
|
| | | <select name="" id="city"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select name="" id="station_name3">
|
| | | |
| | | </select>
|
| | | <select name="" id="county"></select>
|
| | | </td>
|
| | | |
| | | <td>
|
| | | <select name="" id="station_name3"></select>
|
| | | </td>
|
| | | <td><input type="text" id="startalm" readonly="readonly" name="bmd.adata.alm_start_time" value="2000-1-1" /></td>
|
| | | <td><input type="text" id="endTalm" readonly="readonly" name="bmd.adata.alm_start_time1" /></td>
|
| | | <td>
|
| | |
| | | function serachBattStatistical(){
|
| | | var temp = createSearchForm();
|
| | | var json = JSON.stringify(temp);
|
| | | var load = layer.load(1);
|
| | | $.ajax({
|
| | | type:"post",
|
| | | url:"Bts_station_eventAction!serchByCondition",
|
| | |
| | | }else {
|
| | | tOptions.data = [];
|
| | | }
|
| | | |
| | | layer.close(load);
|
| | | table.render(tOptions);
|
| | | }
|
| | | })
|
| | |
| | | var stationid = $('#station_name3').find("option:selected").attr('Stationid');
|
| | | var temp={
|
| | | StationName1:$('#station_name1').val(), // 省
|
| | | StationName2:$('#city').val(), // 市
|
| | | StationName2:$('#city').val(),
|
| | | Stationname5:$('#county').val(), // 市
|
| | | StationName3:$('#station_name3').val(), //机房名称
|
| | | StationId: stationid?stationid:0,
|
| | | BattInUseDate:$('#startalm').val()+" 00:00:00",
|
| | |
| | | return rs;
|
| | | }
|
| | |
|
| | | });
|
| | |
|
| | | // 省-市-机房-电池组
|
| | | $(document).ready(function(){
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | |
| | | // 省-市-机房-电池组
|
| | | var filterLoad = layer.load();
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | | data=eval("("+data+")");
|
| | |
| | | }
|
| | | findCity();
|
| | | });
|
| | | });
|
| | | |
| | | function findCity() {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName2", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#city");
|
| | | if(rs.code == 1) {
|
| | | var _data= rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | |
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName2", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#city");
|
| | | if(rs.code == 1) {
|
| | | var _data= rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var tmp = getOptionsData(__data.StationName2, __data.StationName2, __data);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | // 查询区/县
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | });
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findCounty();
|
| | | });
|
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | | |
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | | var rs = JSON.parse(data.result);
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | var $select = $("#station_name3");
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var tmp = getOptionsData(__data.StationName2, __data.StationName2, __data);
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName3, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | });
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | });
|
| | | |
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | };
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | | var rs = JSON.parse(data.result);
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | var $select = $("#station_name3");
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName3, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }else{
|
| | | $("#station_name3").text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | |
|
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $("#station_name3").text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | | });
|
| | | </script>
|
| | | </body>
|
| | | </html>
|
| | |
| | | <title><s:text name="Battery_alarm_real-time_query"/></title> <!-- 电池告警实时查询 -->
|
| | | <link rel="stylesheet" type="text/css" href="css/basic.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/elewarn.css">
|
| | | |
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | | </head>
|
| | | <body>
|
| | | <!--头部内容开始-->
|
| | |
| | | <!-- 维护区信息 -->
|
| | | <table>
|
| | | <tr class="fWeight">
|
| | | <td>省</td> <!-- 省 -->
|
| | | <td>市</td> <!-- 市 -->
|
| | | <td>省</td> <!-- 省 -->
|
| | | <td>市</td> <!-- 市 -->
|
| | | <td>区/县</td> <!-- 区/县 -->
|
| | | <td><s:text name="Computer_site"/></td> <!-- 机房站点(或机房设备) -->
|
| | | <td><s:text name="Battery"/></td> <!-- 蓄电池组 -->
|
| | | </tr>
|
| | | <tr>
|
| | | <td>
|
| | | <select id="station_name1" name="bmd.binf.StationName1">
|
| | | |
| | | </select>
|
| | | <select id="station_name1" name="bmd.binf.StationName1"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="city" name="bmd.binf.StationName2">
|
| | | |
| | | </select>
|
| | | <select id="city" name="bmd.binf.StationName2"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name" name="bmd.binf.stationName">
|
| | | |
| | | </select>
|
| | | <select id="county" name="bmd.binf.StationName5"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="battgroup_name" name="bmd.binf.BattGroupId">
|
| | | |
| | | </select>
|
| | | <select id="station_name" name="bmd.binf.stationName"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="battgroup_name" name="bmd.binf.BattGroupId"></select>
|
| | | </td>
|
| | | </tr>
|
| | | </table>
|
| | |
| | |
|
| | | </body>
|
| | | <script type="text/javascript" src="js/createTab.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript">
|
| | | var permits;
|
| | | <% Object obj=session.getAttribute("permits");
|
| | |
| | | $.post("Battalarm_dataAction!serchByCondition",$('#search_form').serialize(),function(data){
|
| | | data=data.result;
|
| | | data=eval("("+data+")");
|
| | | //console.info(data);
|
| | | console.info(data);
|
| | | var pagecurr=parseInt($('#pageCurr').attr('value'));
|
| | | var pagesize=parseInt($('#pageSize').attr('value'));
|
| | | if(data.code==1 && data.data.length>0){
|
| | | data=data.data;
|
| | | var index=0;
|
| | | battalarmlist=new Array();
|
| | | console.info(data); |
| | | //console.info(data); |
| | | ArrWarnTb=new Array();
|
| | | for(var i=0;i<data.length;i++){
|
| | | if(i == (data.length-1)){
|
| | |
| | | }
|
| | |
|
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | |
| | | });
|
| | |
|
| | | // 根据维护区的内容查询市
|
| | | function findCity() {
|
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 查询区/县
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | |
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findCounty(true);
|
| | | });
|
| | | |
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | |
|
| | | // 根据机房名称查询电池组
|
| | | $('#station_name').change(function(){
|
| | | findserchByBattGroupNamebystationname();
|
| | | findserchByBattGroupNamebystationname(true);
|
| | | });
|
| | |
|
| | | //根据省,市和机房查询蓄电池组
|
| | | function findserchByBattGroupNamebystationname(){
|
| | | function findserchByBattGroupNamebystationname(isLoad){
|
| | | var stationid = $("#station_name").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):'';
|
| | | // 构造查询条件
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val(),
|
| | | StationName: $("#station_name").val(),
|
| | | StationId: stationid
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var station_name1=$("#station_name1 option:selected").val();
|
| | | //var station_name=$("#station_name option:selected").val();
|
| | |
|
| | |
| | | }else{
|
| | | $("#battgroup_name").text('').html('<option>暂无可测蓄电池组</option>');
|
| | | }
|
| | | |
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | 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 treeView = new TreeView($('#lside'));
|
| | | $('#lside').width($('#ele_content').width());
|
| | | treeView.setContainer();
|
| | |
| | | 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 city = $(this).data('attr');
|
| | | fourth(treeView, $(this).parent(), city);
|
| | | });
|
| | | |
| | | |
| | |
|
| | | 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);
|
| | | });
|
| | |
|
| | | // 电池组
|