fix(ui): 统一表格交互,调整企业技能与质量页面,修复浮层引用警告
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user