import Main from '@/components/main' import parentView from '@/components/parent-view' /** * iview-admin中meta除了原生参数外可配置的参数: * meta: { * title: { String|Number|Function } * 显示在侧边栏、面包屑和标签栏的文字 * 使用'{{ 多语言字段 }}'形式结合多语言使用,例子看多语言的路由配置; * 可以传入一个回调函数,参数是当前路由对象,例子看动态路由和带参路由 * hideInBread: (false) 设为true后此级路由将不会出现在面包屑中,示例看QQ群路由配置 * hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项 * notCache: (false) 设为true后页面在切换标签后不会缓存,如果需要缓存,无需设置这个字段,而且需要设置页面组件name属性和路由配置的name一致 * access: (null) 可访问该页面的权限数组,当前路由设置的权限会影响子路由 * icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标,如果是自定义图标,需要在图标名称前加下划线'_' * beforeCloseName: (-) 设置该字段,则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法,作为关闭前的钩子函数 * } */ export default [{ path: '/login', name: 'login', meta: { title: '登录', hideInMenu: true }, component: () => // import ('@/view/login/LoginView.vue') import('@/view/login/login.vue') }, { path: '/forgot', name: 'forgot', meta: { title: '忘记密码', hideInMenu: true }, component: () => import('@/view/login/forgot.vue') }, { path: '/register', name: 'register', meta: { title: '注册', hideInMenu: true }, component: () => import('@/view/login/RegisterView.vue') }, { path: '/UserAgreement', name: 'UserAgreement', meta: { title: '用户协议', hideInMenu: true }, component: () => import('@/view/login/UserAgreement.vue') }, { path: '/privacyPolicy', name: 'privacyPolicy', meta: { title: '隐私政策', hideInMenu: true }, component: () => import('@/view/login/privacyPolicy.vue') }, { path: '/newList', name: 'newList', meta: { title: '新闻', hideInMenu: true }, component: () => import('@/view/login/newList.vue') }, { path: '/globe', name: 'globe', redirect: '/globePage', component: Main, meta: { hideInMenu: true }, children: [{ path: '/globePage/:name', name: 'globePage', meta: { hideInMenu: true, title: '全球新闻', icon: 'custom custom-guquan', }, component: () => import('@/view/MacroData/MacroDataNew/newDetail.vue') }] }, { path: '/', name: '_home', redirect: '/home', component: Main, meta: { hideInMenu: true, notCache: true }, children: [{ path: '/home', name: 'home', meta: { hideInMenu: true, title: '首页', notCache: true, // icon: 'md-home' icon: 'custom custom-home', }, component: () => import('@/view/single-page/home') }] }, { path: '/authority', name: 'authority', meta: { // access: ['no_admin'], icon: 'custom custom-xiangmuzhuti', title: '升级VIP', hideInMenu: true }, component: Main, children: [{ path: '/authority', name: 'authority', meta: { hideInMenu: true, title: '升级VIP', icon: 'custom custom-xiangmuzhuti' }, component: () => import('@/view/authority/authority.vue') }, ] }, { path: '/authorityVIP', name: 'authorityVIP', meta: { // access: ['no_admin'], icon: 'custom custom-xiangmuzhuti', title: '查看VIP', hideInMenu: true }, component: Main, children: [{ path: '/authorityVIP', name: 'authorityVIP', meta: { hideInMenu: true, title: '查看VIP', icon: 'custom custom-xiangmuzhuti' }, component: () => import('@/view/authority/authority.vue') }, ] }, { path: '/changePassword', name: 'changePassword', meta: { // access: ['no_admin'], icon: 'custom custom-xiangmuzhuti', title: '账号管理', hideInMenu: true }, component: Main, children: [{ path: '/changePassword', name: 'changePassword', meta: { hideInMenu: true, title: '账号管理', icon: 'custom custom-xiangmuzhuti' }, component: () => import('@/view/changePassword/changePassword1.vue') }, ] }, { path: '/rechargeManagement', name: 'rechargeManagement', meta: { // access: ['no_admin'], icon: 'custom custom-xiangmuzhuti', title: '账单管理', hideInMenu: true }, component: Main, children: [{ path: '/rechargeManagement', name: 'rechargeManagement', meta: { hideInMenu: true, title: '账单管理', icon: 'custom custom-xiangmuzhuti' }, component: () => import('@/view/changePassword/rechargeManagement.vue') }, ] }, { path: '/consumptionRecords', name: 'consumptionRecords', meta: { // access: ['no_admin'], icon: 'custom custom-xiangmuzhuti', title: '消费记录', hideInMenu: true }, component: Main, children: [{ path: '/consumptionRecords', name: 'consumptionRecords', meta: { hideInMenu: true, title: '消费记录', icon: 'custom custom-xiangmuzhuti' }, component: () => import('@/view/changePassword/consumptionRecords.vue') }, ] }, { path: '/custom', name: 'custom', meta: { // access: ['no_admin'], icon: 'custom custom-ego-favfull', title: '我的自选' }, component: Main, children: [{ path: '/customPage', name: 'customPage', meta: { title: '我的自选', icon: 'custom custom-ego-favfull' }, component: () => import('@/view/custom-page/custom-page.vue') }, ] }, { path: '/MacroData', name: 'MacroData', meta: { icon: 'custom custom-bigdata-full', title: '宏观\n数据' }, component: Main, children: [{ path: '/MacroDataNew', name: 'MacroDataNew', meta: { icon: 'custom custom-gongkaiguquan', title: '新闻大数据' }, component: parentView, children: [ { path: '/Alerts', name: 'Alerts', meta: { icon: 'custom custom-guquan', title: '7*24小时快讯' }, component: () => import('@/view/MacroData/MacroDataNew/Alerts.vue') }, { path: '/alertsGlobe', name: 'alertsGlobe', meta: { icon: 'custom custom-guquan', title: '全球新闻资讯' }, component: () => import('@/view/MacroData/MacroDataNew/alertsGlobe.vue') }, { // access: ['no_admin'], path: '/rongNew', name: 'rongNew', meta: { icon: 'custom custom-guquan', title: '融资租赁新闻资讯' }, component: () => import('@/view/MacroData/MacroDataNew/rongNew.vue') }, ] }, { path: '/Macroeconomic', name: 'Macroeconomic', meta: { icon: 'custom custom-fangkuan', title: '宏观大数据' }, component: parentView, children: [{ path: '/Macroeconomic-ch', name: 'Macroeconomic-ch', meta: { icon: 'custom custom-fangkuan', title: `中国宏观经济待上线` }, component: () => import('@/view/MacroData/Macroeconomic/Macroeconomic-ch.vue') }, { path: '/Macroeconomic-am', name: 'Macroeconomic-am', meta: { icon: 'custom custom-fangkuan', title: `美国宏观经济待上线` }, component: () => import('@/view/MacroData/Macroeconomic/Macroeconomic-am.vue') }, // { // path: '/Astock', // name: 'Astock', // meta: { // notCache: true, // icon: 'custom custom-fangkuan', // title: 'A股市场全景分析待上线' // }, // component: () => // import('@/view/risk-control/Astock.vue') // }, ] }, ] }, { path: '/MacIndustryAnalysisroData', name: 'MacIndustryAnalysisroData', meta: { icon: 'custom custom-bigdata-full', title: '产业\n分析' }, component: Main, children: [ { path: '/agriculture', name: 'agriculture', meta: { icon: 'custom custom-gongkaiguquan', title: '农林牧渔' }, component: parentView, children: [ { path: '/agricultureIndustryMap', name: 'agricultureIndustryMap', meta: { icon: 'custom custom-guquan', title: '农林牧渔-产业图谱' }, component: () => import('@/view/MacIndustryAnalysisroData/agriculture/IndustryMap1.vue') }, { path: '/agricultureComSearch', name: 'agricultureComSearch', meta: { icon: 'custom custom-guquan', title: '农林牧渔-主营分析' }, component: () => import('@/view/MacIndustryAnalysisroData/agriculture/comSearch.vue') }, // { // path: '/agricultureChain', // name: 'agricultureChain', // meta: { // icon: 'custom custom-guquan', // title: '农林牧渔-产业链分析' // }, // component: () => // import('@/view/MacIndustryAnalysisroData/agriculture/Chain.vue') // }, ] }, { path: '/traffic', name: 'traffic', meta: { icon: 'custom custom-gongkaiguquan', title: '交通物流' }, component: parentView, children: [ { path: '/trafficIndustryMap', name: 'trafficIndustryMap', meta: { icon: 'custom custom-guquan', title: '交通物流-产业图谱待上线' }, component: () => import('@/view/MacIndustryAnalysisroData/traffic/IndustryMap.vue') }, { path: '/trafficComSearch', name: 'trafficComSearch', meta: { icon: 'custom custom-guquan', title: '交通物流-主营分析待上线' }, component: () => import('@/view/MacIndustryAnalysisroData/traffic/comSearch.vue') }, // { // path: '/trafficChain', // name: 'trafficChain', // meta: { // icon: 'custom custom-guquan', // title: '交通物流-产业链分析' // }, // component: () => // import('@/view/MacIndustryAnalysisroData/traffic/Chain.vue') // }, ] }, ] }, { path: '/businessOpportunity', name: 'businessOpportunity', meta: { icon: 'custom custom-bigdata-full', title: '商机\n挖掘' }, component: Main, children: [ { path: '/agriculture', name: 'agriculture', meta: { icon: 'custom custom-gongkaiguquan', title: '农林牧渔' }, component: parentView, children: [ { path: '/agricultureProsperity', name: 'agricultureProsperity', meta: { icon: 'custom custom-guquan', title: '农林牧渔-景气度矩阵' }, component: () => import('@/view/businessOpportunity/agriculture/Prosperity.vue') }, { path: '/agricultureChainStatistics', name: 'agricultureChainstatistics', meta: { icon: 'custom custom-guquan', title: '农林牧渔-上市地位' }, component: () => import('@/view/businessOpportunity/agriculture/ChainStatistics.vue') }, { path: '/agricultureIndustryPlat', name: 'agricultureIndustryPlat', meta: { icon: 'custom custom-guquan', title: '农林牧渔-产业地图' }, component: () => import('@/view/businessOpportunity/agriculture/IndustryPlat.vue') }, ] }, { path: '/traffic', name: 'traffic', meta: { icon: 'custom custom-gongkaiguquan', title: '交通物流' }, component: parentView, children: [ { path: '/trafficProsperity', name: 'trafficProsperity', meta: { icon: 'custom custom-guquan', title: '交通物流-景气度矩阵待上线' }, component: () => import('@/view/businessOpportunity/traffic/Prosperity.vue') }, { path: '/trafficChainStatistics', name: 'trafficChainStatistics', meta: { icon: 'custom custom-guquan', title: '交通物流-上市地位待上线' }, component: () => import('@/view/businessOpportunity/traffic/ChainStatistics.vue') }, { path: '/trafficIndustryPlat', name: 'trafficIndustryPlat', meta: { icon: 'custom custom-guquan', title: '交通物流-产业地图待上线' }, component: () => import('@/view/businessOpportunity/traffic/IndustryPlat.vue') }, ] }, ] }, { path: '/largeModel', name: 'largeModel', meta: { icon: 'custom custom-bigdata-full', title: '大模\n型' }, component: Main, children: [ { path: '/GPT', name: 'GPT', meta: { icon: 'custom custom-gongkaiguquan', title: '通用大模型' }, component: parentView, children: [ { path: '/GPT', name: 'GPT', meta: { icon: 'custom custom-guquan', title: '智能问答' }, component: () => import('@/view/largeModel/gpt.vue') }, ] }, { path: '/intelligentPush', name: 'intelligentPush', meta: { icon: 'custom custom-gongkaiguquan', title: '垂直大模型' }, component: parentView, children: [ { path: '/intelligentPush', name: 'intelligentPush', meta: { icon: 'custom custom-guquan', title: '农业大模型' }, component: () => import('@/view/largeModel/intelligentPush.vue') }, ] } ] }, { path: '/401', name: 'error_401', meta: { hideInMenu: true }, component: () => import('@/view/error-page/401.vue') }, { path: '/500', name: 'error_500', meta: { hideInMenu: true }, component: () => import('@/view/error-page/500.vue') }, { path: '*', name: 'error_404', meta: { hideInMenu: true }, component: () => import('@/view/error-page/404.vue') } ]