MCPcopy Index your code
hub / github.com/codingapi/springboot-framework / FlowRecordPage

Function FlowRecordPage

admin-ui/src/pages/flow/record/index.tsx:18–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16import LeaveForm from "@/pages/flow/leave/LeaveForm";
17
18const FlowRecordPage = () => {
19
20 const [flowViewVisible, setFlowViewVisible] = React.useState(false);
21 const [currentId, setCurrentId] = React.useState<number>(0);
22 const [reviewVisible, setReviewVisible] = React.useState(false);
23
24
25 const [key, setKey] = React.useState('todo');
26 const todoActionRef = React.useRef<ActionType>();
27 const doneActionRef = React.useRef<ActionType>();
28 const initiatedActionRef = React.useRef<ActionType>();
29 const timeoutTodoActionRef = React.useRef<ActionType>();
30 const postponedTodoActionRef = React.useRef<ActionType>();
31 const allTodoActionRef = React.useRef<ActionType>();
32
33
34 const handlerUrgeFlow = (recordId:any) => {
35 const body = {
36 recordId,
37 }
38 urge(body).then(res => {
39 if (res.success) {
40 message.success('催办提醒已发送').then();
41 reloadTable();
42 }
43 })
44 }
45
46 const columns = [
47 {
48 title: '编号',
49 dataIndex: 'id',
50 search: false
51 },
52 {
53 title: 'pre编号',
54 dataIndex: 'preId',
55 search: false
56 },
57 {
58 title: '流程编号',
59 dataIndex: 'processId',
60 },
61 {
62 title: '标题',
63 dataIndex: 'title',
64 render:(value:any,record:any)=>{
65 return (
66 <div dangerouslySetInnerHTML={{ __html: value }}></div>
67 );
68 }
69 },
70 {
71 title: '创建时间',
72 dataIndex: 'createTime',
73 valueType: 'dateTime'
74 },
75 {

Callers

nothing calls this directly

Calls 8

findTodoByOperatorIdFunction · 0.90
findDoneByOperatorIdFunction · 0.90
flowRecordListFunction · 0.90
reloadTableFunction · 0.85
handlerUrgeFlowFunction · 0.70

Tested by

no test coverage detected