Commit 073b95aa authored by ari_darmawan's avatar ari_darmawan

fix deskripsi and sisa sla null

parent 58c1c794
<!-- <div class="row">
<div class="col-12 col-sm-12"> -->
<button class="btn btn-sm btn-success arataka-btn-success" style="width: 100px;" (click)="requestAPI()" [disabled]="isDisabledButtonSearch">
<i class="bi bi-search"></i>
Search
</button>
<!-- </div>
</div> -->
<div class="row"> <div class="row">
<div class="col-12 col-sm-12 text-center mt-5" *ngIf="isTicketReportEmpty == true"> <div class="col-12 col-sm-12 text-center mt-5" *ngIf="isTicketReportEmpty == true">
<p style="font-size:18px;" class="text-muted"><i class="fas fa-table fa-3x"></i> <br> No List of Report</p> <p style="font-size:18px;" class="text-muted"><i class="fas fa-table fa-3x"></i> <br> No List of Report</p>
...@@ -44,7 +52,7 @@ ...@@ -44,7 +52,7 @@
<th rowspan="2">Status Pengaduan</th> <th rowspan="2">Status Pengaduan</th>
<th rowspan="2">Tanggal Resolved</th> <th rowspan="2">Tanggal Resolved</th>
<th rowspan="2">SLA Internal</th> <th rowspan="2">SLA Internal</th>
<th rowspan="2">Hari Kerja</th> <th rowspan="2">Sisa Hari SLA</th>
<th rowspan="2">Target Penyelesaian</th> <th rowspan="2">Target Penyelesaian</th>
<th rowspan="2">Remark</th> <th rowspan="2">Remark</th>
<th colspan="2">Potensi Kerugian</th> <th colspan="2">Potensi Kerugian</th>
...@@ -81,7 +89,7 @@ ...@@ -81,7 +89,7 @@
<th rowspan="2">Status Permintaan</th> <th rowspan="2">Status Permintaan</th>
<th rowspan="2">Tanggal Resolved</th> <th rowspan="2">Tanggal Resolved</th>
<th rowspan="2">SLA Internal</th> <th rowspan="2">SLA Internal</th>
<th rowspan="2">Hari Kerja</th> <th rowspan="2">Sisa Hari SLA</th>
<th rowspan="2">Target Penyelesaian</th> <th rowspan="2">Target Penyelesaian</th>
<th rowspan="2">Remark</th> <th rowspan="2">Remark</th>
<th colspan="2">Potensi Kerugian</th> <th colspan="2">Potensi Kerugian</th>
...@@ -112,7 +120,7 @@ ...@@ -112,7 +120,7 @@
<th>Status Informasi</th> <th>Status Informasi</th>
<th>Tanggal</th> <th>Tanggal</th>
<th>Target Penyelesaian</th> <th>Target Penyelesaian</th>
<th>Hari Kerja</th> <th>Sisa Hari SLA</th>
</tr> </tr>
</ng-container> </ng-container>
<ng-container *ngIf="TicketReportRequest.servicefamily_name == 'Inquiry Call Center & NWB'"> <ng-container *ngIf="TicketReportRequest.servicefamily_name == 'Inquiry Call Center & NWB'">
...@@ -136,7 +144,7 @@ ...@@ -136,7 +144,7 @@
<th>Status Informasi</th> <th>Status Informasi</th>
<th>Tanggal</th> <th>Tanggal</th>
<th>Target Penyelesaian</th> <th>Target Penyelesaian</th>
<th>Hari Kerja</th> <th>Sisa Hari SLA</th>
</tr> </tr>
</ng-container> </ng-container>
<ng-container *ngIf="TicketReportRequest.servicefamily_name == 'Telepon terputus Call Center & NWB'"> <ng-container *ngIf="TicketReportRequest.servicefamily_name == 'Telepon terputus Call Center & NWB'">
...@@ -152,7 +160,7 @@ ...@@ -152,7 +160,7 @@
<th>Status</th> <th>Status</th>
<th>Tanggal Closed</th> <th>Tanggal Closed</th>
<th>Target Penyelesaian</th> <th>Target Penyelesaian</th>
<th>Hari Kerja</th> <th>Sisa Hari SLA</th>
</tr> </tr>
</ng-container> </ng-container>
</thead> </thead>
......
...@@ -54,6 +54,7 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -54,6 +54,7 @@ export class AdminDashboardLogboookComponent implements OnInit {
public isTicketReportLoading = false public isTicketReportLoading = false
public isTicketReportEmpty = true public isTicketReportEmpty = true
public isDisabledButtonSearch = false;
//For abort subscribtion search Metabase List //For abort subscribtion search Metabase List
public Subscribtion = null; public Subscribtion = null;
...@@ -79,7 +80,15 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -79,7 +80,15 @@ export class AdminDashboardLogboookComponent implements OnInit {
ngOnInitAfter(_RequestList, _Model){ ngOnInitAfter(_RequestList, _Model){
this.TicketReportRequest =_RequestList this.TicketReportRequest =_RequestList
this.ModelReportCategoryLogBook =_Model this.ModelReportCategoryLogBook =_Model
this.GettingTicketReportDataAPI(this.TicketReportRequest) this.isTicketReportEmpty = true;
this.isTicketReportLoading = false;
this.TicketReportData = [];
// this.GettingTicketReportDataAPI(this.TicketReportRequest)
}
requestAPI() {
this.isDisabledButtonSearch = true;
this.GettingTicketReportDataAPI(this.TicketReportRequest);
} }
ReportExportToExcel(){ ReportExportToExcel(){
...@@ -94,6 +103,17 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -94,6 +103,17 @@ export class AdminDashboardLogboookComponent implements OnInit {
team_id : this.TicketReportRequest.team_id, team_id : this.TicketReportRequest.team_id,
user_id : this.TicketReportRequest.user_id, user_id : this.TicketReportRequest.user_id,
}) })
console.log({
page : this.TicketReportRequest.page,
perpage : this.TicketReportRequest.perpage,
start_date : this.TicketReportRequest.start_date,
end_date : this.TicketReportRequest.end_date,
servicefamily_id : this.TicketReportRequest.servicefamily_id,
servicefamily_name : this.TicketReportRequest.servicefamily_name,
is_export : 'excel',
team_id : this.TicketReportRequest.team_id,
user_id : this.TicketReportRequest.user_id,
})
} }
...@@ -102,6 +122,7 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -102,6 +122,7 @@ export class AdminDashboardLogboookComponent implements OnInit {
this.TicketReportRequest.page = this.TicketReportRequest.page -= 1 this.TicketReportRequest.page = this.TicketReportRequest.page -= 1
this.PagingDisplay = "Page "+this.TicketReportRequest.page+" from " + Math.ceil(this.ListDataPagingReport.count / this.TicketReportRequest.perpage) + ', Total ' + this.ListDataPagingReport.count + ' Data' this.PagingDisplay = "Page "+this.TicketReportRequest.page+" from " + Math.ceil(this.ListDataPagingReport.count / this.TicketReportRequest.perpage) + ', Total ' + this.ListDataPagingReport.count + ' Data'
this.GettingTicketReportDataAPI(this.TicketReportRequest) this.GettingTicketReportDataAPI(this.TicketReportRequest)
this.isDisabledButtonSearch = true;
} }
} }
...@@ -110,6 +131,7 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -110,6 +131,7 @@ export class AdminDashboardLogboookComponent implements OnInit {
this.TicketReportRequest.page = this.TicketReportRequest.page += 1 this.TicketReportRequest.page = this.TicketReportRequest.page += 1
this.PagingDisplay = "Page "+this.TicketReportRequest.page+" from " + Math.ceil(this.ListDataPagingReport.count / this.TicketReportRequest.perpage) + ', Total ' + this.ListDataPagingReport.count + ' Data' this.PagingDisplay = "Page "+this.TicketReportRequest.page+" from " + Math.ceil(this.ListDataPagingReport.count / this.TicketReportRequest.perpage) + ', Total ' + this.ListDataPagingReport.count + ' Data'
this.GettingTicketReportDataAPI(this.TicketReportRequest) this.GettingTicketReportDataAPI(this.TicketReportRequest)
this.isDisabledButtonSearch = true;
} }
} }
...@@ -120,12 +142,12 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -120,12 +142,12 @@ export class AdminDashboardLogboookComponent implements OnInit {
this.TicketReportData = undefined this.TicketReportData = undefined
this.isTicketReportLoading = true this.isTicketReportLoading = true
this.isTicketReportEmpty = false this.isTicketReportEmpty = false
console.log("Report Request", JSON.stringify(_Request)) console.log("Report Request", _Request)
//console.log("loading...") //console.log("loading...")
this.Subscribtion = this._DashboardService.ReportTicketLogBook(_Request) this.Subscribtion = this._DashboardService.ReportTicketLogBook(_Request)
.subscribe((result: any) => { .subscribe((result: any) => {
console.log("Report Response nih", JSON.stringify(result)) console.log("Report Response nih", result)
this.isDisabledButtonSearch = false;
if(result.values.data.length != 0){ if(result.values.data.length != 0){
this.TicketReportData = result.values.data; this.TicketReportData = result.values.data;
...@@ -145,7 +167,7 @@ export class AdminDashboardLogboookComponent implements OnInit { ...@@ -145,7 +167,7 @@ export class AdminDashboardLogboookComponent implements OnInit {
(err: HttpErrorResponse) => { (err: HttpErrorResponse) => {
console.log(JSON.stringify(err.error)) console.log(JSON.stringify(err.error))
//AratakaConfig.Alert.showAlert(err.error.detail,'alert-danger',2000) //AratakaConfig.Alert.showAlert(err.error.detail,'alert-danger',2000)
this.isDisabledButtonSearch = false;
this.isTicketReportLoading = false this.isTicketReportLoading = false
this.isTicketReportEmpty = true this.isTicketReportEmpty = true
......
<button class="btn btn-sm btn-success arataka-btn-success" style="width: 100px;" (click)="requestAPI()" [disabled]="isDisabledButtonSearch">
<i class="bi bi-search"></i>
Search
</button>
<div class="row"> <div class="row">
<div class="col-12 col-sm-12 text-center mt-5" *ngIf="isTicketReportEmpty == true"> <div class="col-12 col-sm-12 text-center mt-5" *ngIf="isTicketReportEmpty == true">
<p style="font-size:18px;" class="text-muted"><i class="fas fa-table fa-3x"></i> <br> No List of Report</p> <p style="font-size:18px;" class="text-muted"><i class="fas fa-table fa-3x"></i> <br> No List of Report</p>
......
...@@ -49,7 +49,7 @@ export class AdminDashboardReportComponent implements OnInit { ...@@ -49,7 +49,7 @@ export class AdminDashboardReportComponent implements OnInit {
public TicketReportData = undefined public TicketReportData = undefined
public ListDataPagingReport = {count : 0} public ListDataPagingReport = {count : 0}
public isDisabledButtonSearch = false;
public isTicketReportLoading = false public isTicketReportLoading = false
public isTicketReportEmpty = true public isTicketReportEmpty = true
...@@ -76,7 +76,15 @@ export class AdminDashboardReportComponent implements OnInit { ...@@ -76,7 +76,15 @@ export class AdminDashboardReportComponent implements OnInit {
ngOnInitAfter(_RequestList, _Model){ ngOnInitAfter(_RequestList, _Model){
this.TicketReportRequest =_RequestList this.TicketReportRequest =_RequestList
this.ModelReportCategory =_Model this.ModelReportCategory =_Model
this.isTicketReportEmpty = true;
this.isTicketReportLoading = false;
this.TicketReportData = [];
// this.GettingTicketReportDataAPI(this.TicketReportRequest)
}
requestAPI() {
this.GettingTicketReportDataAPI(this.TicketReportRequest) this.GettingTicketReportDataAPI(this.TicketReportRequest)
this.isDisabledButtonSearch = true;
} }
ReportExportToExcel(){ ReportExportToExcel(){
...@@ -121,7 +129,8 @@ export class AdminDashboardReportComponent implements OnInit { ...@@ -121,7 +129,8 @@ export class AdminDashboardReportComponent implements OnInit {
this.isTicketReportEmpty = false this.isTicketReportEmpty = false
//console.log("Report Request", JSON.stringify(_Request)) //console.log("Report Request", JSON.stringify(_Request))
this.Subscribtion = this._DashboardService.ReportTicket(_Request) this.Subscribtion = this._DashboardService.ReportTicket(_Request)
.subscribe((result: any) => { .subscribe((result: any) => {
this.isDisabledButtonSearch = false;
//console.log("Report Response nih", JSON.stringify(result)) //console.log("Report Response nih", JSON.stringify(result))
if(result.values.data.length != 0){ if(result.values.data.length != 0){
...@@ -146,7 +155,7 @@ export class AdminDashboardReportComponent implements OnInit { ...@@ -146,7 +155,7 @@ export class AdminDashboardReportComponent implements OnInit {
this.isTicketReportLoading = false this.isTicketReportLoading = false
this.isTicketReportEmpty = true this.isTicketReportEmpty = true
this.isDisabledButtonSearch = false;
this._cRef.detectChanges(); this._cRef.detectChanges();
}); });
} }
......
...@@ -275,6 +275,14 @@ export class AdminDashboardComponent implements OnInit { ...@@ -275,6 +275,14 @@ export class AdminDashboardComponent implements OnInit {
}else{ }else{
userID = this._SP.getUserInformation.values.user_id userID = this._SP.getUserInformation.values.user_id
} }
console.log({
user_id : userID,
user_name : this._SP.getUserInformation.values.contact_name,
start_date : this.DashboardCountRequest.start_date,
end_date : this.DashboardCountRequest.end_date,
type_id : this.DashboardCardColorsData[_i].TypeId,
type_name : this.DashboardCardColorsData[_i].Name
})
this.GettingExcelForDashboardDataAPI({ this.GettingExcelForDashboardDataAPI({
user_id : userID, user_id : userID,
user_name : this._SP.getUserInformation.values.contact_name, user_name : this._SP.getUserInformation.values.contact_name,
...@@ -497,7 +505,7 @@ export class AdminDashboardComponent implements OnInit { ...@@ -497,7 +505,7 @@ export class AdminDashboardComponent implements OnInit {
//Excel //Excel
GettingExcelForDashboardDataAPI(_Request){ GettingExcelForDashboardDataAPI(_Request){
//console.log("Request Nih", JSON.stringify(_Request)) console.log("Request Nih", _Request)
AratakaConfig.LoadingPage.showLoading('Please wait.., perparing excel.') AratakaConfig.LoadingPage.showLoading('Please wait.., perparing excel.')
this.Subscribtion = this._DashboardService.downloadFileExcelDashboard(_Request) this.Subscribtion = this._DashboardService.downloadFileExcelDashboard(_Request)
.subscribe((result: any) => { .subscribe((result: any) => {
......
...@@ -8,7 +8,7 @@ export const environment = { ...@@ -8,7 +8,7 @@ export const environment = {
// ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api/', // ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api/',
//dev //dev
// ApiUrlBase : ' http://innodev.vnetcloud.com/nobucall-api-v2/', ApiUrlBase : ' http://localhost:9825/',
//uat //uat
// ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api-uat/', // ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api-uat/',
...@@ -19,7 +19,7 @@ export const environment = { ...@@ -19,7 +19,7 @@ export const environment = {
// PROD // PROD
// ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api-sit/', // ApiUrlBase : 'http://innodev.vnetcloud.com/nobucall-api-sit/',
ApiUrlBase : 'http://crm.nobubank.com/nobucall-api-v2/', // ApiUrlBase : 'http://crm.nobubank.com/nobucall-api-v2/',
SITE_NAME : "Visionet Helpdesk System", SITE_NAME : "Visionet Helpdesk System",
SITE_LOGO : "https://i0.wp.com/jogorogo.info/wp-content/uploads/2017/07/logo_visionet.png?fit=879%2C227", SITE_LOGO : "https://i0.wp.com/jogorogo.info/wp-content/uploads/2017/07/logo_visionet.png?fit=879%2C227",
COMPANY_NAME : "PT. Visionet Data Internasional", COMPANY_NAME : "PT. Visionet Data Internasional",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment