From 41c9f5909bc1707ab175e311e663e07960a49550 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 27 Apr 2026 14:07:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=EF=BC=9A?= =?UTF-8?q?=E7=AA=81=E5=8F=91=E4=BA=8B=E4=BB=B6=EF=BC=8C=E5=BE=85=E8=B7=9F?= =?UTF-8?q?=E8=BF=9B=E7=9A=84=E6=97=B6=E5=80=99=E5=8F=AF=E4=BB=A5=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=85=B3=E9=97=AD=E5=90=A7=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/quality/emergency/modals/EventApplyClose.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/quality/emergency/modals/EventApplyClose.tsx b/src/pages/quality/emergency/modals/EventApplyClose.tsx index 3e0ff17..f15d95d 100644 --- a/src/pages/quality/emergency/modals/EventApplyClose.tsx +++ b/src/pages/quality/emergency/modals/EventApplyClose.tsx @@ -16,7 +16,10 @@ export default function ApplyClose( trigger={ } From ec87966f547437f2a12a789acc88d38b51c743fc Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 27 Apr 2026 17:22:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0Bi=EF=BC=8Cbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/contract/contracts_bi/styleBi.scss | 2 +- src/pages/quality/emergency/teams/index.tsx | 154 ++++++++++--------- 2 files changed, 84 insertions(+), 72 deletions(-) diff --git a/src/pages/contract/contracts_bi/styleBi.scss b/src/pages/contract/contracts_bi/styleBi.scss index e952f04..91480d2 100644 --- a/src/pages/contract/contracts_bi/styleBi.scss +++ b/src/pages/contract/contracts_bi/styleBi.scss @@ -62,7 +62,7 @@ &:hover &_header img { transform: scale(1.1) rotate(3deg); - filter: drop-shadow(0 4px 8px rgba(247, 122, 58, 0.2)); + // filter: drop-shadow(0 4px 8px rgba(247, 122, 58, 0.2)); } &_label { diff --git a/src/pages/quality/emergency/teams/index.tsx b/src/pages/quality/emergency/teams/index.tsx index b673be2..e40e8f6 100644 --- a/src/pages/quality/emergency/teams/index.tsx +++ b/src/pages/quality/emergency/teams/index.tsx @@ -1,4 +1,9 @@ -import { MyButtons, MyColumns, MyProTableProps } from '@/common'; +import { + MyButtons, + MyColumns, + MyPageContainer, + MyProTableProps, +} from '@/common'; import { Apis } from '@/gen/Apis'; import { ProTable } from '@ant-design/pro-components'; import { Space } from 'antd'; @@ -7,76 +12,83 @@ import Update from '../modals/TeamUpdate'; export default function Index({ title = '应急小组' }) { return ( - - MyProTableProps.request( - params, - sort, - Apis.Emergency.EmergencyEventTeams.List, - ) - } - headerTitle="应急小组" - toolBarRender={(action) => [ - , - ]} - columns={[ - MyColumns.ID({ - search: false, - }), - { - title: '项目', - dataIndex: ['asset_project', 'name'], - search: false, - }, - { - title: '名称', - dataIndex: 'name', - }, - { - title: '队长', - dataIndex: ['company_employee', 'name'], - search: false, - }, - MyColumns.Boolean({ - title: '是否启用', - dataIndex: 'is_enabled', - search: false, - }), - { - title: '成员', - search: false, - render: (_, item: any) => { - return ( - - {item?.emergency_team_members?.map( - (res: any, index: number) => { - return ( -
{res?.employee_name}
- ); - }, - )} -
- ); + + + MyProTableProps.request( + params, + sort, + Apis.Emergency.EmergencyEventTeams.List, + ) + } + headerTitle="应急小组" + toolBarRender={(action) => [ + , + ]} + columns={[ + MyColumns.ID({ + search: false, + }), + { + title: '项目', + dataIndex: ['asset_project', 'name'], + search: false, }, - }, - MyColumns.UpdatedAt(), - MyColumns.CreatedAt(), - MyColumns.Option({ - render: (_, item: any, index, action) => ( - - - - Apis.Emergency.EmergencyEventTeams.Delete({ - id: item.id, - }).then(() => action?.reload()) - } - /> - - ), - }), - ]} - /> + { + title: '名称', + dataIndex: 'name', + }, + { + title: '队长', + dataIndex: ['company_employee', 'name'], + search: false, + }, + MyColumns.Boolean({ + title: '是否启用', + dataIndex: 'is_enabled', + search: false, + }), + { + title: '成员', + search: false, + render: (_, item: any) => { + return ( + + {item?.emergency_team_members?.map( + (res: any, index: number) => { + return ( +
{res?.employee_name}
+ ); + }, + )} +
+ ); + }, + }, + MyColumns.UpdatedAt(), + MyColumns.CreatedAt(), + MyColumns.Option({ + render: (_, item: any, index, action) => ( + + + + Apis.Emergency.EmergencyEventTeams.Delete({ + id: item.id, + }).then(() => action?.reload()) + } + /> + + ), + }), + ]} + /> +
); }