11
jhzh
2025-10-30 0b0bb61067f570aa7af992418596d4fdc2cedc02
src/config/router.config.js
@@ -4,7 +4,7 @@
const RouteView = {
  name: 'RouteView',
  render: (h) => h('router-view'),
  render: h => h('router-view')
}
export const asyncRouterMap = [
@@ -15,7 +15,6 @@
    meta: { title: 'menu.home' },
    redirect: '/dashboard/workplace',
    children: [
      // dashboard
      {
        path: '/dashboard',
        name: 'dashboard',
@@ -39,124 +38,118 @@
            path: '/dashboard/workplace',
            name: 'Workplace',
            component: () => import('@/views/dashboard/Workplace'),
            meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] },
          },
        ],
            meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] }
          }
        ]
      },
      {
        path: '/userlist',
        redirect: '/userlist/index',
        component: RouteView,
        meta: { title: '用户管理', icon: 'usergroup-delete', permission: ['userlist'] },
        meta: { title: '用户管理', icon: 'user', permission: ['userlist'] },
        children: [
          {
            path: '/userlist/index',
            name: 'Userlist',
            component: () => import('@/views/userlist/index'),
            meta: { title: '用户列表', keepAlive: true, permission: ['userlist'] },
          },
          {
            path: '/userlist/agentlist',
            name: 'Agentlist',
            component: () => import('@/views/userlist/agentlist'),
            meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] },
          },
          {
            path: '/userlist/lervelist',
            name: 'lervelist',
            component: () => import('@/views/userlist/lervelist'),
            meta: { title: '杠杠申请列表', keepAlive: true, permission: ['agentlist'] },
          },
        ],
            meta: { title: '用户列表', keepAlive: true, permission: ['userlist'] }
          }
        ]
      },
      // {
      //   path: '/allotment',
      //   redirect: '/allotment/allotmentlist',
      //   path: '/product',
      //   redirect: '/product/shares',
      //   component: RouteView,
      //   meta: { title: '分仓配资', icon: 'apartment', permission: ['allotment'] },
      //   meta: { title: '产品管理', icon: 'area-chart', permission: ['shares'] },
      //   children: [
      //     {
      //       path: '/allotment/allotmentlist',
      //       name: 'allotment',
      //       component: () => import('@/views/allotment/allotmentlist'),
      //       meta: { title: '配资列表', keepAlive: true, permission: ['allotment'] }
      //       path: '/product/shares',
      //       name: 'shares',
      //       component: () => import('@/views/product/shares'),
      //       meta: { title: '股票产品', keepAlive: true, permission: ['shares'] },
      //     },
      //     {
      //       path: '/allotment/leversetting',
      //       name: 'leversetting',
      //       component: () => import('@/views/allotment/leversetting'),
      //       meta: { title: '杠杆配置', keepAlive: true, permission: ['leversetting'] }
      //       path: '/product/markettrading',
      //       name: 'markettrading',
      //       component: () => import('@/views/product/markettrading'),
      //       meta: { title: '盘前交易', keepAlive: true, permission: ['markettrading'] },
      //     },
      //     {
      //       path: '/allotment/brokermechanism',
      //       name: 'brokermechanism',
      //       component: () => import('@/views/allotment/brokerMechanism'),
      //       meta: { title: '券商机构管理', keepAlive: true, permission: ['brokermechanism'] }
      //     },
      //     {
      //       path: '/allotment/securities',
      //       name: 'securities',
      //       component: () => import('@/views/allotment/securities'),
      //       meta: { title: '证券信息管理', keepAlive: true, permission: ['securities'] }
      //     },
      //     {
      //       path: '/allotment/transactionAccount',
      //       name: 'transactionAccount',
      //       component: () => import('@/views/allotment/transactionAccount'),
      //       meta: { title: '交易账户管理', keepAlive: true, permission: ['transactionAccount'] }
      //     },
      //     {
      //       path: '/allotment/expand',
      //       name: 'expand',
      //       component: () => import('@/views/allotment/expand'),
      //       meta: { title: '配资资金管理', keepAlive: true, permission: ['expand'] }
      //     },
      //     {
      //       path: '/allotment/allotmentsetting',
      //       name: 'allotmentsetting',
      //       component: () => import('@/views/allotment/allotmentSetting'),
      //       meta: { title: '配资设置', keepAlive: true, permission: ['allotmentsetting'] }
      //     },
      //   ]
      //   ],
      // },
      // 产品管理
      // 新股管理
      // {
      //   path: '/newshares',
      //   redirect: '/newshares/newshareslist',
      //   component: RouteView,
      //   meta: { title: '新股管理', icon: 'sliders', permission: ['newshareslist'] },
      //   children: [
      //     {
      //       path: '/newshares/newshareslist',
      //       name: 'newshareslist',
      //       component: () => import('@/views/newshares/newshareslist'),
      //       meta: { title: '新股列表', keepAlive: true, permission: ['newshareslist'] },
      //     },
      //     {
      //       path: '/newshares/newsharesrecord',
      //       name: 'newsharesrecord',
      //       component: () => import('@/views/newshares/newsharesrecord'),
      //       meta: { title: '申购记录', keepAlive: true, permission: ['newsharesrecord'] },
      //     },
      //     {
      //       path: '/newshares/dazonglist',
      //       name: 'dazonglist',
      //       component: () => import('@/views/newshares/dazonglist'),
      //       meta: { title: '折扣交易列表', keepAlive: true, permission: ['dazonglist'] },
      //     },
      //     {
      //       path: '/newshares/dazongshlist',
      //       name: 'dazongshlist',
      //       component: () => import('@/views/newshares/dazongshlist'),
      //       meta: { title: '折扣交易审核列表', keepAlive: true, permission: ['dazongshlist'] },
      //     },
      //   ],
      // },
      {
        path: '/product',
        redirect: '/product/shares',
        path: '/agentlist',
        redirect: '/agentlist/index',
        component: RouteView,
        meta: { title: '产品管理', icon: 'area-chart', permission: ['shares'] },
        meta: { title: '代理管理', icon: 'team', permission: ['agentlist'] },
        children: [
          {
            path: '/product/shares',
            name: 'shares',
            component: () => import('@/views/product/shares'),
            meta: { title: '股票产品', keepAlive: true, permission: ['shares'] },
          },
            path: '/agentlist/index',
            name: 'agentlist',
            component: () => import('@/views/agentlist/index'),
            meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] }
          }
        ]
      },
      {
        path: '/profitdetails',
        redirect: '/profitdetails/index',
        component: RouteView,
        meta: { title: '利润明细', icon: 'transaction', permission: ['profitdetails'] },
        children: [
          {
            path: '/product/markettrading',
            name: 'markettrading',
            component: () => import('@/views/product/markettrading'),
            meta: { title: '盘前交易', keepAlive: true, permission: ['markettrading'] },
          },
          // {
          //   path: '/product/index',
          //   name: 'index',
          //   component: () => import('@/views/product/index'),
          //   meta: { title: '指数产品', keepAlive: true, permission: ['index'] }
          // }
          // {
          //   path: '/product/basecurrency',
          //   name: 'basecurrency',
          //   component: () => import('@/views/product/baseCurrency'),
          //   meta: { title: '基础货币', keepAlive: true, permission: ['basecurrency'] }
          // },
          // {
          //   path: '/product/futures',
          //   name: 'futures',
          //   component: () => import('@/views/product/futures'),
          //   meta: { title: '期货产品', keepAlive: true, permission: ['futures'] }
          // },
        ],
            path: '/profitdetails/index',
            name: 'profitdetails',
            component: () => import('@/views/profitdetails/index'),
            meta: { title: '明细列表', keepAlive: true, permission: ['profitdetails'] }
          }
        ]
      },
      {
        path: '/logolog',
        redirect: '/logolog/index',
        component: RouteView,
        meta: { title: '登录日志', icon: 'transaction', permission: ['logolog'] },
        children: [
          {
            path: '/logolog/index',
            name: 'logolog',
            component: () => import('@/views/logolog/index'),
            meta: { title: '上下分列表', keepAlive: true, permission: ['logolog'] }
          }
        ]
      },
      // 持仓管理
      {
@@ -169,217 +162,59 @@
            path: '/position/financing',
            name: 'financing',
            component: () => import('@/views/position/financing'),
            meta: { title: '持仓管理', keepAlive: true, permission: ['financing'] },
            meta: { title: '持仓管理', keepAlive: true, permission: ['financing'] }
          },
          {
            path: '/position/createfinancing',
            name: 'createfinancing',
            component: () => import('@/views/position/createFinancing'),
            meta: { title: '创建股票持仓', keepAlive: true, permission: ['createfinancing'] },
          },
        ],
      },
      // 新股管理
      {
        path: '/newshares',
        redirect: '/newshares/newshareslist',
        component: RouteView,
        meta: { title: '新股管理', icon: 'sliders', permission: ['newshareslist'] },
        children: [
          {
            path: '/newshares/newshareslist',
            name: 'newshareslist',
            component: () => import('@/views/newshares/newshareslist'),
            meta: { title: '新股列表', keepAlive: true, permission: ['newshareslist'] },
          },
          {
            path: '/newshares/newsharesrecord',
            path: '/position/newsharesrecord',
            name: 'newsharesrecord',
            component: () => import('@/views/newshares/newsharesrecord'),
            meta: { title: '申购记录', keepAlive: true, permission: ['newsharesrecord'] },
          },
          {
            path: '/newshares/dazonglist',
            name: 'dazonglist',
            component: () => import('@/views/newshares/dazonglist'),
            meta: { title: '折扣交易列表', keepAlive: true, permission: ['dazonglist'] },
          },
          {
            path: '/newshares/dazongshlist',
            name: 'dazongshlist',
            component: () => import('@/views/newshares/dazongshlist'),
            meta: { title: '折扣交易审核列表', keepAlive: true, permission: ['dazongshlist'] },
          },
        ],
            component: () => import('@/views/position/newsharesrecord'),
            meta: { title: '申购记录', keepAlive: true, permission: ['newsharesrecord'] }
          }
        ]
      },
      // 资金管理
      {
        path: '/capital',
        redirect: '/capital/rechargelist',
        redirect: '/capital/fundrecords',
        component: RouteView,
        meta: { title: '资金管理', icon: 'dollar', permission: ['rechargelist'] },
        meta: { title: '资金管理', icon: 'dollar', permission: ['fundrecords'] },
        children: [
          {
            path: '/capital/rechargelist',
            name: 'rechargelist',
            component: () => import('@/views/capital/rechargelist'),
            meta: { title: '充值列表', keepAlive: true, permission: ['rechargelist'] },
          },
          {
            path: '/capital/withdrawallist',
            name: 'withdrawallist',
            component: () => import('@/views/capital/withdrawallist'),
            meta: { title: '提现列表', keepAlive: true, permission: ['withdrawallist'] },
          },
          // {
          //   path: '/capital/fundrecords',
          //   name: 'fundrecords',
          //   component: () => import('@/views/capital/fundrecords'),
          //   meta: { title: '资金记录', keepAlive: true, permission: ['fundrecords'] },
          // },
          // {
          //   path: '/capital/fundtransferrecord',
          //   name: 'fundtransferrecord',
          //   component: () => import('@/views/capital/fundTransferrecord'),
          //   meta: { title: '资金互转记录', keepAlive: true, permission: ['fundtransferrecord'] },
          // },
          // {
          //   path: '/capital/Recharge_channel',
          //   name: 'Recharge_channel',
          //   component: () => import('@/views/capital/Recharge_channel'),
          //   meta: { title: '充值通道', keepAlive: true, permission: ['Recharge_channel'] },
          // },
          // {
          //   path: '/capital/Withdrawal_channel',
          //   name: 'Withdrawal_channel',
          //   component: () => import('@/views/capital/Withdrawal_channel'),
          //   meta: { title: '提现通道', keepAlive: true, permission: ['Withdrawal_channel'] },
          // },
        ],
            path: '/capital/fundrecords',
            name: 'fundrecords',
            component: () => import('@/views/capital/fundrecords'),
            meta: { title: '资金明细', keepAlive: true, permission: ['fundrecords'] }
          }
        ]
      },
      // 日志管理
      {
        path: '/logmanage',
        redirect: '/logmanage/loginlog',
        path: '/depositrecord',
        redirect: '/depositrecord/depositlist',
        component: RouteView,
        meta: { title: '日志管理', icon: 'solution', permission: ['loginlog'] },
        meta: { title: '入金记录', icon: 'import', permission: ['depositlist'] },
        children: [
          {
            path: '/logmanage/loginlog',
            name: 'loginlog',
            component: () => import('@/views/logmanage/loginlog'),
            meta: { title: '登录日志', keepAlive: true, permission: ['loginlog'] },
          },
          {
            path: '/logmanage/running-log',
            name: 'running-log',
            component: () => import('@/views/logmanage/running-log'),
            meta: { title: '流水日志', keepAlive: true, permission: ['loginlog'] },
          },
          // {
          //   path: '/logmanage/smslog',
          //   name: 'smslog',
          //   component: () => import('@/views/logmanage/smslog'),
          //   meta: { title: '短信日志', keepAlive: true, permission: ['smslog'] },
          // },
          // {
          //   path: '/logmanage/scheduledtasks',
          //   name: 'scheduledtasks',
          //   component: () => import('@/views/logmanage/scheduledTasks'),
          //   meta: { title: '定时任务', keepAlive: true, permission: ['scheduledtasks'] },
          // },
          // {
          //   path: '/logmanage/stationmessage',
          //   name: 'stationmessage',
          //   component: () => import('@/views/logmanage/stationmessage'),
          //   meta: { title: '站内消息', keepAlive: true, permission: ['stationmessage'] },
          // },
        ],
            path: '/depositrecord/depositlist',
            name: 'depositlist',
            component: () => import('@/views/depositrecord/depositlist'),
            meta: { title: '入金列表', keepAlive: true, permission: ['depositlist'] }
          }
        ]
      },
      // 管理设置
      {
        path: '/managesettings',
        redirect: '/managesettings/managelist',
        path: '/cashingrecord',
        redirect: '/cashingrecord/cashinglist',
        component: RouteView,
        meta: { title: '管理设置', icon: 'control', permission: ['managelist'] },
        meta: { title: '出金记录', icon: 'export', permission: ['cashinglist'] },
        children: [
          {
            path: '/managesettings/managelist',
            name: 'managelist',
            component: () => import('@/views/managesettings/managelist'),
            meta: { title: '管理列表', keepAlive: true, permission: ['managelist'] },
          },
        ],
      },
      // 风控设置
      {
        path: '/risksetting',
        redirect: '/risksetting/productsetting',
        component: RouteView,
        meta: { title: '风控设置', icon: 'warning', permission: ['productsetting'] },
        children: [
          {
            path: '/risksetting/productsetting',
            name: 'productsetting',
            component: () => import('@/views/risksetting/productsetting'),
            meta: { title: '产品配置', keepAlive: true, permission: ['productsetting'] },
          },
          {
            path: '/risksetting/sharessetting',
            name: 'sharessetting',
            component: () => import('@/views/risksetting/sharessetting'),
            meta: { title: '股票风控', keepAlive: true, permission: ['sharessetting'] },
          },
          {
            path: '/risksetting/timelist',
            name: 'timelist',
            component: () => import('@/views/risksetting/timelist'),
            meta: { title: '股票时间列表', keepAlive: true, permission: ['timelist'] },
          },
          // {
          //   path: '/risksetting/indexsetting',
          //   name: 'indexsetting',
          //   component: () => import('@/views/risksetting/indexsetting'),
          //   meta: { title: '指数风控', keepAlive: true, permission: ['indexsetting'] },
          // },
          // {
          //   path: '/risksetting/spreadsetting',
          //   name: 'spreadsetting',
          //   component: () => import('@/views/risksetting/spreadsetting'),
          //   meta: { title: '点差设置', keepAlive: true, permission: ['spreadsetting'] },
          // },
        ],
      },
      // 系统设置
      {
        path: '/allsetting',
        redirect: '/allsetting/noticesetting',
        component: RouteView,
        meta: { title: '系统设置', icon: 'setting', permission: ['noticesetting'] },
        children: [
          {
            path: '/allsetting/noticesetting',
            name: 'noticesetting',
            component: () => import('@/views/allsetting/noticesetting'),
            meta: { title: '公告设置', keepAlive: true, permission: ['noticesetting'] },
          },
          {
            path: '/allsetting/bannersetting',
            name: 'bannersetting',
            component: () => import('@/views/allsetting/bannersetting'),
            meta: { title: '轮播图设置', keepAlive: true, permission: ['bannersetting'] },
          },
          {
            path: '/allsetting/paysetting',
            name: 'paysetting',
            component: () => import('@/views/allsetting/paysetting'),
            meta: { title: '支付渠道设置', keepAlive: true, permission: ['paysetting'] },
          },
        ],
      },
            path: '/cashingrecord/cashinglist',
            name: 'cashinglist',
            component: () => import('@/views/cashingrecord/cashinglist'),
            meta: { title: '出金列表', keepAlive: true, permission: ['cashinglist'] }
          }
        ]
      }
      // forms
      // {
      //   path: '/form',
