|
@@ -146,12 +146,12 @@ class PublicSummary extends Component {
|
|
|
width: 120,
|
|
|
render: (text, record) => (
|
|
|
<div>
|
|
|
- {
|
|
|
- text.split("\n").map(it =>
|
|
|
- <div>{it}</div>
|
|
|
- )
|
|
|
- }
|
|
|
- <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>
|
|
|
+ {text.split("\n").map(it =>
|
|
|
+ <div>{it}</div>
|
|
|
+ )}
|
|
|
+ {record.alone == 2 && record.assist == 1
|
|
|
+ ? <Tag color="#58a3ff">无需打卡</Tag>
|
|
|
+ : <Tag color={["#F21212", "#34DE38", "#ffd400"][record.clockIn]}>{["未打卡", "已打卡", "异常打卡"][record.clockIn]}</Tag>}
|
|
|
</div>
|
|
|
)
|
|
|
},
|