lanjianrong пре 3 година
родитељ
комит
85b1c2c023
1 измењених фајлова са 18 додато и 5 уклоњено
  1. 18 5
      src/pages/Project/Created/index.tsx

+ 18 - 5
src/pages/Project/Created/index.tsx

@@ -7,7 +7,7 @@ import type { ProFormColumnsType } from '@ant-design/pro-form'
 import { DeleteOutlined } from '@ant-design/icons'
 import { queryAcountList } from '@/services/api/institution'
 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 { useRequest } from 'umi'
 import { getProjectList } from '@/services/api/project'
@@ -173,10 +173,23 @@ const Created = () => {
             <p className="text-red-500">
               当前创建人已经管理以下项目,移除后,这些项目对应创建人也将被移除。
             </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>
           </>
         )}