feat(web-admin): show transferred status on OA progress lines
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
dc54170771
commit
35c60f95e8
4 files changed
+37
-4
No files matched your search
@@ -78,6 +78,36 @@ function run() {
|
||||
assert.equal(rejected[0].tone, 'danger')
|
||||
assert.equal(rejected[1].text, '乙 无需处理')
|
||||
|
||||
// 转交
|
||||
const xfer: ProgressPersonInput[] = [
|
||||
{
|
||||
nickName: '李四',
|
||||
status: 'transferred',
|
||||
commentText: '',
|
||||
timestamp: '2026-07-23 10:05:00'
|
||||
},
|
||||
{ nickName: '赵六', status: 'pending', commentText: '', timestamp: '' }
|
||||
]
|
||||
const xferLines = formatProgressPersonLines(xfer)
|
||||
assert.deepEqual(
|
||||
xferLines.map((x) => x.text),
|
||||
['李四 已转交 2026-07-23 10:05:00', '赵六 待处理']
|
||||
)
|
||||
assert.equal(xferLines[0].tone, 'mute')
|
||||
|
||||
const xferComment: ProgressPersonInput[] = [
|
||||
{
|
||||
nickName: '李四',
|
||||
status: 'transferred',
|
||||
commentText: '出差代批',
|
||||
timestamp: '2026-07-23 10:05:00'
|
||||
}
|
||||
]
|
||||
assert.equal(
|
||||
formatProgressPersonLines(xferComment)[0].text,
|
||||
'李四 出差代批 2026-07-23 10:05:00'
|
||||
)
|
||||
|
||||
// 空 people
|
||||
assert.deepEqual(formatProgressPersonLines([]), [])
|
||||
assert.deepEqual(formatProgressPersonLines(undefined), [])
|
||||
|
||||
Reference in new issue
Block a user