1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import { Component, OnInit } from '@angular/core';
- import { NzModalRef, NzMessageService, NzDrawerRef } from 'ng-zorro-antd';
- import { _HttpClient } from '@delon/theme';
- import { ProWorkMilestoneService } from 'app/services/project-work/pro-work-milestone.service';
- import { ProWorkMilestone } from 'app/entity/project-work/pro-work-milestone';
- import { environment } from '@env/environment';
- import { getFileListById } from '@shared/utils/file-show';
- @Component({
- selector: 'app-project-work-implementation-milestone-confirm-view',
- templateUrl: './view.component.html',
- styles: [
- `
- .base {
- position: absolute;
- bottom: 0px;
- width: 100%;
- border-top: 1px solid rgb(232, 232, 232);
- padding: 6px 16px;
- text-align: right;
- left: 0px;
- background: #fff;
- z-index: 99;
- }
- `,
- ],
- })
- export class ProjectWorkImplementationMilestoneConfirmViewComponent implements OnInit {
-
- constructor(
- private proWorkMilestoneService:ProWorkMilestoneService,
- private drawerRef:NzDrawerRef
- ) { }
- ngOnInit(): void {
- this.getById();
- }
- isLoadingSave=false;
- proWorkMilestone: ProWorkMilestone = {
- };
- id = '';
- fileList = [];
-
- getById() {
- this.isLoadingSave=true;
- this.proWorkMilestoneService.queryById(this.id).then(response => {
- if (response.success) {
-
- this.proWorkMilestone = response.result;
-
- this.fileList=response.result.fileList;
-
- getFileListById(this.fileList);
- }
- this.isLoadingSave=false;
- });
- }
- close() {
- this.drawerRef.close();
- }
-
- }
|