From 52c3301571cbecc3cc3662ceb7a9ae8ce60665fe Mon Sep 17 00:00:00 2001 From: zhoux Date: Fri, 22 Dec 2023 17:32:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=91=8A=E8=AD=A6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E3=80=81=E5=91=8A=E8=AD=A6=E8=AE=BE=E7=BD=AE=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E9=9D=99=E6=80=81=E4=BA=A4=E4=BA=92=E5=AE=8C=E5=96=84=EF=BC=8C?= =?UTF-8?q?=E7=AE=97=E5=8A=9B=E5=88=86=E9=85=8D=E4=BA=A4=E4=BA=92=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/defaultIcon.ts | 8 +- src/components/RightContent/index.tsx | 2 +- src/components/TableActionCard/isDelete.tsx | 6 +- src/enums/status.ts | 26 +++--- src/global.css | 10 ++- src/global.less | 15 +++- src/hooks/useAlarmSettingLevel.ts | 52 +++++++++++ src/layouts/context.tsx | 4 +- src/locales/zh-CN/alarm.ts | 5 +- src/pages/Alarm/AlarmList/index.tsx | 21 +++-- .../components/alarmStatusForm.tsx | 6 +- src/pages/Alarm/AlarmSetting/index.tsx | 32 +++++-- .../ComputePowerAllocation.tsx | 63 ++++++++++---- src/pages/Setting/AlgorithmSetting.tsx | 2 +- src/pages/Setting/components/AlarmSetForm.tsx | 87 ++++++++++--------- src/pages/Setting/components/ProjectCard.tsx | 6 +- src/utils/options.ts | 4 +- 17 files changed, 245 insertions(+), 104 deletions(-) create mode 100644 src/hooks/useAlarmSettingLevel.ts diff --git a/config/defaultIcon.ts b/config/defaultIcon.ts index 42ee906..b9fc3ae 100644 --- a/config/defaultIcon.ts +++ b/config/defaultIcon.ts @@ -2,7 +2,7 @@ * @Author: zhoux zhouxia@supervision.ltd * @Date: 2023-11-28 14:13:05 * @LastEditors: zhoux zhouxia@supervision.ltd - * @LastEditTime: 2023-11-28 14:16:48 + * @LastEditTime: 2023-12-22 16:17:35 * @FilePath: \general-ai-platform-web\config\defaultIcon.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A */ @@ -30,3 +30,9 @@ export const proIconSelectStyle: React.CSSProperties = { borderRadius: 4, overflowY: 'scroll', }; + +// 列表图标统一样式 + +export const proIconForTableActionStyle : React.CSSProperties = { + fontSize: 16, +} \ No newline at end of file diff --git a/src/components/RightContent/index.tsx b/src/components/RightContent/index.tsx index 4418bb9..90191d5 100644 --- a/src/components/RightContent/index.tsx +++ b/src/components/RightContent/index.tsx @@ -50,7 +50,7 @@ export const SelectRole = () => { { currentUser && (