83 lines
4.5 KiB
TypeScript
83 lines
4.5 KiB
TypeScript
/*
|
|
* @Description :
|
|
* @Version : 1.0
|
|
* @Author : Shiming
|
|
* @Date : 2022-02-24 15:07:57
|
|
* @LastEditors : Shiming
|
|
* @LastEditTime : 2022-02-24 15:23:48
|
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\partner-routing.module.ts
|
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
|
*/
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
|
|
import { PartnerPartnerCustomDetailComponent } from './business-statistics/components/partner-custom-detail/partner-custom-detail.component';
|
|
import { PartnerSaleCustomDetailComponent } from './business-statistics/components/sale-custom-detail/sale-custom-detail.component';
|
|
import { ParterChannelSalesEditComponent } from './channel-sales/components/edit/edit.component';
|
|
import { ParterChannelSalesListComponent } from './channel-sales/components/list/list.component';
|
|
import { ParterLevelConfigEditComponent } from './level-config/components/edit/edit.component';
|
|
import { ParterLevelConfigListComponent } from './level-config/components/list/list.component';
|
|
import { ParterRebateManageMentParticularsComponent } from './rebate-management/components/particulars/particulars.component';
|
|
import { PartnerSalePartnerDetailComponent } from './business-statistics/components/sale-partner-detail/sale-partner-detail.component';
|
|
import { PartnerPartnerCustomOrderDetailComponent } from './business-statistics/components/partner-custom-order-detail/partner-custom-order-detail.component';
|
|
import { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
|
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
|
import { ParterRebateManageMentRecordComponent } from './rebate-management/components/rebate-record/rebate-record.component';
|
|
import { PartnerAccountManagementAccountDetailComponent } from './account-management/components/account-detail/account-detail.component';
|
|
import { PartnerAccountManagementRecordedDetailComponent } from './account-management/components/recorded-detail/recorded-detail.component';
|
|
import { PartnerAccountManagementWithdrawalsRecordComponent } from './account-management/components/withdrawals-record/withdrawals-record.component';
|
|
import { PartnerAccountManagementWithdrawalsDetailComponent } from './account-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'business-statistics',
|
|
children: [
|
|
{ path: '', redirectTo: 'index' },
|
|
{ path: 'index', component: PartnerBusinessStatisticsIndexComponent },
|
|
{ path: 'partner/order-detail/:id', component: PartnerPartnerOrderDetailComponent },
|
|
{ path: 'partner/custom-detail/:id', component: PartnerPartnerCustomDetailComponent },
|
|
{ path: 'partner/custom-order-detail/:id', component: PartnerPartnerCustomOrderDetailComponent },
|
|
{ path: 'sale/custom-detail/:id', component: PartnerSaleCustomDetailComponent },
|
|
{ path: 'sale/partner-detail/:id', component: PartnerSalePartnerDetailComponent },
|
|
]
|
|
},
|
|
{
|
|
path: 'channel-sales',
|
|
children: [
|
|
{ path: '', component: ParterChannelSalesListComponent },
|
|
{ path: 'list', component: ParterChannelSalesListComponent },
|
|
{ path: 'edit', component: ParterChannelSalesEditComponent },
|
|
]
|
|
},
|
|
{
|
|
path: 'level-config',
|
|
children: [
|
|
{ path: '', component: ParterLevelConfigListComponent },
|
|
{ path: 'list', component: ParterLevelConfigListComponent },
|
|
{ path: 'edit', component: ParterLevelConfigEditComponent },
|
|
]
|
|
},
|
|
{
|
|
path: 'rebate',
|
|
children: [
|
|
{ path: 'particulars', component: ParterRebateManageMentParticularsComponent },
|
|
{ path: 'record', component: ParterRebateManageMentRecordComponent },
|
|
]
|
|
},
|
|
{
|
|
path: 'account-management',
|
|
children: [
|
|
{ path: 'list', component: PartnerAccountManagementListComponent },
|
|
{ path: 'account-detail', component: PartnerAccountManagementAccountDetailComponent },
|
|
{ path: 'recorded-detail/:id', component: PartnerAccountManagementRecordedDetailComponent },
|
|
{ path: 'withdraw-record', component: PartnerAccountManagementWithdrawalsRecordComponent },
|
|
{ path: 'withdraw-record/:id', component: PartnerAccountManagementWithdrawalsDetailComponent },
|
|
]
|
|
},
|
|
];
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class PartnerRoutingModule { }
|