123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- 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-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 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 = [
- {
- name: '设备类型',
- prop: 'typeName',
- },
- {
- name: '监测数量',
- prop: 'num',
- },
- {
- name: '当前状态',
- prop: 'warnLevelStr',
- },
- ];
- /** 瓦斯监测表格的折叠项配置 */
- export const GAS_COLLAPSES = [
- {
- name: '最大值位置',
- prop: 'maxValueInstallPos',
- },
- {
- name: '最大值(%)',
- prop: 'maxValue',
- },
- ];
- // 粉尘状态模块表格列配置
- export const DUST_STATUS_COLUMN = [
- {
- name: '设备类型',
- prop: 'typeName',
- },
- {
- name: '监测数量',
- prop: 'num',
- },
- {
- name: '当前状态',
- prop: 'warnLevelStr',
- },
- ];
- /** 粉尘监测表格的折叠项配置 */
- export const DUST_COLLAPSES = [
- {
- name: '最大值位置',
- prop: 'maxValueInstallPos',
- },
- {
- name: '最大值(mg/m3)',
- prop: 'maxValue',
- },
- ];
- // 火灾状态监测相关的内容配置项
- export const FIRE_STATUS_LIST = [
- {
- icon: 'warning-optical-fiber',
- label: '光纤测温系统报警',
- prop: 'fiberInfo.warnLevel',
- collapses: [
- {
- name: '最大值位置',
- prop: 'fiberInfo.maxValueInstallPos',
- },
- {
- name: '最大值(℃)',
- prop: 'fiberInfo.maxValue',
- },
- ],
- },
- {
- icon: 'warning-tubes',
- label: '束管监测系统报警',
- prop: 'bundletubeInfo.warnLevel',
- collapses: [
- {
- name: '最大值位置',
- prop: 'bundletubeInfo.maxValueInstallPos',
- },
- {
- name: '一氧化碳最大值(ppm)',
- prop: 'bundletubeInfo.coval',
- },
- {
- name: 'CH2最大值(ppm)',
- prop: 'bundletubeInfo.ch2val',
- },
- {
- name: '氧气最大值(ppm)',
- prop: 'bundletubeInfo.o2val',
- },
- {
- name: 'CH最大值(ppm)',
- prop: 'bundletubeInfo.chval',
- },
- {
- name: '瓦斯最大值(%)',
- prop: 'bundletubeInfo.gasval',
- },
- {
- name: '二氧化碳最大值(ppm)',
- prop: 'bundletubeInfo.co2val',
- },
- ],
- },
- {
- icon: 'warning-smoke-2',
- label: '烟雾传感器报警',
- prop: 'smokeSensorInfo.warnLevel',
- collapses: [
- {
- name: '最大值位置',
- prop: 'smokeSensorInfo.maxValueInstallPos',
- },
- {
- name: '最大值(%)',
- prop: 'smokeSensorInfo.maxValue',
- },
- ],
- },
- {
- icon: 'warning-CO-2',
- label: 'CO传感器报警',
- prop: 'coSensorInfo.warnLevel',
- collapses: [
- {
- name: '最大值位置',
- prop: 'coSensorInfo.maxValueInstallPos',
- },
- {
- name: '最大值(ppm)',
- prop: 'coSensorInfo.maxValue',
- },
- ],
- },
- {
- icon: 'warning-temp',
- label: '温度传感器报警',
- prop: 'tempSensorInfo.warnLevel',
- collapses: [
- {
- name: '最大值位置',
- prop: 'tempSensorInfo.maxValueInstallPos',
- },
- {
- name: '最大值(℃)',
- prop: 'tempSensorInfo.maxValue',
- },
- ],
- },
- ];
- // 文件总览相关的内容配置项
- 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: '巷道总长度(m)',
- 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 SUMMARY_HEADER_CONFIG = {
- label: '风险分析',
- prop: 'synthesizeS.levelstatus',
- type: 'to-bottom-right',
- };
- // 综合监测表格列配置
- export const SUMMARY_COLUMN = [
- {
- name: '监测类别',
- prop: 'label',
- },
- {
- name: '风险等级',
- prop: 'value',
- },
- ];
- // 预警总览相关的内容配置项
- export const WARNING_CONFIG = [
- { 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 = {
- dustInfo: {
- // 矿井粉尘风险信息
- totalNum: 0,
- dustTypeList: [
- {
- deviceType: '/',
- warnLevel: 0,
- num: 0,
- typeName: '/',
- },
- {
- deviceType: '/',
- warnLevel: 0,
- num: 0,
- typeName: '/',
- },
- ],
- dustWarnLevel: 0, // 矿井粉尘风险性等级
- },
- fileServerInfo: {
- totalNum: 0, // 文档总数
- approvalNum: 0, // 待审批文档
- },
- fireInfo: {
- tempMax: 29,
- fireWarnLevel: 1001,
- bundletubeInfo: {
- typeName: '束管',
- maxValueInstallPos: '31310采空区50m',
- tempMax: 0,
- coval: '2.0',
- ch2val: '0.0',
- deviceType: 'bundletube_auto',
- warnLevel: 1001,
- maxValue: 2,
- o2val: '10.31',
- totalNum: 12,
- chval: '0.0',
- gasval: '0.0',
- time: '2024-05-31 16:34:04',
- isRun: '-2',
- co2val: '7.42',
- },
- smokeSensorInfo: {
- deviceType: 'modelsensor_smoke',
- tempMax: 0,
- warnLevel: 0,
- totalNum: 30,
- maxValue: 0,
- typeName: '烟雾传感器',
- maxValueInstallPos: '12煤井底停车场',
- },
- fiberInfo: {
- deviceType: 'fiber_normal',
- tempMax: 0,
- warnLevel: 0,
- totalNum: 4,
- maxValue: 25,
- typeName: '光纤测温',
- maxValueInstallPos: '31煤中央变电所电缆沟-通道一',
- },
- tempSensorInfo: {
- deviceType: 'modelsensor_temperature',
- tempMax: 29,
- warnLevel: 0,
- totalNum: 51,
- maxValue: 29,
- typeName: '温度传感器',
- maxValueInstallPos: '主通风机房配电室',
- },
- },
- gasInfo: {
- gasWarnLevel: 0, // 瓦斯风险等级
- gasTypeList: [
- {
- warnLevel: 0,
- num: 0,
- typeName: '/',
- },
- ],
- },
- ventInfo: {
- //通风系统信息
- totallength: 0, //矿井巷道总长度
- zonghuifeng: '0', //总回风
- fanMainList: [
- {
- sqzlfb: '/',
- strname: '/',
- strinstallpos: '/',
- Fan1m3: '/',
- Fan2m3: '/',
- },
- ],
- xufengliang: 0, //总需风量
- zongjinfeng: '/', //总进风
- },
- sys_warndata: {
- info: {
- sysInfo: {
- ventS: {
- maxLevel: 0,
- netstatus: 0,
- code: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- name: '/',
- count: 0,
- status: '/',
- maxLevel_status: '/',
- },
- fireS: {
- maxLevel: 0,
- code: '/',
- maxLevel_str: '/',
- count: 0,
- netstatus: 0,
- levelstatus: '/',
- name: '/',
- status: '/',
- maxLevel_status: '/',
- },
- synthesizeS: {
- maxLevel: 0,
- netstatus: 1,
- code: 'synthesizeS',
- levelstatus: '低风险',
- maxLevel_str: '正常',
- name: '综合',
- count: 0,
- status: '正常',
- maxLevel_status: '低风险',
- },
- dustS: {
- maxLevel: 0,
- netstatus: 0,
- code: 'dustS',
- levelstatus: '低风险',
- maxLevel_str: '正常',
- name: '防尘',
- count: 0,
- status: '正常',
- maxLevel_status: '低风险',
- },
- gasS: {
- maxLevel: 0,
- netstatus: 0,
- code: 'gasS',
- levelstatus: '低风险',
- maxLevel_str: '正常',
- devices: [],
- name: '瓦斯',
- count: 0,
- status: '正常',
- maxLevel_status: '低风险',
- },
- deviceWarnInfo: {
- maxLevel: 101,
- levelstatus: '低风险',
- maxLevel_str: '低风险预警',
- status: '异常',
- devMaxlevel_status: '低风险预警',
- },
- },
- },
- },
- warningInfo: {
- total: 5,
- vent: 1,
- ventRisk: '低风险',
- gas: 1,
- gasRisk: '低风险',
- dust: 1,
- dustRisk: '低风险',
- fire: 1,
- fireRisk: '低风险',
- safety: 1,
- safetyRisk: '低风险',
- maxLevel: 5,
- },
- orgname: '/',
- orgcode: '/',
- ip: 'localhost',
- };
- export type BillboardType = typeof DEFAULT_TEST_DATA;
|