From 62e86a8705dedfa9c86dc972b87cc7e9e475589d Mon Sep 17 00:00:00 2001 From: lyp Date: Tue, 4 Mar 2025 23:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/payment/Payment.tsx | 182 +++++++++++++++-------------- src/route/proj/ProjNew.tsx | 10 +- 2 files changed, 102 insertions(+), 90 deletions(-) diff --git a/src/components/payment/Payment.tsx b/src/components/payment/Payment.tsx index 0c5a565..46c269a 100644 --- a/src/components/payment/Payment.tsx +++ b/src/components/payment/Payment.tsx @@ -114,9 +114,15 @@ export default function Payment(props: IPaymentProps) { } }, + onBefore() { + setTableLoading(true); + }, onSuccess({ data }) { setPackList(data.rows); setPackTotal(data.total); + }, + onFinally() { + setTableLoading(false) } }) } @@ -273,6 +279,7 @@ export default function Payment(props: IPaymentProps) { const [messageApi, messageApiContext] = useMessage(); const [isRechargeMoneyEdit, setIsRechargeMoneyEdit] = useState(false); const [isLoading, setIsLoading] = useState(false); + const [tableLoading, setTableLoading] = useState(false); const [rechargeVoucherArray, setRechargeVoucherArray] = useState([]); const [accountRechargeId, setAccountRechargeId] = useState(''); @@ -542,7 +549,7 @@ export default function Payment(props: IPaymentProps) { - 公司名称 * + 公司名称 * - 开户银行 * + 开户银行 * - 银行账号 * + 银行账号 * - 打款时间 * + 打款时间 * - 打款凭证* + 打款凭证*
-
0 ? 'unset' : 'none', - marginLeft: 90 - }}> - - +
7 ? 'unset' : 'none', + display: packList.length > 0 ? 'unset' : 'none', + marginLeft: 90 + }}> + + +
+ +
7 ? 'unset' : 'none', + }}> +
+
{ + if (packPage > 1) { + setPackPage(packPage - 1); + getPackageList(value, packPage - 1); + } else { + messageApi.error('已经是第一页了'); + } + }} + style={{ + cursor: packPage > 1 ? 'pointer' : 'not-allowed', + background: packPage > 1 ? '#abc8ff' : '#BAC8DA', + }} + >上一页
+
{ + if (packPage < packTotal / 7) { + setPackPage(packPage + 1); + getPackageList(value, packPage + 1); + } else { + messageApi.error('已经是最后一页了'); + } + }} + + >下一页
+
+
+ + +
-
{ - if (packPage > 1) { - setPackPage(packPage - 1); - getPackageList(value, packPage - 1); - } else { - messageApi.error('已经是第一页了'); - } - }} - style={{ - cursor: packPage > 1 ? 'pointer' : 'not-allowed', - background: packPage > 1 ? '#abc8ff' : '#BAC8DA', - }} - >上一页
-
{ - if (packPage < packTotal / 7) { - setPackPage(packPage + 1); - getPackageList(value, packPage + 1); - } else { - messageApi.error('已经是最后一页了'); - } - }} - - >下一页
+
+
暂无服务包
- -
-
- -
-
暂无服务包
-
+
diff --git a/src/route/proj/ProjNew.tsx b/src/route/proj/ProjNew.tsx index 54c14e1..3b9912a 100644 --- a/src/route/proj/ProjNew.tsx +++ b/src/route/proj/ProjNew.tsx @@ -587,14 +587,14 @@ export default function ProjNew() { top: 10, }}>推荐
系统全称建议以“软件”、“系统”、“平台”或“APP”结尾
@@ -644,7 +644,7 @@ export default function ProjNew() {
系统版本*
@@ -693,7 +693,7 @@ export default function ProjNew() {
{/*
@@ -825,7 +825,7 @@ export default function ProjNew() {