| | |
| | | <!-- 三级菜单内容 -->
|
| | | <div data-role="page">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="homeList.html" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">返回</a>
|
| | | <a href="selectbatt.html" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">返回</a>
|
| | | <h1>蓄电池组</h1>
|
| | | </div>
|
| | |
|
| | |
| | |
|
| | | var data = [
|
| | | {url: 'javascript:JumpHomePage();', txt: '首页'},
|
| | | {url: 'homeList.html', txt: temp.StationName},
|
| | | {url: 'javascript:JumpFirstPage();', txt:temp.StationName1},
|
| | | {url: 'javascript:JumpcityPage();', txt: temp.StationName2},
|
| | | {url: 'selectcounty.html', txt: temp.StationName5 },
|
| | | {url: 'selectbatt.html', txt: temp.StationName3 },
|
| | | {url: 'javascript:;', txt: '蓄电池组'}
|
| | | ];
|
| | | addBreadCrumb($('.breadcrumb').eq(0),data);
|
| | |
| | | </div>
|
| | |
|
| | | <div data-role="content">
|
| | | <!-- <ul class="breadcrumb"></ul> -->
|
| | | <ul class="breadcrumb"></ul>
|
| | | <ul data-role="listview" data-inset="true">
|
| | | <li>
|
| | | <a href="voltageM.html" target="_top">1.单体电压 </a>
|
| | |
| | | <li><a href="" id ="sysparm" class="ui-btn ui-btn-inline ui-corner-all ui-btn-icon-check" data-icon="check" data-role="button">系统参数</a></li>
|
| | | <li><a href="" id="signalqual" class="ui-btn ui-btn-inline ui-corner-all ui-btn-icon-check" data-icon="check" data-role="button">信号质量</a></li>
|
| | | </ul>
|
| | | </div> |
| | | </div>
|
| | | </div>
|
| | | <script type="text/javascript" src="js/tbl.js"></script>
|
| | |
| | | loadclose();
|
| | | //}
|
| | | }else{
|
| | | noContent.showNoContent('查询失败!');
|
| | | alert('查询失败!');
|
| | | loadclose();
|
| | | }
|
| | | },
|
| | | error: function() {
|
| | | noContent.showNoContent('查询失败!');
|
| | | alert('查询失败!');
|
| | | loadclose();
|
| | | // 关闭等待
|
| | | }
|
| | |
| | | var batt = JSON.parse(temp);
|
| | | var data = [
|
| | | {url: 'javascript:JumpHomePage();', txt: '首页'},
|
| | | {url: 'machineroomM.html', txt: batt.StationName1}, // 省
|
| | | {url: 'selectcity.html' , txt:batt.StationName2},//市
|
| | | {url: 'javascript:JumpFirstPage();', txt: batt.StationName1},
|
| | | {url: 'javascript:JumpcityPage();', txt: batt.StationName2},
|
| | | {url: 'selectcounty.html' , txt:batt.StationName5},
|
| | | {url: 'battM.html', txt: batt.StationName3}, // 电池组
|
| | | {url: 'selectbatt.html', txt: batt.StationName3 },
|
| | | {url: 'battM.html', txt: batt.BattGroupName}, // 电池组
|
| | | {url: 'testdata.html', txt: '电池组数据'}, // 当前页面
|
| | | {url: 'javascript:;', txt: '实时-监测数据'}
|
| | | ];
|
| | |
| | | if(batt.install_user||batt.install_user==0){
|
| | |
|
| | | }else{
|
| | | //addBreadCrumb($('.breadcrumb').eq(0), data);
|
| | | addBreadCrumb($('.breadcrumb').eq(0), data);
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | var batt = JSON.parse(temp);
|
| | | var data = [
|
| | | {url: 'javascript:JumpHomePage();', txt: '首页'},
|
| | | {url: 'homeList.html', txt: batt.StationName}, // 机房
|
| | | {url: 'javascript:JumpFirstPage();', txt: batt.StationName1},
|
| | | {url: 'javascript:JumpcityPage();', txt: batt.StationName2},
|
| | | {url: 'selectcounty.html', txt: batt.StationName5 },
|
| | | {url: 'selectbatt.html', txt: batt.StationName3 },
|
| | | {url: 'battM.html', txt: batt.BattGroupName}, // 电池组
|
| | | {url: 'testdata.html', txt: '电池组数据'}, // 电池组数据
|
| | | {url: 'javascript:;', txt: '历史-监测数据'} // 电池组数据
|
| | |
| | | <body>
|
| | | <div data-role="page" tabindex="0" id="page0">
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="index.html" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">返回</a>
|
| | | <a href="javascript:window.history.go(-1)" target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">返回</a>
|
| | | <h1>机房列表</h1>
|
| | | </div>
|
| | | <div data-role="content">
|
| | | <div class="home-search-input-container">
|
| | | <input type="text" data-type="search" name="search" id="searchInput" placeholder="搜索内容...">
|
| | | <input type="text" data-type="search" name="search" id="searchInput" placeholder="搜索内容..." autofocus="autofocus">
|
| | | </div>
|
| | | <div id="battList"></div>
|
| | | </div>
|
| | |
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script src="app/js/common.js"></script>
|
| | | <script type="text/javascript">
|
| | | var stationlist = new Array();
|
| | | |
| | | // 初始化页面内容
|
| | | $(document).ready(function(){
|
| | | setCookie("station",null);
|
| | | setCookie("batt",null);
|
| | | });
|
| | | |
| | | // 页面初始化完成
|
| | | $(document).on('pageinit', function(event) {
|
| | | setTimeout(function() {
|
| | |
| | | StationName2: homeData.city,
|
| | | StationName5: homeData.county,
|
| | | StationName: homeData.home,
|
| | | StationName3: homeData.home3,
|
| | | StationId: homeData.homeid
|
| | | };
|
| | |
|
| | |
|
| | | var json=window.JSON.stringify(temp);
|
| | | |
| | | //设置必要的cookie
|
| | | setCookie('StationName1', json);
|
| | | setCookie('city', json);
|
| | | setCookie('county', json);
|
| | | setCookie("battselect",json);
|
| | | window.location.href="battM.html";
|
| | | });
|
| | |
| | | if(rs.code==1){
|
| | | homeSource = [];
|
| | | var data = rs.data;
|
| | | console.log(data);
|
| | | for(var i=0; i<data.length; i++) {
|
| | | var _data = data[i];
|
| | | var tmp = {
|
| | |
| | | province: _data.StationName1,
|
| | | city: _data.StationName2,
|
| | | county: _data.StationName5,
|
| | | home3: _data.StationName3,
|
| | | home: _data.StationName,
|
| | | homeid: _data.StationId
|
| | | };
|
| | |
| | | <div data-role="content" >
|
| | | <ul data-role="listview" data-icon="false" data-inset="true">
|
| | | <li>
|
| | | <a href="homeList.html" target="_top" data-i18n="main.index">测试数据</a>
|
| | | <a href="machineroomM.html" target="_top" data-i18n="main.index">测试数据</a>
|
| | | </li>
|
| | | <li>
|
| | | <a href="ele-param2.html" target="_top" data-i18n="main.warningmanagement">电池安装申请</a>
|
| | |
| | |
|
| | | <div data-role="content">
|
| | | <ul class="breadcrumb"></ul>
|
| | | <div class="home-search-input-container">
|
| | | <input type="text" data-type="search" name="search" id="searchInput" placeholder="搜索内容...">
|
| | | </div>
|
| | | <div id="battList"></div>
|
| | | </div>
|
| | | <div data-role="popup" id="myPopup" class="defined-popup">
|
| | |
| | | </div>
|
| | | </div>
|
| | | <div data-role="footer" data-position="fixed">
|
| | | <!-- <h1>福光电子有限公司</h1> -->
|
| | | |
| | | </div>
|
| | | </div>
|
| | | </body>
|
| | |
| | | window.location.href="selectcity.html";
|
| | | });
|
| | |
|
| | | |
| | | // 点击搜索框跳转到homeList页面
|
| | | $('#searchInput').click(function() {
|
| | | $(this).blur();
|
| | | window.location.href="homeList.html";
|
| | | }); |
| | | });
|
| | |
|
| | | // 定义面包屑导航条
|
| | |
| | | function addBreadCrumb(breadcrumb, data) {
|
| | | // 清理导航内容
|
| | | breadcrumb.text("");
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | console.log(data);
|
| | | |
| | | // 遍历data向容器中添加内容
|
| | | for(var i = 0; i < data.length; i++) {
|
| | | var li;
|
| | | console.warn(data[i].txt);
|
| | | if(data[i].txt.trim().length > 0) {
|
| | | if(i == data.length-1) {
|
| | | li= $('<li><a href="'+data[i].url+'" class="active">'+data[i].txt+'</a></li>');
|
| | |
| | | {url: 'javascript:JumpHomePage();', txt: '首页'},
|
| | | {url: 'javascript:JumpFirstPage();', txt:temp.StationName1},
|
| | | {url: 'javascript:JumpcityPage();', txt: temp.StationName2},
|
| | | {url: 'machineroomM.html', txt: temp.StationName5 },
|
| | | {url: 'selectcounty.html', txt: temp.StationName5 },
|
| | | {url: 'javascript:;', txt: '机房'}
|
| | | ];
|
| | | addBreadCrumb($('.breadcrumb').eq(0),data);
|
| | |
| | | <script type="text/javascript">
|
| | | $(function() {
|
| | | //console.warn(111133);
|
| | | console.info(batt);
|
| | | temp = JSON.parse(temp);
|
| | | var data = [
|
| | | {url: 'javascript:JumpHomePage();', txt: '首页'},
|
| | | {url: 'homeList.html' , txt:batt.StationName},
|
| | | {url: 'javascript:JumpFirstPage();', txt:temp.StationName1},
|
| | | {url: 'javascript:JumpcityPage();', txt: temp.StationName2},
|
| | | {url: 'selectcounty.html', txt: temp.StationName5 },
|
| | | {url: 'selectbatt.html', txt: temp.StationName3 },
|
| | | {url: 'battM.html', txt: batt.BattGroupName}, // 电池组
|
| | | {url: 'javascript:;', txt: '电池组数据'} // 当前页面
|
| | | ];
|
| | | console.info(data);
|
| | | |
| | | addBreadCrumb($('.breadcrumb').eq(0), data);
|
| | | });
|
| | |
|