|
@@ -1,9 +1,9 @@
|
|
|
import { delProject, getProjectList } from '@/services/api/project'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
-import { Button, Tag, Modal } from 'antd'
|
|
|
+import { Tag, Modal } from 'antd'
|
|
|
import consts from '@/utils/consts'
|
|
|
import { useRef, useState, useEffect, useMemo } from 'react'
|
|
|
-import { connect, history, useRequest } from '@umijs/max'
|
|
|
+import { connect, history, Link, useRequest } from '@umijs/max'
|
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
|
import ProjectModal, { ModalType } from './components/ProjectModal'
|
|
|
import dayjs from 'dayjs'
|
|
@@ -77,13 +77,11 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
|
width: 286,
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (text, record) => (
|
|
|
- <span
|
|
|
- className="text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
- onClick={() => {
|
|
|
- goToDetail({ dataID: record.ID })
|
|
|
- }}>
|
|
|
+ <Link
|
|
|
+ to={`/project/management/${record.ID}`}
|
|
|
+ className="text-primary cursor-pointer hover:text-hex-967bbd">
|
|
|
{text}
|
|
|
- </span>
|
|
|
+ </Link>
|
|
|
)
|
|
|
},
|
|
|
{
|