mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
added filter for TaskList
This commit is contained in:
@@ -30,6 +30,13 @@
|
||||
<el-form-item :label="$t('Duration (sec)')">
|
||||
<el-input v-model="taskForm.duration" placeholder="Duration" disabled></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Results Count')">
|
||||
<el-input v-model="taskForm.num_results" placeholder="Results Count" disabled></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Average Results Count per Second')">
|
||||
<el-input v-model="taskForm.avg_num_results" placeholder="Average Results Count per Second" disabled>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Error Message')" v-if="taskForm.status === 'FAILURE'">
|
||||
<div class="error-message">
|
||||
{{taskForm.log}}
|
||||
|
||||
@@ -101,6 +101,8 @@ export default {
|
||||
'Finish Timestamp': '完成时间',
|
||||
'Duration (sec)': '用时(秒)',
|
||||
'Error Message': '错误信息',
|
||||
'Results Count': '结果数',
|
||||
'Average Results Count per Second': '抓取速度(个/秒)',
|
||||
|
||||
// 任务列表
|
||||
'Node': '节点',
|
||||
|
||||
@@ -106,12 +106,14 @@ export default {
|
||||
dialogVisible: false,
|
||||
// tableData,
|
||||
columns: [
|
||||
{ name: 'create_ts', label: 'Create Time', width: '150' },
|
||||
{ name: 'start_ts', label: 'Start Time', width: '150' },
|
||||
{ name: 'finish_ts', label: 'Finish Time', width: '150' },
|
||||
{ name: 'create_ts', label: 'Create Time', width: '100' },
|
||||
{ name: 'start_ts', label: 'Start Time', width: '100' },
|
||||
{ name: 'finish_ts', label: 'Finish Time', width: '100' },
|
||||
{ name: 'duration', label: 'Duration (sec)', width: '80' },
|
||||
{ name: 'spider_name', label: 'Spider', width: '160' },
|
||||
{ name: 'spider_name', label: 'Spider', width: '120' },
|
||||
{ name: 'node_id', label: 'Node', width: '160' },
|
||||
{ name: 'num_results', label: 'Results Count', width: '80' },
|
||||
{ name: 'avg_num_results', label: 'Average Results Count per Second', width: '80' },
|
||||
{ name: 'status', label: 'Status', width: '80' }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user