fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user