From f0bb5c3c5b95ec825e4e444b7688c595d5ebebc7 Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期六, 29 十二月 2018 14:24:54 +0800 Subject: [PATCH] 修改。 --- gx_tieta/WebRoot/mobil/batt-edit2.html | 109 ++++++++++++++---------------------------------------- 1 files changed, 28 insertions(+), 81 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/batt-edit2.html b/gx_tieta/WebRoot/mobil/batt-edit2.html index 686e3ad..cd8cb34 100644 --- a/gx_tieta/WebRoot/mobil/batt-edit2.html +++ b/gx_tieta/WebRoot/mobil/batt-edit2.html @@ -26,17 +26,17 @@ white-space: nowrap; } .uncheck{ - background-color: #dddddd38!important; - color: #bdbdbdc4!important; + background-color: #ddd!important; + color: #000!important; } .ui-btn-icon-right { padding-right: 8.5em; } .hbg{ - background-color:#ddd9; + background-color:#ddd; } #battdata { - background-color:#dddddd54 + background-color:#eee; } .ui-select .ui-btn select{ width:77%; @@ -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> <!-- 涓讳綋鍐呭 --> @@ -106,8 +95,7 @@ <tr> <td>鏈烘埧鍚嶇О</td> <td> - <input type="text" id="homeName" data-mini="true"> - + <textarea id="homeName" class="unable" data-mini="true"></textarea> </td> </tr> @@ -116,30 +104,18 @@ <input type="hidden" id="StationIp" data-mini="true" /> - - - - - + <input type="hidden" id="FbsDeviceIp_YM" class="unable" data-mini="true" value="456"/> + <input type="hidden" id="FbsDeviceIp_WG" class="unable" data-mini="true" value="456"/> + <input type="hidden" id="FBSDeviceName" data-mini="true" /> - - - - - <input type="hidden" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" /> - - + <input type="hidden" id="FloatVolLevel" data-mini="true" /> - - - + <input type="hidden" id="OfflineVolLevel" class="unable" data-mini="true" /> - - <input type="hidden" id="BattFloatCurrent" class="unable" data-mini="true" /> @@ -155,9 +131,7 @@ <label for="twentyfour">24涓�</label> <input type="radio" name="battnum" id="twentyfour" value="24"> </fieldset> - - - + </td> </tr> <tr> @@ -192,7 +166,7 @@ <tr> - <td>鍩虹珯鐢佃瘽鍙风爜</td> + <td>*鍩虹珯鐢佃瘽鍙风爜</td> <td> <input type="text" id="station_phone" data-mini="true" /> </td> @@ -271,6 +245,7 @@ } + function creatBattView(index){ var count=index+1 ,battTitle='<div>'+'<h1 class="hbg">'+'鐢垫睜缁�'+count+'</h1>'+ @@ -297,18 +272,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,14 +305,9 @@ creatAllView(temp.length).trigger('create'); //creatMonCapOpt(temp.length); setchangedMonVolStd(temp.length); - creatBa(temp.length).trigger('create'); }); - - - - $(function () { //setTimes($("#startTestrecord"),'2000-01-01'); //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd')); @@ -374,7 +333,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 +380,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; @@ -491,7 +440,6 @@ function getUpdateArr(){ mon=$('#MonVolStd').val(); - var arr = new Array(); for(var i=0;i<temp.length;i++){ @@ -574,7 +522,13 @@ }); function nullOrn(){ + console.info($("#homeName").val()); + console.info($("#station_phone").val()); + if($("#homeName").val!=""&&$("#station_phone").val()!=""&&$("#install_user").val()!=""){ return true; + }else{ + alert("璇峰~鍐�*鍐呭"); + } } function editBatt(){// @@ -596,15 +550,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 +582,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