added filter for TaskList

This commit is contained in:
Marvin Zhang
2019-04-22 21:26:58 +08:00
parent 017116bb29
commit 4dff16e9ec
3 changed files with 15 additions and 4 deletions

View File

@@ -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}}

View File

@@ -101,6 +101,8 @@ export default {
'Finish Timestamp': '完成时间',
'Duration (sec)': '用时(秒)',
'Error Message': '错误信息',
'Results Count': '结果数',
'Average Results Count per Second': '抓取速度(个/秒)',
// 任务列表
'Node': '节点',

View File

@@ -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' }
]
}