-
+
)
}
\ No newline at end of file
diff --git a/src/route/proj/edit/ProjEditStep2.tsx b/src/route/proj/edit/ProjEditStep2.tsx
index 261998b..e583464 100644
--- a/src/route/proj/edit/ProjEditStep2.tsx
+++ b/src/route/proj/edit/ProjEditStep2.tsx
@@ -1,13 +1,17 @@
import './proj-edit-step.css';
-import {Breadcrumb, Col, DatePicker, Flex, message, Modal, Row, Spin} from "antd";
+import { Breadcrumb, Col, DatePicker, Flex, message, Modal, Row, Spin, Select, Table, Space } from "antd";
+import { FolderAddOutlined } from '@ant-design/icons';
import locale from 'antd/es/date-picker/locale/zh_CN';
-import {Link, useNavigate, useParams} from "react-router-dom";
-import {useEffect, useState} from "react";
-import {get, put} from "../../../util/AjaxUtils.ts";
-import {Button, Form, Input} from 'antd';
-import {AxiosResponse} from "axios";
-import dayjs, {Dayjs} from 'dayjs';
-
+import { Link, useNavigate, useParams } from "react-router-dom";
+import { useEffect, useState } from "react";
+import { get, put } from "../../../util/AjaxUtils.ts";
+import { Button, Form, Input } from 'antd';
+import { AxiosResponse } from "axios";
+import dayjs, { Dayjs } from 'dayjs';
+import type { SearchProps } from 'antd/es/input/Search';
+import type { TableColumnsType } from 'antd';
+const { Search } = Input;
+const { Column } = Table;
type FieldType = {
projSubName: string;
projVersion: string;
@@ -15,6 +19,12 @@ type FieldType = {
companyName: string;
companyNameEn: string;
};
+interface DataType {
+ key: React.Key;
+ name: string;
+ age: number;
+ address: string;
+}
export default function ProjEditStep2() {
const nav = useNavigate();
@@ -26,11 +36,64 @@ export default function ProjEditStep2() {
const height = window.innerHeight - 180;
const dateFormat = 'YYYY年MM月DD日';
+ // 表格第几行数据
+ const [clom,setClom] = useState('')
+ // 著作人搜索
+ const belongPeopleSearch: SearchProps['onSearch'] = (value, _e, info) => (
+ console.log(info?.source, value),
+ alert(value)
+ );
+ // 申请人信息搜索 applicantPeopleSearch
+ const applicantPeopleSearch: SearchProps['onSearch'] = (value, _e, info) => (
+ console.log(info?.source, value),
+ alert(value)
+ );
+
+ // 表格相关
+ // rowSelection object indicates the need for row selection
+ const rowSelection = {
+ // selectedRowKeys: React.Key[]
+ onChange: (selectedRowKeys: React.Key[], selectedRows: DataType[]) => {
+ console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
+ setClom(String(selectedRowKeys))
+ },
+
+ };
+ // 表格数据
+ const data: DataType[] = [
+ {
+ key: '1',
+ name: 'John Brown',
+ age: 32,
+ address: 'New York No. 1 Lake Park',
+ },
+ {
+ key: '2',
+ name: 'Jim Green',
+ age: 42,
+ address: 'London No. 1 Lake Park',
+ },
+ {
+ key: '3',
+ name: 'Joe Black',
+ age: 32,
+ address: 'Sydney No. 1 Lake Park',
+ },
+ {
+ key: '4',
+ name: 'Disabled User',
+ age: 99,
+ address: 'Sydney No. 1 Lake Park',
+ },
+ ];
+
+
+
useEffect(() => {
get({
messageApi,
url: `/api/proj/get/edit-step2/${pathParams.projId}`,
- onSuccess({data}: AxiosResponse) {
+ onSuccess({ data }: AxiosResponse) {
form.setFieldsValue({
projSubName: data.projSubName,
projVersion: data.projVersion,
@@ -44,143 +107,319 @@ export default function ProjEditStep2() {
return (
<>
- {contextHolder}
-
+
+
+ {contextHolder}
+ {/* 首页},
{title: 创建项目},
{title: {nav(-1)}}>编辑项目},
{title: '基本信息'},
]}
- />
-
-
-
-
{
- setIsEditModalOpen(false);
- put({
- messageApi,
- url: `/api/proj/update/edit-step2/${pathParams.projId}`,
- body: {
- projSubName: form.getFieldValue('projSubName'),
- projVersion: form.getFieldValue('projVersion'),
- projDevCompleteDate: dayjs(form.getFieldValue('projDevCompleteDate')).format(dateFormat),
- companyName: form.getFieldValue('companyName'),
- companyNameEn: form.getFieldValue('companyNameEn'),
- },
- onBefore() {
- setLoading(true);
- },
- onSuccess() {
- messageApi.open({
- type: 'success',
- content: '编辑成功'
- })
- },
- onFinally() {
- setLoading(false);
- }
- })
- }}
- onCancel={() => {
- setIsEditModalOpen(false);
- }}>
- 确定提交吗?
-
-
+
>
)
diff --git a/src/route/proj/edit/ProjEditStep2Show.tsx b/src/route/proj/edit/ProjEditStep2Show.tsx
index b6fc4b1..4c3bc7d 100644
--- a/src/route/proj/edit/ProjEditStep2Show.tsx
+++ b/src/route/proj/edit/ProjEditStep2Show.tsx
@@ -43,14 +43,14 @@ export default function ProjEditStep2Show() {
return (
<>
{contextHolder}
-
首页},
{title: 创建项目},
{title: {nav(-1)}}>编辑项目},
{title: '基本信息'},
]}
- />
+ /> */}
.ant-input{
+ height: 43px;
+}
+.belongPeople-search .css-dev-only-do-not-override-1ae8k9u.ant-input-search >.ant-input-group >.ant-input-group-addon:last-child .ant-input-search-button{
+ height: 43px;
+ width: 43px;
+}
+.belongPeople-bot {
+ margin-top: 13px;
+}
+.belongPeople-bot .css-dev-only-do-not-override-1ae8k9u.ant-table-wrapper .ant-table-thead >tr>th, .css-dev-only-do-not-override-1ae8k9u.ant-table-wrapper .ant-table-thead >tr>td{
+ background-color: #E6E6E6;
+ /* text-align: center; */
+ height: 41px;
}
\ No newline at end of file
diff --git a/src/route/proj/proj-new.css b/src/route/proj/proj-new.css
index 3fc8933..cb9bd7d 100644
--- a/src/route/proj/proj-new.css
+++ b/src/route/proj/proj-new.css
@@ -1,3 +1,9 @@
+.projNew {
+ height: calc(100vh - 220px);
+ margin-top: 26px;
+ overflow: auto;
+}
+
.proj-new {
min-height: 100%;
background-color: var(--color-light);
@@ -12,10 +18,42 @@
font-size: 30px;
}
-.proj-new .proj-form {
-}
+.proj-new .proj-form {}
.proj-new .proj-form .btn-group {
display: flex;
justify-content: center;
}
+
+.formItemOne {
+ /* background-color: red; */
+ display: flex;
+ /* align-items: center; */
+ line-height: 50px;
+ height: 50px;
+}
+
+.formItem-title {
+ font-family: Microsoft YaHei UI;
+ font-weight: bold;
+ font-size: 18px;
+ color: #474747;
+ /* color: #eeeeee; */
+ width: 83px;
+ margin-right: 33px;
+
+}
+
+.oneTitle {
+
+}
+
+.formItemTwo {
+ margin-top: 31px;
+ display: flex;
+ /* align-items: center; */
+ line-height: 50px;
+ /* background-color: red; */
+ /* width: 410px */
+}
+