// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import BasicLayout from '@/layouts/basic-layout';
import Setting from "@/setting";

const pre = 'check_';

export default {
    path: `${Setting.routePre}/check/`,
    name: 'check',
    header: 'check',
    meta: {
        // 授权标识
        auth: ['store-check']
    },
    redirect: {
        name: `${pre}ruleIndex`
    },
    component: BasicLayout,
    children: [
        {
            path: 'rule/index',
            name: `${pre}ruleIndex`,
            meta: {
                auth: ['store-check-rule-index'],
                title: '打卡规则列表'
            },
            component: () => import('@/pages/check/rule/index')
        },
        {
            path: 'rule/add',
            name: `${pre}ruleAdd`,
            meta: {
                auth: ['store-check-rule-add'],
                title: '规则添加'
            },
            component: () => import('@/pages/check/rule/add')
        },
  //       {
  //           path: 'classes/index',
  //           name: `${pre}classesIndex`,
  //           meta: {
  //               auth: ['store-check-classes-index'],
  //               title: '考勤组列表'
  //           },
  //           component: () => import('@/pages/check/classes/index')
  //       },
		// {
		//     path: 'classes/add',
		//     name: `${pre}classesAdd`,
		//     meta: {
		//         auth: ['store-check-classes-add'],
		//         title: '考勤组列表'
		//     },
		//     component: () => import('@/pages/check/classes/add')
		// },
		{
		    path: 'staff/index',
		    name: `${pre}staffIndex`,
		    meta: {
		        auth: ['store-check-staff-index'],
		        title: '员工列表'
		    },
		    component: () => import('@/pages/check/staff/index')
		},
		// {
		//     path: 'staff/add',
		//     name: `${pre}classAdd`,
		//     meta: {
		//         auth: ['store-check-staff-add'],
		//         title: '添加员工'
		//     },
		//     component: () => import('@/pages/check/staff/add')
		// },
    ]
};
