|
@@ -1,192 +1,192 @@
|
|
|
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';
|
|
|
+import GasIcon from '/@/assets/images/vent/gas-icon-2.png';
|
|
|
+import FireIcon from '/@/assets/images/vent/fire-icon-2.png';
|
|
|
+import VentIcon from '/@/assets/images/vent/vent-icon-2.png';
|
|
|
+import SafetyIcon from '/@/assets/images/vent/safety-icon-2.png';
|
|
|
+import DustIcon from '/@/assets/images/vent/dust-icon-2.png';
|
|
|
|
|
|
-export type Translation = Record<string | number, string>;
|
|
|
-export interface TitleConfig {
|
|
|
- label: string;
|
|
|
- prop: string;
|
|
|
- translation?: Translation;
|
|
|
-}
|
|
|
-export interface HeaderConfig {
|
|
|
- label: string;
|
|
|
- prop: string;
|
|
|
- translation?: Translation;
|
|
|
-}
|
|
|
-export interface TableConfig {
|
|
|
- prop: string;
|
|
|
- columns: { label: string; prop: string; _t?: boolean }[];
|
|
|
- collapses: { label: string; prop: string; _t?: boolean }[];
|
|
|
- translation?: Translation;
|
|
|
-}
|
|
|
-export interface ListConfig {
|
|
|
- icon: string;
|
|
|
- label: string;
|
|
|
- prop: string;
|
|
|
- translation?: Translation;
|
|
|
- collapses: { label: string; prop: string; _t?: boolean }[];
|
|
|
-}
|
|
|
-export interface OverviewConfig {
|
|
|
- label: string;
|
|
|
- prop: string;
|
|
|
- src: string;
|
|
|
-}
|
|
|
-export interface TreeConfig {
|
|
|
- prefix: string;
|
|
|
- prop: string;
|
|
|
- suffix: string;
|
|
|
- children: {
|
|
|
- prefix: string;
|
|
|
- prop: string;
|
|
|
- suffix: string;
|
|
|
- }[];
|
|
|
- translation?: Record<string | number, string>;
|
|
|
-}
|
|
|
+// export type Translation = Record<string | number, string>;
|
|
|
+// export interface TitleConfig {
|
|
|
+// label: string;
|
|
|
+// prop: string;
|
|
|
+// translation?: Translation;
|
|
|
+// }
|
|
|
+// export interface HeaderConfig {
|
|
|
+// label: string;
|
|
|
+// prop: string;
|
|
|
+// translation?: Translation;
|
|
|
+// }
|
|
|
+// export interface TableConfig {
|
|
|
+// prop: string;
|
|
|
+// columns: { label: string; prop: string; _t?: boolean }[];
|
|
|
+// collapses: { label: string; prop: string; _t?: boolean }[];
|
|
|
+// translation?: Translation;
|
|
|
+// }
|
|
|
+// export interface ListConfig {
|
|
|
+// icon: string;
|
|
|
+// label: string;
|
|
|
+// prop: string;
|
|
|
+// translation?: Translation;
|
|
|
+// collapses: { label: string; prop: string; _t?: boolean }[];
|
|
|
+// }
|
|
|
+// export interface OverviewConfig {
|
|
|
+// label: string;
|
|
|
+// prop: string;
|
|
|
+// src: string;
|
|
|
+// }
|
|
|
+// export interface TreeConfig {
|
|
|
+// prefix: string;
|
|
|
+// prop: string;
|
|
|
+// suffix: string;
|
|
|
+// children: {
|
|
|
+// prefix: string;
|
|
|
+// prop: string;
|
|
|
+// suffix: string;
|
|
|
+// }[];
|
|
|
+// translation?: Record<string | number, string>;
|
|
|
+// }
|
|
|
|
|
|
-/** 看板的总配置 */
|
|
|
-export const BillboardConfig: {
|
|
|
- DustStatus: {
|
|
|
- title: TitleConfig;
|
|
|
- table: TableConfig;
|
|
|
- };
|
|
|
- FileOverview: {
|
|
|
- contents: OverviewConfig[];
|
|
|
- };
|
|
|
- FireStatus: {
|
|
|
- title: TitleConfig;
|
|
|
- lists: ListConfig[];
|
|
|
- };
|
|
|
- GasStauts: {
|
|
|
- headers: HeaderConfig[];
|
|
|
- table: TableConfig;
|
|
|
- };
|
|
|
- Summary: {
|
|
|
- headers: HeaderConfig[];
|
|
|
- table: TableConfig;
|
|
|
- };
|
|
|
- VentilationStauts: {
|
|
|
- headers: HeaderConfig[];
|
|
|
- tree: TreeConfig;
|
|
|
- };
|
|
|
- Warning: {
|
|
|
- contents: OverviewConfig[];
|
|
|
- };
|
|
|
-} = {
|
|
|
- DustStatus: {
|
|
|
- title: {
|
|
|
- text: '',
|
|
|
- prop: '',
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- table: {
|
|
|
- columns: [{ label: '', prop: '' }],
|
|
|
- collapses: [{ label: '', prop: '' }],
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- },
|
|
|
- FileOverview: {
|
|
|
- content: [
|
|
|
- { src: leftImg, text: '文档总数', prop: 'totalNum' },
|
|
|
- { src: rightImg, text: '待审批数', prop: 'approvalNum' },
|
|
|
- ],
|
|
|
- },
|
|
|
- FireStatus: {
|
|
|
- title: {
|
|
|
- text: '',
|
|
|
- prop: '',
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- list: [
|
|
|
- {
|
|
|
- icon: '',
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- type: '',
|
|
|
- translation: {},
|
|
|
- collapses: [{ label: '', prop: '' }],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- GasStatus: {
|
|
|
- header: [
|
|
|
- {
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- ],
|
|
|
- table: {
|
|
|
- columns: [],
|
|
|
- collapses: [],
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- },
|
|
|
- Summary: {
|
|
|
- header: [
|
|
|
- {
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- ],
|
|
|
- table: {
|
|
|
- columns: [],
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- },
|
|
|
- VentilationStatus: {
|
|
|
- header: [
|
|
|
- {
|
|
|
- label: '',
|
|
|
- prop: '',
|
|
|
- filte: '',
|
|
|
- translation: {},
|
|
|
- },
|
|
|
- ],
|
|
|
- tree: {
|
|
|
- prefix: '',
|
|
|
- prop: 'strname',
|
|
|
- suffix: '',
|
|
|
- children: [
|
|
|
- {
|
|
|
- prefix: '名称:',
|
|
|
- prop: 'strinstallpos',
|
|
|
- suffix: '',
|
|
|
- },
|
|
|
- {
|
|
|
- prefix: '1号风机风量:',
|
|
|
- prop: 'Fan1m3',
|
|
|
- suffix: '(m³/min)',
|
|
|
- },
|
|
|
- {
|
|
|
- prefix: '2号风机风量:',
|
|
|
- prop: 'Fan2m3',
|
|
|
- suffix: '(m³/min)',
|
|
|
- },
|
|
|
- {
|
|
|
- prefix: '频率:',
|
|
|
- prop: 'FanFreqHz',
|
|
|
- suffix: 'Hz',
|
|
|
- },
|
|
|
- {
|
|
|
- prefix: '三区阻力分布:',
|
|
|
- prop: 'sqzlfb',
|
|
|
- suffix: '',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- Warning: {
|
|
|
- content: [
|
|
|
- { src: leftImg, text: '文档总数', prop: 'totalNum' },
|
|
|
- { src: rightImg, text: '待审批数', prop: 'approvalNum' },
|
|
|
- ],
|
|
|
- },
|
|
|
-};
|
|
|
+// /** 看板的总配置 */
|
|
|
+// export const BillboardConfig: {
|
|
|
+// DustStatus: {
|
|
|
+// title: TitleConfig;
|
|
|
+// table: TableConfig;
|
|
|
+// };
|
|
|
+// FileOverview: {
|
|
|
+// contents: OverviewConfig[];
|
|
|
+// };
|
|
|
+// FireStatus: {
|
|
|
+// title: TitleConfig;
|
|
|
+// lists: ListConfig[];
|
|
|
+// };
|
|
|
+// GasStauts: {
|
|
|
+// headers: HeaderConfig[];
|
|
|
+// table: TableConfig;
|
|
|
+// };
|
|
|
+// Summary: {
|
|
|
+// headers: HeaderConfig[];
|
|
|
+// table: TableConfig;
|
|
|
+// };
|
|
|
+// VentilationStauts: {
|
|
|
+// headers: HeaderConfig[];
|
|
|
+// tree: TreeConfig;
|
|
|
+// };
|
|
|
+// Warning: {
|
|
|
+// contents: OverviewConfig[];
|
|
|
+// };
|
|
|
+// } = {
|
|
|
+// DustStatus: {
|
|
|
+// title: {
|
|
|
+// text: '',
|
|
|
+// prop: '',
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// table: {
|
|
|
+// columns: [{ label: '', prop: '' }],
|
|
|
+// collapses: [{ label: '', prop: '' }],
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// },
|
|
|
+// FileOverview: {
|
|
|
+// content: [
|
|
|
+// { src: leftImg, text: '文档总数', prop: 'totalNum' },
|
|
|
+// { src: rightImg, text: '待审批数', prop: 'approvalNum' },
|
|
|
+// ],
|
|
|
+// },
|
|
|
+// FireStatus: {
|
|
|
+// title: {
|
|
|
+// text: '',
|
|
|
+// prop: '',
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// list: [
|
|
|
+// {
|
|
|
+// icon: '',
|
|
|
+// label: '',
|
|
|
+// prop: '',
|
|
|
+// type: '',
|
|
|
+// translation: {},
|
|
|
+// collapses: [{ label: '', prop: '' }],
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// },
|
|
|
+// GasStatus: {
|
|
|
+// header: [
|
|
|
+// {
|
|
|
+// label: '',
|
|
|
+// prop: '',
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// table: {
|
|
|
+// columns: [],
|
|
|
+// collapses: [],
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// },
|
|
|
+// Summary: {
|
|
|
+// header: [
|
|
|
+// {
|
|
|
+// label: '',
|
|
|
+// prop: '',
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// table: {
|
|
|
+// columns: [],
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// },
|
|
|
+// VentilationStatus: {
|
|
|
+// header: [
|
|
|
+// {
|
|
|
+// label: '',
|
|
|
+// prop: '',
|
|
|
+// filte: '',
|
|
|
+// translation: {},
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// tree: {
|
|
|
+// prefix: '',
|
|
|
+// prop: 'strname',
|
|
|
+// suffix: '',
|
|
|
+// children: [
|
|
|
+// {
|
|
|
+// prefix: '名称:',
|
|
|
+// prop: 'strinstallpos',
|
|
|
+// suffix: '',
|
|
|
+// },
|
|
|
+// {
|
|
|
+// prefix: '1号风机风量:',
|
|
|
+// prop: 'Fan1m3',
|
|
|
+// suffix: '(m³/min)',
|
|
|
+// },
|
|
|
+// {
|
|
|
+// prefix: '2号风机风量:',
|
|
|
+// prop: 'Fan2m3',
|
|
|
+// suffix: '(m³/min)',
|
|
|
+// },
|
|
|
+// {
|
|
|
+// prefix: '频率:',
|
|
|
+// prop: 'FanFreqHz',
|
|
|
+// suffix: 'Hz',
|
|
|
+// },
|
|
|
+// {
|
|
|
+// prefix: '三区阻力分布:',
|
|
|
+// prop: 'sqzlfb',
|
|
|
+// suffix: '',
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// },
|
|
|
+// },
|
|
|
+// Warning: {
|
|
|
+// content: [
|
|
|
+// { src: leftImg, text: '文档总数', prop: 'totalNum' },
|
|
|
+// { src: rightImg, text: '待审批数', prop: 'approvalNum' },
|
|
|
+// ],
|
|
|
+// },
|
|
|
+// };
|
|
|
|
|
|
// 基础的表格列配置,针对普通设备
|
|
|
export const GAS_STATUS_COLUMN = [
|
|
@@ -442,12 +442,12 @@ 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' },
|
|
|
+ { src: '', text: '监测总数', prop: 'total', prop2: 'total', id: 'warning_cfg_000' },
|
|
|
+ { src: SafetyIcon, text: '安全监测', prop: 'safety', prop2: 'safetyRisk', id: 'warning_cfg_005' },
|
|
|
+ { src: VentIcon, text: '通风', prop: 'vent', prop2: 'ventRisk', id: 'warning_cfg_004' },
|
|
|
+ { src: DustIcon, text: '粉尘', prop: 'dust', prop2: 'dustRisk', id: 'warning_cfg_003' },
|
|
|
+ { src: GasIcon, text: '瓦斯', prop: 'gas', prop2: 'gasRisk', id: 'warning_cfg_001' },
|
|
|
+ { src: FireIcon, text: '火灾', prop: 'fire', prop2: 'fireRisk', id: 'warning_cfg_002' },
|
|
|
];
|
|
|
|
|
|
export const DEFAULT_TEST_DATA = {
|
|
@@ -620,10 +620,15 @@ export const DEFAULT_TEST_DATA = {
|
|
|
warningInfo: {
|
|
|
total: 5,
|
|
|
vent: 1,
|
|
|
+ ventRisk: '低风险',
|
|
|
gas: 1,
|
|
|
+ gasRisk: '低风险',
|
|
|
dust: 1,
|
|
|
+ dustRisk: '低风险',
|
|
|
fire: 1,
|
|
|
+ fireRisk: '低风险',
|
|
|
safety: 1,
|
|
|
+ safetyRisk: '低风险',
|
|
|
maxLevel: 5,
|
|
|
},
|
|
|
orgname: '/',
|