shenwu 2 éve
szülő
commit
df5b1345a6
1 módosított fájl, 8 hozzáadás és 2 törlés
  1. 8 2
      src/pages/launchSystemNew/adq/log/tableConfig.tsx

+ 8 - 2
src/pages/launchSystemNew/adq/log/tableConfig.tsx

@@ -1,4 +1,5 @@
 import { copy } from "@/utils/utils"
+import { Badge } from "antd"
 import React from "react"
 
 
@@ -117,8 +118,13 @@ function tableConfig(tableIdClick: (props: {
             key: 'status',
             width: 70,
             align: 'center',
-            render: (a: number, b: any) => {
-                return <span style={b?.failCount > 0 ? { color: 'red' } : { color: 'rgb(103, 194, 58)' }}>{b?.failCount > 0 ? '失败' : '成功'}</span>
+            render: (a:any) => {
+                let obj={
+                    '成功':'success',
+                    '失败':'error',
+                    '执行中':'warning'
+                }
+                return <Badge status={obj[a]} text={a} />
             }
         },
         {