| | |
| | |
|
| | |
|
| | | function creatBattView(index){
|
| | | var battTitle='<div>'+'<h1 class="hbg">'+'电池组'+index+'</h1>'+
|
| | | var count=index+1
|
| | | ,battTitle='<div>'+'<h1 class="hbg">'+'电池组'+count+'</h1>'+
|
| | | '<table class="layout-set">'+'<tbody>'+'<tr>'+'<td>'+'设备索引'+'</td>'+'<td>'+'<fieldset data-role="controlgroup" data-type="horizontal">'+'<select>'
|
| | | ,allOption=selectedIndex(index)+'</select>'+'</fieldset>'+'</td>'+'</tr>'
|
| | | ,battName='<tr>'+'<td>'+'电池组名称'+'</td>'+'<td>'+'<input type="text" '+'id='+'battname'+index+' data-mini="true"'+'value='+'电池组'+index +' />'+'</td>'+'</tr>'+'</tbody>'+'</table>'+'</div>';
|
| | | ,battName='<tr>'+'<td>'+'电池组名称'+'</td>'+'<td>'+'<input type="text" '+'id='+'battname'+index+' data-mini="true"'+'value='+'电池组'+count+' />'+'</td>'+'</tr>'+'</tbody>'+'</table>'+'</div>';
|
| | | return battTitle+allOption+battName;
|
| | |
|
| | | }
|