import { resultSuccess } from '../_util';

const list = [
  {
    children: [
      {
        component: '/disaster/overview/PageOverview',
        id: 1025,
        meta: {
          activeMenu: null,
          alwaysShow: false,
          frameSrc: '',
          hidden: false,
          icon: 'OverviewIcon',
          isFrame: 0,
          isRoot: false,
          noCache: false,
          query: '',
          title: '总览',
        },
        name: '/disaster-prevention/overview',
        parentId: 1022,
        path: 'overview',
        redirect: '',
      },
      {
        component: '/disaster/monitor/PageMonitor',
        id: 1026,
        meta: {
          activeMenu: null,
          alwaysShow: false,
          frameSrc: '',
          hidden: false,
          icon: 'RiskPointMonitoringIcon',
          isFrame: 0,
          isRoot: false,
          noCache: false,
          query: '',
          title: '重点区域监测',
        },
        name: '/disaster-prevention/risk-point-monitoring',
        parentId: 1022,
        path: 'risk-point-monitoring',
        redirect: '',
      },
      {
        children: [
          {
            component: '/disaster/disaster-warning/PageWarningInfo',
            id: 1035,
            meta: {
              activeMenu: '/disaster-prevention/disaster-warning',
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '预警信息',
            },
            name: '/disaster-prevention/disaster-warning/warning-info',
            parentId: 1027,
            path: 'warning-info',
            redirect: '',
          },
          {
            component: '/disaster/disaster-warning/PageWarningInfoItem',
            id: 1036,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '预警信息详情',
            },
            name: '/disaster-prevention/disaster-warning/warning-info-item',
            parentId: 1027,
            path: 'warning-info-item',
            redirect: '',
          },
          {
            component: '/disaster/disaster-warning/PageDefenseNotice',
            id: 1037,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: false,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '防御通知',
            },
            name: '/disaster-prevention/disaster-warning/defense-notice',
            parentId: 1027,
            path: 'defense-notice',
            redirect: '',
          },
          {
            component: '/disaster/disaster-warning/PageDefenseNoticeItem',
            id: 1038,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '防御通知详情',
            },
            name: '/disaster-prevention/disaster-warning/defense-notice-item',
            parentId: 1027,
            path: 'defense-notice-item',
            redirect: '',
          },
        ],
        component: '',
        id: 1027,
        meta: {
          activeMenu: null,
          alwaysShow: false,
          frameSrc: '',
          hidden: false,
          icon: 'DisasterWarningIcon',
          isFrame: 0,
          isRoot: false,
          noCache: false,
          query: '',
          title: '灾害预警',
        },
        name: '/disaster-prevention/disaster-warning',
        parentId: 1022,
        path: 'disaster-warning',
        redirect: '',
      },
      {
        children: [
          {
            component: '/disaster/disaster-precaution/PageTaskManagement',
            id: 1029,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: false,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '任务管理',
            },
            name: '/disaster-prevention/disaster-precaution/task-management',
            parentId: 1028,
            path: 'task-management',
            redirect: '',
          },
          {
            component: '/disaster/disaster-precaution/PageTaskItem',
            id: 1033,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '任务列表详情',
            },
            name: '/disaster-prevention/disaster-precaution/task-item',
            parentId: 1028,
            path: 'task-item',
            redirect: '',
          },
          {
            component: '/disaster/disaster-precaution/PageTaskExecution',
            id: 1030,
            meta: {
              activeMenu: null,
              alwaysShow: false,
              frameSrc: '',
              hidden: false,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '任务执行',
            },
            name: '/disaster-prevention/disaster-precaution/task-execution',
            parentId: 1028,
            path: 'task-execution',
            redirect: '',
          },
          {
            component: '/disaster/disaster-precaution/PageTaskTemplate',
            id: 1031,
            meta: {
              activeMenu: '/disaster-prevention/disaster-precaution/task-execution',
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '任务模板',
            },
            name: '/disaster-prevention/disaster-precaution/task-template',
            parentId: 1028,
            path: 'task-template',
            redirect: '',
          },
          {
            component: '/todo/todo',
            id: 1032,
            meta: {
              activeMenu: '/disaster-prevention/disaster-precaution/task-template',
              alwaysShow: false,
              frameSrc: '',
              hidden: true,
              icon: '',
              isFrame: 0,
              isRoot: false,
              noCache: false,
              query: '',
              title: '任务模板详情',
            },
            name: '/disaster-prevention/disaster-precaution/template-detail',
            parentId: 1028,
            path: 'template-detail/:id',
            redirect: '',
          },
        ],
        component: '',
        id: 1028,
        meta: {
          activeMenu: null,
          alwaysShow: false,
          frameSrc: '',
          hidden: false,
          icon: 'DisasterPrecaution',
          isFrame: 0,
          isRoot: false,
          noCache: false,
          query: '',
          title: '预防检查',
          // OverviewIcon: renderSvg('overview'),
          // DisasterWarningIcon: renderSvg('disaster-warning'),
          // DisasterControlIcon: renderSvg('disaster-control'),
        },
        name: '/disaster-prevention/disaster-precaution',
        parentId: 1022,
        path: 'disaster-precaution',
        redirect: '',
      },
      {
        component: '/disaster/disaster-control/PageDisasterControl',
        id: 1032,
        meta: {
          activeMenu: null,
          alwaysShow: false,
          frameSrc: '',
          hidden: false,
          icon: 'DisasterControlIcon',
          isFrame: 0,
          isRoot: false,
          noCache: false,
          query: '',
          title: '灾害处置',
        },
        name: '/disaster-prevention/disaster-control',
        parentId: 1022,
        path: 'disaster-control',
        redirect: '',
      },
    ],
    component: 'MENU_LAYOUT',
    id: 1022,
    meta: {
      activeMenu: null,
      alwaysShow: false,
      frameSrc: '',
      hidden: false,
      icon: 'CameraOutlined',
      isFrame: 0,
      isRoot: false,
      noCache: false,
      query: '',
      title: '灾害防范',
    },
    name: 'DisasterPrevention',
    parentId: -1,
    path: '/disaster-prevention',
    redirect: '',
  },
];

export default [
  {
    url: '/safety_api/api/admin/menu/getRouters',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(list);
    },
  },
];
