|
@@ -1,5 +1,10 @@
|
|
|
import leftImg from '/@/assets/images/files/homes/file.svg';
|
|
|
import rightImg from '/@/assets/images/files/homes/sp.svg';
|
|
|
+import GasIcon from '/@/assets/images/vent/gas-icon.png';
|
|
|
+import FireIcon from '/@/assets/images/vent/fire-icon.png';
|
|
|
+import VentIcon from '/@/assets/images/vent/vent-icon.png';
|
|
|
+import SafetyIcon from '/@/assets/images/vent/safety-icon.png';
|
|
|
+import DustIcon from '/@/assets/images/vent/dust-icon.png';
|
|
|
|
|
|
export type Translation = Record<string | number, string>;
|
|
|
export interface TitleConfig {
|
|
@@ -67,6 +72,9 @@ export const BillboardConfig: {
|
|
|
headers: HeaderConfig[];
|
|
|
tree: TreeConfig;
|
|
|
};
|
|
|
+ Warning: {
|
|
|
+ contents: OverviewConfig[];
|
|
|
+ };
|
|
|
} = {
|
|
|
DustStatus: {
|
|
|
title: {
|
|
@@ -172,6 +180,12 @@ export const BillboardConfig: {
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
+ Warning: {
|
|
|
+ content: [
|
|
|
+ { src: leftImg, text: '文档总数', prop: 'totalNum' },
|
|
|
+ { src: rightImg, text: '待审批数', prop: 'approvalNum' },
|
|
|
+ ],
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
// 基础的表格列配置,针对普通设备
|
|
@@ -426,6 +440,16 @@ export const SUMMARY_COLUMN = [
|
|
|
},
|
|
|
];
|
|
|
|
|
|
+// 预警总览相关的内容配置项
|
|
|
+export const WARNING_CONFIG = [
|
|
|
+ { src: '', text: '总预警数量', prop: 'total', id: 'warning_cfg_000' },
|
|
|
+ { src: GasIcon, text: '瓦斯', prop: 'gas', id: 'warning_cfg_001' },
|
|
|
+ { src: FireIcon, text: '火灾', prop: 'fire', id: 'warning_cfg_002' },
|
|
|
+ { src: DustIcon, text: '粉尘', prop: 'dust', id: 'warning_cfg_003' },
|
|
|
+ { src: VentIcon, text: '通风', prop: 'vent', id: 'warning_cfg_004' },
|
|
|
+ { src: SafetyIcon, text: '安全监控', prop: 'safety', id: 'warning_cfg_005' },
|
|
|
+];
|
|
|
+
|
|
|
export const DEFAULT_TEST_DATA = {
|
|
|
dustInfo: {
|
|
|
// 矿井粉尘风险信息
|
|
@@ -593,6 +617,15 @@ export const DEFAULT_TEST_DATA = {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
+ warningInfo: {
|
|
|
+ total: 5,
|
|
|
+ vent: 1,
|
|
|
+ gas: 1,
|
|
|
+ dust: 1,
|
|
|
+ fire: 1,
|
|
|
+ safety: 1,
|
|
|
+ maxLevel: 5,
|
|
|
+ },
|
|
|
orgname: '/',
|
|
|
orgcode: '/',
|
|
|
ip: 'localhost',
|