零值报警

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

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