|
@@ -189,61 +189,114 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
- path: '/exposure',
|
|
|
|
|
- name: 'exposure',
|
|
|
|
|
- component: () => import('@/views/business/exposure/index.vue'),
|
|
|
|
|
|
|
+ path: '/purchase',
|
|
|
|
|
+ name: 'purchase',
|
|
|
|
|
+ component: () => import('@/views/business/purchase/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
|
|
+ redirect: { name: EnumType.Purchase.pending },
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/purchase/pending',
|
|
|
|
|
+ name: EnumType.Purchase.pending,
|
|
|
|
|
+ component: () => import('@/views/business/purchase/list/pending/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/purchase/performance',
|
|
|
|
|
+ name: EnumType.Purchase.performance,
|
|
|
|
|
+ component: () => import('@/views/business/purchase/list/performance/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/purchase/all',
|
|
|
|
|
+ name: EnumType.Purchase.all,
|
|
|
|
|
+ component: () => import('@/views/business/purchase/list/all/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/plan',
|
|
|
|
|
- name: 'plan',
|
|
|
|
|
- component: () => import('@/views/business/plan/index.vue'),
|
|
|
|
|
|
|
+ path: '/sell',
|
|
|
|
|
+ name: 'sell',
|
|
|
|
|
+ component: () => import('@/views/business/sell/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
|
|
+ redirect: { name: EnumType.Sell.pending },
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/sell/pending',
|
|
|
|
|
+ name: EnumType.Sell.pending,
|
|
|
|
|
+ component: () => import('@/views/business/sell/list/pending/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/sell/performance',
|
|
|
|
|
+ name: EnumType.Sell.performance,
|
|
|
|
|
+ component: () => import('@/views/business/sell/list/performance/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/sell/all',
|
|
|
|
|
+ name: EnumType.Sell.all,
|
|
|
|
|
+ component: () => import('@/views/business/sell/list/all/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/purchase',
|
|
|
|
|
- name: 'purchase',
|
|
|
|
|
- component: () => import('@/views/business/purchase/index.vue'),
|
|
|
|
|
|
|
+ path: '/exposure',
|
|
|
|
|
+ name: 'exposure',
|
|
|
|
|
+ component: () => import('@/views/business/exposure/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
- redirect: (to) => {
|
|
|
|
|
- return { name: EnumType.Purchase.realTime };
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ redirect: { name: EnumType.Exposure.realTime },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
- path: '/purchase/forward',
|
|
|
|
|
- name: EnumType.Purchase.forward,
|
|
|
|
|
- component: () => import('@/views/business/purchase/list/forward/index.vue'),
|
|
|
|
|
|
|
+ path: '/exposure/realTime',
|
|
|
|
|
+ name: EnumType.Exposure.realTime,
|
|
|
|
|
+ component: () => import('@/views/business/exposure/list/realTime/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/purchase/history',
|
|
|
|
|
- name: EnumType.Purchase.history,
|
|
|
|
|
- component: () => import('@/views/business/purchase/list/history/index.vue'),
|
|
|
|
|
|
|
+ path: '/exposure/spot',
|
|
|
|
|
+ name: EnumType.Exposure.spot,
|
|
|
|
|
+ component: () => import('@/views/business/exposure/list/spot/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/purchase/real-time',
|
|
|
|
|
- name: EnumType.Purchase.realTime,
|
|
|
|
|
- component: () => import('@/views/business/purchase/list/real-time/index.vue'),
|
|
|
|
|
|
|
+ path: '/exposure/futures',
|
|
|
|
|
+ name: EnumType.Exposure.futures,
|
|
|
|
|
+ component: () => import('@/views/business/exposure/list/futures/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/purchase/spot',
|
|
|
|
|
- name: EnumType.Purchase.spot,
|
|
|
|
|
- component: () => import('@/views/business/purchase/list/spot/index.vue'),
|
|
|
|
|
|
|
+ path: '/exposure/history',
|
|
|
|
|
+ name: EnumType.Exposure.history,
|
|
|
|
|
+ component: () => import('@/views/business/exposure/list/history/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
@@ -251,15 +304,43 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/sell',
|
|
|
|
|
- name: 'sell',
|
|
|
|
|
- component: () => import('@/views/business/sell/index.vue'),
|
|
|
|
|
|
|
+ path: '/plan',
|
|
|
|
|
+ name: 'plan',
|
|
|
|
|
+ component: () => import('@/views/business/plan/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
requireAuth: true,
|
|
requireAuth: true,
|
|
|
},
|
|
},
|
|
|
|
|
+ redirect: { name: EnumType.Plan.uncommitted },
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/plan/pending',
|
|
|
|
|
+ name: EnumType.Plan.uncommitted,
|
|
|
|
|
+ component: () => import('@/views/business/plan/list/uncommitted/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/plan/audit',
|
|
|
|
|
+ name: EnumType.Plan.audit,
|
|
|
|
|
+ component: () => import('@/views/business/plan/list/audit/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/plan/running',
|
|
|
|
|
+ name: EnumType.Plan.running,
|
|
|
|
|
+ component: () => import('@/views/business/plan/list/running/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ requireAuth: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
- path: '/business_review',
|
|
|
|
|
|
|
+ path: '_review',
|
|
|
name: 'business_review',
|
|
name: 'business_review',
|
|
|
component: () => import('@/views/manage/business-review/index.vue'),
|
|
component: () => import('@/views/manage/business-review/index.vue'),
|
|
|
meta: {
|
|
meta: {
|