import { ConvertToRouteMap } from './util';

export const routes = [
  {
    name: 'home',
    text: '首页',
    icon: 'home',
  },
  {
    name: 'manage',
    text: '数据管理',
    redirect: 'asset-map',
    children: [
      {
        name: 'datasource-manage',
        text: '数据源管理',
      },
      {
        name: 'data-service',
        text: '服务管理',
      },
      {
        name: 'data-model',
        text: '模型设计',
      },
      {
        name: 'model-config',
        text: '模型配置',
      },
      {
        name: 'asset-draft',
        text: '资产草稿',
      },
      {
        name: 'asset-manage',
        text: '资产管理',
      },
      {
        name: 'asset-browse',
        text: '资产浏览'
      },
      {
        name: 'asset-task',
        text: '资产盘点任务',
      },
      {
        name: 'asset-evaluate',
        text: '资产评估',
      },
    ]
  }
];

export const routeMap = ConvertToRouteMap(routes, null, null);