From 159d65989a1e6cd3431906bedd22d161c808427d Mon Sep 17 00:00:00 2001 From: tangshaojian <63377964@qq.com> Date: Thu, 16 Jan 2025 10:55:23 +0800 Subject: [PATCH] =?UTF-8?q?tsj:=20=E5=AE=9E=E7=8E=B0=E7=AE=A1=E5=BB=8A-?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E7=BB=B4=E4=BF=AE=E8=AF=A6=E6=83=85=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=9A=84=E9=9D=99=E6=80=81=EF=BC=9B=E6=9A=82=E4=B8=8D?= =?UTF-8?q?=E6=89=93=E5=BC=80=E7=82=B9=E5=87=BB=E5=BC=B9=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modals/PipelineMaintenance/index.tsx | 10 +++++++++- src/pages/GlobalModalServices/registry.tsx | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/pages/GlobalModalServices/modals/PipelineMaintenance/index.tsx b/src/pages/GlobalModalServices/modals/PipelineMaintenance/index.tsx index 9b1f387c..50bb1ae5 100644 --- a/src/pages/GlobalModalServices/modals/PipelineMaintenance/index.tsx +++ b/src/pages/GlobalModalServices/modals/PipelineMaintenance/index.tsx @@ -5,6 +5,7 @@ import dayjs from 'dayjs'; import styles from './index.less'; import BlueTable from '@/components/BlueTable'; import type { ColumnsType } from 'antd/es/table'; +import { useGlobalModalServices } from '@/pages/GlobalModalServices/provider'; interface MaintenanceDataType { pipelineName: string; @@ -32,6 +33,7 @@ const PipelineMaintenance: React.FC = () => { ]); const [facilityType, setFacilityType] = useState('all'); const [activeTab, setActiveTab] = useState('daily'); + const { dispatch } = useGlobalModalServices(); let isUsingValue = true; const columnsMaintenance: ColumnsType = [ @@ -76,7 +78,13 @@ const PipelineMaintenance: React.FC = () => { key: 'operation', width: 120, render: () => ( - 详情 + { + if (false) { + dispatch.push('PipelineMaintenanceDetail', { + }); + } + }}>详情 ) } ]; diff --git a/src/pages/GlobalModalServices/registry.tsx b/src/pages/GlobalModalServices/registry.tsx index 5f889f7b..4d9715ef 100644 --- a/src/pages/GlobalModalServices/registry.tsx +++ b/src/pages/GlobalModalServices/registry.tsx @@ -50,6 +50,7 @@ import PipelineAssessment from './modals/PipelineAssessment'; import LightingAlarmList from './modals/LightingAlarmList'; import PipelineDefectList from './modals/PipelineDefectList'; import PipelineMonitorDetail from './modals/PipelineMonitorDetail'; +import PipelineMaintenanceDetail from './modals/PipelineMaintenanceDetail'; export type ModalKey = keyof typeof Registry.RegistryList; @@ -497,6 +498,20 @@ export default class Registry { defaultProps: {}, modal: PipelineMaintenance, }, + /** + * 管廊日常维修详情 + * @module PipelineMaintenance + * @see PipelineMaintenance + */ + PipelineMaintenanceDetail: { + defaultConfig: { + w: 1151, + h: 858, + title: '日常维修详情', + }, + defaultProps: {}, + modal: PipelineMaintenanceDetail, + }, /** * 管廊巡检列表 * @module PipelinePassage -- GitLab