|
@@ -4,7 +4,7 @@ import type { ProColumnType, ActionType } from '@ant-design/pro-table'
|
|
|
import { Button, Popconfirm } from 'antd'
|
|
|
import consts from '@/utils/consts'
|
|
|
import { useRef, useState, useEffect } from 'react'
|
|
|
-import { connect, useRequest } from 'umi'
|
|
|
+import { connect, useRequest, history } from 'umi'
|
|
|
import type { ConnectProps } from 'umi'
|
|
|
import type { ProjectModelState } from '../model'
|
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
@@ -123,12 +123,13 @@ const List: React.FC<ListProps> = ({ dispatch, pTypeList }) => {
|
|
|
onSearch: val => setState({ ...state, params: { ...state.params, search: val } })
|
|
|
},
|
|
|
actions: [
|
|
|
- <Button
|
|
|
- onClick={() =>
|
|
|
- setState({ ...state, visible: true, currentModalType: ModalType.ADD })
|
|
|
- }>
|
|
|
- 新建项目
|
|
|
- </Button>
|
|
|
+ <Button onClick={() => history.push('/project/management/add')}>新建项目</Button>
|
|
|
+ // <Button
|
|
|
+ // onClick={() =>
|
|
|
+ // setState({ ...state, visible: true, currentModalType: ModalType.ADD })
|
|
|
+ // }>
|
|
|
+ // 新建项目
|
|
|
+ // </Button>
|
|
|
]
|
|
|
}}
|
|
|
search={false}
|