零值报警

This commit is contained in:
marvzhang
2020-02-13 12:10:18 +08:00
parent d840450c1b
commit 73ed6bef30
3 changed files with 22 additions and 1 deletions

View File

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

View File

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

View File

@@ -213,6 +213,7 @@ export default {
'Updating log...': '正在更新日志...',
'Error Count': '错误数',
'Log with errors': '日志错误',
'Empty results': '空结果',
// 任务列表
'Node': '节点',