固定资产项目前端文件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
943 B

12 months ago
import { Component, OnInit } from '@angular/core'
import { ApiService } from 'app/services'
import { SharedModule } from 'app/shared/shared.module'
import { NzSafeAny } from 'ng-zorro-antd/core/types'
import { NzMessageService } from 'ng-zorro-antd/message'
import { NzModalService } from 'ng-zorro-antd/modal'
import { finalize } from 'rxjs'
@Component({
selector: 'app-flow-main',
standalone: true,
imports: [SharedModule],
templateUrl: './flow-main.component.html',
styleUrl: './flow-main.component.less',
})
export class FlowMainComponent implements OnInit {
constructor(
private api: ApiService,
private msg: NzMessageService,
private modal: NzModalService,
) {}
assetFlows: NzSafeAny[] = []
loading = false
ngOnInit(): void {
this.loading = true
this.api
.getFlowForms({})
.pipe(
finalize(() => {
this.loading = false
}),
)
.subscribe((res) => {
this.assetFlows = res.body
})
}
}