| | |
| | | <s:text name="Goto"/><!-- 转到 --><input type="text" id="page_num" value="1"/>
|
| | | <a href="javascript:" id="go"><s:text name="Jump"/><!-- 跳转 --></a>
|
| | | </span>
|
| | | <a href="javascript:startStationThread();" class="start-station-stical">启动续航统计</a>
|
| | | </div>
|
| | | </div>
|
| | | <!-- 表格选项内容 -->
|
| | |
| | | var cardBd = $('#cardOption .con_table');
|
| | | createCard(cardHd, tblOptsHd, tblOptsBd);
|
| | | createCard(cardBd, tblOptsHd, tblOptsBd);
|
| | | |
| | | // 设置是否掉站
|
| | | var pre_is_stand = getQueryString('is_stand');
|
| | | if(pre_is_stand){
|
| | | $('#is_stand').val(pre_is_stand);
|
| | | |
| | | if(pre_is_stand == 0) {
|
| | | $('#actual_timelong').val(0);
|
| | | $('#actual_timelong').prop('disabled', true);
|
| | | }
|
| | | }
|
| | | |
| | | // 设置续航时长
|
| | | var pre_timelong = getQueryString('timelong');
|
| | | if(pre_timelong){
|
| | | $('#actual_timelong').val(pre_timelong);
|
| | | }
|
| | | |
| | | // 点击是否掉站为否设置续航时长不可点
|
| | | $('#is_stand').change(function() {
|
| | | $('#actual_timelong').prop('disabled', false);
|
| | | console.log($(this).val())
|
| | | // 非掉站设置续航时长无法点击
|
| | | if($(this).val() == 0) {
|
| | | $('#actual_timelong').val(0);
|
| | | $('#actual_timelong').prop('disabled', true);
|
| | | }
|
| | | |
| | | |
| | | });
|
| | | });
|
| | |
|
| | | // 生成表格
|
| | |
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | var pre_is_stand = getQueryString('is_stand');
|
| | | if(pre_is_stand){
|
| | | $('#is_stand').val(pre_is_stand);
|
| | | }
|
| | | |
| | | filterLoad = layer.load();
|
| | |
|
| | | var pre_province = getQueryString('province');
|
| | |
| | |
|
| | | //构造查询条件
|
| | | function createSearchParam(){
|
| | | //alert($('#endu_type').val());
|
| | | //Page.pageCurr = $('#number').val();
|
| | | //console.info(Page);
|
| | | var temp = {
|
| | | page:Page,
|
| | | stationName:$('#station_name').val(), //机房名
|
| | | stationName5:$('#county').val(),
|
| | | stationName2:$('#city').val(), //市
|
| | | stationName1:$('#station_name1').val(), //省
|
| | | is_out_stand:$('#is_stand').val(), //是否掉站
|
| | | endurance_actual_timelong:$('#actual_timelong').val(), //实际
|
| | | is_out_stand: $('#is_stand').val(), //是否掉站
|
| | | endurance_actual_timelong: $('#actual_timelong').val(), //实际
|
| | | };
|
| | | //console.info(temp);
|
| | | return temp;
|
| | |
| | | arrTd[index++]=data[i].endurance_actual_timelong;
|
| | | arrTd[index++]=data[i].endurance_actual_timelong_max;
|
| | | arrTd[index++]=data[i].endurance_theory_timelong;
|
| | | console.info(data[i].deviceId+"===="+data[i].is_out_stand);
|
| | | //console.info(data[i].deviceId+"===="+data[i].is_out_stand);
|
| | | if(data[i].is_out_stand==0){ //未掉站(绿色)
|
| | | arrTd[index++]='<div class="status effect" ></div>';
|
| | | }
|
| | |
| | | //console.info(ArrTd);
|
| | | eleform.submit();
|
| | | }
|
| | | |
| | | //启动机房续航线程
|
| | | function startStationThread(){
|
| | | load = layer.load(1);
|
| | | var temp = {
|
| | | thread_id:2019001,
|
| | | thread_en:1,
|
| | | };
|
| | | $.ajax({
|
| | | type:"post",
|
| | | url:"Thread_utilAction!update",
|
| | | async:true,
|
| | | datatype:'json',
|
| | | data:"json="+JSON.stringify(temp),
|
| | | success:function(data){
|
| | | layer.close(load);
|
| | | //console.info(data);
|
| | | var model = JSON.parse(data.result);
|
| | | if(model.code == 1){
|
| | | layer.msg("启动成功");
|
| | | }else{
|
| | | layer.msg("启动失败");
|
| | | }
|
| | | },error:function(){
|
| | | layer.msg("启动失败");
|
| | | }
|
| | | });
|
| | | }
|
| | | </script>
|
| | | </body>
|
| | | </html> |