forked from dotnetcore/osharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
tests/web/ui/ng-alain7/src/app/routes/systems/pack/pack.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<p> | ||
pack works! | ||
</p> | ||
<nz-card> | ||
<div> | ||
<button nz-button (click)="st.reload()"><i nz-icon nzType="reload" nzTheme="outline"></i>刷新</button> | ||
</div> | ||
<st #st [data]="readUrl" [columns]="columns" [req]="req" [res]="res" [(pi)]="request.PageCondition.PageIndex" [(ps)]="request.PageCondition.PageSize" [page]="page" size="small" [scroll]="{x:'1200px'}" multiSort | ||
(change)="change($event)" (error)="error($event)"></st> | ||
</nz-card> |
21 changes: 18 additions & 3 deletions
21
tests/web/ui/ng-alain7/src/app/routes/systems/pack/pack.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component, OnInit, Injector } from '@angular/core'; | ||
import { STComponentBase, AlainService } from '@shared/osharp/services/ng-alain.service'; | ||
import { OsharpSTColumn } from '@shared/osharp/services/ng-alain.types'; | ||
|
||
@Component({ | ||
selector: 'app-pack', | ||
templateUrl: './pack.component.html', | ||
styles: [] | ||
}) | ||
export class PackComponent implements OnInit { | ||
export class PackComponent extends STComponentBase implements OnInit { | ||
|
||
constructor() { } | ||
constructor(injector: Injector, private alain: AlainService) { | ||
super(injector); | ||
this.moduleName = 'pack'; | ||
} | ||
|
||
ngOnInit() { | ||
super.InitBase(); | ||
} | ||
|
||
protected GetSTColumns(): OsharpSTColumn[] { | ||
return [ | ||
{ title: '名称', index: 'Display' }, | ||
{ title: '类型', index: 'Class' }, | ||
{ title: '级别', index: 'Level', type: 'tag', tag: this.alain.PackLevelTags }, | ||
{ title: '启动顺序', index: 'Order' }, | ||
{ title: '是否启用', index: 'IsEnabled' }, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters