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-model',
        text: '模型设计',
      },
      {
        name: 'model-config',
        text: '模型配置',
      },
      {
        name: 'asset-map',
        text: '资产地图',
      },
      {
        name: 'asset-manage',
        text: '资产管理',
      },
      {
        name: '1104-asset',
        text: '1104管理',
      },
      {
        name: 'asset-resource-browse',
        text: '资源浏览',
      },
      {
        name: 'asset-browse',
        text: '资产浏览'
      },
      {
        name: 'asset-recycle',
        text: '未挂载资产',
      },
      {
        name:'asset-draft',
        text:'资产草稿'
      },
      {
        name: 'asset-task',
        text: '资产盘点任务',
      }
    ]
  }
];

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