@@ -464,29 +299,6 @@
      //   ]
      // },
      // profile
      // {
      //   path: '/profile',
      //   name: 'profile',
      //   component: RouteView,
      //   redirect: '/profile/basic',
      //   meta: { title: 'menu.profile', icon: 'profile', permission: ['profile'] },
      //   children: [
      //     {
      //       path: '/profile/basic',
      //       name: 'ProfileBasic',
      //       component: () => import('@/views/profile/basic'),
      //       meta: { title: 'menu.profile.basic', permission: ['profile'] }
      //     },
      //     {
      //       path: '/profile/advanced',
      //       name: 'ProfileAdvanced',
      //       component: () => import('@/views/profile/advanced/Advanced'),
      //       meta: { title: 'menu.profile.advanced', permission: ['profile'] }
      //     }
      //   ]
      // },
      // result
      // {
      //   path: '/result',
@@ -539,135 +351,6 @@
      //   ]
      // },
      // account
      {
        path: '/account',
        component: RouteView,
        redirect: '/account/center',
        name: 'account',
        meta: { title: '个人中心', icon: 'user', keepAlive: true, permission: ['user'] },
        children: [
          // {
          //   path: '/account/center',
          //   name: 'center',
          //   component: () => import('@/views/account/center'),
          //   meta: { title: 'menu.account.center', keepAlive: true, permission: ['user'] }
          // },
          {
            path: '/account/settings',
            name: 'settings',
            component: () => import('@/views/account/settings/Index'),
            meta: { title: 'menu.account.settings', hideHeader: true, permission: ['user'] },
            redirect: '/account/settings/basic',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/account/settings/basic',
                name: 'BasicSettings',
                component: () => import('@/views/account/settings/BasicSetting'),
                meta: { title: 'account.settings.menuMap.basic', hidden: true, permission: ['user'] },
              },
              {
                path: '/account/settings/security',
                name: 'SecuritySettings',
                component: () => import('@/views/account/settings/Security'),
                meta: {
                  title: 'account.settings.menuMap.security',
                  hidden: true,
                  keepAlive: true,
                  permission: ['user'],
                },
              },
              {
                path: '/account/settings/custom',
                name: 'CustomSettings',
                component: () => import('@/views/account/settings/Custom'),
                meta: { title: 'account.settings.menuMap.custom', hidden: true, keepAlive: true, permission: ['user'] },
              },
              {
                path: '/account/settings/binding',
                name: 'BindingSettings',
                component: () => import('@/views/account/settings/Binding'),
                meta: {
                  title: 'account.settings.menuMap.binding',
                  hidden: true,
                  keepAlive: true,
                  permission: ['user'],
                },
              },
              {
                path: '/account/settings/notification',
                name: 'NotificationSettings',
                component: () => import('@/views/account/settings/Notification'),
                meta: {
                  title: 'account.settings.menuMap.notification',
                  hidden: true,
                  keepAlive: true,
                  permission: ['user'],
                },
              },
            ],
          },
        ],
      },
      {
        path: '/loanmanage',
        redirect: '/loanmanage/index',
        component: RouteView,
        meta: { title: '贷款管理', icon: 'usergroup-delete', permission: ['loanmanage'] },
        children: [
          {
            path: '/loanmanage/index',
            name: 'Loanmanage',
            component: () => import('@/views/loanmanage/index'),
            meta: { title: '贷款列表', keepAlive: true, permission: ['loanmanage'] }
          },
          {
            path: '/loanmanage/institution',
            name: 'institution',
            component: () => import('@/views/loanmanage/institution'),
            meta: { title: '贷款机构', keepAlive: true, permission: ['institution'] }
          }
          // {
          //   path: '/loanmanage/institution',
          //   name: 'Institution',
          //   component: () => import('@/views/loanmanage/institution'),
          //   meta: { title: '贷款机构', keepAlive: true, permission: ['institution'] }
          // }
          // {
          //   path: '/loanmanage/index',
          //   name: 'Loanmanage',
          //   component: () => import('@/views/loanmanage/index'),
          //   meta: { title: '贷款机构', keepAlive: true, permission: ['loanmanage'] }
          // }
        ]
      },
      {
        path: '/interesttreasure',
        redirect: '/interesttreasure/index',
        component: RouteView,
        meta: { title: '基金管理', icon: 'usergroup-delete', permission: ['interesttreasure'] },
        children: [
          {
            path: '/interesttreasure/index',
            name: 'InterestTreasure',
            component: () => import('@/views/interesttreasure/index'),
            meta: { title: '基金列表', keepAlive: true, permission: ['interesttreasure'] },
          },
          {
            path: '/interesttreasure/set',
            name: 'set',
            component: () => import('@/views/interesttreasure/set'),
            meta: { title: '基金设置', keepAlive: true, permission: ['set'] },
          },
          // {
          //   path: '/userlist/agentlist',
          //   name: 'Agentlist',
          //   component: () => import('@/views/userlist/agentlist'),
          //   meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] }
          // }
        ],
      },
      // other
      /*
      {
@@ -729,13 +412,14 @@
          }
        ]
      } */
    ],
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true,
  },
    hidden: true
  }
]
/**
@@ -752,28 +436,28 @@
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login'),
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register'),
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult'),
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined,
      },
    ],
        component: undefined
      }
    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'),
  },
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]