| | |
| | | <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.min.css">
|
| | | <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome-animation.min.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/whyc-ui.css">
|
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | | <style>
|
| | | .confirm {
|
| | | z-index: 999;
|
| | |
| | | <script type="text/javascript" src="js/elecircle.content.js"></script>
|
| | | <script type="text/javascript" src="js/mypattern.js"></script>
|
| | | <script type="text/javascript" src="js/whyc-jqueryui.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript">
|
| | | var arrTh = new Array();
|
| | | var arrTd = new Array();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("BattInfAction!serchAllStation",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",
|
| | |
| | |
|
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | |
|
| | | //当市的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findCounty();
|
| | | findCounty(true);
|
| | | });
|
| | |
|
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | // 查询区/县
|
| | | function findCounty() {
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | |
| | | }
|
| | |
|
| | | //根据维护区查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | 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){
|
| | |
| | | }
|
| | |
|
| | | $('#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 = {
|
| | |
| | | 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);
|
| | | });
|
| | | }
|
| | | // 隐藏表格功能按钮列表
|