1 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2 import { SlicingTaskServices } from '../../../../../core/services/slicingTaskServices'
5 selector: 'app-check-process-model',
6 templateUrl: './check-process-model.component.html',
7 styleUrls: ['./check-process-model.component.less']
9 export class CheckProcessModelComponent implements OnInit {
11 @Input() moduleTitle: string;
12 @Input() showProcess: boolean;
13 @Input() taskId: string;
15 @Output() cancel = new EventEmitter<boolean>();
17 constructor(private http: SlicingTaskServices) { }
20 businessRequirement: any[];
26 if (this.showProcess) {
32 this.http.getSlicingBasicInfo(this.taskId).subscribe(res => {
33 const { result_body, result_header: { result_code } } = res;
34 if (+result_code === 200) {
42 business_demand_info: { service_snssai }
45 this.checkDetail = [{ task_id, task_name, create_time, processing_status, service_snssai }];
47 this.businessRequirement = [business_demand_info];
49 this.NSTinfo = [nst_info];
55 this.showProcess = false;
56 this.cancel.emit(this.showProcess)