|
@@ -233,14 +233,14 @@ onMounted(() => {
|
|
|
function tagType(status) {
|
|
function tagType(status) {
|
|
|
if (status === 'processing') return 'primary'
|
|
if (status === 'processing') return 'primary'
|
|
|
if (status === 'completed') return 'success'
|
|
if (status === 'completed') return 'success'
|
|
|
- if (status === 'failed') return 'danger'
|
|
|
|
|
|
|
+ if (status === 'failed' || status === 'partial') return 'danger'
|
|
|
return 'info'
|
|
return 'info'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function statusClass(status) {
|
|
function statusClass(status) {
|
|
|
if (status === 'processing') return 'status-processing'
|
|
if (status === 'processing') return 'status-processing'
|
|
|
if (status === 'completed') return 'status-completed'
|
|
if (status === 'completed') return 'status-completed'
|
|
|
- if (status === 'failed') return 'status-failed'
|
|
|
|
|
|
|
+ if (status === 'failed' || status === 'partial') return 'status-failed'
|
|
|
return 'status-pending'
|
|
return 'status-pending'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -248,6 +248,7 @@ function statusText(status) {
|
|
|
if (status === 'processing') return '运行中'
|
|
if (status === 'processing') return '运行中'
|
|
|
if (status === 'completed') return '已完成'
|
|
if (status === 'completed') return '已完成'
|
|
|
if (status === 'failed') return '失败'
|
|
if (status === 'failed') return '失败'
|
|
|
|
|
+ if (status === 'partial') return '部分失败'
|
|
|
return '等待中'
|
|
return '等待中'
|
|
|
}
|
|
}
|
|
|
|
|
|