Commit b2b90e96 by Nakarin Luankla

Merge branch 'DEV' of https://mygit.myhr.co.th/angular/myAppraisal into DEV

parents aa32b8bb 6986ab72
...@@ -66,7 +66,7 @@ export class LoginPageComponent { ...@@ -66,7 +66,7 @@ export class LoginPageComponent {
this.authservice this.authservice
.loginWithEmail(this.email, this.password) .loginWithEmail(this.email, this.password)
.then(() => { .then(() => {
this.router.navigate(['/dashboard/sales']); this.router.navigate(['/self-evaluation']);
console.clear(); console.clear();
}) })
.catch((_error: any) => { .catch((_error: any) => {
...@@ -109,7 +109,7 @@ export class LoginPageComponent { ...@@ -109,7 +109,7 @@ export class LoginPageComponent {
this.loginForm.controls['username'].value === 'spruko@admin.com' && this.loginForm.controls['username'].value === 'spruko@admin.com' &&
this.loginForm.controls['password'].value === 'sprukoadmin' this.loginForm.controls['password'].value === 'sprukoadmin'
) { ) {
this.router.navigate(['/dashboard/sales']); this.router.navigate(['/self-evaluation']);
} else { } else {
this.error = 'Please check email and passowrd'; this.error = 'Please check email and passowrd';
} }
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<thead> <thead>
<tr> <tr>
<ng-container <ng-container
*ngFor="let item of ['รหัส Competency','ชื่อ competency','ระดับความหวัง','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 px-10px py-10px bg-soft-secondary text-primary" <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary"
[class.!text-center]="f || l || item === 'ระดับความหวัง'"> [class.!text-center]="f || l || item === 'ระดับความหวัง'">
<span class="text-sm">{{ item }}</span> <span class="text-sm">{{ item }}</span>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<div class="border-t border-gray-200 pt-10px grid grid-cols-1 space-y-6"> <div class="border-t border-gray-200 pt-10px grid grid-cols-1 space-y-6">
<div class="grid grid-cols-11"> <div class="grid grid-cols-11">
<div class="space-y-2 col-span-2"> <div class="space-y-2 col-span-2">
<label class="ti-form-label">รหัส Competency</label> <label class="ti-form-label">รหัสสมรรถนะ</label>
<input type="text" class="ti-form-input bg-input-readonly" readonly> <input type="text" class="ti-form-input bg-input-readonly" readonly>
</div> </div>
<div class="col-span-1"></div> <div class="col-span-1"></div>
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
<thead> <thead>
<tr> <tr>
<ng-container <ng-container
*ngFor="let item of ['รหัส Competency','ชื่อ competency','ระดับความหวัง','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" <th scope="col"
class="relative px-10px py-10px bg-soft-secondary text-primary" class="relative px-10px py-10px bg-soft-secondary text-primary"
[class.!text-center]="f || l || item === 'ระดับความหวัง'"> [class.!text-center]="f || l || item === 'ระดับความหวัง'">
......
...@@ -28,6 +28,16 @@ ...@@ -28,6 +28,16 @@
<input type="text" id="input-label" class="ti-form-input w-2/3 pr-10" value="2567"> <input type="text" id="input-label" class="ti-form-input w-2/3 pr-10" value="2567">
</div> </div>
</div> </div>
<div class="grid grid-cols-3 gap-6 mt-10">
<div class="col-span-1">
<label for="hs-trailing-button-add-on-with-icon" class="ti-form-label">ระดับความคาดหวัง *</label>
</div>
</div>
<div class="grid grid-cols-3 gap-6">
<div class="col-span-1">
<input type="text" id="input-label" class="ti-form-input w-2/3 pr-10" value="8">
</div>
</div>
<label for="hs-trailing-button-add-on-with-icon" class="ti-form-label mt-10">จัดการสมรรถนะกับกลุ่ม *</label> <label for="hs-trailing-button-add-on-with-icon" class="ti-form-label mt-10">จัดการสมรรถนะกับกลุ่ม *</label>
<div class="box-body"> <div class="box-body">
<div class="grid grid-cols-6 flex gap-x-6"> <div class="grid grid-cols-6 flex gap-x-6">
......
...@@ -87,6 +87,17 @@ export class NavService implements OnDestroy { ...@@ -87,6 +87,17 @@ export class NavService implements OnDestroy {
MENUITEMS: Menu[] = [ MENUITEMS: Menu[] = [
{ {
title: 'การประเมินผล',
type: 'sub',
selected: false,
active: false,
path: '/supervisor-evaluation',
children: [
{ path: '/self-evaluation', title: 'ประเมินตนเอง', type: 'link' },
{ path: '/supervisor-evaluation', title: 'ประเมินโดยหัวหน้า', type: 'link' },
],
},
{
title: 'การจัดการข้อมูลองค์กร', title: 'การจัดการข้อมูลองค์กร',
type: 'sub', type: 'sub',
selected: false, selected: false,
...@@ -148,17 +159,7 @@ export class NavService implements OnDestroy { ...@@ -148,17 +159,7 @@ export class NavService implements OnDestroy {
], ],
}, },
{
title: 'การประเมินผล',
type: 'sub',
selected: false,
active: false,
path: '/supervisor-evaluation',
children: [
{ path: '/self-evaluation', title: 'ประเมินตนเอง', type: 'link' },
{ path: '/supervisor-evaluation', title: 'ประเมินโดยหัวหน้า', type: 'link' },
],
},
]; ];
// Array // Array
items = new BehaviorSubject<Menu[]>(this.MENUITEMS); items = new BehaviorSubject<Menu[]>(this.MENUITEMS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment