import { reactive, markRaw, defineAsyncComponent } from 'vue'; import { getAssetURL } from '/@/utils/ui'; import { useGlobSetting } from '/@/hooks/setting'; //中间区域数据-通风 export const centerAreaListT1 = [ { id: 0, label: '进风量(m³/min)' }, { id: 1, label: '回风量(m³/min)' }, { id: 2, label: '需风量(m³/min)' }, ]; //中间区域底部数据-通风 export const centerAreaListB1 = [ { id: 0, content: '', }, { id: 1, content: '', }, { id: 2, content: '', }, ]; //内外因火灾菜单列表 export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' }, { name: '火灾指标' }]; //瓦斯监测菜单列表 export function getMonitorComponent() { const { sysOrgCode } = useGlobSetting(); let typeMenuListGas; switch (sysOrgCode) { case 'sdmtjtdltmk': //大柳塔 typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' },]; return typeMenuListGas; default: typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' }, { name: '瓦斯参数' },]; return typeMenuListGas; } } //当前加载组件 export const componentName = { fireWork: markRaw(defineAsyncComponent(() => import('./common/fireWork.vue'))), closeWall: markRaw(defineAsyncComponent(() => import('./common/closeWall.vue'))), mainWell: markRaw(defineAsyncComponent(() => import('./common/mainWell.vue'))), warnFireBrt: markRaw(defineAsyncComponent(() => import('./common/warnFire-brt.vue'))), warnFireBd: markRaw(defineAsyncComponent(() => import('./common/warnFire-bd.vue'))), }; //顶部区域数据 export const topList = [ { id: 0, label: '最高温度(°C)', imgSrc: true, value: '--', text: '', list: [], }, { id: 1, label: '最低温度(°C)', imgSrc: true, value: '--', text: '', list: [], }, { id: 2, label: '平均温度(°C)', imgSrc: true, value: '--', text: '', list: [], }, { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] }, { id: 4, imgSrc: false, label: '回风隅角', value: null, text: '', list: [ { id: 0, label: 'O₂', value: 0 }, { id: 1, label: 'CO', value: 0 }, ], }, ]; export const ventilateTopList = [ { id: 0, label: '进风量(m³/min)', imgSrc: true, value: '--', text: '', list: [], }, { id: 1, label: '回风量(m³/min)', imgSrc: true, value: '--', text: '', list: [], }, { id: 2, label: '需风量(m³/min)', imgSrc: true, value: '--', text: '', list: [], }, { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] }, // { // id: 4, // imgSrc: false, // label: '其他信息', // value: null, // text: '', // list: [ // { id: 0, label: 'O₂', value: '--' }, // { id: 1, label: 'CO', value: '--' }, // ], // }, ]; //束管监测选项列表 export const contentList = [ { id: 0, list: [ { id: '0-0', title: 'O₂', dw: '(%)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, { id: '0-1', title: 'C₂H₄', dw: '(ppm)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, ], }, { id: 1, list: [ { id: '1-0', title: 'CO', dw: '(ppm)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, { id: '1-1', title: 'CH₄', dw: '(ppm)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, ], }, { id: 2, list: [ { id: '2-0', title: 'CO₂', dw: '(%)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, { id: '2-1', title: 'C₂H₂', dw: '(ppm)', label: '浓度 : ', value: '--', label1: '时间 : ', time: '--', }, ], }, ]; //外因火灾-工作面顶部区域数据 export const topOutList = [ { id: 0, imgSrc: true, label: '最高温度(°C)', value: '0', text: '', }, { id: 1, imgSrc: true, label: '最低温度(°C)', value: '0', text: '', }, { id: 2, imgSrc: true, label: '平均温度(°C)', value: '0', text: '', }, { id: 3, imgSrc: false, label: '', value: null, text: '' }, // { // id: 4, // imgSrc: false, // label: '', // value: null, // text: '井下消防材料库', // }, ]; //外因火灾-中间区域标题数据 export const tabList = [ { id: 0, label: '烟雾传感器监测', details: '设备类型名称' }, { id: 1, label: '一氧化碳传感器监测', details: '设备类型名称' }, { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' }, ]; export const tabLists = [ { id: 0, label: '烟雾传感器监测', details: '设备类型名称' }, { id: 1, label: '温度传感器监测', details: '设备类型名称' }, { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' }, { id: 3, label: '一氧化碳传感器监测', details: '设备类型名称' }, ]; //外因火灾-传感器table列 export const columns = [ { title: '序号', dataIndex: '', key: 'rowIndex', width: 60, align: 'center', customRender: ({ index }) => { return `${index + 1}`; }, }, { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' }, { rowIndex: 2, dataIndex: 'warnLevel_str',width:80, title: '状态', type: '1', align: 'center' }, { rowIndex: 3, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' }, ]; //外因火灾-烟雾传感器table列 export const columnsSmoke = [ { title: '序号', dataIndex: '', key: 'rowIndex', width: 60, align: 'center', customRender: ({ index }) => { return `${index + 1}`; }, }, { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' }, { rowIndex: 2, dataIndex: 'val', width:80, title: '值', type: '1', align: 'center' }, { rowIndex: 3, dataIndex: 'warnLevel_str', width:80,title: '状态', type: '1', align: 'center' }, { rowIndex: 4, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' }, ];