import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const complaints: AppRouteModule = {
  path: '/complaints',
  name: 'Complaints',
  component: LAYOUT,
  redirect: '/dashboard/await',
  meta: {
    hideChildrenInMenu: false,
    orderNo: 100,
    icon: 'ion:grid-outline',
    title: '投诉管理',
  },
  children: [
    {
      path: 'await',
      name: 'Await',
      component: () => import('/@/views/complaints/await.vue'),
      meta: {
        title: '待处理投诉',
      },
    },
    {
      path: 'doing',
      name: 'Doing',
      component: () => import('/@/views/complaints/doing.vue'),
      meta: {
        title: '处理中投诉',
      },
    },
    {
      path: 'did',
      name: 'did',
      component: () => import('/@/views/complaints/did.vue'),
      meta: {
        title: '已处理投诉',
      },
    },
    {
      path: 'detail',
      name: 'detail',
      component: () => import('/@/views/complaints/detail.vue'),
      meta: {
        title: '处理投诉',
        hideMenu: true,
      },
    },
  ],
};

export default complaints;
