Commit 3a2cd348 by Nattana Chaiyamat

เปลี่ยนการจัดกลุ่มหัวข้อประเมิน จาก JL เป็น JD

parent 8d8fcd4c
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<ng-template #plSearchButton> <ng-template #plSearchButton>
<button type="button" <button type="button"
class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary !m-0 h-full" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary !m-0 h-full"
style="height: 44.8px !important;" (click)="openDialogPL();modal.search='';searchModalChange(plListFilter())"> style="height: 44.8px !important;" (click)="openDialogPL();PLsearchmodal.search='';searchModalChange(plListFilter())">
<i class="ri-search-line cursor-pointer text-gray"></i> <i class="ri-search-line cursor-pointer text-gray"></i>
</button> </button>
</ng-template> </ng-template>
......
...@@ -135,7 +135,7 @@ export class EvaluationCycleComponent { ...@@ -135,7 +135,7 @@ export class EvaluationCycleComponent {
this.pl.loading = false this.pl.loading = false
this.jobcodeService.getGroupAssessmentList().subscribe({ this.jobcodeService.getGroupAssessmentList().subscribe({
next: response => { next: response => {
this.pl.dataList = response.map((x: any) => new MyJobcodeModel(x)) this.pl.dataList = response.map((x: any) => new MyJobcodeModel(x)).filter(e => e.statusCom)
this.pl.loading = false this.pl.loading = false
this.searchChange() this.searchChange()
this.cdr.detectChanges() this.cdr.detectChanges()
...@@ -235,7 +235,7 @@ export class EvaluationCycleComponent { ...@@ -235,7 +235,7 @@ export class EvaluationCycleComponent {
reverseButtons: true, reverseButtons: true,
}).then((result) => { }).then((result) => {
if (result.isConfirmed) { if (result.isConfirmed) {
if (this.evaluation_cycle.personalLevel.length === 0) { if (this.evaluation_cycle.jd.length === 0) {
this.plListFilter().forEach(x => this.selectPl(x)); this.plListFilter().forEach(x => this.selectPl(x));
} }
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<ng-template #plSearchButton> <ng-template #plSearchButton>
<button type="button" <button type="button"
class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary !m-0 h-full" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary !m-0 h-full"
style="height: 44.8px !important;" (click)="openPLDialog();modal.search='';searchModalChange(plListFilter())"> style="height: 44.8px !important;" (click)="openPLDialog();PLsearchmodal.search='';searchModalChange(plListFilter())">
<i class="ri-search-line cursor-pointer text-gray"></i> <i class="ri-search-line cursor-pointer text-gray"></i>
</button> </button>
</ng-template> </ng-template>
......
...@@ -139,7 +139,7 @@ export class ManagementCycleComponent { ...@@ -139,7 +139,7 @@ export class ManagementCycleComponent {
this.pl.loading = false this.pl.loading = false
this.jobcodeService.getGroupAssessmentList().subscribe({ this.jobcodeService.getGroupAssessmentList().subscribe({
next: response => { next: response => {
this.pl.dataList = response.map((x: any) => new MyJobcodeModel(x)) this.pl.dataList = response.map((x: any) => new MyJobcodeModel(x)).filter(x => x.statusCom && x.statusPms)
this.pl.loading = false this.pl.loading = false
// this.searchChange() // this.searchChange()
this.cdr.detectChanges() this.cdr.detectChanges()
......
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