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

const pathUrl = '/accountability'

import Layout from '@/components/Layout/layout.vue'
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/headResponsibility/assessmentOfCity/add'
import assessmentOfCityEdit from '@/views/headResponsibility/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.vue'
import cityInfoSee from '@/views/headResponsibility/assessment/see'
import assessmentList from '@/views/headResponsibility/cityPf'
import management from '@/views/headResponsibility/management'
import managementAdd from '@/views/headResponsibility/management/add'
import managementCopy from '@/views/headResponsibility/management/copy'
import managementUpload from '@/views/headResponsibility/management/upload'
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 infoManager from '@/views/headResponsibility/infoManager'
import infoUsing from '@/views/headResponsibility/infoManager/infoUsing'
import infoManagerAdd from '@/views/headResponsibility/infoManager/infoManagerAdd'
import infoManagerSee from '@/views/headResponsibility/infoManager/infoManagerSee'
//外部单位用户管理
import userManager from '@/views/headResponsibility/userManager'
import userManagerAdd from '@/views/headResponsibility/userManager/userManagerAdd'
import userManagerSee from '@/views/headResponsibility/userManager/userManagerSee'
// 省级任务考查询模块
import assessmentQuery from '@/views/headResponsibility/assessmentTaskQuery'
import assessmentQuerySee from '@/views/headResponsibility/assessmentTaskQuery/see'
import assessmentQueryDetail from '@/views/headResponsibility/assessmentTaskQuery/detail'
//市级考核结果查看
import cityCheckResult from '@/views/headResponsibility/cityCheckResult'
import cityCheckResultSee from '@/views/headResponsibility/cityCheckResult/cityCheckResultSee'
import cityCheckResultDetail from '@/views/headResponsibility/cityCheckResult/cityCheckResultDetail.vue'
//抽查结果查看
import selectResult from '@/views/headResponsibility/selectResult'
import selectResultSee from '@/views/headResponsibility/selectResult/selectResultSee'
import selectResultDetail from '@/views/headResponsibility/selectResult/selectResultDetail'
//区级任务填报设置
import taskReporting from '@/views/headResponsibility/taskReporting'
import taskReportingAdd from '@/views/headResponsibility/taskReporting/add'
import taskReportingEdit from '@/views/headResponsibility/taskReporting/edit'
import taskReportingSee from '@/views/headResponsibility/taskReporting/see'

//区级任务填报设置
import taskAudit from '@/views/headResponsibility/taskAudit'
import taskAuditEdit from '@/views/headResponsibility/taskAudit/edit'

//自审
import selfAudit from  '@/views/headResponsibility/selfAudit/index'//
import selfAuditDetail from  '@/views/headResponsibility/selfAudit/detail'
import selfAuditEdit from  '@/views/headResponsibility/selfAudit/edit'

//信息管理
import informationManagement  from '@/views/headResponsibility/informationManagement/index'//盟市级
import informationManagementsheng  from '@/views/headResponsibility/informationManagementsheng/index'//省级

import areaAssessmentQuery from '@/views/headResponsibility/areaAssessmentTaskQuery'
import areaAssessmentQuerySee from '@/views/headResponsibility/areaAssessmentTaskQuery/see'
import areaAssessmentQueryDetail from '@/views/headResponsibility/areaAssessmentTaskQuery/detail'


//考核表管理
import assessmentFormMan from '@/views/evaluationMan/assessmentFormMan'
import assessmentFormManDetail from '@/views/evaluationMan/assessmentFormMan/detail'
import assessmentFormManPush from '@/views/evaluationMan/assessmentFormMan/push'
//区级评价
import districtEvaluation from '@/views/evaluationMan/districtEvaluation/index'
import districtEvaluationDetail from '@/views/evaluationMan/districtEvaluation/detail'
import cityEvaluation from '@/views/evaluationMan/cityEvaluation/index'
import cityEvaluationDetail from '@/views/evaluationMan/cityEvaluation/detail'
//汇总表管理
import summaryManage from '@/views/evaluationMan/summaryManage/index'
import summaryManageDetail from '@/views/evaluationMan/summaryManage/detail'
//企业自评表
import qyzpbComponent from '@/views/evaluationMan/component/qyzpb'

const login = () =>
    import('@/views/login.vue')
