账户管理
This commit is contained in:
@ -0,0 +1,9 @@
|
|||||||
|
<page-header [action]="phActionTpl">
|
||||||
|
<ng-template #phActionTpl>
|
||||||
|
<button (click)="add()" nz-button nzType="primary">新建</button>
|
||||||
|
</ng-template>
|
||||||
|
</page-header>
|
||||||
|
<nz-card>
|
||||||
|
<sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
|
||||||
|
<st #st [data]="url" [columns]="columns"></st>
|
||||||
|
</nz-card>
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { PartnerAccountManagementListComponent } from './list.component';
|
||||||
|
|
||||||
|
describe('PartnerAccountManagementListComponent', () => {
|
||||||
|
let component: PartnerAccountManagementListComponent;
|
||||||
|
let fixture: ComponentFixture<PartnerAccountManagementListComponent>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [PartnerAccountManagementListComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PartnerAccountManagementListComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
|
import { SFSchema } from '@delon/form';
|
||||||
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-partner-list',
|
||||||
|
templateUrl: './list.component.html',
|
||||||
|
})
|
||||||
|
export class PartnerAccountManagementListComponent implements OnInit {
|
||||||
|
url = `/user`;
|
||||||
|
searchSchema: SFSchema = {
|
||||||
|
properties: {
|
||||||
|
no: {
|
||||||
|
type: 'string',
|
||||||
|
title: '编号'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
|
columns: STColumn[] = [
|
||||||
|
{ title: '编号', index: 'no' },
|
||||||
|
{ title: '调用次数', type: 'number', index: 'callNo' },
|
||||||
|
{ title: '头像', type: 'img', width: '50px', index: 'avatar' },
|
||||||
|
{ title: '时间', type: 'date', index: 'updatedAt' },
|
||||||
|
{
|
||||||
|
title: '',
|
||||||
|
buttons: [
|
||||||
|
// { text: '查看', click: (item: any) => `/form/${item.id}` },
|
||||||
|
// { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
||||||
|
|
||||||
|
ngOnInit(): void { }
|
||||||
|
|
||||||
|
add(): void {
|
||||||
|
// this.modal
|
||||||
|
// .createStatic(FormEditComponent, { i: { id: 0 } })
|
||||||
|
// .subscribe(() => this.st.reload());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -21,6 +21,7 @@ import { ParterRebateManageMentParticularsComponent } from './rebate-management/
|
|||||||
import { PartnerSalePartnerDetailComponent } from './business-statistics/components/sale-partner-detail/sale-partner-detail.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 { 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 { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
||||||
|
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
@ -57,7 +58,12 @@ const routes: Routes = [
|
|||||||
{ path: 'particulars', component: ParterRebateManageMentParticularsComponent },
|
{ path: 'particulars', component: ParterRebateManageMentParticularsComponent },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
];
|
{
|
||||||
|
path: 'account-management',
|
||||||
|
children: [
|
||||||
|
{ path: 'list', component: PartnerAccountManagementListComponent },
|
||||||
|
]
|
||||||
|
}];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import { ParterRebateManageMentParticularsComponent } from './rebate-management/
|
|||||||
import { PartnerSalePartnerDetailComponent } from './business-statistics/components/sale-partner-detail/sale-partner-detail.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 { 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 { PartnerPartnerOrderDetailComponent } from './business-statistics/components/partner-order-detail/partner-order-detail.component';
|
||||||
|
import { PartnerAccountManagementListComponent } from './account-management/components/list/list.component';
|
||||||
|
|
||||||
const COMPONENTS: any[] = [
|
const COMPONENTS: any[] = [
|
||||||
PartnerBusinessStatisticsIndexComponent,
|
PartnerBusinessStatisticsIndexComponent,
|
||||||
@ -29,9 +30,9 @@ const COMPONENTS: any[] = [
|
|||||||
PartnerSaleCustomDetailComponent,
|
PartnerSaleCustomDetailComponent,
|
||||||
ParterRebateManageMentParticularsComponent,
|
ParterRebateManageMentParticularsComponent,
|
||||||
PartnerSalePartnerDetailComponent,
|
PartnerSalePartnerDetailComponent,
|
||||||
PartnerPartnerCustomOrderDetailComponent
|
PartnerPartnerCustomOrderDetailComponent,
|
||||||
,
|
PartnerPartnerOrderDetailComponent,
|
||||||
PartnerPartnerOrderDetailComponent];
|
PartnerAccountManagementListComponent];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [...COMPONENTS],
|
declarations: [...COMPONENTS],
|
||||||
|
|||||||
@ -72,7 +72,7 @@ const routes: Routes = [
|
|||||||
path: 'download',
|
path: 'download',
|
||||||
loadChildren: () => import('./download/download.module').then(m => m.DownloadModule)
|
loadChildren: () => import('./download/download.module').then(m => m.DownloadModule)
|
||||||
}
|
}
|
||||||
]
|
{ path: 'account-management', loadChildren: () => import('./account-management/account-management.module').then((m) => m.AccountManagementModule) },]
|
||||||
},
|
},
|
||||||
// passport
|
// passport
|
||||||
{ path: '', loadChildren: () => import('./passport/passport.module').then(m => m.PassportModule) },
|
{ path: '', loadChildren: () => import('./passport/passport.module').then(m => m.PassportModule) },
|
||||||
|
|||||||
@ -508,16 +508,14 @@
|
|||||||
{
|
{
|
||||||
"text": "合伙人管理",
|
"text": "合伙人管理",
|
||||||
"icon": "anticon anticon-dashboard",
|
"icon": "anticon anticon-dashboard",
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "业务统计",
|
"text": "业务统计",
|
||||||
"link": "/partner/business-statistics/index"
|
"link": "/partner/business-statistics/index"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "返佣管理",
|
"text": "返佣管理",
|
||||||
"group": true,
|
"group": true,
|
||||||
"children": [
|
"children": [{
|
||||||
{
|
|
||||||
"text": "返佣配置",
|
"text": "返佣配置",
|
||||||
"link": "/partner/rebate/"
|
"link": "/partner/rebate/"
|
||||||
},
|
},
|
||||||
@ -538,6 +536,14 @@
|
|||||||
{
|
{
|
||||||
"text": "等级配置",
|
"text": "等级配置",
|
||||||
"link": "/partner/level-config/list"
|
"link": "/partner/level-config/list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "账户管理",
|
||||||
|
"group": true,
|
||||||
|
"children": [{
|
||||||
|
"text": "账户管理",
|
||||||
|
"link": "/partner/account-management/list"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user