From 9e03b447fa15fa3fa0e468ca42a4bb7b4eac1e3b Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Wed, 08 Jan 2025 11:07:42 +0800
Subject: [PATCH] 导出报告
---
src/views/experiment/project/index.ts | 106 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 92 insertions(+), 14 deletions(-)
diff --git a/src/views/experiment/project/index.ts b/src/views/experiment/project/index.ts
index 6ec1f48..12a630a 100644
--- a/src/views/experiment/project/index.ts
+++ b/src/views/experiment/project/index.ts
@@ -1,20 +1,25 @@
declare interface ProjectStateType {
- projectData: Array<ProjectType>
+ projectData?: Array<ProjectType>
+ developData?: Array<ProjectType>
searchQuery: {
pageIndex: number,
pageSize: number,
searchParams: {
experimentName: string,
experimentType: null | number,
+ assessLevel: null | number,
}
},
total: 0,
experimentTypeList: Type []
+ riskLevelList: Type []
allRoomList: RoomType []
+ tagBg: Array<string>
}
declare interface ProjectType {
id?: number | null,
+ liabilityUserId?: number | null,
experimentCode: string,
experimentName: string,
}
@@ -24,6 +29,10 @@
id: number,
name: string,
}
+declare interface eType {
+ typeId: number,
+ typeName: string,
+}
declare interface ProjectDialogType {
title: string,
@@ -32,15 +41,20 @@
projectForm: {
id: null | number,
experimentName: string,
- experimentType: null | number,
+ experimentType: null | number | any,
+ typeList: Array<eType>,
liabilityUserId: null | number,
- safeLiabilityUserId: null | number,
+ safeLiabilityUser: string
+ liabilityUserPhone: string,
+ safeLiabilityUserPhone: string,
+ sisStatus?: null | number,
+ safeInformationSystem?: string,
dep: string,
- siteId: null | number,
experimentStep: string,
experimentMethod: string,
process: string,
keyProcess: string,
+ measure: string,
timeout: null | number,
timeoutManager: string,
closed: null | number,
@@ -48,16 +62,14 @@
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,
- expectStartTime: null | number,
+ startTime?: string,
+ createExperimentTime: string
persons: SelectPersonType [],
+ siteList: SelectRoomType [],
deviceList: SelectEquipmentType [],
stuffList: SelectMaterialType [],
hazardousWasteList: SelectDangerType []
@@ -66,8 +78,9 @@
},
allPersonList: Array<AllPersonListType>
- systemPersonList: Array<SystemPersonType>
+ systemPersonList: Array<AllPersonListType>
allRoomList: Array<RoomType>
+ experimentTypeList: eType []
}
declare interface SelectDangerType {
@@ -91,7 +104,7 @@
}
declare interface AllPersonListType {
- id: null | number,
+ id?: null | number,
personId?: null | number,
personName: null,
personAge: null,
@@ -103,10 +116,23 @@
training:''
}
+declare interface NewPersonListType {
+ depId: number | null
+ depName: string
+ id: number
+ idSerial: string
+ idType: number | null
+ name: string
+ phone: string
+ realName: string
+}
+
declare interface SelectEquipmentType {
disabled: boolean
equipmentList: Array<AllEquipmentListType>,
allEquipmentList: Array<AllEquipmentListType>,
+ equipmentTypeList: Array<any>,
+ specialDeviceList: Array<Type>
}
declare interface AllEquipmentListType {
@@ -117,6 +143,8 @@
deviceName: string,
devicePower: string,
specialDevice: string,
+ deviceUnit?: null | number,
+ safeProtect?: null | number
}
@@ -124,6 +152,57 @@
disabled: boolean
materialList: Array<AllMaterialListType>,
allMaterialList: Array<AllMaterialListType>,
+ stuffTypeList: Array<stuffType>
+ stuffStorageList: Array<stuffType>
+ 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<allRoomListType>,
+ specialDeviceList: Array<stuffType>
+ memberList: Array<any>
+ typeList: Array<any>
+ stuffStorageList: Array<stuffType>
+ stuffUnitList: Array<stuffType>
+}
+
+declare interface roomListType {
+ 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 {
+ id: null | number,
+ name: string
}
declare interface AllMaterialListType {
@@ -136,7 +215,6 @@
stuffStorage: string,
stuffUnit: string
}
-
declare interface ApplyStartDialogType {
title: string,
--
Gitblit v1.9.2