From 4f97657270b7aef0d3b7a6b25ea2b4adb07a77c7 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期五, 10 十一月 2023 16:55:34 +0800 Subject: [PATCH] 新增风险等级筛选条件、等级颜色 --- src/views/experiment/project/index.ts | 50 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/views/experiment/project/index.ts b/src/views/experiment/project/index.ts index 188cb14..ea7412d 100644 --- a/src/views/experiment/project/index.ts +++ b/src/views/experiment/project/index.ts @@ -7,11 +7,14 @@ searchParams: { experimentName: string, experimentType: null | number, + assessLevel: null | number, } }, total: 0, experimentTypeList: Type [] + riskLevelList: Type [] allRoomList: RoomType [] + tagBg: Array<string> } declare interface ProjectType { @@ -54,13 +57,9 @@ explosionProof: string, fireProof: string, poisonProof: string, - hazardousWaste: null | number, safeManagerMethod: string, - emergencyPlan: string, - emergencyDrill: string, - emergencyPlanName: string, - emergencyDrillStatus: string, - partitionCondition: string, + emergencyList: Array<emergencyListType>, + partitionCondition: null | number, note: string, startTime?: string, createExperimentTime: string @@ -152,10 +151,22 @@ stuffUnitList: Array<stuffType> } +declare interface SelectEmergencyType { + disabled: boolean + emergencyList: Array<emergencyListType> +} + +declare interface emergencyListType { + emergencyPlanName: string, + emergencyDrillStatus: string, + emergencyDrill: string, + emergencyPlan: string +} + declare interface SelectRoomType { disabled: boolean roomList: Array<roomListType>, - allRoomList: Array<roomListType>, + allRoomList: Array<allRoomListType>, specialDeviceList: Array<stuffType> memberList: Array<any> typeList: Array<any> @@ -164,13 +175,23 @@ } declare interface roomListType { - siteId?: null | number, - siteName?: string, - floor?: string, - room?: string, - fireFacilities?: null | number, - partitionStatus?: null | number, - siteType?: string, + siteId: null | number, + siteName: string, + floor: string, + room: string, + fireFacilities: null | number, + partitionStatus: null | number, + siteType: string, +} + +declare interface allRoomListType { + id: null | number, + siteName: string, + floor: string, + room: string, + fireFacilities: null | number, + partitionStatus: null | number, + siteType: string, } declare interface stuffType { @@ -188,7 +209,6 @@ stuffStorage: string, stuffUnit: string } - declare interface ApplyStartDialogType { title: string, -- Gitblit v1.9.2