Commit 08c41c4b authored by ari_darmawan's avatar ari_darmawan

fix active tabs

parent e036f1b5
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2" [ngClass]="{'d-none': (RoleID != _SP.PARAM_SERVICEDESK && RoleID != _SP.PARAM_SPV && (TeamID != Env.Team.SociomileStaff && TeamID != Env.Team.CsCabangBranchAgent) )}"> <div class="col-12 col-sm-6 col-md-4 col-lg-2" [ngClass]="{'d-none': (RoleID != _SP.PARAM_SERVICEDESK && RoleID != _SP.PARAM_SPV && (TeamID != Env.Team.SociomileStaff && TeamID != Env.Team.CsCabangBranchAgent) )}">
<div class="form-group" > <div class="form-group" >
<label class="text-muted"><small>Time Start </small></label> <label class="text-muted"><small>Start Date </small></label>
<div class="input-group date" id="StartDate" data-target-input="nearest"> <div class="input-group date" id="StartDate" data-target-input="nearest">
<input type="text" <input type="text"
class="form-control form-control-sm datetimepicker-input" data-toggle="datetimepicker" class="form-control form-control-sm datetimepicker-input" data-toggle="datetimepicker"
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<div class="col-12 col-sm-6 col-md-4 col-lg-2" [ngClass]="{'d-none': (RoleID != _SP.PARAM_SERVICEDESK && RoleID != _SP.PARAM_SPV && (TeamID != Env.Team.SociomileStaff && TeamID != Env.Team.CsCabangBranchAgent) )}"> <div class="col-12 col-sm-6 col-md-4 col-lg-2" [ngClass]="{'d-none': (RoleID != _SP.PARAM_SERVICEDESK && RoleID != _SP.PARAM_SPV && (TeamID != Env.Team.SociomileStaff && TeamID != Env.Team.CsCabangBranchAgent) )}">
<div class="form-group"> <div class="form-group">
<label class="text-muted"><small>Time End </small></label> <label class="text-muted"><small>End Date </small></label>
<div class="input-group date" id="EndDate" data-target-input="nearest"> <div class="input-group date" id="EndDate" data-target-input="nearest">
<input type="text" <input type="text"
class="form-control form-control-sm datetimepicker-input" data-toggle="datetimepicker" class="form-control form-control-sm datetimepicker-input" data-toggle="datetimepicker"
......
...@@ -69,7 +69,7 @@ export class AdminDashboardComponent implements OnInit { ...@@ -69,7 +69,7 @@ export class AdminDashboardComponent implements OnInit {
public TicketReportRequest = { public TicketReportRequest = {
page : 1, page : 1,
perpage : 8, perpage : 10,
user_id : null, user_id : null,
start_date : null, start_date : null,
end_date : null, end_date : null,
...@@ -78,7 +78,7 @@ export class AdminDashboardComponent implements OnInit { ...@@ -78,7 +78,7 @@ export class AdminDashboardComponent implements OnInit {
public TicketReportLogBookRequest = { public TicketReportLogBookRequest = {
page : 1, page : 1,
perpage : 8, perpage : 10,
start_date : null, start_date : null,
end_date : null, end_date : null,
servicefamily_id : [], servicefamily_id : [],
...@@ -240,9 +240,13 @@ export class AdminDashboardComponent implements OnInit { ...@@ -240,9 +240,13 @@ export class AdminDashboardComponent implements OnInit {
} }
SelectTicketCategory(_i){ SelectTicketCategory(_i){
this.TicketCategory.map(function(x,index){ // this.TicketCategory.map(function(x,index){
x.selected = false; // x.selected = false;
}) // })
this.TicketCategory.forEach(element => {
element.selected = false;
});
console.log(this.TicketCategory)
this.TicketCategory[_i].selected = true this.TicketCategory[_i].selected = true
//Model Insert //Model Insert
...@@ -275,6 +279,7 @@ export class AdminDashboardComponent implements OnInit { ...@@ -275,6 +279,7 @@ export class AdminDashboardComponent implements OnInit {
onChangeDate() { onChangeDate() {
this.startDate = AratakaConfig.BootstrapDateCustomPicker({ ID: '#StartDate', isGet: true, isGetFormat: 'YYYY-MM-DD'}); this.startDate = AratakaConfig.BootstrapDateCustomPicker({ ID: '#StartDate', isGet: true, isGetFormat: 'YYYY-MM-DD'});
this.endDate = AratakaConfig.BootstrapDateCustomPicker({ ID: '#EndDate', isGet: true, isGetFormat: 'YYYY-MM-DD' }); this.endDate = AratakaConfig.BootstrapDateCustomPicker({ ID: '#EndDate', isGet: true, isGetFormat: 'YYYY-MM-DD' });
this.GettingTicketReportCategoryDataAPI(this.DashboardCountRequest)
} }
RandomColorPicker(){ RandomColorPicker(){
......
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