123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831 |
- 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';
- import NetworkIcon from '/@/assets/images/vent/dust-risk-icon-1.png';
- import DeviceIcon from '/@/assets/images/vent/dust-risk-icon-2.png';
- import LevelChartIcon from '/@/assets/images/vent/dust-risk-icon-3.png';
- import PointIcon from '/@/assets/images/vent/dust-risk-icon-4.png';
- import AlertIcon from '/@/assets/images/vent/dust-risk-icon-5.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: 'totalIntM3',
- // prop: 'zongjinfeng',
- type: 'blue-to-left',
- },
- {
- label: '总回风量(m³/min)',
- prop: 'totalRetM3',
- // prop: 'zonghuifeng',
- type: 'green-to-right',
- },
- {
- label: '总需风量(m³/min)',
- prop: 'totalPlanM3',
- // 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: '风机排风量:',
- prop: 'flow_merge',
- suffix: '(m³/min)',
- },
- {
- prefix: '风机风压:',
- prop: 'fy_merge',
- suffix: '(Pa)',
- },
- {
- prefix: '外部漏风率:',
- prop: 'leakage',
- suffix: '%',
- },
- {
- 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: '监测总数', prop1: 'allNum', prop2: 'maxLevel', id: 'warning_cfg_000' },
- { src: SafetyIcon, text: '安全监测', prop1: 'synthesizeSWarnInfo.totalNum', prop2: 'synthesizeSWarnInfo.maxWarnLevel', id: 'warning_cfg_005' },
- { src: VentIcon, text: '通风', prop1: 'ventSWarnInfo.totalNum', prop2: 'ventSWarnInfo.maxWarnLevel', id: 'warning_cfg_004' },
- { src: DustIcon, text: '粉尘', prop1: 'dustSWarnInfo.totalNum', prop2: 'dustSWarnInfo.maxWarnLevel', id: 'warning_cfg_003' },
- { src: GasIcon, text: '瓦斯', prop1: 'gasSWarnInfo.totalNum', prop2: 'gasSWarnInfo.maxWarnLevel', id: 'warning_cfg_001' },
- { src: FireIcon, text: '火灾', prop1: 'fireSWarnInfo.totalNum', prop2: 'fireSWarnInfo.maxWarnLevel', id: 'warning_cfg_002' },
- ];
- // 粉尘预警相关的内容配置项
- export const DUST_RISK_CONFIG = [
- { src: LevelChartIcon, text: '风险等级', prop: 'fxdj', id: 'dust_risk_cfg_005' },
- { src: PointIcon, text: '测点数', prop: 'cds', id: 'dust_risk_cfg_004' },
- { src: NetworkIcon, text: '在线测点数', prop: 'zxcds', id: 'dust_risk_cfg_003' },
- { src: AlertIcon, text: '测点报警数', prop: 'cdbjs', id: 'dust_risk_cfg_001' },
- { src: DeviceIcon, text: '降尘设备数', prop: 'jcsbs', id: 'dust_risk_cfg_002' },
- ];
- export const DEFAULT_TEST_DATA = {
- dustInfo: {
- // 矿井粉尘风险信息
- totalNum: '/',
- dustTypeList: [
- {
- deviceType: '/',
- warnLevel: '/',
- num: '/',
- typeName: '/',
- },
- ],
- dustWarnLevel: '/', // 矿井粉尘风险性等级
- },
- fileServerInfo: {
- totalNum: '/', // 文档总数
- approvalNum: '/', // 待审批文档
- },
- warnInfo: {
- ventSWarnInfo: {
- totalNum: '/',
- maxWarnLevel: '/',
- },
- gasSWarnInfo: {
- totalNum: '/',
- maxWarnLevel: '/',
- },
- dustSWarnInfo: {
- totalNum: '/',
- maxWarnLevel: '/',
- },
- synthesizeSWarnInfo: {
- totalNum: '/',
- maxWarnLevel: '/',
- },
- fireSWarnInfo: {
- totalNum: '/',
- maxWarnLevel: '/',
- },
- allNum: '/',
- maxLevel: '/',
- },
- fireInfo: {
- tempMax: '/',
- fireWarnLevel: '/',
- bundletubeInfo: {
- typeName: '/',
- maxValueInstallPos: '/',
- tempMax: '/',
- coval: '/',
- ch2val: '/',
- deviceType: '/',
- warnLevel: '/',
- maxValue: '/',
- o2val: '/',
- totalNum: '/',
- chval: '/',
- gasval: '/',
- time: '/',
- isRun: '/',
- co2val: '/',
- },
- smokeSensorInfo: {
- deviceType: '/',
- tempMax: '/',
- warnLevel: '/',
- totalNum: '/',
- maxValue: '/',
- typeName: '/',
- maxValueInstallPos: '/',
- },
- fiberInfo: {
- deviceType: '/',
- tempMax: '/',
- warnLevel: '/',
- totalNum: '/',
- maxValue: '/',
- typeName: '/',
- maxValueInstallPos: '/',
- },
- tempSensorInfo: {
- deviceType: '/',
- tempMax: '/',
- warnLevel: '/',
- totalNum: '/',
- maxValue: '/',
- typeName: '/',
- maxValueInstallPos: '/',
- },
- },
- gasInfo: {
- gasWarnLevel: '/', // 瓦斯风险等级
- gasTypeList: [
- {
- warnLevel: '/',
- num: '/',
- typeName: '/',
- maxValueInstallPos: null,
- maxValue: null,
- },
- ],
- },
- ventInfo: {
- //通风系统信息
- totallength: '/', //矿井巷道总长度
- zonghuifeng: '/', //总回风
- fanMainList: [],
- xufengliang: '/', //总需风量
- zongjinfeng: '/', //总进风
- },
- sys_warndata: {
- info: {
- sysInfo: {
- ventS: {
- maxLevel: '/',
- netstatus: '/',
- code: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- name: '/',
- count: '/',
- status: '/',
- maxLevel_status: '/',
- },
- fireS: {
- maxLevel: '/',
- code: '/',
- maxLevel_str: '/',
- count: '/',
- netstatus: '/',
- levelstatus: '/',
- name: '/',
- status: '/',
- maxLevel_status: '/',
- },
- synthesizeS: {
- maxLevel: '/',
- netstatus: 1,
- code: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- name: '/',
- count: '/',
- status: '/',
- maxLevel_status: '/',
- },
- dustS: {
- maxLevel: '/',
- netstatus: '/',
- code: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- name: '/',
- count: '/',
- status: '/',
- maxLevel_status: '/',
- },
- gasS: {
- maxLevel: '/',
- netstatus: '/',
- code: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- devices: [],
- name: '/',
- count: '/',
- status: '/',
- maxLevel_status: '/',
- },
- deviceWarnInfo: {
- maxLevel: '/',
- levelstatus: '/',
- maxLevel_str: '/',
- status: '/',
- devMaxlevel_status: '/',
- },
- },
- },
- },
- dustRisk: {
- fxdj: '/',
- cds: '/',
- zxcds: '/',
- cdbjs: '/',
- jcsbs: '/',
- },
- orgname: '加载中...',
- orgcode: '/',
- ip: 'localhost',
- };
- export type BillboardType = typeof DEFAULT_TEST_DATA;
- export const mockSHENDONG = [
- {
- code: 'sdmtjtltmk',
- orgname: '柳塔矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 5,
- zxcds: 5,
- cdbjs: 0,
- jcsbs: 12,
- },
- },
- {
- code: 'sdmtjtcctrk',
- orgname: '寸草塔二矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 7,
- zxcds: 7,
- cdbjs: 0,
- jcsbs: 10,
- },
- },
- {
- code: 'sdmtjtbetmk',
- orgname: '布尔台矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 5,
- zxcds: 5,
- cdbjs: 0,
- jcsbs: 10,
- },
- },
- {
- code: 'sdmtjtwlmlmk',
- orgname: '乌兰木伦矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 8,
- zxcds: 7,
- cdbjs: 0,
- jcsbs: 15,
- },
- },
- {
- code: 'sdmtjtcctmk',
- orgname: '寸草塔矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 10,
- zxcds: 9,
- cdbjs: 2,
- jcsbs: 16,
- },
- },
- {
- code: 'sdmtjtsgtmk',
- orgname: '石圪台矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 6,
- zxcds: 6,
- cdbjs: 0,
- jcsbs: 12,
- },
- },
- {
- code: 'sdmtjtbltmk',
- orgname: '补连塔矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 9,
- zxcds: 9,
- cdbjs: 0,
- jcsbs: 16,
- },
- },
- {
- code: 'sdmtjthlgmk',
- orgname: '哈拉沟矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 11,
- zxcds: 10,
- cdbjs: 0,
- jcsbs: 25,
- },
- },
- {
- code: 'sdmtjtswmk',
- orgname: '上湾矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 6,
- zxcds: 6,
- cdbjs: 0,
- jcsbs: 10,
- },
- },
- {
- code: 'sdmtjtdltmkhjtj',
- orgname: '活鸡兔井',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 7,
- zxcds: 7,
- cdbjs: 0,
- jcsbs: 10,
- },
- },
- {
- code: 'sdmtjtdltmk',
- orgname: '大柳塔井',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 4,
- zxcds: 4,
- cdbjs: 1,
- jcsbs: 10,
- },
- },
- {
- code: 'sdmtjtjjmk',
- orgname: '锦界矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 78,
- zxcds: 0,
- cdbjs: 0,
- jcsbs: 23,
- },
- },
- {
- code: 'sdmtjtyjlmk',
- orgname: '榆家梁矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 31,
- zxcds: 2,
- cdbjs: 1,
- jcsbs: 46,
- },
- },
- {
- code: 'sdmtjtbdmk',
- orgname: '保德矿',
- ip: '',
- dustRisk: {
- fxdj: '低',
- cds: 53,
- zxcds: 22,
- cdbjs: 1,
- jcsbs: 11,
- },
- },
- ];
|