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
5db87453
Commit
5db87453
authored
Nov 21, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การจัดการข้อมูลองค์กร>ข้อมูลลักษณะงาน>ประเภทพนักงาน
parent
430da1ad
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
98 additions
and
3 deletions
+98
-3
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+2
-0
employee-categories.component.html
...on/employee-categories/employee-categories.component.html
+0
-0
employee-categories.component.scss
...on/employee-categories/employee-categories.component.scss
+60
-0
employee-categories.component.ts
...tion/employee-categories/employee-categories.component.ts
+18
-0
employee-group-unit.component.html
...on/employee-group-unit/employee-group-unit.component.html
+1
-1
employee-group-unit.component.ts
...tion/employee-group-unit/employee-group-unit.component.ts
+2
-2
job-description.component.html
...components/job-description/job-description.component.html
+11
-0
styles.scss
src/styles.scss
+4
-0
No files found.
src/app/components/dashboard/dashboard.module.ts
View file @
5db87453
...
...
@@ -32,6 +32,7 @@ import { SectionRegistrationComponent } from '../company-registration/branch-bus
import
{
JobDescriptionComponent
}
from
'../job-description/job-description.component'
;
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'
;
@
NgModule
({
declarations
:
[
SalesComponent
,
...
...
@@ -60,6 +61,7 @@ import { EmployeeGroupUnit } from '../job-description/employee-group-unit/employ
JobDescriptionComponent
,
PositionUnitComponent
,
EmployeeGroupUnit
,
EmployeeCategories
,
],
imports
:
[
CommonModule
,
...
...
src/app/components/job-description/employee-categories/employee-categories.component.html
0 → 100644
View file @
5db87453
This diff is collapsed.
Click to expand it.
src/app/components/job-description/employee-categories/employee-categories.component.scss
0 → 100644
View file @
5db87453
/* สไตล์ของแถบเมนู */
.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-categories/employee-categories.component.ts
0 → 100644
View file @
5db87453
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-employee-categories'
,
templateUrl
:
'./employee-categories.component.html'
,
styleUrls
:
[
'./employee-categories.component.scss'
]
})
export
class
EmployeeCategories
{
@
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/employee-group-unit/employee-group-unit.component.html
View file @
5db87453
...
...
@@ -11,7 +11,7 @@
<button
type=
"button"
class=
"button-blue-light"
><i
class=
"ri-add-line"
></i>
Add
</button>
</div>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"button-red-light"
><i
class=
"ri-delete-bin-
5-line"
></i>
Delete
</button>
<button
type=
"button"
class=
"button-red-light"
><i
class=
"ri-delete-bin-
6-line"
></i>
Delete
</button>
</div>
<div
class=
"px-1"
>
...
...
src/app/components/job-description/employee-group-unit/employee-group-unit.component.ts
View file @
5db87453
...
...
@@ -6,13 +6,13 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
styleUrls
:
[
'./employee-group-unit.component.scss'
]
})
export
class
EmployeeGroupUnit
{
@
Input
()
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'
ทะเบียนบริษัท'
,
'สาขาและหน่วยธุรกิจ
'
]
@
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
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'
ข้อมูลลักษณะงาน
'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
}
}
src/app/components/job-description/job-description.component.html
View file @
5db87453
...
...
@@ -28,6 +28,16 @@
(
sendPathTitle
)="
pathTitle=
$event"
></app-position-unit>
</div>
</div>
<div
*
ngIf=
"activeTab === 'tab3'"
class=
"tab-pane"
>
<div
class=
"mt-5"
>
</div>
</div>
<div
*
ngIf=
"activeTab === 'tab4'"
class=
"tab-pane"
>
<div
class=
"mt-5"
>
<app-employee-categories
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-employee-categories>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/styles.scss
View file @
5db87453
...
...
@@ -546,3 +546,7 @@ ngx-dropzone {
display
:
flex
;
justify-content
:
center
;
}
.body-table-left
{
display
:
flex
;
margin-left
:
20px
;
}
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