|
@@ -1,4 +1,5 @@
|
|
import { copy } from "@/utils/utils"
|
|
import { copy } from "@/utils/utils"
|
|
|
|
+import { Badge } from "antd"
|
|
import React from "react"
|
|
import React from "react"
|
|
|
|
|
|
|
|
|
|
@@ -117,8 +118,13 @@ function tableConfig(tableIdClick: (props: {
|
|
key: 'status',
|
|
key: 'status',
|
|
width: 70,
|
|
width: 70,
|
|
align: 'center',
|
|
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} />
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|