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
e4ba93a1
Commit
e4ba93a1
authored
Oct 15, 2021
by
ari_darmawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix team merchant topic
parent
19845a38
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
10 deletions
+26
-10
admin-ticket-create.component.html
...et/admin-ticket-create/admin-ticket-create.component.html
+2
-1
admin-ticket-create.component.ts
...cket/admin-ticket-create/admin-ticket-create.component.ts
+21
-7
environment.prod.ts
src/environments/environment.prod.ts
+3
-2
No files found.
src/app/admin/admin-ticket/admin-ticket-create/admin-ticket-create.component.html
View file @
e4ba93a1
...
...
@@ -38,7 +38,8 @@
<select
type=
"text"
#
inputRequired
class=
"form-control form-control-sm select-style"
[(
ngModel
)]="
AssigneeTeamAgent_ID
"
>
[(
ngModel
)]="
AssigneeTeamAgent_ID
"
(
change
)="
TopicChange
()"
>
<ng-container
*
ngFor=
"let AssigneeTeamAgent of AssigneeTeamAgentData; let i = index"
>
<option
value=
"{{AssigneeTeamAgent.ID}}"
>
{{AssigneeTeamAgent.Name}}
</option>
</ng-container>
...
...
src/app/admin/admin-ticket/admin-ticket-create/admin-ticket-create.component.ts
View file @
e4ba93a1
...
...
@@ -359,7 +359,6 @@ export class AdminTicketCreateComponent implements OnInit {
if
(
result
!=
null
){
this
.
AssigneeTeamData
=
[]
//console.log(JSON.stringify(result))
if
(
result
.
values
!=
null
){
this
.
AssigneeTeamData
.
push
({
...
...
@@ -422,21 +421,23 @@ export class AdminTicketCreateComponent implements OnInit {
var
AllowedAgent
=
[];
//If Selected Team is Service Desk
if
(
this
.
Env
.
Team
.
ServiceDesk
==
_Request
.
ID
){
if
(
this
.
RoleID
==
this
.
_SP
.
PARAM_AGENT
){
if
(
this
.
TeamID
==
this
.
Env
.
Team
.
CsCabangBranchAgent
){
AllowedAgent
=
[
this
.
Env
.
Agent
.
ServiceDesk
this
.
Env
.
Agent
.
ServiceDesk
,
this
.
Env
.
Agent
.
MarchantService
]
}
else
if
(
this
.
TeamID
==
this
.
Env
.
Team
.
SociomileStaff
){
AllowedAgent
=
[
this
.
Env
.
Agent
.
ServiceDesk
this
.
Env
.
Agent
.
ServiceDesk
,
this
.
Env
.
Agent
.
MarchantService
]
}
else
{
AllowedAgent
=
[
this
.
Env
.
Agent
.
ServiceDesk
,
this
.
Env
.
Agent
.
NobuCall
this
.
Env
.
Agent
.
NobuCall
,
this
.
Env
.
Agent
.
MarchantService
]
}
}
...
...
@@ -458,9 +459,7 @@ export class AdminTicketCreateComponent implements OnInit {
this
.
AssigneeTeamAgent_ID
=
""
for
(
var
i
=
0
;
i
<
result
.
values
.
length
;
i
++
){
var
isThere
=
(
this
.
Env
.
Team
.
ServiceDesk
==
_Request
.
ID
)?
AllowedAgent
.
includes
(
result
.
values
[
i
].
id
)
:
true
;
if
(
isThere
){
this
.
AssigneeTeamAgentData
.
push
({
ID
:
result
.
values
[
i
].
id
.
toString
(),
...
...
@@ -617,12 +616,27 @@ export class AdminTicketCreateComponent implements OnInit {
}]
this
.
Category_ID
=
""
if
(
this
.
Topic_ID
==
'2'
&&
this
.
AssigneeTeamAgent_ID
==
'30949'
){
this
.
SubTopicData
.
push
({
ID
:
'128'
,
Name
:
"Nobu Merchant Business (Permintaan Barcode QRIS)"
},{
ID
:
'129'
,
Name
:
"Nobu Merchant Business/ QRIS (Kendala Transaksi)"
})
}
else
if
(
this
.
Topic_ID
==
'4'
&&
this
.
AssigneeTeamAgent_ID
==
'30949'
){
this
.
SubTopicData
.
push
({
ID
:
'115'
,
Name
:
"Nobu Merchant Business (Permintaan Barcode QRIS)"
})
}
else
{
for
(
var
i
=
0
;
i
<
result
.
values
.
length
;
i
++
){
this
.
SubTopicData
.
push
({
ID
:
result
.
values
[
i
].
id
.
toString
(),
Name
:
result
.
values
[
i
].
name
})
}
}
// this.SubTopic_ID = this.SubTopicData[0].ID
// this.GettingCategoryListAPI({ID : this.SubTopicData[0].ID})
...
...
src/environments/environment.prod.ts
View file @
e4ba93a1
...
...
@@ -65,12 +65,13 @@ export const environment = {
SociomileStaff
:
10895
,
ProductInovationAndBusinessSupport
:
30397
,
ITRM
:
30393
,
SupervisorNobu
:
42931
SupervisorNobu
:
42931
,
},
Agent
:
{
NobuCall
:
42
,
ServiceDesk
:
43
ServiceDesk
:
43
,
MarchantService
:
30949
}
};
...
...
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