From 0d49e8b7f5ece6c8b9465cfbe4b78961a523cf07 Mon Sep 17 00:00:00 2001 From: xixi <123@qq.com> Date: Thu, 15 Aug 2024 18:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BelongPeople/BelongPeople.tsx | 30 ++++++++++++------- src/components/CapitalModal/CapitalModal.tsx | 10 ++++++- .../ContactPeople/ContactPeople.tsx | 22 +++++++------- src/components/RecordModal/RecordModal.tsx | 3 ++ src/route/proj/edit/ProjEditStep2.tsx | 30 +++++++++++-------- 5 files changed, 60 insertions(+), 35 deletions(-) diff --git a/src/components/BelongPeople/BelongPeople.tsx b/src/components/BelongPeople/BelongPeople.tsx index dd87549..34476d0 100644 --- a/src/components/BelongPeople/BelongPeople.tsx +++ b/src/components/BelongPeople/BelongPeople.tsx @@ -387,7 +387,7 @@ export default function BelongPeople(props: propsInfo) { return ( <> -
+
{contextHolder} @@ -399,7 +399,7 @@ export default function BelongPeople(props: propsInfo) { {title: '基本信息'}, ]} /> */} -
+
@@ -442,7 +442,7 @@ export default function BelongPeople(props: propsInfo) { }} type="primary" icon={} style={{ width: "160px", height: '43px', fontSize: '14px' }}> 创建所属者 -
+
@@ -514,11 +514,14 @@ export default function BelongPeople(props: propsInfo) { pagination={{ defaultPageSize: 5, // 设置默认一页显示 5 条数据 }} - style={{ textAlign: 'center',height:390 }} // 设置表格内容居中显示 + style={{ textAlign: 'center', height: 390 }} // 设置表格内容居中显示 rowKey="projOwnerId" // 指定数据项的唯一标识符 > - + ( @@ -526,15 +529,17 @@ export default function BelongPeople(props: propsInfo) { )} /> ( record.idCardType === 'ID_CARD' ? '身份证' : '营业执照' )} /> - + {/* */} ( @@ -628,17 +633,18 @@ export default function BelongPeople(props: propsInfo) { )} /> - ) : ( + ) : ( - + ( @@ -646,15 +652,17 @@ export default function BelongPeople(props: propsInfo) { )} /> ( record.idCardType === 'ID_CARD' ? '身份证' : '营业执照' )} /> - + {/* */} ( @@ -814,7 +822,7 @@ export default function BelongPeople(props: propsInfo) {
{belongTitle}
-
+
(page - 1) * 10 + index + 1, }, { @@ -180,6 +181,7 @@ export default function CapitalModal() { key: 'type', width: 100, // 设置宽度 dataIndex: 'type', + align: 'center', render: (text) => { const tagProps = text === 1 ? { color: '#f50', label: '充值' } : @@ -197,6 +199,7 @@ export default function CapitalModal() { width: 120, dataIndex: 'accountBeforeMoneyDouble', key: 'accountBeforeMoneyDouble', + align: 'center', render:(text) => (
{text}
) @@ -206,6 +209,7 @@ export default function CapitalModal() { width: 120, dataIndex: 'accountMoneyDouble', key: 'accountMoneyDouble', + align: 'center', render:(text) => (
{text}
) @@ -215,15 +219,18 @@ export default function CapitalModal() { width: 120, dataIndex: 'accountAfterMoneyDouble', key: 'accountAfterMoneyDouble', + align: 'center', render:(text) => (
{text}
) + }, { title:
关联订单编号
, dataIndex: 'orderId', // fixed: 'right', width: 300, + align: 'center', key: 'orderId', }, { @@ -231,6 +238,7 @@ export default function CapitalModal() { dataIndex: 'orderType', key: 'orderType', width: 160, + align: 'center', render:(text) => (
{text == 'ai'?'AI秒著引擎':text}
) @@ -244,6 +252,7 @@ export default function CapitalModal() { title:
描述
, dataIndex: 'description', key: 'description', + align: 'center', ellipsis: { showTitle: false, }, @@ -301,7 +310,6 @@ export default function CapitalModal() {
} style={{ width: "160px", height: '43px', fontSize: '14px' }}> 创建联系人 -
- +
+
@@ -253,15 +253,16 @@ export default function ContactPeople(props: any) { style={{ textAlign: 'center', height: 390 }} // 设置表格内容居中显示 rowKey="projContactId" // 指定数据项的唯一标识符 > - - - - + + + (text !== '' ? text : '一')} /> {/* */} ( @@ -320,15 +321,16 @@ export default function ContactPeople(props: any) { style={{ textAlign: 'center', height: 390 }} // 设置表格内容居中显示 rowKey="projContactId" // 指定数据项的唯一标识符 > - - - - + + + (text !== '' ? text : '一')} /> {/* */} ( diff --git a/src/components/RecordModal/RecordModal.tsx b/src/components/RecordModal/RecordModal.tsx index cbc7942..06f3302 100644 --- a/src/components/RecordModal/RecordModal.tsx +++ b/src/components/RecordModal/RecordModal.tsx @@ -151,11 +151,13 @@ export default function RecordModal() { dataIndex: 'index', width: 70, // 设置宽度 key: 'index', + align: 'center', render: (_text, _record, index) => (page - 1) * 10 + index + 1, }, { title:
金额
, width: 120, + align: 'center', dataIndex: 'amount', key: 'amount', render:(text) => ( @@ -167,6 +169,7 @@ export default function RecordModal() { dataIndex: 'notes', key: 'notes', + align: 'center', ellipsis: { showTitle: false, }, diff --git a/src/route/proj/edit/ProjEditStep2.tsx b/src/route/proj/edit/ProjEditStep2.tsx index 7600ed1..21d6c30 100644 --- a/src/route/proj/edit/ProjEditStep2.tsx +++ b/src/route/proj/edit/ProjEditStep2.tsx @@ -288,15 +288,15 @@ export default function ProjEditStep2(props: any) { messageApi, url: `/api/proj-owner/list/self`, onSuccess({ data }: AxiosResponse) { - - + + setTableBelongData(data) - + } }) } - + // 获取联系人表格 const getProjContactList = () => { get({ @@ -419,7 +419,7 @@ export default function ProjEditStep2(props: any) { csaNo: data.csaNo }); if (data.casQrCode) { - const imgUrl = downloadUrl(data.casQrCode,false); + const imgUrl = downloadUrl(data.casQrCode, false); // console.log('图片地址', imgUrl); setImgUrl(imgUrl) } @@ -736,25 +736,28 @@ export default function ProjEditStep2(props: any) { style={{ textAlign: 'center' }} // 设置表格内容居中显示 rowKey="projOwnerId" // 指定数据项的唯一标识符 > - + ( record.type === 'PERSONAL' ? '自然人' : '企业/组织' )} /> ( record.idCardType === 'ID_CARD' ? '身份证' : '营业执照' )} /> - + {/* */} ( { @@ -866,7 +869,7 @@ export default function ProjEditStep2(props: any) { }} type="primary" icon={} style={{ width: "160px", height: '43px', fontSize: '14px' }}> 创建联系人 -
+
@@ -893,16 +896,17 @@ export default function ProjEditStep2(props: any) { style={{ textAlign: 'center' }} // 设置表格内容居中显示 rowKey="projContactId" // 指定数据项的唯一标识符 > - - - - + + + (text !== '' ? text : '一')} /> {/* */} (
{ @@ -1126,7 +1130,7 @@ export default function ProjEditStep2(props: any) {
{belongTitle}
-
+