// 批量引入所有封装的子组件 component下组件为封装的公共组件 component下项目路径文件夹下的组件为定制化组件 const AllComponents = import.meta.globEager('./component/*.vue'); let res_components = {}; // console.log('.???', AllComponents); Object.keys(AllComponents).forEach(item => { let comp = AllComponents[item]; let name = comp.default.name; res_components[name] = comp.default; }); const config = { ComparisonTable: [ { title: '基础信息', content: markRaw(res_components['JichuXinxi']), name: 'JichuXinxi', }, { title: '管网信息', content: markRaw(res_components['PointAndLine']), name: 'PointAndLine', }, { title: '监测信息', content: markRaw(res_components['jiancexinxi']), name: 'jiancexinxi', }, { title: '监测信息', content: markRaw(res_components['jianceEcharts']), name: 'jianceEcharts', }, { title: '视频监控', content: markRaw(res_components['shipingjiankong']), name: 'shipingjiankong', }, { title: '污染溯源', content: markRaw(res_components['wuransuyuan']), name: 'wuransuyuan', }, { title: '水务元素', content: markRaw(res_components['shuiwuyuansu']), name: 'shuiwuyuansu', }, { title: '人工水质', content: markRaw(res_components['rengongshuizhi']), name: 'rengongshuizhi', }, { title: '实时工况', content: markRaw(res_components['bengzhangongkuang']), name: 'bengzhangongkuang', }, { title: '排口详情', content: markRaw(res_components['paikouxiangqing']), name: 'paikouxiangqing', }, { title: '雨量监测', content: markRaw(res_components['yuliangjiance']), name: 'yuliangjiance', }, { title: '管网剖面', content: markRaw(res_components['guanwangpoumian']), name: 'guanwangpoumian', }, // 监测分析特有 { title: '水质异常分析', content: markRaw(res_components['szycfxJCFX']), name: 'szycfxJCFX', }, { title: '淤堵风险分析', content: markRaw(res_components['ydfxfxJCFX']), name: 'ydfxfxJCFX', }, { title: '雨水注入分析', content: markRaw(res_components['yszrfxJCFX']), name: 'yszrfxJCFX', }, { title: '溢流分析', content: markRaw(res_components['ylfxJCFX']), name: 'ylfxJCFX', }, { title: '地下水入渗分析', content: markRaw(res_components['dxssrfxJCFX']), name: 'dxssrfxJCFX', }, { title: '污水注入分析', content: markRaw(res_components['wszrfxJCFX']), name: 'wszrfxJCFX', }, // 物资仓库表格数据 { title: '数据信息', content: markRaw(res_components['wuzicangku']), name: 'wuzicangku', }, { title: '堤防备料', content: markRaw(res_components['difangbeiliaoinfo']), name: 'difangbeiliaoinfo', }, { title: '监测分析', content: markRaw(res_components['jiancefenxiZSFX']),//渍水点监测分析 name: 'jiancefenxiZSFX', }, { title: '监测分析', content: markRaw(res_components['jiancefenxiGWFX']),//管网数据分析 name: 'jiancefenxiGWFX', }, { title: '监测分析', content: markRaw(res_components['jiancefenxiBZ']),//泵站分析 name: 'jiancefenxiBZ', }, { title: '泵站档案信息', content: markRaw(res_components['bengzhandanganfenxi']),//泵站档案信息 name: 'bengzhandanganfenxi', }, { title: '河湖档案', content: markRaw(res_components['hehudangan']),//河湖档案 name: 'hehudangan', }, { title: '流域介绍', content: markRaw(res_components['liuyujieshaoHeHu']),//流域介绍 name: 'liuyujieshaoHeHu', }, { title: '关联监测', content: markRaw(res_components['guanlianjianceHeHu']),//关联监测 name: 'guanlianjianceHeHu', }, { title: '雨水系统', content: markRaw(res_components['yushuixitongHeHu']),//雨水系统 name: 'yushuixitongHeHu', }, { title: '污水系统', content: markRaw(res_components['wushuixitongHeHu']),//污水系统 name: 'wushuixitongHeHu', }, { title: '历史水文', content: markRaw(res_components['lishishuiwenHeHu']),//历史水文 name: 'lishishuiwenHeHu', }, { title: '风险点周边视频', content: markRaw(res_components['peripheralVideo']), name: 'peripheralVideo', }, { title: '风险点档案信息', content: markRaw(res_components['fengxiandiandanganxinxi']), name: 'fengxiandiandanganxinxi', }, { title: '周边街景', content: markRaw(res_components['zhoubianjiejing']), name: 'zhoubianjiejing', }, ], }; export default config;