81041
2018-11-01 0fb4032573abb01ddc3a7e9f8714588f2bb9dad2
Merge branch 'dev_lxw' of https://whyclxw1@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
1个文件已修改
91 ■■■■ 已修改文件
gx_tieta/WebRoot/equipHistWarn1.jsp 91 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/equipHistWarn1.jsp
@@ -20,6 +20,7 @@
    <link rel="stylesheet" href="css/BrdwMaint.css">
    <link rel="stylesheet" type="text/css" href="css/loading.css">
    <link rel="stylesheet" href="css/nocontent.css">
    <link href="src/css/layui.css" type="text/css" rel="stylesheet">
        <style type="text/css">
            body {
                overflow-x: hidden !important;
@@ -91,21 +92,22 @@
                        <tr class="fWeight">
                            <td>省</td>                <!-- 省 -->
                            <td>市</td>                <!-- 市 -->
                            <td>区/县</td>            <!-- 区/县 -->
                            <td><s:text name="Computer_name"/></td>                    <!-- 机房站点(或机房设备) -->
                            <td colspan="2"><s:text name="Alarm_start_time"/></td>    <!-- 告警开始时间段 -->
                        </tr>
                        <tr>
                            <td>
                                <select id="station_name1" name="station_name1">
                                </select>
                                <select id="station_name1" name="station_name1"></select>
                            </td>
                            <td>
                                <select id="city" name="station_name2">
                                </select>
                                <select id="city" name="station_name2"></select>
                            </td>
                            <td>
                                <select id="station_name" name="station_name">
                                </select>
                                <select id="county" name="station_name5"></select>
                            </td>
                            <td>
                                <select id="station_name" name="station_name"></select>
                            </td>
                             <td style="width: 15%">
                                <input type="text" readonly="readonly" id="starttime" name="starttime" onclick="showCalendar(this)" value="2000-01-01">
@@ -163,6 +165,7 @@
        <script type="text/javascript" src="js/nocontent.js"></script>
        <script type="text/javascript" src="js/createTab.js"></script>
        <script type="text/javascript" src="js/right-menu.js"></script>
        <script type="text/javascript" src="src/layui.all.js"></script>
        <script type="text/javascript">
        var Page={
            pageCurr:1,
@@ -462,7 +465,7 @@
    };
    //查询设备历史告警记录
    function seachDevHisAlarm(){
        loading.showLoading();
        var load = layer.load(1);
        var temp = createSearchParam();
        if(JSON.stringify(temp.binf) != JSON.stringify(formjson.binf)){
            Page.pageCurr = 1;
@@ -519,17 +522,19 @@
                }
                //console.info(arrTd);
                createAllTbl(tblHd, tblBd, arrTh, arrTd,num_list,tblStatus);                
                loading.hideLoading();
                layer.close(load);
            },            
            error:function(){
                loading.hideLoading();
                layer.close(load);
                noContent.showNoContent("查询失败,请检查网络连接!");
            }            
        });
    }
    
    // 省-市-机房-电池组
    var filterLoad;
    $(document).ready(function(){
        filterLoad = layer.load();
        //页面加载时查询维护区中的枢纽类型
        $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
            data=data.result;
@@ -557,10 +562,14 @@
    });
    
    // 根据维护区的内容查询市
    function findCity() {
    function findCity(isLoad) {
        var data = {
            StationName1: $("#station_name1").val()
        };
        // 是否添加等待
        if(isLoad) {
            filterLoad = layer.load();
        }
        // 请求获取当前省下的市
        $.ajax({     
            type: "post",                 
@@ -585,6 +594,48 @@
                }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();
            }
        });
@@ -592,20 +643,30 @@
    
    //当维护区的值变换时更新市
    $('#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){
@@ -629,6 +690,7 @@
            }else{
                $("#station_name").text('').html('<option>暂无可测机房站点</option>');
            }
            layer.close(filterLoad);
            seachDevHisAlarm();
        });
    }
@@ -643,6 +705,7 @@
        var temp = {
            binf:{
                StationName:$('#station_name').val(),        //机房名
                StationName5:$('#county').val(),                // 区/县
                StationName2:$('#city').val(),        // 市
                StationName1:$('#station_name1').val(),        // 省
                BattProductDate:$('#starttime').val()+" 00:00:00",