123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import DustStatus from './components/DustStatus.vue';
- import FileOverview from './components/FileOverview.vue';
- import FireStatus from './components/FireStatus.vue';
- import VentilationStatus from './components/VentilationStatus.vue';
- import GasStatus from './components/GasStatus.vue';
- import leftImg from '/@/assets/images/files/homes/file.svg';
- import rightImg from '/@/assets/images/files/homes/sp.svg';
- // 基础的表格列配置,针对普通设备
- export const GAS_STATUS_COLUMN = [
- {
- name: '设备类型',
- prop: 'typeName',
- },
- {
- name: '监测数量',
- prop: 'num',
- },
- {
- name: '当前状态',
- prop: 'warnLevel',
- },
- ];
- // 粉尘状态模块表格列配置
- export const DUST_STATUS_COLUMN = [
- {
- name: '设备类型',
- prop: 'deviceType',
- },
- {
- name: '监测数量',
- prop: 'num',
- },
- {
- name: '当前状态',
- prop: 'warnLevelStr',
- },
- ];
- // 火灾状态监测相关的内容配置项
- export const FIRE_STATUS_LIST = [
- {
- icon: 'warning-optical-fiber',
- label: '矿井光纤测温系统报警',
- prop: 'fiberInfo',
- },
- {
- icon: 'warning-tubes',
- label: '矿井束管监测系统报警',
- prop: 'bundletubeInfo',
- },
- {
- icon: 'warning-smoke-2',
- label: '矿井烟雾传感器报警',
- prop: 'smokeSensorInfo',
- },
- {
- icon: 'warning-CO-2',
- label: '矿井CO传感器报警',
- prop: 'coSensorInfo',
- },
- {
- icon: 'warning-temp',
- label: '矿井温度传感器报警',
- prop: 'tempSensorInfo',
- },
- {
- icon: 'warning-max-temp',
- label: '矿井温度传感器最高值',
- prop: 'tempMax',
- },
- ];
- // 文件总览相关的内容配置项
- export const FILE_OVERVIEW_CONFIG = [
- { src: leftImg, text: '文档总数', prop: 'totalNum', id: 'file_cfg_001' },
- { src: rightImg, text: '待审批数', prop: 'approvalNum', id: 'file_cfg_002' },
- ];
- // 通风状态监测相关的内容配置项
- export const VENTILATION_STATUS_HEADER_CONFIG = [
- {
- label: '总进风量(m³/min)',
- prop: 'zongjinfeng',
- type: 'blue-to-left',
- },
- {
- label: '总回风量(m³/min)',
- prop: 'zonghuifeng',
- type: 'green-to-right',
- },
- {
- label: '总需风量(m³/min)',
- prop: 'xufengliang',
- type: 'green-to-left',
- },
- {
- label: '通风巷道总长度',
- prop: 'totallength',
- type: 'blue-to-right',
- },
- ];
- // 通风状态监测(树形节点详情)相关的内容配置项
- export const VENTILATION_STATUS_TREE_CONFIG = {
- 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: '',
- },
- ],
- };
- // 瓦斯状态监测相关的内容配置项
- export const GAS_STATUS_HEADER_CONFIG = [
- {
- label: '瓦斯风险等级',
- prop: 'gasWarnLevel',
- type: 'to-bottom-right',
- },
- {
- label: '瓦斯鉴定等级',
- prop: 'gasJudgeLevel',
- type: 'to-top-right',
- },
- ];
- // 各个监测类型对应的要展示的组件
- export const COMPONENTS_MAP = new Map([
- ['dust', DustStatus],
- ['fire', FireStatus],
- ['file', FileOverview],
- ['ventilate', VentilationStatus],
- ['gas', GasStatus],
- ]);
|