| | |
| | | <!-- <div class="set-option"> -->
|
| | | <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" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备IP(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FbsDeviceIp" class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>电池组ID</td>
|
| | | <td>
|
| | | <input type="text" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" />
|
| | | </td>
|
| | | </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" />
|
| | | |
| | | <tr>
|
| | | <td>*省</td>
|
| | | <td>
|
| | |
| | | <tr>
|
| | | <td>*区县</td>
|
| | | <td>
|
| | | <select id="county" data-mini="true">
|
| | | <select id="county" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | </select>
|
| | | </td>
|
| | |
| | | console.info(dev_id);
|
| | | if(ptn.test(dev_id)) {
|
| | | var value = Number(RegExp.$1);
|
| | | // console.log(value);
|
| | | console.info(value);
|
| | | console.info(Math.floor(value/256));
|
| | | var intNum = prefixInteger(Math.floor(value/256), 3);
|
| | | console.info(intNum);
|
| | | var resNum = prefixInteger(value%256, 3);
|
| | | ip = '127.000.'+intNum+'.'+resNum;
|
| | | }else {
|
| | |
| | | $('#MonCount').change(function(){
|
| | | setFloatAndoutLine();
|
| | | })*/
|
| | | function prefixInteger(num, length) {
|
| | | /* function prefixInteger(num, length) {
|
| | | return (num/Math.pow(3,length)).toFixed(length).substr(2);
|
| | | }*/
|
| | | function prefixInteger(num, length) {
|
| | | return (Array(length).join('0') + num).slice(-length);
|
| | | }
|
| | | |
| | | //导入表格默认数据
|
| | | function installstartdata(temp){
|
| | | var data = {
|