fix(ui): 修复登录和并发请求并统一页面展示

调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9b6eb1c7c4
commit 7908ed53a3
128 changed files with 4672 additions and 5391 deletions
+30 -32
View File
@@ -16,7 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { formatIdReference } from '../../helpers/safeDisplay';
import { TableRowActions } from '@/components/common/table/TableToolbar';
import React, {
useCallback,
useEffect,
@@ -494,9 +496,25 @@ export default function PartnerPortal({
},
{
title: t('操作'),
width: 230,
width: 175,
render: (_, row) => (
<div className='partner-portal-row-actions'>
<TableRowActions
items={[
{
key: 'export',
label: t('导出'),
disabled: exportingId !== null || mutationLoading,
onClick: () => exportStatement(row),
},
row.status === 'pending_confirmation' && {
key: 'reject',
label: t('驳回'),
danger: true,
disabled: mutationLoading,
onClick: () => open(row, 'reject'),
},
]}
>
<Button
type='link'
size='small'
@@ -506,36 +524,16 @@ export default function PartnerPortal({
{t('查看')}
</Button>
{row.status === 'pending_confirmation' && (
<>
<Button
type='link'
size='small'
disabled={mutationLoading}
onClick={() => open(row, 'confirm')}
>
{t('确认')}
</Button>
<Button
type='link'
size='small'
danger
disabled={mutationLoading}
onClick={() => open(row, 'reject')}
>
{t('驳回')}
</Button>
</>
<Button
type='link'
size='small'
disabled={mutationLoading}
onClick={() => open(row, 'confirm')}
>
{t('确认')}
</Button>
)}
<Button
type='link'
size='small'
disabled={exportingId !== null || mutationLoading}
loading={exportingId === row.id}
onClick={() => exportStatement(row)}
>
{t('导出')}
</Button>
</div>
</TableRowActions>
),
},
];
@@ -887,7 +885,7 @@ export default function PartnerPortal({
<Users size={17} />
</span>
<span>
{row.customer_name || `#${row.subject_id}`} ·{' '}
{row.customer_name || formatIdReference(row.subject_id)} ·{' '}
{t('客户保护期临近到期')}
<small>{date(protectionUntil(row))}</small>
</span>