|
@@ -3,7 +3,7 @@ import ProTable from '@ant-design/pro-table'
|
|
|
import { Tag, Modal } from 'antd'
|
|
|
import consts from '@/utils/consts'
|
|
|
import { useRef, useState, useEffect, useMemo } from 'react'
|
|
|
-import { connect, history, Link, useRequest } from '@umijs/max'
|
|
|
+import { connect, Link, useRequest } from '@umijs/max'
|
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
|
import ProjectModal, { ModalType } from './components/ProjectModal'
|
|
|
import dayjs from 'dayjs'
|
|
@@ -47,13 +47,6 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
|
onSuccess: () => tRef.current?.reload()
|
|
|
})
|
|
|
|
|
|
- const goToDetail = params => {
|
|
|
- return history.push({
|
|
|
- pathname: '/project/management/detail',
|
|
|
- state: params
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
const handleDelProject = (ID: string) => {
|
|
|
Modal.confirm({
|
|
|
title: '删除项目',
|
|
@@ -99,7 +92,9 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
|
width: 326,
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) =>
|
|
|
- record?.created?.ID ? `${record?.created?.name}(${record?.created?.institution?.name})` : null
|
|
|
+ record?.created?.ID
|
|
|
+ ? `${record?.created?.name}(${record?.created?.institution?.name ?? '-'})`
|
|
|
+ : null
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'reportAccount',
|