|
|
|
@ -5,6 +5,7 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
|
|
|
|
import { NzMessageService } from 'ng-zorro-antd/message'; |
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import { TreeService } from 'src/app/service/tree.service'; |
|
|
|
|
import { TaskDetailsComponent } from './task-details/task-details.component' |
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-station-weekly-plan', |
|
|
|
|
templateUrl: './station-weekly-plan.component.html', |
|
|
|
@ -12,7 +13,7 @@ import { TreeService } from 'src/app/service/tree.service';
|
|
|
|
|
}) |
|
|
|
|
export class StationWeeklyPlanComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(private http: HttpClient, private modal: NzModalService, private message: NzMessageService) { } |
|
|
|
|
constructor(private http: HttpClient, private modal: NzModalService, private message: NzMessageService,private viewContainerRef: ViewContainerRef) { } |
|
|
|
|
OrganizationId |
|
|
|
|
userId |
|
|
|
|
isSupervisor |
|
|
|
@ -192,6 +193,20 @@ export class StationWeeklyPlanComponent implements OnInit {
|
|
|
|
|
this.getAllStation() |
|
|
|
|
this.getTaskList() |
|
|
|
|
} |
|
|
|
|
taskDetails(){ |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzTitle: "双随机", |
|
|
|
|
nzFooter:null, |
|
|
|
|
nzContent: TaskDetailsComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 900, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
expandcarditem(item) { |
|
|
|
|
item.isExpand = !item.isExpand |
|
|
|
|
console.log(item) |
|
|
|
|