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
813082b9
Commit
813082b9
authored
Nov 25, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
กลุ่มพนักงานน ตำเเหน่ง
parent
8f5f8757
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
130 additions
and
122 deletions
+130
-122
employee-group-unit.component.html
...on/employee-group-unit/employee-group-unit.component.html
+0
-0
employee-group-unit.component.scss
...on/employee-group-unit/employee-group-unit.component.scss
+23
-59
employee-group-unit.component.ts
...tion/employee-group-unit/employee-group-unit.component.ts
+39
-0
job-description.component.html
...components/job-description/job-description.component.html
+2
-2
job-description.component.scss
...components/job-description/job-description.component.scss
+4
-0
position-unit.component.html
...nts/job-description/position/position-unit.component.html
+0
-0
position-unit.component.scss
...nts/job-description/position/position-unit.component.scss
+23
-61
position-unit.component.ts
...nents/job-description/position/position-unit.component.ts
+39
-0
No files found.
src/app/components/job-description/employee-group-unit/employee-group-unit.component.html
View file @
813082b9
This diff is collapsed.
Click to expand it.
src/app/components/job-description/employee-group-unit/employee-group-unit.component.scss
View file @
813082b9
/* สไตล์ของแถบเมนู */
.button-clear
{
.nav-tabs
{
position
:
absolute
;
display
:
flex
;
top
:
96px
;
width
:
100%
;
z-index
:
1
;
cursor
:
pointer
;
right
:
41vw
;
margin-bottom
:
10px
;
}
}
.button-help
{
position
:
absolute
;
top
:
96px
;
z-index
:
1
;
right
:
35vw
;
}
.nav-item
{
table
.ti-custom-table
thead
{
list-style
:
none
;
height
:
50px
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
}
table
.ti-custom-table
thead
th
span
{
font-size
:
12px
;
.nav-link
{
font-weight
:
bold
;
text-decoration
:
none
;
}
padding
:
10px
20px
;
a
.custom-link
{
display
:
inline-block
;
padding
:
10px
40px
;
/* ปรับ padding ให้เพิ่มขนาด */
font-size
:
large
;
}
border-width
:
2px
2px
0px
2px
;
\ No newline at end of file
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-group-unit/employee-group-unit.component.ts
View file @
813082b9
...
@@ -15,4 +15,43 @@ export class EmployeeGroupUnit {
...
@@ -15,4 +15,43 @@ export class EmployeeGroupUnit {
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
this
.
activeTab
=
tab
.
id
;
}
}
modalOptions
:
{
[
nameModal
:
string
]:
{
// ชื่อตรวจสอบการเปิดปิด
isModalOpen
:
boolean
;
// เปิด/ปิด
modalSize
:
string
;
// ขนาดของ Modal (s,m,l,vw10-vw100 )
backdropClose
:
boolean
;
// (คลิก Backdrop แล้ว true ปิด false ไม่ปิด )
}
}
=
{
"add"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
},
"edit"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
}
}
openModal
(
name
:
string
,
size
:
string
,
closeOnBackdrop
?:
boolean
)
{
this
.
modalOptions
[
name
].
modalSize
=
size
;
this
.
modalOptions
[
name
].
backdropClose
=
closeOnBackdrop
||
false
;
this
.
modalOptions
[
name
].
isModalOpen
=
true
;
document
.
body
.
style
.
overflow
=
'hidden'
;
// ล็อก Scroll
}
closeModal
(
name
:
string
)
{
this
.
modalOptions
[
name
].
isModalOpen
=
false
;
// ตรวจสอบว่ามี Modal อื่นเปิดอยู่หรือไม่
if
(
!
this
.
isAnyModalOpen
())
{
document
.
body
.
style
.
overflow
=
''
;
// คืนค่าการ Scroll เฉพาะเมื่อ Modal ทั้งหมดปิดแล้ว
}
}
isAnyModalOpen
():
boolean
{
// Logic ตรวจสอบว่า Modal อื่นยังเปิดอยู่หรือไม่
return
Object
.
values
(
this
.
modalOptions
).
some
(
modal
=>
modal
.
isModalOpen
);
// หากไม่มี Modal อื่นเปิด
}
}
}
src/app/components/job-description/job-description.component.html
View file @
813082b9
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div
class=
"bg-card-white"
>
<div
class=
"bg-card-white"
>
</div>
</div>
<div
class=
"block-main-content"
>
<div
class=
"block-main-content"
>
<div
class=
"head-title"
>
<div>
ข้อมูลลักษณะงาน
<p
class=
"text-xxl font-bold py-2 px-4 text-primary ltr:ml-5"
style=
"margin-bottom: 15px;"
>
ข้อมูลลักษณะงาน
</p>
</div>
</div>
<div
class=
"body-content"
>
<div
class=
"body-content"
>
<ul
class=
"nav-tabs"
>
<ul
class=
"nav-tabs"
>
...
...
src/app/components/job-description/job-description.component.scss
View file @
813082b9
...
@@ -41,3 +41,6 @@
...
@@ -41,3 +41,6 @@
.tab-pane.active
{
.tab-pane.active
{
display
:
block
;
display
:
block
;
}
}
.body-content
{
margin-left
:
10px
;
}
\ No newline at end of file
src/app/components/job-description/position/position-unit.component.html
View file @
813082b9
This diff is collapsed.
Click to expand it.
src/app/components/job-description/position/position-unit.component.scss
View file @
813082b9
/* สไตล์ของแถบเมนู */
.button-clear
{
.nav-tabs
{
position
:
absolute
;
display
:
flex
;
top
:
96px
;
width
:
100%
;
z-index
:
1
;
cursor
:
pointer
;
right
:
41vw
;
margin-bottom
:
10px
;
}
}
.button-help
{
position
:
absolute
;
.nav-item
{
top
:
96px
;
list-style
:
none
;
z-index
:
1
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
right
:
35vw
;
}
}
table
.ti-custom-table
thead
{
.nav-link
{
height
:
50px
;
text-decoration
:
none
;
}
padding
:
10px
20px
;
table
.ti-custom-table
thead
th
span
{
display
:
inline-block
;
font-size
:
12px
;
font-size
:
large
;
font-weight
:
bold
;
border-width
:
2px
2px
0px
2px
;
}
border-style
:
solid
;
a
.custom-link
{
border-color
:
#ccc
;
padding
:
10px
40px
;
/* ปรับ padding ให้เพิ่มขนาด */
border-radius
:
5px
5px
0px
0px
;
}
}
\ No newline at end of file
.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/position/position-unit.component.ts
View file @
813082b9
...
@@ -15,4 +15,43 @@ export class PositionUnitComponent {
...
@@ -15,4 +15,43 @@ export class PositionUnitComponent {
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ทะเบียนบริษัท'
,
'สาขาและหน่วยธุรกิจ'
,
tab
.
text
])
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ทะเบียนบริษัท'
,
'สาขาและหน่วยธุรกิจ'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
this
.
activeTab
=
tab
.
id
;
}
}
modalOptions
:
{
[
nameModal
:
string
]:
{
// ชื่อตรวจสอบการเปิดปิด
isModalOpen
:
boolean
;
// เปิด/ปิด
modalSize
:
string
;
// ขนาดของ Modal (s,m,l,vw10-vw100 )
backdropClose
:
boolean
;
// (คลิก Backdrop แล้ว true ปิด false ไม่ปิด )
}
}
=
{
"add"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
},
"edit"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
}
}
openModal
(
name
:
string
,
size
:
string
,
closeOnBackdrop
?:
boolean
)
{
this
.
modalOptions
[
name
].
modalSize
=
size
;
this
.
modalOptions
[
name
].
backdropClose
=
closeOnBackdrop
||
false
;
this
.
modalOptions
[
name
].
isModalOpen
=
true
;
document
.
body
.
style
.
overflow
=
'hidden'
;
// ล็อก Scroll
}
closeModal
(
name
:
string
)
{
this
.
modalOptions
[
name
].
isModalOpen
=
false
;
// ตรวจสอบว่ามี Modal อื่นเปิดอยู่หรือไม่
if
(
!
this
.
isAnyModalOpen
())
{
document
.
body
.
style
.
overflow
=
''
;
// คืนค่าการ Scroll เฉพาะเมื่อ Modal ทั้งหมดปิดแล้ว
}
}
isAnyModalOpen
():
boolean
{
// Logic ตรวจสอบว่า Modal อื่นยังเปิดอยู่หรือไม่
return
Object
.
values
(
this
.
modalOptions
).
some
(
modal
=>
modal
.
isModalOpen
);
// หากไม่มี Modal อื่นเปิด
}
}
}
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