mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
零值报警
This commit is contained in:
@@ -17,9 +17,18 @@
|
||||
style="margin-left:10px; cursor:pointer;"
|
||||
>
|
||||
<el-tag type="danger" @click="onClickLogWithErrors">
|
||||
<i class="el-icon-warning"></i>
|
||||
{{$t('Log with errors')}}
|
||||
</el-tag>
|
||||
</el-badge>
|
||||
<el-tag
|
||||
v-if="taskForm.status === 'finished' && taskForm.result_count === 0"
|
||||
type="danger"
|
||||
style="margin-left: 10px"
|
||||
>
|
||||
<i class="el-icon-warning"></i>
|
||||
{{$t('Empty results')}}
|
||||
</el-tag>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Log File Path')">
|
||||
<el-input v-model="taskForm.log_path" placeholder="Log File Path" disabled></el-input>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<el-tag :type="type">
|
||||
<el-tag :type="type" class="status-tag">
|
||||
<i :class="icon"></i>
|
||||
{{$t(label)}}
|
||||
</el-tag>
|
||||
</template>
|
||||
@@ -38,6 +39,16 @@ export default {
|
||||
return s.label
|
||||
}
|
||||
return 'NA'
|
||||
},
|
||||
icon () {
|
||||
if (this.status === 'finished') {
|
||||
return 'el-icon-check'
|
||||
} else if (this.status === 'running') {
|
||||
return 'el-icon-loading'
|
||||
} else if (this.status === 'error') {
|
||||
return 'el-icon-error'
|
||||
}
|
||||
return ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,6 +213,7 @@ export default {
|
||||
'Updating log...': '正在更新日志...',
|
||||
'Error Count': '错误数',
|
||||
'Log with errors': '日志错误',
|
||||
'Empty results': '空结果',
|
||||
|
||||
// 任务列表
|
||||
'Node': '节点',
|
||||
|
||||
Reference in New Issue
Block a user