1 import { Component, OnInit } from '@angular/core';
2 import {BUSINESS_STATUS} from '../../../../../../../constants/constants';
3 import {SlicingTaskServices} from "../../../../../../core/services/slicingTaskServices";
5 selector: 'app-nssi-table',
6 templateUrl: './nssi-table.component.html',
7 styleUrls: ['./nssi-table.component.less']
9 export class NssiTableComponent implements OnInit {
12 private myhttp: SlicingTaskServices
19 selectedValue:string = BUSINESS_STATUS[0];
20 listOfData: any[] = [];
21 pageIndex: number = 1;
22 pageSize: number = 10;
25 isSelect: boolean = false;
26 statusOptions: any[] = BUSINESS_STATUS;
30 this.isSelect = false;
32 pageNo: this.pageIndex,
33 pageSize: this.pageSize
35 if(this.selectedValue !== BUSINESS_STATUS[0]){
36 paramsObj["instanceStatus"] = this.selectedValue;
39 this.myhttp.getSlicingNssiList(paramsObj,this.isSelect).subscribe (res => {
40 const { result_header: { result_code }, result_body: { nssi_service_instances,record_number } } = res;
41 if (+result_code === 200) {
42 this.total = record_number;
44 this.listOfData = nssi_service_instances;
48 getListOfProcessingStatus(){
53 searchData(reset: boolean = false) {