feat(semi-auto): 新增履约历史与全链路报文留痕
运营端历史抽屉展示状态流转与全链路报文:客户/运营接口入站 + 虎牙 WUP/livelink、外部 Connector 出站;轮询按状态变化采样,Cookie/Token/短信验证码不落库,报文保留 180 天。同步收敛登录/绑定事件,避免轮询重复写时间线。
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
CheckCircleOutlined,
|
||||
ChromeOutlined,
|
||||
CopyOutlined,
|
||||
HistoryOutlined,
|
||||
KeyOutlined,
|
||||
ReloadOutlined,
|
||||
SendOutlined,
|
||||
@@ -30,6 +31,7 @@ import { useEffect, useMemo, useState } from 'react'
|
||||
|
||||
import ImageUpload from '@/components/files/ImageUpload'
|
||||
import PageHeader from '@/components/admin/PageHeader'
|
||||
import SemiAutoTaskHistoryDrawer from '@/components/admin/SemiAutoTaskHistoryDrawer'
|
||||
import PercentTable from '@/components/common/PercentTable'
|
||||
import {
|
||||
cancelAdminSemiAutoTask,
|
||||
@@ -94,6 +96,7 @@ export default function AdminSemiAutoTasksPage() {
|
||||
const [page, setPage] = useState(1)
|
||||
const [pageSize, setPageSize] = useState(20)
|
||||
const [detailTaskId, setDetailTaskId] = useState<number | null>(null)
|
||||
const [historyTaskId, setHistoryTaskId] = useState<number | null>(null)
|
||||
const [completeTask, setCompleteTask] = useState<SemiAutoTask | null>(null)
|
||||
const [completeFiles, setCompleteFiles] = useState<UploadedFile[]>([])
|
||||
const [completeForm] = Form.useForm<CompleteFormValues>()
|
||||
@@ -416,6 +419,13 @@ export default function AdminSemiAutoTasksPage() {
|
||||
<Button size="small" onClick={() => setDetailTaskId(task.id)}>
|
||||
详情
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
icon={<HistoryOutlined />}
|
||||
onClick={() => setHistoryTaskId(task.id)}
|
||||
>
|
||||
历史
|
||||
</Button>
|
||||
{taskNeedsCustomerReauth(task) ? (
|
||||
<Button
|
||||
size="small"
|
||||
@@ -762,6 +772,12 @@ export default function AdminSemiAutoTasksPage() {
|
||||
)}
|
||||
</Drawer>
|
||||
|
||||
<SemiAutoTaskHistoryDrawer
|
||||
open={Boolean(historyTaskId)}
|
||||
taskId={historyTaskId}
|
||||
onClose={() => setHistoryTaskId(null)}
|
||||
/>
|
||||
|
||||
<Modal
|
||||
open={Boolean(completeTask)}
|
||||
title="确认完成半自动履约"
|
||||
|
||||
Reference in New Issue
Block a user