From cf62668c660860e9288dab21c4066927a26cb787 Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期六, 29 十二月 2018 10:02:37 +0800 Subject: [PATCH] 筛选跳转页面 --- gx_tieta/WebRoot/mobil/batt-edit2.html | 59 ++++++++++------------------------------------------------- 1 files changed, 10 insertions(+), 49 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-edit2.html b/gx_tieta/WebRoot/mobil/batt-edit2.html index 686e3ad..d4b4fb0 100644 --- a/gx_tieta/WebRoot/mobil/batt-edit2.html +++ b/gx_tieta/WebRoot/mobil/batt-edit2.html @@ -47,9 +47,7 @@ right: 0; margin:0!important; } - #newbattnum-button{ - padding: 1em 1.9em; - } + </style> <link rel="stylesheet" href="css/fgpanel.css"> </head> @@ -60,16 +58,7 @@ <div data-role="header" data-position="fixed"> <a href="ele-param2.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> - <fieldset data-role="controlgroup" class="ptr0" > - - - <select id="newbattnum" data-mini="true"> - <option value=0>鏂板缓鐢垫睜缁�</option> - - </select> - - - </fieldset> + </div> <!-- 涓讳綋鍐呭 --> @@ -271,6 +260,7 @@ } + function creatBattView(index){ var count=index+1 ,battTitle='<div>'+'<h1 class="hbg">'+'鐢垫睜缁�'+count+'</h1>'+ @@ -297,18 +287,7 @@ } } - function creatBa(a){ - var battnum=4-a, - opstring=''; - if(a>4&&battnum<=0){return false;} - for(var i=0;i<=battnum;i++){ - - opstring+='<option value='+i+'>鏂板缓'+i+'涓數姹犵粍</option>'; - } - console.warn(opstring+'ttt'); - return $('#newbattnum').html(opstring); - } - + function selectedIndex(index){ var selected='', @@ -341,7 +320,6 @@ creatAllView(temp.length).trigger('create'); //creatMonCapOpt(temp.length); setchangedMonVolStd(temp.length); - creatBa(temp.length).trigger('create'); }); @@ -374,7 +352,7 @@ //console.info(dev_id); document.getElementById("FBSDeviceId").value = dev_id; var ip = getDevIp(dev_id); - //console.info(ip); + console.info(ip); document.getElementById("FbsDeviceIp").value = ip; }else{ alert("groupid鐢熸垚澶辫触"); @@ -421,17 +399,7 @@ return (Array(length).join('0') + num).slice(-length); } - function creatBa(a){ - var battnum=4-a, - opstring=''; - if(a>4&&battnum<=0){return false;} - for(var i=0;i<=battnum;i++){ - - opstring+='<option value='+i+'>鏂板缓'+i+'涓數姹犵粍</option>'; - } - console.warn(opstring+'ttt'); - return $('#newbattnum').html(opstring); - } + //瀵煎叆琛ㄦ牸榛樿鏁版嵁 function installstartdata(temp){ data=temp[0].binf; @@ -596,15 +564,15 @@ var model =data; if(model.code ==1){ alert("淇敼鎴愬姛"); - window.location.href="batt-unapproved.html" + window.location.href="batt-unapproved-index.html" }else{ alert("淇敼澶辫触!"); - window.location.href="batt-unapproved.html" + window.location.href="batt-unapproved-index.html" } }, error:function(){ alert("淇敼鐢垫睜缁勫け璐�!"); - //window.location.href="batt-unapproved.html" + //window.location.href="batt-unapproved.html" 璇︽儏鍒楄〃 } }); } @@ -628,14 +596,7 @@ - $('#newbattnum').change(function(){ - var numbattnum = parseInt($('#newbattnum').val()); - var index =parseInt(tempindex.length); - addbattnum=Math.floor((numbattnum)+(tempindex.length)); - console.warn(addbattnum); - creatAllView(addbattnum).trigger('create'); - creatBattGroupId(addbattnum); - }); + /*function creatMonCapOpt(suoyin){ var optionStr,allString; -- Gitblit v1.9.1