tango-app-ui-manage-tickets 3.7.0-beta.19 → 3.7.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -403,6 +403,7 @@ class TicketsComponent {
|
|
|
403
403
|
queryTypeList = [];
|
|
404
404
|
ClusterList;
|
|
405
405
|
filterByCluster;
|
|
406
|
+
showClusterFilter = false;
|
|
406
407
|
constructor(cd, router, route, gs, modalService, service, excelservice) {
|
|
407
408
|
this.cd = cd;
|
|
408
409
|
this.router = router;
|
|
@@ -516,21 +517,27 @@ class TicketsComponent {
|
|
|
516
517
|
this.dataObject = [
|
|
517
518
|
{ Description: "Store ID", Issues: this.storeList },
|
|
518
519
|
{ Description: "Deployed Status", Issues: this.statusType },
|
|
519
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
520
520
|
];
|
|
521
|
+
if (this.showClusterFilter) {
|
|
522
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
523
|
+
}
|
|
521
524
|
}
|
|
522
525
|
else if (this.type === 'infra' || this.type === 'dataMismatch') {
|
|
523
526
|
this.dataObject = [
|
|
524
527
|
{ Description: "Store ID", Issues: this.storeList },
|
|
525
528
|
{ Description: "Status", Issues: this.statusType },
|
|
526
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
527
529
|
];
|
|
530
|
+
if (this.showClusterFilter) {
|
|
531
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
532
|
+
}
|
|
528
533
|
}
|
|
529
534
|
else if (this.type === 'mat') {
|
|
530
535
|
this.dataObject = [
|
|
531
536
|
{ Description: "Status", Issues: this.statusType },
|
|
532
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
533
537
|
];
|
|
538
|
+
if (this.showClusterFilter) {
|
|
539
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
540
|
+
}
|
|
534
541
|
}
|
|
535
542
|
}
|
|
536
543
|
this.getTable();
|
|
@@ -564,30 +571,38 @@ class TicketsComponent {
|
|
|
564
571
|
{ Description: "Store ID", Issues: this.storeList },
|
|
565
572
|
{ Description: "Deployed Status", Issues: this.statusType },
|
|
566
573
|
{ Description: this.typeName, Issues: this.userList },
|
|
567
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
568
574
|
];
|
|
575
|
+
if (this.showClusterFilter) {
|
|
576
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
577
|
+
}
|
|
569
578
|
}
|
|
570
579
|
else if (this.users.userType === "tango" && this.type === 'infra') {
|
|
571
580
|
this.dataObject = [
|
|
572
581
|
{ Description: "Store ID", Issues: this.storeList },
|
|
573
582
|
{ Description: "Status", Issues: this.statusType },
|
|
574
583
|
{ Description: this.typeName, Issues: this.userList },
|
|
575
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
576
584
|
];
|
|
585
|
+
if (this.showClusterFilter) {
|
|
586
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
587
|
+
}
|
|
577
588
|
}
|
|
578
589
|
else if (this.users.userType === "tango" && this.type === 'dataMismatch') {
|
|
579
590
|
this.dataObject = [
|
|
580
591
|
{ Description: "Store ID", Issues: this.storeList },
|
|
581
592
|
{ Description: "Query Type", Issues: this.queryTypeList },
|
|
582
593
|
{ Description: "Status", Issues: this.statusType },
|
|
583
|
-
{ Description: "Clusters", Issues: this.ClusterList },
|
|
584
594
|
];
|
|
595
|
+
if (this.showClusterFilter) {
|
|
596
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
597
|
+
}
|
|
585
598
|
}
|
|
586
599
|
else if (this.type === 'mat') {
|
|
587
600
|
this.dataObject = [
|
|
588
601
|
{ Description: "Status", Issues: this.statusType },
|
|
589
|
-
{ Description: "Cluster", Issues: this.ClusterList },
|
|
590
602
|
];
|
|
603
|
+
if (this.showClusterFilter) {
|
|
604
|
+
this.dataObject.push({ Description: "Clusters", Issues: this.ClusterList });
|
|
605
|
+
}
|
|
591
606
|
}
|
|
592
607
|
});
|
|
593
608
|
}
|
|
@@ -771,20 +786,23 @@ class TicketsComponent {
|
|
|
771
786
|
getAllGroups() {
|
|
772
787
|
console.log(this.headerFilters?.clients);
|
|
773
788
|
this.ClusterList = [];
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
element
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
789
|
+
if (this.headerFilters?.clients[0] && this.headerFilters?.clients[0] != '') {
|
|
790
|
+
this.service.getclusters({ clientId: this.headerFilters?.clients[0], group: [], city: [] }).subscribe({
|
|
791
|
+
next: (res) => {
|
|
792
|
+
if (res && res.code == 200) {
|
|
793
|
+
this.showClusterFilter = true;
|
|
794
|
+
this.ClusterList = res?.data?.groupData;
|
|
795
|
+
this.ClusterList.forEach((element) => {
|
|
796
|
+
element.text = element.groupName;
|
|
797
|
+
element.id = element.groupName;
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
this.ClusterList = [];
|
|
802
|
+
}
|
|
785
803
|
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
804
|
+
});
|
|
805
|
+
}
|
|
788
806
|
}
|
|
789
807
|
updateCheck(event, ticketId) {
|
|
790
808
|
const ticket = this.tableListArray.find((obj) => obj.ticketId === ticketId);
|