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; // 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; // } // /** 看板的总配置 */ // 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, }, }, ];