auto sync data, remove crontab

This commit is contained in:
2020-12-22 14:57:13 +07:00
parent bba20c9c17
commit 3f289ddc9d
11 changed files with 122 additions and 15 deletions

View File

@@ -21,6 +21,7 @@
border-color: green;
}
</style>
<input type="hidden" value="{Url::to(['/capture-logs'])}" name="URL">
<div class="row">
<div class="col-md-10" style="max-height: 850px;overflow-y: auto;">
{GridView::widget([
@@ -51,16 +52,17 @@
'value' => \app\helpers\CaptureLogsGrid::image()
],
[
'attribute' => 'status',
'attribute' => 'confidence',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center'],
'value' => \app\helpers\CaptureLogsGrid::status($statusArray)
'value' => \app\helpers\CaptureLogsGrid::confidence()
],
[
'attribute' => 'remark',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center']
]
],
'sync_status'
]
])}
</div>
@@ -79,6 +81,10 @@
<i class="fa fa-search"></i> Tìm kiếm
</button>
</div>
<hr style="border-top: 1px solid #000;">
<div>
<input type="checkbox" name="AllData" style="width: inherit;" {if Yii::$app->request->get("all")}checked=""{/if}> Hiển thị toàn bộ dữ liệu
</div>
</div>
</div>
<div style="width: 500px;position: absolute;right:0;top: 250px;" id='form' class="hidden">

View File

@@ -54,7 +54,8 @@
[
'attribute' => 'confidence',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center']
'headerOptions' => ['class' => 'text-center'],
'value' => \app\helpers\CaptureLogsGrid::confidence()
],
'listManagement.name',
'listManagement.gender',