Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
mySkill-x
Commits
328e4432
Commit
328e4432
authored
Aug 28, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
หัวข้อสมรรถนะ
parent
32b3b50a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
competency-topic.component.ts
...gistration/competency-topic/competency-topic.component.ts
+22
-22
No files found.
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.ts
View file @
328e4432
...
@@ -102,12 +102,12 @@ export class CompetencyTopic implements OnInit {
...
@@ -102,12 +102,12 @@ export class CompetencyTopic implements OnInit {
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
private
fileService
:
FileService
,
private
fileService
:
FileService
,
private
competencytopicService
:
CompetencytopicService
,
private
competencytopicService
:
CompetencytopicService
,
private
competencytypeService
:
CompetencytypeService
,
//
private competencytypeService: CompetencytypeService,
private
tokenService
:
TokenService
private
tokenService
:
TokenService
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getCompetencytopicList
()
this
.
getCompetencytopicList
()
this
.
getCompetencytypeList
()
//
this.getCompetencytypeList()
}
}
onExamSelected
(
event
:
any
)
{
onExamSelected
(
event
:
any
)
{
...
@@ -176,7 +176,7 @@ export class CompetencyTopic implements OnInit {
...
@@ -176,7 +176,7 @@ export class CompetencyTopic implements OnInit {
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getCompetencytypeList
()
//
this.getCompetencytypeList()
this
.
getCompetencytopicList
()
this
.
getCompetencytopicList
()
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
...
@@ -211,23 +211,23 @@ export class CompetencyTopic implements OnInit {
...
@@ -211,23 +211,23 @@ export class CompetencyTopic implements OnInit {
}
}
getCompetencytypeList
()
{
getCompetencytypeList
()
{
this
.
competencytypeListLoading
=
true
//
this.competencytypeListLoading = true
this
.
selectedItems
.
data
.
clear
()
//
this.selectedItems.data.clear()
this
.
competencytypeService
.
getList
().
subscribe
({
//
this.competencytypeService.getList().subscribe({
next
:
response
=>
{
//
next: response => {
this
.
typeList
=
response
.
map
(
x
=>
{
//
this.typeList = response.map(x => {
this
.
selectedItems
.
data
.
set
(
x
.
competencyTypeId
,
false
)
//
this.selectedItems.data.set(x.competencyTypeId, false)
return
new
MyCompetencytypeModel
(
x
)
//
return new MyCompetencytypeModel(x)
})
//
})
this
.
selectedItems
.
key
=
'competencyTypeId'
//
this.selectedItems.key = 'competencyTypeId'
this
.
selectedItems
.
count
=
0
//
this.selectedItems.count = 0
this
.
competencytypeListLoading
=
false
//
this.competencytypeListLoading = false
this
.
cdr
.
detectChanges
()
//
this.cdr.detectChanges()
},
error
:
error
=>
{
//
}, error: error => {
this
.
competencytypeListLoading
=
false
//
this.competencytypeListLoading = false
this
.
cdr
.
detectChanges
()
//
this.cdr.detectChanges()
}
//
}
})
//
})
}
}
...
@@ -292,7 +292,7 @@ export class CompetencyTopic implements OnInit {
...
@@ -292,7 +292,7 @@ export class CompetencyTopic implements OnInit {
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
);
this
.
showAlert
(
response
.
message
,
'success'
);
this
.
getCompetencytypeList
();
//
this.getCompetencytypeList();
this
.
getCompetencytopicList
();
this
.
getCompetencytopicList
();
this
.
closeDialog
()
this
.
closeDialog
()
}
else
{
}
else
{
...
@@ -355,7 +355,7 @@ export class CompetencyTopic implements OnInit {
...
@@ -355,7 +355,7 @@ export class CompetencyTopic implements OnInit {
this
.
competencyTopic
.
loading
=
false
;
this
.
competencyTopic
.
loading
=
false
;
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
);
this
.
showAlert
(
response
.
message
,
'success'
);
this
.
getCompetencytypeList
();
//
this.getCompetencytypeList();
this
.
getCompetencytopicList
();
this
.
getCompetencytopicList
();
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
);
this
.
showAlert
(
response
.
message
,
'error'
);
...
...
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