台電躉售紀錄查詢
This commit is contained in:
parent
d3a690cf98
commit
842ac525d5
@ -153,6 +153,7 @@
|
||||
</div>
|
||||
<div class="pr-3" id="quickSearchOption">
|
||||
<button type="button" class="btn btn-primary waves-effect waves-themed ml-1" onclick="Searchform()" id="daybtn">查詢</button>
|
||||
<div id="wait" style="display:none"><img src="/img/loading.gif"></div>
|
||||
</div>
|
||||
<div class="pr-3">
|
||||
<button type="button" class="btn btn-primary waves-effect waves-themed" onclick="AddRecord()"><span class="fal fa-plus mr-1"></span> 新增</button>
|
||||
@ -184,6 +185,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="totbody">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -551,7 +553,7 @@
|
||||
"data": "function"
|
||||
}],
|
||||
"language": {
|
||||
"emptyTable": "查無資料",
|
||||
"emptyTable": "目前無資料",
|
||||
"processing": "處理中...",
|
||||
"loadingRecords": "載入中...",
|
||||
"lengthMenu": "顯示 _MENU_ 項結果",
|
||||
@ -595,7 +597,7 @@
|
||||
if (data == null || data.length == 0) {
|
||||
this.data = [];
|
||||
}
|
||||
|
||||
$("#wait").hide();
|
||||
return data;
|
||||
}
|
||||
},
|
||||
@ -606,6 +608,7 @@
|
||||
}
|
||||
|
||||
function Searchform() {
|
||||
$("#wait").show();
|
||||
/* console.log(selecterd_powerstationId);*/
|
||||
if (searchType == 0 || searchType == 1) {
|
||||
timerange = $('#DateGettext').val();
|
||||
@ -613,6 +616,10 @@
|
||||
else {
|
||||
timerange = $('#DateGet').val();
|
||||
}
|
||||
var table = $('#RecordTable').DataTable();
|
||||
|
||||
table.clear().draw();
|
||||
|
||||
RecordTable.ajax.reload();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user