|
|
@@ -2,7 +2,7 @@ import AnimateContent from '@/components/AnimateContent'
|
|
|
import consts from '@/utils/consts'
|
|
|
import { PageContainer } from '@ant-design/pro-layout'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
-import { message } from 'antd'
|
|
|
+import { Button, message } from 'antd'
|
|
|
import { useRef, useState } from 'react'
|
|
|
import { useRequest } from 'umi'
|
|
|
import { getApprovalList, publishApproval, saveApproval } from '@/services/api/project'
|
|
|
@@ -170,12 +170,12 @@ const FlowList = () => {
|
|
|
onSearch: value => setState({ ...state, params: { ...state.params, search: value } })
|
|
|
},
|
|
|
actions: [
|
|
|
- // <Button
|
|
|
- // type="primary"
|
|
|
- // onClick={() => setState({ ...state, modalType: 'add', modalVisible: true })}
|
|
|
- // key="add_flow_btn">
|
|
|
- // 新建流程
|
|
|
- // </Button>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ onClick={() => setState({ ...state, modalType: 'add', modalVisible: true })}
|
|
|
+ key="add_flow_btn">
|
|
|
+ 新建流程
|
|
|
+ </Button>
|
|
|
]
|
|
|
}}
|
|
|
/>
|