fix(ui): unify table controls and organization layouts

This commit is contained in:
zhanjunhao
2026-11-24 13:26:07 +08:00
parent bf708039a3
commit 6528027d6d
124 changed files with 2682 additions and 1810 deletions
@@ -1,3 +1,4 @@
import TableActionPopconfirm from '@/components/common/table/TableActionPopconfirm';
import React, {
useCallback,
useEffect,
@@ -10,7 +11,6 @@ import { ListChecks, ShieldPlus } from 'lucide-react';
import {
Button,
Input,
Popconfirm,
Select,
Spin,
Switch,
@@ -149,12 +149,14 @@ const OrgDsRules = ({ orgId, isSuperAdmin }) => {
if (res.data.success) {
Toast.success(t('删除成功'));
fetchRules();
return true;
} else {
showError(res.data.message || t('删除失败'));
}
} catch (err) {
if (err?.name !== 'AxiosError') showError(err);
}
return false;
};
const platformColumns = [
@@ -216,14 +218,14 @@ const OrgDsRules = ({ orgId, isSuperAdmin }) => {
<Button size='small' onClick={() => openEdit(rule)}>
{t('编辑')}
</Button>
<Popconfirm
<TableActionPopconfirm
title={t('确认删除该规则?删除后即时生效。')}
onConfirm={() => deleteRule(rule)}
>
<Button size='small' type='danger'>
<Button size='small' type='link' danger>
{t('删除')}
</Button>
</Popconfirm>
</TableActionPopconfirm>
</div>
),
},