员工管理
This commit is contained in:
@ -39,6 +39,6 @@
|
||||
</nz-alert>
|
||||
</div>
|
||||
|
||||
<st #st [data]="url" [columns]="columns" [req]="{method:'POST'}" [res]="{reName:{list:'data'}}"
|
||||
<st #st [data]="url" [columns]="columns" [req]="{method:'POST'}" [res]="{reName:{ list: 'data.records', total: 'data.total' }}"
|
||||
(change)="stChange($event)"></st>
|
||||
</nz-card>
|
||||
@ -69,8 +69,8 @@ export class ZorroDemoComponent implements OnInit {
|
||||
this.service
|
||||
.request('/rule?_allow_anonymous=true', this.q)
|
||||
.pipe(
|
||||
map((list: Array<{ status: number; statusText: string; statusType: string }>) =>
|
||||
list.map(i => {
|
||||
map((list: { records: Array<{ status: number; statusText: string; statusType: string }> }) =>
|
||||
list.records.map(i => {
|
||||
const statusItem = this.status[i.status];
|
||||
i.statusText = statusItem.text;
|
||||
i.statusType = statusItem.type;
|
||||
|
||||
Reference in New Issue
Block a user