export default new Router({
    history: true,
    routes: [
      {
        path: '/login',
        component: login,
        hidden: true
      },
      {
        path: `${pathUrl}`,
        component: Layout,
        // redirect: `/accountability`,
        hidden: true,
        name: '粮食安全区长责任制考核',
        meta: {
            title: '粮食安全区长责任制考核',
            icon: 'example'
        },
        children: [
          {
            path: `${pathUrl}`,
            component: {
                render(c) {
                    return c('router-view')
                }
            },
            name: '市级任务分配管理',
            meta: {
                title: '市级任务分配管理',
                icon: 'example'
            },
            children: [
                {
                    path: `${pathUrl}/management`,
                    name: '评分表设置',
                    component:management,
                    meta: {
                        title: '评分表设置',
                        icon: 'form'
                    }
                }, {
                    path: `${pathUrl}/managementAdd`,
                    name: '导入评分表',
                    component: managementAdd,
                    meta: {
                        title: '导入评分表',
                        icon: 'form'
                    }
                },
                 {
                  path: `${pathUrl}/managementCopy`,
                  name: '复制评分表',
                  component: managementCopy,
                  meta: {
                      title: '复制评分表',
                      icon: 'form'
                  }
              },
                {
                  path: `${pathUrl}/managementUpload`,
                  name: '导入评分表',
                  component: managementUpload,
                  meta: {
                      title: '导入评分表',
                      icon: 'form'
                  }
              },
                {
                    path: `${pathUrl}/managementSee`,
                    name: '查看评分表',
                    component:managementSee,
                    meta: {
                        title: '查看评分表',
                        icon: 'form'
                    }
                },
                {
                    path: `${pathUrl}/managementEdit`,
                    name: '编辑评分表',
                    component:managementEdit,
                    meta: {
                        title: '编辑评分表',
                        icon: 'form'
                    }
                },
                {
                    path: `${pathUrl}/managementSave`,
                    name: '新增评分表',
                    component:managementSave,
                    meta: {
                        title: '新增评分表',
                        icon: 'form'
                    }
                },

                {
                    path: `${pathUrl}/scoringWeight`,
                    name: '评分表时间设置',
                    component:scoringWeight,
                    meta: {
                        title: '评分表时间设置',
                        icon: 'form'
                    }
                }, {
                    path: `${pathUrl}/scoringWeightAdd`,
                    name: '评分表时间设置新增',
                    component:scoringWeightAdd,
                    meta: {
                         title: '评分表时间设置新增',
                         icon: 'form'
                    }
                }, {
                    path: `${pathUrl}/scoringWeightEdit`,
                    name: '评分表时间设置修改',
                    component: scoringWeightEdit,
                    meta: {
                         title: '评分表时间设置修改',
                         icon: 'form'
                    }
                },  {
                    path: `${pathUrl}/scoringWeightSee`,
                    name: '评分表时间设置查看',
                    component:scoringWeightSee,
                    meta: {
                        title: '评分表时间设置查看',
                        icon: 'form'
                    }
                },  {
                    path: `${pathUrl}/assessmentOfCityAdd`,
                    name: '下发区级考核任务下发评分表',
                    component: assessmentOfCityAdd,
                    meta: {
                        title: '下发区级考核任务下发评分表',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/assessmentOfCityEdit`,
                    name: '下发区级考核任务修改',
                    component:assessmentOfCityEdit,
                    meta: {
                        title: '下发区级考核任务修改',
                        icon: 'form'
                      }
                  },{
                    path: `${pathUrl}/assessmentOfCitySee`,
                    name: '区自评查看',
                    component: assessmentOfCitySee,
                    meta: {
                        title: '区自评查看',
                        icon: 'form'
                    }
                }, {
                    path: `${pathUrl}/cityEntry`,
                    name: '盟市评分表结果录入',
                    component: cityEntry,
                    meta: {
                        title: '盟市评分表结果录入',
                        icon: 'form'
                    }
                }, {
                    path: `${pathUrl}/cityEntryAdd`,
                    name: '盟市评分表结果录入',
                    component:cityEntryAdd,
                    meta: {
                        title: '盟市评分表结果录入',
                        icon: 'form'
                    }
                },  {
                    path: `${pathUrl}/cityEntrySee`,
                    name: '盟市评分表结果录入查询',
                    component: cityEntrySee,
                    meta: {
                      title: '盟市评分表结果录入查询',
                      icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityKhjdList`,
                    name: '盟市考核进度',
                    component:cityKhjdList,
                      meta: {
                        title: '盟市考核进度列表',
                        icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityList`,
                    name: '盟市考核进度明细列表',
                    component: cityList,
                      meta: {
                      title: '盟市考核进度明细列表',
                      icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityInfoSee`,
                    name: '盟市考核进度明细信怎',
                    component:cityInfoSee,
                      meta: {
                      title: '盟市考核进度明细信怎',
                      icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/assessmentList`,
                    name: '考核领导小组列表',
                    component: assessmentList,
                      meta: {
                      title: '盟市考核进度明细信怎',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/assessmentQuery`,
                    name: '结果汇总查看',
                    component: assessmentQuery,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/assessmentQuerySee`,
                    name: '结果汇总查看',
                    component: assessmentQuerySee,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/assessmentQueryDetail`,
                    name: '结果汇总查看',
                    component: assessmentQueryDetail,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityCheckResult`,
                    name: '考核结果查看',
                    component: cityCheckResult,
                      meta: {
                      title: '考核结果查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityCheckResultSee`,
                    name: '考核结果查看',
                    component: cityCheckResultSee,
                      meta: {
                      title: '考核结果查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/cityCheckResultDetail`,
                    name: '考核结果查看',
                    component: cityCheckResultDetail,
                    meta: {
                      title: '考核结果查看',
                      icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/selectResult`,
                    name: '抽查结果查看',
                    component: selectResult,
                      meta: {
                      title: '抽查结果查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/selectResultSee`,
                    name: '抽查结果查看',
                    component: selectResultSee,
                      meta: {
                      title: '抽查结果查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/selectResultDetail`,
                    name: '抽查结果查看',
                    component: selectResultDetail,
                      meta: {
                      title: '抽查结果查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/informationManagement/index`,
                    name: '信息管理',
                    component:informationManagement,
                    meta: {
                        title: '信息管理',
                        icon: 'form'
                    }
                },{
                  path: `${pathUrl}/informationManagementsheng/index`,
                  name: '信息管理',
                  component:informationManagementsheng,
                  meta: {
                      title: '信息管理',
                      icon: 'form'
                  }
              },
            ]
          },
          {
            path: `${pathUrl}`,
            component: {
                render(c) {
                    return c('router-view')
                }
            },
            name: '区级任务分配管理',
            meta: {
                title: '区级任务分配管理',
                icon: 'example'
            },
            children: [
                {
                    path: `${pathUrl}/assessmentOfCity`,
                    name: '区自评查看',
                    component: assessmentOfCity,
                    meta: {
                        title: '区自评查看',
                        icon: 'form'
                    }
                },
                {
                    path: `${pathUrl}/taskReporting`,
                    name: '区级任务填报设置',
                    component: taskReporting,
                    meta: {
                        title: '区级任务填报设置',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/taskReportingAdd`,
                    name: '区级任务填报设置-添加',
                    component: taskReportingAdd,
                    meta: {
                        title: '区级任务填报设置-添加',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/taskReportingEdit`,
                    name: '区级任务填报设置-修改',
                    component: taskReportingEdit,
                    meta: {
                        title: '区级任务填报设置-修改',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/taskReportingSee`,
                    name: '区级任务填报设置-查看',
                    component: taskReportingSee,
                    meta: {
                        title: '区级任务填报设置-查看',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/taskAudit`,
                    name: '区自评分发',
                    component: taskAudit,
                    meta: {
                        title: '区自评分发',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/taskAuditEdit`,
                    name: '区自评分发-查看',
                    component: taskAuditEdit,
                    meta: {
                        title: '区自评分发-查看',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/selfAudit`,
                    name: '区自评查看',
                    component: selfAudit,
                    meta: {
                        title: '区自评查看',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/selfAuditDetail`,
                    name: '区自评查看-详细',
                    component: selfAuditDetail,
                    meta: {
                        title: '区自评查看-详细',
                        icon: 'form'
                    }
                },{
                    path: `${pathUrl}/selfAuditEdit`,
                    name: '区自评查看-编辑',
                    component: selfAuditEdit,
                    meta: {
                        title: '区自评查看-编辑',
                        icon: 'form'
                    }
                },
                {
                    path: `${pathUrl}/areaAssessmentQuery`,
                    name: '结果汇总查看',
                    component: areaAssessmentQuery,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/areaAssessmentQuerySee`,
                    name: '结果汇总查看',
                    component: areaAssessmentQuerySee,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  },{
                    path: `${pathUrl}/areaAssessmentQueryDetail`,
                    name: '结果汇总查看',
                    component: areaAssessmentQueryDetail,
                      meta: {
                      title: '结果汇总查看',
                     icon: 'form'
                    }
                  }
            ]
          },
          {
            path: '/dutyInfoManager',
            component: {
                render(c) {
                    return c('router-view')
                }
            },
            name: '信息简报',
            meta: {
                title: '信息简报',
                icon: 'example'
            },
            children: [
              {
                path: '/accountability/infoSubmitCity',
                name: '信息简报新增',
                component: infoManager,
                meta: {
                    title: '信息简报新增'
                }
              },
              {
                path: '/accountability/infoSubmitCityAdd',
                name: '信息简报新增',
                component: infoManagerAdd,
                meta: {
                    title: '信息简报新增'
                }
              },
              {
                path: '/accountability/infoSubmitCitySee',
                name: '信息简报新增',
                component: infoManagerSee,
                meta: {
                    title: '信息简报新增'
                }
              },
              {
                path: '/accountability/infoSubmitProvince',
                name: '信息简报采用',
                component: infoUsing,
                meta: {
                    title: '信息简报采用'
                }
              },
              {
                path: '/accountability/infoSubmitProvinceAdd',
                name: '信息简报采用',
                component: infoManagerAdd,
                meta: {
                    title: '信息简报采用'
                }
              },
              {
                path: '/accountability/infoSubmitProvinceSee',
                name: '信息简报采用',
                component: infoManagerSee,
                meta: {
                    title: '信息简报采用'
                }
              }
            ]
          },
          {
            path: '/unitUserManager',
            component: {
                render(c) {
                    return c('router-view')
                }
            },
            name: '外部单位用户管理',
            meta: {
                // title: '外部单位用户管理',
                icon: 'example'
            },
            children: [
              {
                path: '/accountability/userManager',
                name: '外部单位用户管理',
                component: userManager,
                meta: {
                    title: '外部单位用户管理'
                }
              },
              {
                path: '/accountability/userManagerAdd',
                name: '外部单位用户管理',
                component: userManagerAdd,
                meta: {
                    title: '外部单位用户管理'
                }
              },
              {
                path: '/accountability/userManagerSee',
                name: '外部单位用户管理',
                component: userManagerSee,
                meta: {
                    title: '外部单位用户管理'
                }
              }
            ]
          },
          {
            path: `${pathUrl}`,
            component: {
                render(c) {
                    return c('router-view')
                }
            },
            name: '考核评价管理',
            meta: {
                title: '考核评价管理',
                icon: 'example'
            },
            children: [{
              path: `${pathUrl}/assessmentFormMan/index`,
              name: '考核表管理',
              component:assessmentFormMan,
              meta: {
                  title: '考核表管理',
                  icon: 'form'
              }
          },{
            path: `${pathUrl}/assessmentFormMan/detail`,
            name: 'assessmentFormManDetail',
            component:assessmentFormManDetail,
            meta: {
                title: '考核表管理详情',
                icon: 'form'
            }
        },
        {
          path: `${pathUrl}/assessmentFormMan/push`,
          name: 'assessmentFormManPush',
          component:assessmentFormManPush,
          meta: {
              title: '考核表管理发布',
              icon: 'form'
          }
		  },{
			  path: `${pathUrl}/districtEvaluation/index`,
			  name: '区级评价',
			  component:districtEvaluation,
			  meta: {
				  title: '区级评价',
				  icon: 'form'
			  }
			  
		  },{
			  path: `${pathUrl}/districtEvaluation/detail`,
			  name: '区级评价详情',
			  component:districtEvaluationDetail,
			  meta: {
				  title: '区级评价详情',
				  icon: 'form'
			  }
			  
		  },
		  {
			  path: `${pathUrl}/cityEvaluation/index`,
			  name: '市储备公司评价',
			  component:cityEvaluation,
			  meta: {
				  title: '市储备公司评价',
				  icon: 'form'
			  }
		  			  
		  },{
			  path: `${pathUrl}/cityEvaluation/detail`,
			  name: '市储备公司评价详情',
			  component:cityEvaluationDetail,
			  meta: {
				  title: '市储备公司评价详情',
				  icon: 'form'
			  }
			  
		  },
		  {
			  path: `${pathUrl}/summaryManage/index`,
			  name: '汇总表管理',
			  component:summaryManage,
			  meta: {
				  title: '汇总表管理',
				  icon: 'form'
			  }
		  			  
		  },
		  {
			  path: `${pathUrl}/summaryManage/detail`,
			  name: '汇总表管理详情',
			  component:summaryManageDetail,
			  meta: {
				  title: '汇总表管理详情',
				  icon: 'form'
			  }
		  			  
		  },
		  {
			  path: `${pathUrl}/component/qyzpb`,
			  name: '企业自评表',
			  component:qyzpbComponent,
			  meta: {
				  title: '企业自评表',
				  icon: 'form'
			  }
			  
		  }
	  ]},
        ]
      }
        //end区长责任制
    ]
})
