import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

const pathUrl = '/headResponsibility'

import Layout from '@/components/Layout/layout.vue'
//粮食安全行政盟市长责任制
import management from '@/views/headResponsibility/management'
import managementAdd from '@/views/headResponsibility/management/add'
import managementSee from '@/views/headResponsibility/management/see'
import managementEdit from '@/views/headResponsibility/management/edit'
import managementSave from '@/views/headResponsibility/management/add/save.vue'
import assessmentOfCity from '@/views/headResponsibility/assessmentOfCity'
import scoringWeight from '@/views/headResponsibility/scoringWeight'
import scoringWeightAdd from '@/views/headResponsibility/scoringWeight/add'
import scoringWeightEdit from '@/views/headResponsibility/scoringWeight/edit'
import scoringWeightSee from '@/views/headResponsibility/scoringWeight/see'
import assessmentOfCityAdd from '@/views/heazzzzzzzzzzdResponsibility/assessmentOfCity/add'
import assessmentOfCityEdit from '@/views/headResponsibilitzy/assessmentOfCity/edit'
import assessmentOfCitySee from '@/views/headResponsibility/assessmentOfCity/see'
import cityEntry from '@/views/headResponsibility/cityEntry'
import cityEntryAdd from '@/views/headResponsibility/cityEntry/add'
import cityEntrySee from '@/views/headResponsibility/cityEntry/see'
import cityKhjdList from '@/views/headResponsibility/assessment'
import cityList from '@/views/headResponsibility/assessment/cityList'
import cityInfoSee from '@/views/headResponsibility/assessment/see'
import assessmentList from '@/views/headResponsibility/cityPf'


const login = () =>
    import ('@/views/login.vue')
export default new Router({
    history: true,
    routes: [{
            path: '/login',
            component: login,
            hidden: true
        },
        //粮食安全行政盟市长责任制
        {
            path: '/',
            component: Layout,
            redirect: `/headResponsibility`,
            hidden: true,
            meta: {
                title: '安全行政盟市长责任制',
                icon: 'example'
            },
            children: [{
                path: `${pathUrl}`,
                component: {
                    render(c) {
                        return c('router-view')
                    }
                },
                name: '安全行政盟市长责任制1',
                meta: {
                    title: '安全行政盟市长责任制1',
                    icon: 'example'
                },
                children: [
                    {
                        path: 'management',
                        name: '评分表管理',
                        component: management,
                        meta: {
                            title: '评分表管理',
                            icon: 'form'
                        }
                    }, {
                        path: 'managementAdd',
                        name: '导入评分表',
                        component: managementAdd,
                        meta: {
                            title: '导入评分表',
                            icon: 'form'
                        }
                    }, {
                        path: 'managementSee',
                        name: '导入评分表',
                        component: managementSee,
                        meta: {
                            title: '导入评分表',
                            icon: 'form'
                        }
                    },
                    {
                        path: 'managementEdit',
                        name: '编辑评分表',
                        component: managementEdit,
                        meta: {
                            title: '编辑评分表',
                            icon: 'form'
                        }
                    },
                    {
                        path: 'managementSave',
                        name: '新增评分表',
                        component: managementSave,
                        meta: {
                            title: '新增评分表',
                            icon: 'form'
                        }
                    }, {
                        path: 'assessmentOfCity',
                        name: '制定盟市考核任务',
                        component: assessmentOfCity,
                        meta: {
                            title: '制定盟市考核任务',
                            icon: 'form'
                        }
                    }, {
                        path: 'scoringWeight',
                        name: '实施细则管理',
                        component: scoringWeight,
                        meta: {
                            title: '实施细则管理',
                            icon: 'form'
                        }
                    }, {
                        path: 'scoringWeightAdd',
                        name: '实施细则管理新增',
                        component: scoringWeightAdd,
                        meta: {
                            title: '实施细则管理新增',
                            icon: 'form'
                        }
                    }, {
                        path: 'scoringWeightEdit',
                        name: '实施细则管理新增',
                        component: scoringWeightEdit,
                        meta: {
                            title: '实施细则管理修改',
                            icon: 'form'
                        }
                    },  {
                        path: 'scoringWeightSee',
                        name: '实施细则管理新增',
                        component: scoringWeightSee,
                        meta: {
                            title: '实施细则管理查看',
                            icon: 'form'
                        }
                    },  {
                        path: 'assessmentOfCityAdd',
                        name: '制定盟市考核任务新增',
                        component: assessmentOfCityAdd,
                        meta: {
                            title: '制定盟市考核任务新增',
                            icon: 'form'
                        }
                    },{
                        path: 'assessmentOfCityEdit',
                        name: '制定盟市考核任务修改',
                        component: assessmentOfCityEdit,
                        meta: {
                            title: '制定盟市考核任务修改',
                            icon: 'form'
                        }
                    },{
                        path: 'assessmentOfCitySee',
                        name: '制定盟市考核任务新增查看',
                        component: assessmentOfCitySee,
                        meta: {
                            title: '制定盟市考核任务查看',
                            icon: 'form'
                        }
                    }, {
                        path: 'cityEntry',
                        name: '盟市评分表结果录入',
                        component: cityEntry,
                        meta: {
                            title: '盟市评分表结果录入',
                            icon: 'form'
                        }
                    }, {
                        path: 'cityEntryAdd',
                        name: '盟市评分表结果录入',
                        component: cityEntryAdd,
                        meta: {
                            title: '盟市评分表结果录入',
                            icon: 'form'
                        }
                    },  {
                        path: 'cityEntrySee',
                        name: '盟市评分表结果录入查询',
                        component: cityEntrySee,
                        meta: {
                        title: '盟市评分表结果录入查询',
                        icon: 'form'
                        }
                    },{
                        path: 'cityKhjdList',
                        name: '盟市考核进度',
                        component: cityKhjdList,
                        meta: {
                            title: '盟市考核进度列表',
                            icon: 'form'
                        }
                    },{
                        path: 'cityList',
                        name: '盟市考核进度明细列表',
                        component: cityList,
                        meta: {
                        title: '盟市考核进度明细列表',
                        icon: 'form'
                        }
                    },{
                        path: 'cityInfoSee',
                        name: '盟市考核进度明细信怎',
                        component: cityInfoSee,
                        meta: {
                        title: '盟市考核进度明细信怎',
                        icon: 'form'
                        }
                    },{
                        path: 'assessmentList',
                        name: '考核领导小组列表',
                        component: assessmentList,
                        meta: {
                        title: '盟市考核进度明细信怎',
                        icon: 'form'
                        }
                    }
                ]}
            ]
        }
        //end粮食安全行政盟市长责任制
    ]
})