Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nobu-web-v2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ari_darmawan
nobu-web-v2
Commits
b69829bb
Commit
b69829bb
authored
Mar 20, 2024
by
ari_darmawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release fix dropdown category
parent
4ff55834
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
15 deletions
+52
-15
package-lock.json
package-lock.json
+2
-2
admin-ticket-create.component.ts
...cket/admin-ticket-create/admin-ticket-create.component.ts
+45
-10
admin.module.ts
src/app/admin/admin.module.ts
+4
-2
environment.ts
src/environments/environment.ts
+1
-1
No files found.
package-lock.json
View file @
b69829bb
{
"name"
:
"smart-city"
,
"version"
:
"
0.0.0
"
,
"version"
:
"
2.1.2
"
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"smart-city"
,
"version"
:
"
0.0.0
"
,
"version"
:
"
2.1.2
"
,
"dependencies"
:
{
"@angular/animations"
:
"~7.1.0"
,
"@angular/common"
:
"~7.1.0"
,
...
...
src/app/admin/admin-ticket/admin-ticket-create/admin-ticket-create.component.ts
View file @
b69829bb
...
...
@@ -15,7 +15,8 @@ import { AdminTicketCustomerMdComponent } from '../admin-ticket-customer-md/admi
import
{
AdminSelectfiletemplateComponent
}
from
'../../admin-selectfiletemplate/admin-selectfiletemplate.component'
;
import
{
environment
}
from
'../../../../environments/environment.prod'
;
import
{
NzNotificationService
}
from
'ng-zorro-antd'
;
import
{
NzModalService
}
from
'ng-zorro-antd'
;
@
Component
({
selector
:
'app-admin-ticket-create'
,
templateUrl
:
'./admin-ticket-create.component.html'
,
...
...
@@ -99,6 +100,7 @@ export class AdminTicketCreateComponent implements OnInit {
public
extAgent
:
string
=
""
;
public
channel
:
string
=
""
;
listAgent
:
any
[]
=
[];
private
create_date
;
search
=
{
isAgent
:
false
,
...
...
@@ -111,6 +113,8 @@ export class AdminTicketCreateComponent implements OnInit {
private
_TicketService
:
TicketService
,
public
_SP
:
ServiceProxyWeb
,
private
API
:
MicroService
,
private
notification
:
NzNotificationService
,
private
modalService
:
NzModalService
,
private
activatedRoute
:
ActivatedRoute
)
{
this
.
activatedRoute
.
queryParams
.
subscribe
(
params
=>
{
...
...
@@ -157,7 +161,6 @@ export class AdminTicketCreateComponent implements OnInit {
}
ngOnInit
()
{
if
(
this
.
RoleID
!=
this
.
_SP
.
PARAM_AGENT
){
this
.
router
.
navigate
([
'admin'
]);
}
...
...
@@ -336,7 +339,7 @@ export class AdminTicketCreateComponent implements OnInit {
var
valid
=
true
;
this
.
inputRequired
.
forEach
(
element
=>
{
//console.log(element.nativeElement.value)
if
(
element
.
nativeElement
.
value
==
""
){
if
(
element
.
nativeElement
.
value
==
""
||
this
.
SubTopic_ID
==
''
||
this
.
Category_ID
==
''
||
!
this
.
Category_ID
){
valid
=
false
;
return
false
;
}
...
...
@@ -344,8 +347,8 @@ export class AdminTicketCreateComponent implements OnInit {
var
Request
=
{
caller_id
:
this
.
CustomerMdData
.
ID
,
service_id
:
Number
(
this
.
SubTopic_ID
),
servicesubcategory_id
:
Number
(
this
.
Category_ID
),
service_id
:
this
.
SubTopic_ID
==
''
?
''
:
Number
(
this
.
SubTopic_ID
),
servicesubcategory_id
:
this
.
Category_ID
==
''
?
''
:
Number
(
this
.
Category_ID
),
title
:
this
.
Subject
,
description
:
this
.
Description
,
cscabang
:
this
.
CSCabang
,
...
...
@@ -847,16 +850,17 @@ export class AdminTicketCreateComponent implements OnInit {
});
}
private
json_log_response_query
InsertNewTicketAPI
(
_Request
){
//console.log("Request Create",JSON.stringify(_Request))
// this.create_date = moment()
AratakaConfig
.
LoadingPage
.
showLoading
(
'Creating Ticket'
)
this
.
_TicketService
.
CreateTicketWithContact
(
_Request
)
.
subscribe
((
result
:
any
)
=>
{
if
(
result
!=
null
){
if
(
result
.
values
.
code
==
0
){
// AratakaConfig.LoadingPage.hideLoading()
// this.json_log_response_query = result.values.log_query;
var
ObjKey
=
Object
.
keys
(
result
.
values
.
objects
)
var
created
=
result
.
values
.
objects
[
ObjKey
[
0
]]
const
params
=
{
...
...
@@ -969,11 +973,42 @@ export class AdminTicketCreateComponent implements OnInit {
.
subscribe
((
result
:
any
)
=>
{
if
(
result
!=
null
){
if
(
result
.
values
!=
undefined
){
// const diffInSeconds = moment().diff(moment(this.create_date), 'seconds');
// console.log('diffInSeconds',diffInSeconds)
// if (diffInSeconds > 20) {
// this.modalService.create({
// nzTitle: 'Log Query',
// nzClosable: false,
// nzContent: `<b>Log Response Query Create Ticket</b>
// <p></p>
// <p></p>
// <p></p>
// <p>create person: <b>${this.json_log_response_query.message_create_person}</b></p>
// <p>get person: <b>${this.json_log_response_query.message_get_person}</b></p>
// <p>get Contact List: <b>${this.json_log_response_query.message_get_contact_list}</b></p>
// <p>request Type: <b>${this.json_log_response_query.message_request_type}</b></p>
// <p>create Ticket: <b>${this.json_log_response_query.message_create_ticket}</b></p>
// <p>get Ticket: <b>${this.json_log_response_query.message_get_ticket}</b></p>
// <p></p>
// <p></p>
// <p></p>
// <b>Log Response Query Assigned Ticket</b>
// <p>get Ticket: <b>${result.values.log_query.ticket}</b></p>
// <p>Query lnkcontacttoticket: <b>${result.values.log_query.lnkcontacttoticket}</b></p>
// <p>Assigned Ticket: <b>${result.values.log_query.assigned_ticket}</b></p>`,
// nzFooter: null
// });
// setTimeout(() => {
// this.modalService.closeAll()
// this.router.navigate(['admin/ticket/detail/' + _Request.ticket_assign]);
// }, 2500);
// } else {
setTimeout
(()
=>
{
this
.
router
.
navigate
([
'admin/ticket/detail/'
+
_Request
.
ticket_assign
]);
this
.
router
.
navigate
([
'admin/ticket/detail/'
+
_Request
.
ticket_assign
])
AratakaConfig
.
LoadingPage
.
hideLoading
()
},
2000
);
},
1000
);
// }
}
else
{
...
...
src/app/admin/admin.module.ts
View file @
b69829bb
...
...
@@ -38,7 +38,7 @@ import { PipeEncryptoJs } from '../pipe/pipe-global.pipe';
import { PipeDencryptoJs } from '../pipe/pipe-global.pipe';
*/
import
{
NzSelectModule
}
from
'ng-zorro-antd'
;
import
{
NgZorroAntdModule
,
NzPopoverModule
,
NzToolTipModule
}
from
'ng-zorro-antd'
;
import
{
NgZorroAntdModule
,
NzPopoverModule
,
NzToolTipModule
,
NzNotificationModule
,
NzModalModule
}
from
'ng-zorro-antd'
;
import
{
AdminTestPingComponent
}
from
'./admin-test-ping/admin-test-ping.component'
;
@
NgModule
({
declarations
:
[
...
...
@@ -83,7 +83,9 @@ import { AdminTestPingComponent } from './admin-test-ping/admin-test-ping.compon
NzSelectModule
,
NgZorroAntdModule
,
NzPopoverModule
,
NzToolTipModule
NzToolTipModule
,
NzNotificationModule
,
NzModalModule
]
})
export
class
AdminModule
{
}
src/environments/environment.ts
View file @
b69829bb
...
...
@@ -4,7 +4,7 @@
export
const
environment
=
{
production
:
false
,
"APIBASEURL"
:
"http://
localhost:9825
/"
,
"APIBASEURL"
:
"http://
crm.nobubank.com/nobucall-api-v2
/"
,
"MICROSERVICEURL"
:
"http://crm.nobubank.com/nobucall-api-log/api/v1/"
,
"SITE_NAME"
:
"Visionet Helpdesk System"
,
"SITE_LOGO"
:
"https://i0.wp.com/jogorogo.info/wp-content/uploads/2017/07/logo_visionet.png?fit=879%2C227"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment