Переглянути джерело

refactor: 移除partial状态相关逻辑

何文松 4 тижнів тому
батько
коміт
3df121219a

+ 3 - 3
frontend/vue-demo/src/components/TaskCenter/TaskCenterPanel.vue

@@ -233,21 +233,21 @@ 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' || status === 'partial') return 'danger'
+  if (status === 'failed') 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' || status === 'partial') return 'status-failed'
+  if (status === 'failed') return 'status-failed'
   return 'status-pending'
   return 'status-pending'
 }
 }
 
 
 function statusText(status) {
 function statusText(status) {
   if (status === 'processing') return '运行中'
   if (status === 'processing') return '运行中'
   if (status === 'completed') return '已完成'
   if (status === 'completed') return '已完成'
-  if (status === 'failed' || status === 'partial') return '失败'
+  if (status === 'failed') return '失败'
   return '等待中'
   return '等待中'
 }
 }