| | |
| | | <table class="layout-set">
|
| | | <tbody>
|
| | | <tr>
|
| | | <td>机房编号</td>
|
| | | <td>
|
| | | <input type="text" id="StationId" class="unable" data-mini="true" onfocus="this.blur()"/>
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备ID(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FBSDeviceId" class="unable" data-mini="true" onfocus="this.blur()"/>
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备IP(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FbsDeviceIp" class="unable" data-mini="true" onfocus="this.blur()" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>电池组ID</td>
|
| | | <td>
|
| | | <input type="text" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" onfocus="this.blur()" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <input type="hidden" type="text" id="StationId" class="unable" data-mini="true" onfocus="this.blur()"/>
|
| | | |
| | | <input type="hidden" type="text" id="FBSDeviceId" class="unable" data-mini="true" />
|
| | | |
| | | <input type="hidden" type="text" id="FbsDeviceIp" class="unable" data-mini="true" />
|
| | | |
| | | <input type="hidden" type="text" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" />
|
| | |
|
| | | <td>省</td>
|
| | | <td>
|
| | | <input type="text" id="mainteArea" class="unable" data-mini="true" onfocus="this.blur()"/>
|
| | |
| | | $(function(){
|
| | | creatAllView(temp.length).trigger('create');
|
| | | //creatMonCapOpt(temp.length);
|
| | | setMonVolStd(temp.length);
|
| | | setchangedMonVolStd(temp.length);
|
| | | creatBa(temp.length).trigger('create');
|
| | |
|
| | | });
|
| | |
| | | //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生成失败");
|
| | |
| | | }
|
| | |
|
| | | function prefixInteger(num, length) {
|
| | | return (num/Math.pow(3,length)).toFixed(length).substr(2);
|
| | | return (Array(length).join('0') + num).slice(-length);
|
| | | }
|
| | | |
| | | function creatBa(a){
|
| | | var battnum=4-a,
|
| | | opstring='';
|
| | |
| | | document.getElementById("OfflineVolLevel").value = data.OfflineVolLevel;
|
| | | document.getElementById("BattFloatCurrent").value = data.BattFloatCurrent;
|
| | | //document.getElementById("MonCount").value = data.MonCount;
|
| | | //document.getElementById("MonCapStd").value = data.MonCapStd;
|
| | | |
| | | //document.getElementById("MonCapStd").value = data.MonCapStd; |
| | | document.getElementById("MonResStd").value = data.MonResStd;
|
| | | document.getElementById("MonSerStd").value = data.MonSerStd;
|
| | | document.getElementById("MonVolLowToAvg").value = data.MonVolLowToAvg;
|
| | |
| | | });
|
| | |
|
| | | function nullOrn(){
|
| | | |
| | | return true;
|
| | | |
| | | |
| | | return true; |
| | | }
|
| | |
|
| | | function editBatt(){//
|
| | |
| | | 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" 详情列表
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | }
|
| | | return selected;
|
| | | }
|
| | | function setMonVolStd(suoyin){
|
| | | function setchangedMonVolStd(suoyin){
|
| | | for(var u=0;u<suoyin;u++){
|
| | | var id='';
|
| | | id='#MonCount'+u;
|