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
8906f1c4
Commit
8906f1c4
authored
Nov 20, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jobdescription menu html bar
parent
c1648af7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
89 additions
and
1 deletions
+89
-1
dashboard-routing.module.ts
src/app/components/dashboard/dashboard-routing.module.ts
+2
-0
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+3
-1
job-description.component.html
...components/job-description/job-description.component.html
+30
-0
job-description.component.scss
...components/job-description/job-description.component.scss
+37
-0
job-description.component.ts
...p/components/job-description/job-description.component.ts
+17
-0
No files found.
src/app/components/dashboard/dashboard-routing.module.ts
View file @
8906f1c4
...
@@ -13,6 +13,7 @@ import { ProjectsComponent } from './projects/projects.component';
...
@@ -13,6 +13,7 @@ import { ProjectsComponent } from './projects/projects.component';
import
{
StocksComponent
}
from
'./stocks/stocks.component'
;
import
{
StocksComponent
}
from
'./stocks/stocks.component'
;
import
{
CourseComponent
}
from
'./course/course.component'
;
import
{
CourseComponent
}
from
'./course/course.component'
;
import
{
CompanyRegistrationComponent
}
from
'../company-registration/company-registration.component'
;
import
{
CompanyRegistrationComponent
}
from
'../company-registration/company-registration.component'
;
import
{
JobDescriptionComponent
}
from
'../job-description/job-description.component'
;
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
{
{
path
:
""
,
path
:
""
,
...
@@ -32,6 +33,7 @@ const routes: Routes = [
...
@@ -32,6 +33,7 @@ const routes: Routes = [
// myComponent
// myComponent
{
path
:
"company-registration"
,
component
:
CompanyRegistrationComponent
},
{
path
:
"company-registration"
,
component
:
CompanyRegistrationComponent
},
{
path
:
"job-description"
,
component
:
JobDescriptionComponent
},
]
]
}
}
];
];
...
...
src/app/components/dashboard/dashboard.module.ts
View file @
8906f1c4
...
@@ -29,6 +29,7 @@ import { SubDepartmentThreeComponent} from '../company-registration/branch-busin
...
@@ -29,6 +29,7 @@ import { SubDepartmentThreeComponent} from '../company-registration/branch-busin
import
{
SubDepartmentTwoComponent
}
from
'../company-registration/branch-business-unit/sub-department-two/sub-department-two.component'
;
import
{
SubDepartmentTwoComponent
}
from
'../company-registration/branch-business-unit/sub-department-two/sub-department-two.component'
;
import
{
SubDepartmentFourComponent
}
from
'../company-registration/branch-business-unit/sub-department-four/sub-department-four.component'
;
import
{
SubDepartmentFourComponent
}
from
'../company-registration/branch-business-unit/sub-department-four/sub-department-four.component'
;
import
{
SectionRegistrationComponent
}
from
'../company-registration/branch-business-unit/section-registration/section-registration.component'
;
import
{
SectionRegistrationComponent
}
from
'../company-registration/branch-business-unit/section-registration/section-registration.component'
;
import
{
JobDescriptionComponent
}
from
'../job-description/job-description.component'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
SalesComponent
,
SalesComponent
,
...
@@ -53,7 +54,8 @@ import { SectionRegistrationComponent } from '../company-registration/branch-bus
...
@@ -53,7 +54,8 @@ import { SectionRegistrationComponent } from '../company-registration/branch-bus
SubDepartmentOneComponent
,
SubDepartmentOneComponent
,
SubDepartmentTwoComponent
,
SubDepartmentTwoComponent
,
SubDepartmentThreeComponent
,
SubDepartmentThreeComponent
,
SubDepartmentFourComponent
SubDepartmentFourComponent
,
JobDescriptionComponent
,
],
],
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
...
...
src/app/components/job-description/job-description.component.html
0 → 100644
View file @
8906f1c4
<app-page-header
[
pathTitle
]="
pathTitle
"
></app-page-header>
<div
class=
"bg-card-white"
>
</div>
<div
class=
"block-main-content"
>
<div
class=
"head-title"
>
ข้อมูลลักษณะงาน
</div>
<div
class=
"body-content"
>
<ul
class=
"nav-tabs"
>
<li
class=
"nav-item"
*
ngFor=
"let item of [{id:'tab1',text:'กลุ่มพนักงาน'},
{id:'tab2',text:'ตำเเหน่ง'},
{id:'tab3',text:'ลักษณะงาน'},
{id:'tab4',text:'ประเภทพนักงาน'},
{id:'tab5',text:'ระดับพนักงาน (PL)'}]"
(
click
)="
changeTab
(
item
)"
>
<a
[
class
.
active
]="
activeTab =
==
item
.
id
"
class=
"nav-link"
>
{{item.text}}
</a>
</li>
</ul>
<div
class=
"tab-content"
>
<div
*
ngIf=
"activeTab === 'tab1'"
class=
"tab-pane"
>
<p>
ทะเบียนบริษัท
</p>
</div>
<div
*
ngIf=
"activeTab === 'tab2'"
class=
"tab-pane"
>
<div
class=
"mt-5"
></div>
<app-branch-business-unit
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-branch-business-unit>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/components/job-description/job-description.component.scss
0 → 100644
View file @
8906f1c4
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
border-bottom
:
2px
solid
#ccc
;
/* เส้นใต้ */
width
:
100%
;
cursor
:
pointer
;
}
.nav-item
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link
{
text-decoration
:
none
;
padding
:
10px
20px
;
display
:
inline-block
;
font-size
:
large
;
}
.nav-link
:hover
{
background-color
:
#f0f0f0
;
/* เปลี่ยนสีเมื่อ hover */
}
.nav-link.active
{
color
:
#569bf5
;
/* สีตัวอักษรในสถานะ active */
font-size
:
large
;
border-bottom
:
3
.5px
solid
#569bf5
;
/* เส้นใต้ */
}
.tab-content
{
margin-top
:
20px
;
}
.tab-pane.active
{
display
:
block
;
}
src/app/components/job-description/job-description.component.ts
0 → 100644
View file @
8906f1c4
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-job-description'
,
templateUrl
:
'./job-description.component.html'
,
styleUrls
:
[
'./job-description.component.scss'
]
})
export
class
JobDescriptionComponent
{
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ทะเบียนบริษัท'
,
'ทะเบียนบริษัท'
]
activeTab
:
string
=
'tab1'
;
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ทะเบียนบริษัท'
,
tab
.
text
]
this
.
activeTab
=
tab
.
id
}
}
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