| | |
| | | <body>
|
| | | <div data-role="page">
|
| | | <div class="fg-panel">
|
| | | <form method="post" id="search_form" enctype="multipart/form-data">
|
| | | <form>
|
| | | <div class="fg-panel-header">筛选</div>
|
| | | <div class="fg-panel-content">
|
| | | <input type="hidden" value="1" name="bmd.page.pageCurr" id="pageCurr" />
|
| | | <input type="hidden" value="10" name="bmd.page.pageSize" id="pageSize" />
|
| | | <label for="privince"><strong>设备</strong></label>
|
| | | <select id="equipment-name">
|
| | | <option value="">全部</option> <!-- 设备 -->
|
| | | </select>
|
| | | <!-- <select id="privince" name="bmd.binf.StationName1" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | <fieldset data-role="controlgroup">
|
| | | <p>省</p>
|
| | | <select id="mainteArea" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | <option value="">一枢纽</option>
|
| | | <option value="">二枢纽</option>
|
| | | <option value="">枢纽楼</option>
|
| | | </select>
|
| | | <p>市</p>
|
| | | <select id="city" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | </select>
|
| | | <p>区/县</p>
|
| | | <select id="country" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | </select> |
| | | <p>设备</p> |
| | | <select id="equipment-name">
|
| | | <option value="">全部</option> <!-- 设备 -->
|
| | | </select>
|
| | | |
| | | <p>告警名称</p>
|
| | |
|
| | | </select> -->
|
| | | <label for="city"><strong>告警名称</strong></label>
|
| | | <select id="alarm-name">
|
| | | <select id="alarm-name"data-mini="true">
|
| | | <option value="0">全部</option> <!-- 告警名称 -->
|
| | | </select>
|
| | | </select>
|
| | |
|
| | | |
| | | |
| | | |
| | | </fieldset>
|
| | | </div>
|
| | | <div class="fg-panel-btn">
|
| | | <a href="javascript:panel.hide(true);" data-role="button" id="search" class="ui-btn ui-mini ui-btn-b ui-shadow">确定</a>
|
| | | <a href="javascript:panel.hide(true);" id="submit" data-role="button" class="ui-btn ui-mini ui-btn-b ui-shadow">确定</a>
|
| | | </div>
|
| | | </form>
|
| | | </div>
|
| | | </div> |
| | | |
| | | |
| | | |
| | |
|
| | |
|
| | | <div data-role="header" data-position="fixed">
|
| | |
| | | });
|
| | |
|
| | | $(document).ready(function(){
|
| | | $("#search").click(function(){
|
| | | $("#submit").click(function(){
|
| | | $('#pageCurr').val(1);
|
| | | Page.pageCurr =1;
|
| | | searchEquipmentName();
|
| | |
| | |
|
| | | function findWarmName(){
|
| | | var dev_id = $("#equipment-name option:selected").val();
|
| | | |
| | | console.info(dev_id);
|
| | | var warmId ={ "dev_id":dev_id
|
| | | var warmId ={
|
| | | "dev_id":dev_id, |
| | | };
|
| | | //console.info(warmId);
|
| | | //console.info("aa");
|
| | |
| | | var alm_id = $("#alarm-name option:selected").val();
|
| | | //console.info(dev_id);
|
| | | //console.info("1234");
|
| | | var warmId ={ "dev_id":dev_id,
|
| | | "alm_id":alm_id
|
| | | |
| | | var warmId ={
|
| | | stationName1:$("#mainteArea").val(),
|
| | | stationName2:$("#city").val(),
|
| | | stationName5:$("#equipment-name").val(),
|
| | | stationName: $("#equipment-name").find('option:selected').attr('stationname'), |
| | | "dev_id":dev_id,
|
| | | "alm_id":alm_id
|
| | | };
|
| | | console.info(warmId);
|
| | | $.post("Dev_paramAction!serchByCondition","json="+JSON.stringify(warmId),function(data){
|
| | | //console.info(JSON.stringify(warmId));
|
| | | var data=data.result;
|
| | |
| | | $('#alm_low_en').attr('checked',obj.alm_low_en==1);
|
| | | }
|
| | | }
|
| | | |
| | | //页面加载时查询省
|
| | | $.post("BattInfAction_serchByStation",null,function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#mainteArea");
|
| | | $Ostation_name1.text("");
|
| | | var arr = new Array();
|
| | | for(var i=0;i<=data.data.length;i++)
|
| | | {
|
| | | if(i == 0){
|
| | | arr.push({
|
| | | val:"",
|
| | | txt:"全部(共"+data.sum+"个)", |
| | | });
|
| | | }else{
|
| | | arr.push({
|
| | | val:data.data[i-1].StationName1,
|
| | | txt:data.data[i-1].StationName1,
|
| | | });
|
| | | }
|
| | | }
|
| | | updataSel($Ostation_name1, arr);
|
| | | }
|
| | | findCity();
|
| | | });
|
| | |
|
| | | |
| | | //当省改变时更新市
|
| | | function findCity(){
|
| | | var data = {
|
| | | StationName1: $("#mainteArea").val()
|
| | | };
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName2", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | //console.info(data);
|
| | | //console.info(data.code); |
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#city");
|
| | | $Ostation_name1.text("");
|
| | | var arr = new Array();
|
| | | for(var i=0;i<=data.data.length;i++)
|
| | | {
|
| | | if(i == 0){
|
| | | arr.push({
|
| | | val:"",
|
| | | txt:"全部(共"+data.data.length+"个)",
|
| | | });
|
| | | }else{
|
| | | arr.push({
|
| | | val:data.data[i-1].StationName2,
|
| | | txt:data.data[i-1].StationName2,
|
| | | });
|
| | | }
|
| | | }
|
| | | updataSel($Ostation_name1, arr);
|
| | | }
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当市改变时更新区/县
|
| | | function findCounty(){
|
| | | var data = {
|
| | | StationName1: $("#mainteArea").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | //console.info(data);
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName5", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | //console.info(data);
|
| | | //console.info(data.code); |
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#country");
|
| | | $Ostation_name1.text("");
|
| | | var arr = new Array();
|
| | | for(var i=0;i<=data.data.length;i++)
|
| | | {
|
| | | if(i == 0){
|
| | | arr.push({
|
| | | val:"",
|
| | | txt:"全部(共"+data.data.length+"个)",
|
| | | });
|
| | | }else{
|
| | | arr.push({
|
| | | val:data.data[i-1].StationName5,
|
| | | txt:data.data[i-1].StationName5,
|
| | | });
|
| | | }
|
| | | }
|
| | | updataSel($Ostation_name1, arr);
|
| | | }
|
| | | findStationNamebyStationname1(); |
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当区县更新时更新机房 |
| | | function findStationNamebyStationname1(){
|
| | | var data = {
|
| | | StationName1: $("#mainteArea").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#country").val()
|
| | | };
|
| | | //console.info(data);
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName3", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | //console.info(data);
|
| | | //console.info(data.code); |
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#homeName");
|
| | | $Ostation_name1.text("");
|
| | | var arr = new Array();
|
| | | for(var i=0;i<=data.data.length;i++)
|
| | | {
|
| | | if(i == 0){
|
| | | arr.push({
|
| | | val:"",
|
| | | stationid:"",
|
| | | txt:"全部(共"+data.data.length+"个)",
|
| | | });
|
| | | }else{
|
| | | arr.push({
|
| | | val:data.data[i-1].StationName3,
|
| | | stationid:data.data[i-1].StationId,
|
| | | txt:data.data[i-1].StationName3,
|
| | | });
|
| | | }
|
| | | }
|
| | | //console.info(111111111111111);
|
| | | updataSelStation($Ostation_name1, arr);
|
| | | }
|
| | | |
| | | |
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | |
| | | |
| | | //当省改变时更新市
|
| | | $('#mainteArea').change(function(){
|
| | | findCity(); |
| | | });
|
| | | //当市改变时改变区/县
|
| | | $('#city').change(function(){
|
| | | findCounty(); |
| | | });
|
| | | //当区/县改变时改变机房
|
| | | $('#country').change(function(){
|
| | | findStationNamebyStationname1(); |
| | | }); |
| | | |
| | | </script>
|
| | | </div>
|
| | | </body>
|