Improving query
This commit is contained in:
parent
78dc7baa73
commit
1414c83cc9
3 changed files with 11 additions and 11 deletions
File diff suppressed because one or more lines are too long
|
@ -39,14 +39,13 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<img :src="'/img/'+task.type+'.svg'" width="16" alt="Type of check" :title="'Type: '+task.type" />
|
<img :src="'/img/'+task.type+'.svg'" width="16" alt="Type of check" :title="'Type: '+task.type" />
|
||||||
{{ task.type }}
|
{{ task.type.toUpperCase() }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span
|
<span
|
||||||
v-if="task.executed_at"
|
v-if="task.executed_at"
|
||||||
>
|
>
|
||||||
{{ moment(task.executed_at).fromNow() }}
|
{{ moment(task.executed_at).fromNow() }}
|
||||||
<img src="/img/info.svg" alt="Infos" width="16" :title="'Result: '+task.output" />
|
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
v-model="days"
|
v-model="days"
|
||||||
@change="refreshTask"
|
@change="refreshTask"
|
||||||
>
|
>
|
||||||
|
<option value="3">3 days</option>
|
||||||
<option value="7">7 days</option>
|
<option value="7">7 days</option>
|
||||||
<option value="15">15 days</option>
|
<option value="15">15 days</option>
|
||||||
<option value="30">30 days</option>
|
<option value="30">30 days</option>
|
||||||
|
@ -46,11 +47,11 @@
|
||||||
<table id="tasks_tbl">
|
<table id="tasks_tbl">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th width="10%">Status</th>
|
||||||
<th width="10%">Date</th>
|
<th width="10%">Date</th>
|
||||||
<th width="10%">Time</th>
|
<th width="10%">Time</th>
|
||||||
<th width="*">Output</th>
|
<th width="*">Output</th>
|
||||||
<th width="10%">Duration</th>
|
<th width="10%">Duration</th>
|
||||||
<th width="10%">Status</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -58,6 +59,9 @@
|
||||||
v-for="h in history"
|
v-for="h in history"
|
||||||
v-bind:key="h.id"
|
v-bind:key="h.id"
|
||||||
>
|
>
|
||||||
|
<td :class="statusText(h.status)">
|
||||||
|
<img :src="'/img/'+statusText(h.status)+'.svg'" width="16" alt="Status" />
|
||||||
|
</td>
|
||||||
<td>{{ moment(h.created_at).format('YYYY-MM-DD') }}</td>
|
<td>{{ moment(h.created_at).format('YYYY-MM-DD') }}</td>
|
||||||
<td>{{ moment(h.created_at).format('HH:mm:ss') }}</td>
|
<td>{{ moment(h.created_at).format('HH:mm:ss') }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -72,9 +76,6 @@
|
||||||
<span v-if="h.duration != null">{{ h.duration+'s' }}</span>
|
<span v-if="h.duration != null">{{ h.duration+'s' }}</span>
|
||||||
<span v-else><i>No duration</i></span>
|
<span v-else><i>No duration</i></span>
|
||||||
</td>
|
</td>
|
||||||
<td :class="statusText(h.status)">
|
|
||||||
<img :src="'/img/'+statusText(h.status)+'.svg'" width="16" alt="Status" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -132,7 +133,7 @@
|
||||||
notifications: null,
|
notifications: null,
|
||||||
refresh: null,
|
refresh: null,
|
||||||
loader: null,
|
loader: null,
|
||||||
days: 7,
|
days: 3,
|
||||||
first_day: null,
|
first_day: null,
|
||||||
|
|
||||||
charts: {
|
charts: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue