diff --git a/src/app/routes/partner/business-statistics/components/index/index.component.html b/src/app/routes/partner/business-statistics/components/index/index.component.html
new file mode 100644
index 00000000..482ccb06
--- /dev/null
+++ b/src/app/routes/partner/business-statistics/components/index/index.component.html
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/app/routes/partner/business-statistics/components/index/index.component.spec.ts b/src/app/routes/partner/business-statistics/components/index/index.component.spec.ts
new file mode 100644
index 00000000..d2ca3b79
--- /dev/null
+++ b/src/app/routes/partner/business-statistics/components/index/index.component.spec.ts
@@ -0,0 +1,24 @@
+import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
+import { PartnerBusinessStatisticsIndexComponent } from './index.component';
+
+describe('PartnerBusinessStatisticsIndexComponent', () => {
+ let component: PartnerBusinessStatisticsIndexComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(waitForAsync(() => {
+ TestBed.configureTestingModule({
+ declarations: [PartnerBusinessStatisticsIndexComponent]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(PartnerBusinessStatisticsIndexComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/routes/partner/business-statistics/components/index/index.component.ts b/src/app/routes/partner/business-statistics/components/index/index.component.ts
new file mode 100644
index 00000000..1b409e25
--- /dev/null
+++ b/src/app/routes/partner/business-statistics/components/index/index.component.ts
@@ -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-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());
+ }
+
+}
diff --git a/src/app/routes/partner/partner-routing.module.ts b/src/app/routes/partner/partner-routing.module.ts
index c44d8492..9b76c2c4 100644
--- a/src/app/routes/partner/partner-routing.module.ts
+++ b/src/app/routes/partner/partner-routing.module.ts
@@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
+import { PartnerBusinessStatisticsIndexComponent } from './business-statistics/components/index/index.component';
-const routes: Routes = [];
+const routes: Routes = [
+ { path: 'index', component: PartnerBusinessStatisticsIndexComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
-export class PartnerRoutingModule {}
+export class PartnerRoutingModule { }
diff --git a/src/app/routes/partner/partner.module.ts b/src/app/routes/partner/partner.module.ts
index b902c8f1..c1198f85 100644
--- a/src/app/routes/partner/partner.module.ts
+++ b/src/app/routes/partner/partner.module.ts
@@ -2,10 +2,12 @@ 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[] = [];
+const COMPONENTS: any[] = [
+ PartnerBusinessStatisticsIndexComponent];
@NgModule({
declarations: [...COMPONENTS],
imports: [CommonModule, PartnerRoutingModule, SharedModule]
})
-export class PartnerModule {}
+export class PartnerModule { }