fix(ui): 统一表格交互,调整企业技能与质量页面,修复浮层引用警告

This commit is contained in:
zhanjunhao
2026-11-24 13:26:07 +08:00
parent bf708039a3
commit 4e7894f144
124 changed files with 2682 additions and 1810 deletions
+2 -5
View File
@@ -1,3 +1,4 @@
import TableStatusSwitch from '@/components/common/table/TableStatusSwitch';
import { formatIdReference } from '../../helpers/safeDisplay';
import {
RefreshCw as ActionRefreshCw,
@@ -6,7 +7,6 @@ import {
import TableEmpty from '../../components/common/table/TableEmpty';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Switch } from 'antd';
import {
Table,
Button,
@@ -311,11 +311,8 @@ const OrgProjects = ({ orgId }) => {
disabled={v !== 1 || updatingProjectId !== null}
onConfirm={() => handleStatusChange(record, false)}
>
<Switch
size='small'
<TableStatusSwitch
checked={v === 1}
checkedChildren={t('启用')}
unCheckedChildren={t('禁用')}
aria-label={`${record.name} ${t('状态')}`}
loading={updatingProjectId === record.id}
disabled={updatingProjectId !== null}