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
8b7133ef
Commit
8b7133ef
authored
Nov 21, 2024
by
Natthaphat Pankiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การจัดการข้อมูลองค์กร>ข้อมูลลักษณะงาน>ระดับพนักงาน(PL)
parent
5db87453
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
3 deletions
+97
-3
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+2
-0
employee-categories.component.html
...on/employee-categories/employee-categories.component.html
+9
-2
employee-level.component.html
...-description/employee-level/employee-level.component.html
+0
-0
employee-level.component.scss
...-description/employee-level/employee-level.component.scss
+60
-0
employee-level.component.ts
...ob-description/employee-level/employee-level.component.ts
+18
-0
job-description.component.html
...components/job-description/job-description.component.html
+7
-0
position-unit.component.html
...nts/job-description/position/position-unit.component.html
+1
-1
No files found.
src/app/components/dashboard/dashboard.module.ts
View file @
8b7133ef
...
...
@@ -33,6 +33,7 @@ import { JobDescriptionComponent } from '../job-description/job-description.comp
import
{
PositionUnitComponent
}
from
'../job-description/position/position-unit.component'
;
import
{
EmployeeGroupUnit
}
from
'../job-description/employee-group-unit/employee-group-unit.component'
;
import
{
EmployeeCategories
}
from
'../job-description/employee-categories/employee-categories.component'
;
import
{
EmployeeLevel
}
from
'../job-description/employee-level/employee-level.component'
;
@
NgModule
({
declarations
:
[
SalesComponent
,
...
...
@@ -62,6 +63,7 @@ import { EmployeeCategories } from '../job-description/employee-categories/emplo
PositionUnitComponent
,
EmployeeGroupUnit
,
EmployeeCategories
,
EmployeeLevel
],
imports
:
[
CommonModule
,
...
...
src/app/components/job-description/employee-categories/employee-categories.component.html
View file @
8b7133ef
...
...
@@ -71,8 +71,7 @@
*
ngFor=
"let item of ['รหัสประเภทพนักงาน','รายละเอียด(ไทย) *','รายละเอียด(อังกฤษ)','Action']; let f = first; let l = last; let i = index"
>
<th
scope=
"col"
class=
"relative head-table"
[
class
.!
text-center
]="
f
||
l
"
[
ngStyle
]="
f
?
{'
width
.
px
'
:
200
,
'
text-align
'
:
'
center
'}
:
{}"
>
<span>
{{ item }}
</span>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!l&&!f&&i!==2"
>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!f && i==1"
>
<svg
class=
"head-table-icon"
xmlns=
"http://www.w3.org/2000/svg"
width=
"50"
height=
"16"
fill=
"currentColor"
viewBox=
"0 0 16 16"
>
<path
...
...
@@ -80,6 +79,14 @@
</path>
</svg>
</div>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!f && i==2"
>
<svg
class=
"head-table-icon"
xmlns=
"http://www.w3.org/2000/svg"
width=
"200"
height=
"16"
fill=
"currentColor"
viewBox=
"0 0 16 16"
>
<path
d=
"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
>
</path>
</svg>
</div>
</th>
</ng-container>
</tr>
...
...
src/app/components/job-description/employee-level/employee-level.component.html
0 → 100644
View file @
8b7133ef
This diff is collapsed.
Click to expand it.
src/app/components/job-description/employee-level/employee-level.component.scss
0 → 100644
View file @
8b7133ef
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
width
:
100%
;
cursor
:
pointer
;
margin-bottom
:
10px
;
}
.nav-item
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link
{
text-decoration
:
none
;
padding
:
10px
20px
;
display
:
inline-block
;
font-size
:
large
;
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
#ccc
;
border-radius
:
5px
5px
0px
0px
;
}
.nav-link
:hover
{
background-color
:
#f0f0f0
;
/* เปลี่ยนสีเมื่อ hover */
}
.nav-link.active
{
color
:
#ffffff
;
/* สีตัวอักษรในสถานะ active */
font-size
:
large
;
border-bottom
:
3
.5px
solid
rgb
(
var
(
--
color-primary
));
/* เส้นใต้ */
background-color
:
rgb
(
var
(
--
color-primary
));
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
rgb
(
var
(
--
color-primary
));
border-radius
:
5px
5px
0px
0px
;
}
.tab-content
{
margin-top
:
20px
;
}
.tab-pane.active
{
display
:
block
;
}
.nav-item-text
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link-text
{
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
large
;
color
:
#569bf5
;
border-bottom
:
2px
solid
#569bf5
;
line-height
:
0
.8
;
}
\ No newline at end of file
src/app/components/job-description/employee-level/employee-level.component.ts
0 → 100644
View file @
8b7133ef
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-employee-level'
,
templateUrl
:
'./employee-level.component.html'
,
styleUrls
:
[
'./employee-level.component.scss'
]
})
export
class
EmployeeLevel
{
@
Input
()
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
'กลุ่มพนักงาน'
]
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
activeTab
:
string
=
'tab1'
;
// กำหนด tab เริ่มต้น
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
}
}
src/app/components/job-description/job-description.component.html
View file @
8b7133ef
...
...
@@ -38,6 +38,12 @@
(
sendPathTitle
)="
pathTitle=
$event"
></app-employee-categories>
</div>
</div>
<div
*
ngIf=
"activeTab === 'tab5'"
class=
"tab-pane"
>
<div
class=
"mt-5"
>
<app-employee-level
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-employee-level>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/components/job-description/position/position-unit.component.html
View file @
8b7133ef
...
...
@@ -67,7 +67,7 @@
<thead
class=
"bg-gray-50 dark:bg-black/20"
>
<tr
style=
"height: 60px;"
>
<ng-container
*
ngFor=
"let item of ['รหัสตำแหน่ง','รายละเอียด(ไทย)*','รายละเอียด (อังกฤษ)','Action']; let f = first; let l = last; let i = index;"
>
*
ngFor=
"let item of ['รหัสตำแหน่ง','รายละเอียด(ไทย)
*','รายละเอียด (อังกฤษ)','Action']; let f = first; let l = last; let i = index;"
>
<th
scope=
"col"
class=
"relative head-table"
[
class
.!
text-center
]="
f
||
l
"
[
ngStyle
]="{
i
}
?
{'
width
.
px
'
:
50
,
'
text-align
'
:
'
center
'}
:
{}"
>
<span>
{{ item }}
</span>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!f && i==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