mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-31 18:10:50 +01:00
零值报警
This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user