|
@@ -7,7 +7,7 @@ import type { ProFormColumnsType } from '@ant-design/pro-form'
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
import { queryAcountList } from '@/services/api/institution'
|
|
import { queryAcountList } from '@/services/api/institution'
|
|
import consts from '@/utils/consts'
|
|
import consts from '@/utils/consts'
|
|
-import { Button, Form, message } from 'antd'
|
|
|
|
|
|
+import { Button, Form, message, Table } from 'antd'
|
|
import { saveCreator } from '@/services/api/user'
|
|
import { saveCreator } from '@/services/api/user'
|
|
import { useRequest } from 'umi'
|
|
import { useRequest } from 'umi'
|
|
import { getProjectList } from '@/services/api/project'
|
|
import { getProjectList } from '@/services/api/project'
|
|
@@ -173,10 +173,23 @@ const Created = () => {
|
|
<p className="text-red-500">
|
|
<p className="text-red-500">
|
|
当前创建人已经管理以下项目,移除后,这些项目对应创建人也将被移除。
|
|
当前创建人已经管理以下项目,移除后,这些项目对应创建人也将被移除。
|
|
</p>
|
|
</p>
|
|
- <div className="max-h-42 overflow-y-auto">
|
|
|
|
- {state.projectList?.map(item => (
|
|
|
|
- <p key={item.ID}>{item.name}</p>
|
|
|
|
- ))}
|
|
|
|
|
|
+ <div className="mt-7">
|
|
|
|
+ <Table
|
|
|
|
+ rowKey="ID"
|
|
|
|
+ columns={[
|
|
|
|
+ // {
|
|
|
|
+ // dataIndex: 'sort',
|
|
|
|
+ // title: '序号',
|
|
|
|
+ // render: (_, __, idx) => idx + 1,
|
|
|
|
+ // width: '10%'
|
|
|
|
+ // },
|
|
|
|
+ { dataIndex: 'name', title: '项目名称' }
|
|
|
|
+ ]}
|
|
|
|
+ size="small"
|
|
|
|
+ scroll={{ y: 250 }}
|
|
|
|
+ dataSource={state.projectList}
|
|
|
|
+ pagination={false}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</>
|
|
</>
|
|
)}
|
|
)}
|