// 法案相关
import BillHome from "@/views/bill/billHome/index.vue";
import BillLayoutContainer from "@/views/bill/billLayout/index.vue";
import BillLayout from "@/views/bill/index.vue";
import BillIntroduction from "@/views/bill/introdoction/index.vue";
import BillBackground from "@/views/bill/background/index.vue";
import BillTemplate from "@/views/bill/template/index.vue";
import BillDeepDigLayout from "@/views/bill/deepDig/index.vue";
import BillDeepDigProcessOverview from "@/views/bill/deepDig/processOverview/index.vue";
import BillDeepDigProcessAnalysis from "@/views/bill/deepDig/processAnalysis/index.vue";
import BillDeepDigPoliContribution from "@/views/bill/deepDig/poliContribution/index.vue";
import BillInfluenceLayout from "@/views/bill/influence/index.vue";
import BillInfluenceIndustry from "@/views/bill/influence/industry/index.vue";
import BillInfluenceScientificResearch from "@/views/bill/influence/scientificResearch/index.vue";
import BillRelevantCircumstance from "@/views/bill/relevantCircumstance/index.vue";


const billRoutes = [
  // 法案系统路由
  {
    path: "/billHome",
    name: "BillHome",
    component: BillHome,
    meta: {
      title: "科技法案概览"
    }
  },
  {
    path: "/billLayout",
    name: "BillLayoutContainer",
    component: BillLayoutContainer,
    redirect: "/billLayout/bill",
    meta: {
      title: "法案布局"
    },
    children: [
      // 法案分析路由
      {
        path: "bill",
        name: "BillLayout",
        component: BillLayout,
        redirect: "/billLayout/bill/introduction",
        meta: {
          title: "法案分析",
          dynamicTitle: true // 标记需要动态设置标题
        },
        children: [
          {
            path: "introduction",
            name: "BillIntroduction",
            component: BillIntroduction,
            // meta: { 
            //   title: "法案简介"
            
            // }
          },
          {
            path: "background",
            name: "BillBackground",
            component: BillBackground,
            // meta: { title: "法案背景" }
          },
          {
            path: "template",
            name: "BillTemplate",
            component: BillTemplate,
            // meta: { title: "内容概要" }
          }
        ]
      },
      // 深度挖掘路由
      {
        path: "deepDig",
        name: "BillDeepDigLayout",
        component: BillDeepDigLayout,
        redirect: "/billLayout/deepDig/processOverview",
        // meta: {
        //   title: "深度挖掘"
        // },
        children: [
          {
            path: "processOverview",
            name: "BillDeepDigProcessOverview",
            component: BillDeepDigProcessOverview,
            // meta: { title: "流程概要" }
          },
          {
            path: "processAnalysis",
            name: "BillDeepDigProcessAnalysis",
            component: BillDeepDigProcessAnalysis,
            // meta: { title: "流程分析" }
          },
          {
            path: "poliContribution",
            name: "BillDeepDigPoliContribution",
            component: BillDeepDigPoliContribution,
            // meta: { title: "政治献金" }
          }
        ]
      },
      // 影响分析路由
      {
        path: "influence",
        name: "BillInfluenceLayout",
        component: BillInfluenceLayout,
        redirect: "/billLayout/influence/industry",
        // meta: {
        //   title: "影响分析"
        // },
        children: [
          {
            path: "industry",
            name: "BillInfluenceIndustry",
            component: BillInfluenceIndustry,
            // meta: { title: "对华产业影响" }
          },
          {
            path: "scientificResearch",
            name: "BillInfluenceScientificResearch",
            component: BillInfluenceScientificResearch,
            // meta: { title: "对华科研影响" }
          }
        ]
      },
      {
        path: "relevantCircumstance",
        name: "BillRelevantCircumstance",
        component: BillRelevantCircumstance,
        // meta: {
        //   title: "相关情况"
        // }
      }
    ]
  },
]

export default billRoutes