提交
This commit is contained in:
1 parent
0e1b750457
commit
8c49021d38
93 files changed
+22731
-12107
No files matched your search
@@ -52,8 +52,8 @@ function toneForStatus(status: string): PersonLineTone {
|
||||
const s = (status || '').trim()
|
||||
if (s === 'approved' || s === 'completed') return 'ok'
|
||||
if (s === 'pending' || s === 'running' || s === 'not_reached') return 'pending'
|
||||
if (s === 'rejected' || s === 'returned' || s === 'cancelled') return 'danger'
|
||||
if (s === 'done' || s === 'transferred') return 'mute'
|
||||
if (s === 'rejected' || s === 'returned') return 'danger'
|
||||
if (s === 'done' || s === 'transferred' || s === 'cancelled') return 'mute'
|
||||
return ''
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ export function formatProgressPersonLines(
|
||||
const ts = String(p.timestamp || '').trim()
|
||||
const tone = toneForStatus(status)
|
||||
|
||||
if (status === 'done') {
|
||||
if (status === 'done' || status === 'cancelled') {
|
||||
pushLine(out, `${name} 无需处理`, '', 'mute')
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user