Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myjob-manage
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
myjob-manage
Commits
ade9e5fa
Commit
ade9e5fa
authored
Jun 27, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo
parent
53704fe7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
23 deletions
+23
-23
login.component.ts
src/app/authentication/login/login.component.ts
+22
-22
logo.png
src/assets/images/brand-logos/logo.png
+0
-0
logo3.png
src/assets/images/brand-logos/logo3.png
+0
-0
index.html
src/index.html
+1
-1
No files found.
src/app/authentication/login/login.component.ts
View file @
ade9e5fa
...
...
@@ -123,15 +123,15 @@ export class LoginComponent {
this
.
tokenService
.
saveToken
(
result
.
access_token
);
// this.tokenService.saveRefreshToken(result.refreshToken);
this
.
tokenService
.
saveUser
(
result
);
if
(
result
.
member
.
status
==
1
)
{
if
(
result
.
member
.
role
==
99
)
{
this
.
routes
.
navigate
([
'/admin/member-manage'
])
}
else
{
this
.
adminCompanyList
(
result
.
member
.
memberId
)
}
}
else
{
this
.
error
=
'ไม่สามารถใช้งานได้กรุณาติดต่อผู้ให้บริการ'
}
//
if (result.member.status == 1) {
//
if (result.member.role == 99) {
//
this.routes.navigate(['/admin/member-manage'])
//
} else {
//
this.adminCompanyList(result.member.memberId)
//
}
//
} else {
//
this.error = 'ไม่สามารถใช้งานได้กรุณาติดต่อผู้ให้บริการ'
//
}
// this.routes.navigate(['/admin/member-manage'])
},
(
error
)
=>
{
this
.
showLoader
=
false
;
...
...
@@ -140,18 +140,18 @@ export class LoginComponent {
}
adminCompanyList
(
memberId
:
string
)
{
this
.
empServie
.
getCompanyAdmin
(
memberId
).
subscribe
(
result
=>
{
if
(
result
.
length
>
0
)
{
this
.
routes
.
navigate
([
'/company/home/'
+
result
[
0
].
companyId
])
}
else
{
this
.
error
=
'คุณไม่มีสิทธิ์ใช้งานในส่วนนี้'
}
},
(
error
)
=>
{
this
.
showLoader
=
false
;
this
.
error
=
'คุณไม่มีสิทธิ์ใช้งานในส่วนนี้'
;
})
}
//
adminCompanyList(memberId: string) {
//
this.empServie.getCompanyAdmin(memberId).subscribe(result => {
//
if (result.length > 0) {
//
this.routes.navigate(['/company/home/'+result[0].companyId])
//
}
//
else {
//
this.error = 'คุณไม่มีสิทธิ์ใช้งานในส่วนนี้'
//
}
//
}, (error) => {
//
this.showLoader = false;
//
this.error = 'คุณไม่มีสิทธิ์ใช้งานในส่วนนี้';
//
})
//
}
}
src/assets/images/brand-logos/logo.png
View replaced file @
53704fe7
View file @
ade9e5fa
17.6 KB
|
W:
|
H:
9.73 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/brand-logos/logo3.png
0 → 100644
View file @
ade9e5fa
17.6 KB
src/index.html
View file @
ade9e5fa
...
...
@@ -4,7 +4,7 @@
<head>
<meta
charset=
"utf-8"
>
<title>
Time Attendance System
</title>
<title>
Myjob
</title>
<base
href=
"/"
>
<!-- <base href="/ynex-tailwind/preview/"> -->
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
...
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