Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
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
myAppraisal
Commits
87d9dc4b
Commit
87d9dc4b
authored
Dec 23, 2024
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
บังคับให้อัปเดต View ตอนเปิดmodal
parent
66e3de01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
department-list.component.ts
...usiness-unit/department-list/department-list.component.ts
+4
-2
No files found.
src/app/components/company-registration/branch-business-unit/department-list/department-list.component.ts
View file @
87d9dc4b
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
C
hangeDetectorRef
,
C
omponent
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
Bu1Model
,
MyBu1Model
}
from
'src/app/shared/model/bu1.model'
;
import
{
Bu2Model
,
MyBu2Model
}
from
'src/app/shared/model/bu2.model'
;
...
...
@@ -37,7 +37,8 @@ export class DepartmentListComponent implements OnInit {
currentModal
=
""
constructor
(
private
bu2Service
:
Bu2Service
,
private
bu1Service
:
Bu1Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
ngOnInit
():
void
{
this
.
getBu2List
()
...
...
@@ -64,6 +65,7 @@ export class DepartmentListComponent implements OnInit {
if
(
this
.
bu2
.
parent
)
{
this
.
bu1Service
.
getById
(
this
.
bu2
.
parent
).
subscribe
(
response
=>
{
this
.
bu1
=
new
MyBu1Model
(
response
)
this
.
cdr
.
detectChanges
()
})
}
}
...
...
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