Commit a3b6a5f4 authored by ari_darmawan's avatar ari_darmawan

remove decrypt and encrypt

parent b9764e5f
......@@ -231,7 +231,7 @@ export class AdminTicketOnpicDetailComponent implements OnInit {
ngOnInit() {
(AratakaConfig.DecryptoJS(this.route.snapshot.paramMap.get('id')) == "") ? this.router.navigate(['admin/ticket']) : this.paramTicketID = parseInt(AratakaConfig.DecryptoJS(this.route.snapshot.paramMap.get('id')));
(this.route.snapshot.paramMap.get('id') == "") ? this.router.navigate(['admin/ticket']) : this.paramTicketID = parseInt(this.route.snapshot.paramMap.get('id'));
this.ClearModel();
......
......@@ -37,7 +37,8 @@
<label class="text-muted"><small>Search</small></label>
<input type="text" class="form-control form-control-sm" placeholder="Type.."
[(ngModel)]="keyword"
maxlength="100" >
maxlength="100"
(keyup.enter)="DoSearch()">
</div>
<div class="col-4 col-sm-4 col-md-3 col-lg-3 mb-3">
<label><small></small></label>
......@@ -92,7 +93,7 @@
<td style="width: 8%; text-align: center;">
<button
class="btn btn-sm btn-block arataka-btn-default"
routerLink="/admin/ticket-onpic/detail/{{data.id.toString() | PipeEncryptoJs}}"><i class="far fa-eye"></i> Detail</button>
routerLink="/admin/ticket-onpic/detail/{{data.id}}"><i class="far fa-eye"></i> Detail</button>
</td>
</tr>
</ng-container>
......
......@@ -854,7 +854,7 @@ export class AdminTicketCreateComponent implements OnInit {
if(result.values != undefined){
setTimeout(() => {
this.router.navigate(['admin/ticket/detail/' + AratakaConfig.EncryptoJS(_Request.ticket_assign)]);
this.router.navigate(['admin/ticket/detail/' + _Request.ticket_assign]);
AratakaConfig.LoadingPage.hideLoading()
}, 2000);
......
......@@ -228,11 +228,12 @@ export class AdminTicketDetailComponent implements OnInit {
private _CustomerService : CustomerService,
private _ZendeskService : ZendeskService,
private _MacroService : MacroService,
public _SP : ServiceProxyWeb) { }
public _SP : ServiceProxyWeb) {
}
ngOnInit() {
(AratakaConfig.DecryptoJS(this.route.snapshot.paramMap.get('id')) == "") ? this.router.navigate(['admin/ticket']) : this.paramTicketID = parseInt(AratakaConfig.DecryptoJS(this.route.snapshot.paramMap.get('id')));
(this.route.snapshot.paramMap.get('id') == "") ? this.router.navigate(['admin/ticket']) : this.paramTicketID = parseInt(this.route.snapshot.paramMap.get('id'));
this.ClearModel();
......@@ -780,6 +781,7 @@ export class AdminTicketDetailComponent implements OnInit {
//API Function -------------------------------------------------------------------------
GettingTicketDetailAPI(_Request){
console.log(_Request)
AratakaConfig.LoadingPage.showLoading('Retrieving data...')
this._TicketService.Detail(_Request)
.subscribe((result: any) => {
......
......@@ -37,7 +37,8 @@
<label class="text-muted"><small>Search</small></label>
<input type="text" class="form-control form-control-sm" placeholder="Type.."
[(ngModel)]="keyword"
maxlength="100" >
maxlength="100"
(keyup.enter)="DoSearch()">
</div>
<div class="col-4 col-sm-4 col-md-3 col-lg-3 mb-3">
<label><small></small></label>
......@@ -91,8 +92,7 @@
<td>{{data.agent_name}}</td>
<td style="width: 8%; text-align: center;">
<button
class="btn btn-sm btn-block arataka-btn-default"
routerLink="/admin/ticket/detail/{{data.id.toString() | PipeEncryptoJs}}"><i class="far fa-eye"></i> Detail</button>
class="btn btn-sm btn-block arataka-btn-default" (click)="pageToDetail(data)"><i class="far fa-eye"></i> Detail</button>
</td>
</tr>
</ng-container>
......
......@@ -290,7 +290,10 @@ export class AdminTicketComponent implements OnInit {
AddNewClick(){
this.router.navigate(['admin/ticket/create']);
}
pageToDetail(data: any){
let encryptId = data.id
this.router.navigate(['/admin/ticket/detail/'+ encryptId])
}
SubmitSaveCreatAndUpdate(){
// var valid = true;
......@@ -374,7 +377,7 @@ export class AdminTicketComponent implements OnInit {
.subscribe((result: any) => {
//console.log(JSON.stringify(result))
if(result.values != undefined){
console.log(result.values)
this.ListData = result.values.tickets
this.ListDataPaging.count = result.values.ticketCount
......
......@@ -41,7 +41,7 @@ export const environment = {
Keluhan : 2,
PermintaanKeServiceDesk : 4,
PermintaanKeNobuCall : 5,
TelponTerputus : 6
TelponTerputus : 7
},
Team : {
......
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