get logs from device

This commit is contained in:
2020-10-15 11:20:21 +07:00
parent 4a33ee9a7d
commit 53de75104e
11 changed files with 376 additions and 59 deletions

View File

@@ -9,6 +9,7 @@
<input type='hidden' name='get_data_sync_url' value="{Url::to(['get-data-sync'])}">
<input type='hidden' name='sync_schedule_url' value="{Url::to(['sync-schedule'])}">
<input type='hidden' name='sync_staffs_url' value="{Url::to(['sync-staffs'])}">
<input type='hidden' name='get_logs_sync_url' value="{Url::to(['sync-logs'])}">
<div class="" style="font-size: 15px;">
<label class="action-button" onclick="common.form(this, 'device');" data-href="{Url::to(['create'])}">
<i class="fa fa-plus-square fa-1-5x"></i> Thêm
@@ -19,11 +20,14 @@
<label class="action-button" onclick="_delete(this);" data-href="{Url::to(['delete'])}">
<i class="fa fa-trash fa-1-5x"></i> Xóa
</label>
<label class="action-button" onclick="_getLogs(this);" data-href="{Url::to(['get-logs'])}">
<i class="fa fa-exchange fa-1-5x"></i> Lấy các sự kiện
</label>
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['change-ip'])}">
<i class="fa fa-pencil fa-1-5x"></i> Thay đổi địa chỉ IP
</label>
<label class="action-button" onclick="_sync(this);" data-href="{Url::to(['sync'])}">
<i class="fa fa-exchange fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
<i class="fa fa-refresh fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
</label>
<label class="action-button" onclick="_export(this);" data-href="{Url::to(['export'])}">
<i class="fa fa-download fa-1-5x"></i> Xuất

13
views/device/logs.tpl Normal file
View File

@@ -0,0 +1,13 @@
<div class="well" style="height: 300px;overflow-y: scroll;" id="logs-response">
</div>
<div class="progress">
<div class="progress-bar progress-bar-primary progress-bar-striped" id='progress' role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
0%
</div>
</div>
<div class="text-right">
<button class="btn btn-default" data-dismiss="modal" disabled="" id="close-modal">
<span class="fa fa-remove"></span> Đóng
</button>
</div>