import leftImg from '/@/assets/images/files/homes/file.svg'; import rightImg from '/@/assets/images/files/homes/sp.svg'; // export interface TITLE_CONFIG { // text: string; // prop: string; // translation?: Record; // default: string; // } // export interface HEADER_CONFIG { // label: string; // prop: string; // translation?: Record; // default: string; // } // export interface TABLE_CONFIG { // columns: { label: string; prop: string; _t?: boolean }[]; // collapses: { label: string; prop: string; _t?: boolean }[]; // translation?: Record; // default: string; // } // export interface CONTENT_CONFIG { // src: string; // text: string; // prop: string; // } // export interface TREE_CONFIG { // translation?: Record; // default: string; // prefix: string; // prop: string; // suffix: string; // children: { // prefix: string; // prop: string; // suffix: string; // }[]; // } // /** 看板的总配置 */ // export const BILLBOARD_CONFIG = { // 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: '', // }, // ], // }, // }, // }; // 基础的表格列配置,针对普通设备 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 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: '低风险预警', }, }, }, }, orgname: '/', orgcode: '/', ip: 'localhost', }; export type BillboardType = typeof DEFAULT_TEST_DATA;