edit
This commit is contained in:
@ -1,9 +0,0 @@
|
|||||||
<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>
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
import { PartnerBusinessStatisticsIndexComponent } from './index.component';
|
|
||||||
|
|
||||||
describe('PartnerBusinessStatisticsIndexComponent', () => {
|
|
||||||
let component: PartnerBusinessStatisticsIndexComponent;
|
|
||||||
let fixture: ComponentFixture<PartnerBusinessStatisticsIndexComponent>;
|
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [PartnerBusinessStatisticsIndexComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(PartnerBusinessStatisticsIndexComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
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-business-statistics-index',
|
|
||||||
templateUrl: './index.component.html',
|
|
||||||
})
|
|
||||||
export class PartnerBusinessStatisticsIndexComponent 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());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
|
||||||
import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{ path: 'index', component: PartnerBusinessStatisticsIndexComponent }];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forChild(routes)],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
|
||||||
export class PartnerRoutingModule { }
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { SharedModule } from '@shared';
|
|
||||||
import { PartnerRoutingModule } from './partner-routing.module';
|
|
||||||
import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
|
|
||||||
|
|
||||||
const COMPONENTS: any[] = [
|
|
||||||
PartnerBusinessStatisticsIndexComponent];
|
|
||||||
@NgModule({
|
|
||||||
declarations: [...COMPONENTS],
|
|
||||||
imports: [CommonModule, PartnerRoutingModule, SharedModule]
|
|
||||||
})
|
|
||||||
export class PartnerModule { }
|
|
||||||
@ -67,7 +67,6 @@ const routes: Routes = [
|
|||||||
loadChildren: () => import('./contract-management/contract-management.module').then(m => m.ContractManagementManagementModule)
|
loadChildren: () => import('./contract-management/contract-management.module').then(m => m.ContractManagementManagementModule)
|
||||||
},
|
},
|
||||||
{ path: 'menu-management', loadChildren: () => import('./menu-manager/menu-manager.module').then(m => m.MenuManagerModule) },
|
{ path: 'menu-management', loadChildren: () => import('./menu-manager/menu-manager.module').then(m => m.MenuManagerModule) },
|
||||||
{ path: 'partner', loadChildren: () => import('./partner/partner.module').then(m => m.PartnerModule) },
|
|
||||||
{
|
{
|
||||||
path: 'download',
|
path: 'download',
|
||||||
loadChildren: () => import('./download/download.module').then(m => m.DownloadModule)
|
loadChildren: () => import('./download/download.module').then(m => m.DownloadModule)
|
||||||
|
|||||||
Reference in New Issue
Block a user