Newer
Older
urbanLifeline_YanAn / src / views / DialogTabs / DialogConfig.js
@鲁yixuan 鲁yixuan on 16 Oct 1 KB updata
// 批量引入所有封装的子组件  component下组件为封装的公共组件  component下项目路径文件夹下的组件为定制化组件
const AllComponents = import.meta.globEager('./component/*.vue');
let res_components = {};
console.log(AllComponents);
Object.keys(AllComponents).forEach(item => {
  console.log(item);
  let comp = AllComponents[item];
  let name = comp.default.name;
  res_components[name] = comp.default;
});

const config = {
  ComparisonTable: [
    {
      title: '视频监控',
      content: markRaw(res_components['ShiPingJianKong']),
      name: 'spjk',
    },
    {
      title: '工单派发',
      content: markRaw(res_components['GongDanPaiFa']),
      name: 'gdpf',
    },
    {
      title: '管网剖面',
      content: markRaw(res_components['gwpm']),
      name: 'gwpm',
    },
    {
      title: '监测分析',
      content: markRaw(res_components['jcsj']),
      name: 'jcsj',
    },
    {
      title: '燃气档案',
      content: markRaw(res_components['RQ_JiChuDangAn']),
      name: 'RQ_JiChuDangAn',
    },
    {
      title: '风险',
      content: markRaw(res_components['RQ_FengXianJianCe']),
      name: 'RQ_FengXianJianCe',
    },
    {
      title: '智慧外呼提醒',
      content: markRaw(res_components['RQ_ZhiHuiWaiHu']),
      name: 'RQ_ZhiHuiWaiHu',
    },
    {
      title: '项目信息',
      content: markRaw(res_components['xxinformation']),
      name: 'xxinformation',
    },

    {
      title: '超控制常水位',
      content: markRaw(res_components['PS_ckzcsw']),
      name: 'PS_ckzcsw',
    },

    {
      title: '燃气安全应急响应预警发布',
      content: markRaw(res_components['RQ_Warning']),
      name: 'RQ_Warning',
    },
  ],
};

export default config;