| | |
| | | <!DOCTYPE html>
|
| | | <html>
|
| | | <html lang="en">
|
| | | <head>
|
| | | <meta charset="UTF-8">
|
| | | <title>Insert title here</title>
|
| | | <meta charset="UTF-8">
|
| | | <title>系统参数</title>
|
| | | <meta name="viewport" content="width=device-width,initial-scale=1">
|
| | | <meta name="apple-mobile-web-app-capable" content="yes">
|
| | | <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
| | | <link rel="stylesheet" href="mobilCss/jquery.mobile-1.4.5.min.css"/>
|
| | | <link href="mobilCss/mobiscroll.core-2.5.2.css" rel="stylesheet" type="text/css" />
|
| | | <link href="mobilCss/mobiscroll.animation-2.5.2.css" rel="stylesheet" type="text/css" />
|
| | | <link rel="stylesheet" type="text/css" href="css/tbl.css">
|
| | | <link rel="stylesheet" type="text/css" href="src/css/layui.css">
|
| | | <script type="text/javascript" src="mobilJs/jquery-1.8.2.js"></script>
|
| | | <script type="text/javascript" src="mobilJs/jquery.mobile-1.4.5.min.js"></script>
|
| | | <style type="text/css">
|
| | | |
| | | /*规定面板的样式*/
|
| | | .ui-panel {
|
| | | width: 80%;
|
| | | }
|
| | | .ui-panel-dismiss{
|
| | | width: 20%;
|
| | | }
|
| | | .ui-panel-inner{
|
| | | padding:0 !important;
|
| | | }
|
| | | .ui-collapsible-heading-toggle{
|
| | | padding-left: 1em !important;
|
| | | }
|
| | | .panel-header{
|
| | | padding: 8px 0;
|
| | | font-size: 1.2em;
|
| | | text-indent: 1em;
|
| | | background-color: #DFDCDC;
|
| | | }
|
| | | /*规定开关的位置*/
|
| | | .ui-flipswitch {
|
| | | margin-left: 0.5em;
|
| | | }
|
| | | |
| | | .ui-field-contain{
|
| | | padding: 0 0.6em ;
|
| | | }
|
| | | .ui-field-contain {
|
| | | border-bottom-color: #828282;
|
| | | border-bottom-color: rgba(0,0,0,.15);
|
| | | border-bottom-width: 1px;
|
| | | border-bottom-style: none;
|
| | | }
|
| | | .sicon{ |
| | | display:inline-block;width:4%;margin:1em 0;float:left; |
| | | }
|
| | | .checkdata{
|
| | | display:inline-block;width:48%;margin:0 0 0 0;float:left; |
| | | }
|
| | | |
| | | .next-page, .pre-page {
|
| | | position: fixed;
|
| | | width: 40px;
|
| | | height: 40px;
|
| | | top: 50%;
|
| | | margin-top: -15px;
|
| | | }
|
| | | .next-page {
|
| | | right: 0;
|
| | | }
|
| | | .pre-page {
|
| | | left: 0;
|
| | | }
|
| | | |
| | | |
| | | table {
|
| | | margin-top:.5em;
|
| | | border-collapse:separate; |
| | | border-spacing:0 .5em;
|
| | | }
|
| | | |
| | | tbody tr td{
|
| | | overflow: hidden;
|
| | | text-overflow:ellipsis;
|
| | | white-space: nowrap;
|
| | | }
|
| | | .bg-line{
|
| | | background-color:#ddd;
|
| | | }
|
| | | .operat-but{
|
| | | margin: 0;
|
| | | padding-top: 0.1em;
|
| | | padding-bottom: 0.1em;
|
| | | |
| | | }
|
| | | .ui-table-reflow td .ui-table-cell-label, .ui-table-reflow th .ui-table-cell-label{
|
| | | width:35%;
|
| | | } |
| | | .fr{
|
| | | float:right;
|
| | | }
|
| | | </style>
|
| | | <link rel="stylesheet" href="css/fgpanel.css">
|
| | | </head>
|
| | | <body>
|
| | | <div data-role="page">
|
| | | |
| | | <!-- 头部内容 -->
|
| | | <div data-role="header" data-position="fixed">
|
| | | <a href="control.html" target="_top" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" style="padding-top: 0.7em; padding-bottom: 0.7em;">返回</a>
|
| | | <h1>系统参数</h1>
|
| | | |
| | | </div>
|
| | | <!-- 主体内容 -->
|
| | | <div data-role="main">
|
| | | <!-- 表格容器 -->
|
| | | <div class="tbl-container"></div>
|
| | | <table data-role="table" class="ui-responsive ui-shadow" id="tab" >
|
| | | |
| | | </table>
|
| | | </div>
|
| | |
|
| | | |
| | | </div>
|
| | | <!-- 存储homeinfo的值 -->
|
| | | <div id="homeInfoIframe"></div>
|
| | | <div id="homeInfoIframeAll"></div>
|
| | | </body>
|
| | | </html> |
| | |
|
| | | <script src="mobilJs/mobiscroll.core-2.5.2.js" type="text/javascript"></script>
|
| | | <script src="mobilJs/mobiscroll.core-2.5.2-zh.js" type="text/javascript"></script>
|
| | | <script src="mobilJs/mobiscroll.datetime-2.5.1.js" type="text/javascript"></script>
|
| | | <script src="mobilJs/mobiscroll.datetime-2.5.1-zh.js" type="text/javascript"></script>
|
| | | <script type="text/javascript" src="js/tbl.js"></script>
|
| | | <script type="text/javascript" src="mobilJs/base.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | |
|
| | | <script type="text/javascript">
|
| | | /* 获取点击的是哪个按钮 */
|
| | |
|
| | | var arrTd = new Array(); //当前表格td数据
|
| | | var tblCon = $('.tbl-container');
|
| | | var Page = {
|
| | | pageSize:20, //每页的行数
|
| | | pageCurr:1, //当前页码数
|
| | | pageAll:0,
|
| | | };
|
| | | |
| | | var arrTh = [ '设备ID', '设备名称', '总续航时间','保一次下电续航时间','电流钳量程','一次下电电压','二次下电电压','DCDC模块数量','单体数据来源类型','续航组数','续航下限','续航启动下限','电池合路器主电池组编号','背光时长','停电充电电流'];
|
| | | dataArr = [];
|
| | | var tbl = $('.tbl-container');
|
| | | var temp = getCookie("control_parm");
|
| | | temp = JSON.parse(temp);
|
| | | console.info(temp);
|
| | | createTbl(tbl, arrTh, dataArr);
|
| | | $(document).ready(function(){
|
| | | Page.pageCurr=1; |
| | | console.info(temp);
|
| | | setBattLife();
|
| | | //searchBattLife();
|
| | | //console.info($("#getnumber").val()); |
| | | });
|
| | | |
| | | function setBattLife(){
|
| | | data = temp;
|
| | | var index=0;
|
| | | arrTd[index++] = data.dev_id;
|
| | | arrTd[index++] = data.stationName;
|
| | | arrTd[index++] = data.GroupVolRange;
|
| | | arrTd[index++] = data.GroupVolSorce;
|
| | | arrTd[index++] = data.CurrentRange;
|
| | | arrTd[index++] = Math.ceil(data.CurrentTyte/10);
|
| | | arrTd[index++] = Math.ceil(data.MonomerOrder/10);
|
| | | arrTd[index++] = data.LoaderCount;//DC数量
|
| | | arrTd[index++] = data.DtCardCount;
|
| | | arrTd[index++] = data.POF_BG_Boost_Cnt;
|
| | | arrTd[index++] = data.POF_BG_Boost_VolStop;
|
| | | arrTd[index++] = data.POF_BG_Boost_VolStart;
|
| | | arrTd[index++] = data.MajorBattGroupNum;
|
| | | arrTd[index++] = data.BackLightTime;
|
| | | arrTd[index++] = data.PowerBreakChargeCurr;
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | |
|
| | | </script>
|
| | | </html> |