Commit f72fbb9c by Nattana Chaiyamat

ทะเบียนพนักงาน

parent e897cb39
...@@ -1234,7 +1234,7 @@ ...@@ -1234,7 +1234,7 @@
<div class="relative shadow-md"> <div class="relative shadow-md">
<input type="text" id="hs-leading-icon" name="hs-leading-icon" <input type="text" id="hs-leading-icon" name="hs-leading-icon"
class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name" class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name"
[(ngModel)]="modal.search" (ngModelChange)="searchModalChange(empTypeListFilter())"> [(ngModel)]="modal.search" (ngModelChange)="searchModalChange(plListFilter())">
<div <div
class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"> class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4">
<i class="ri-search-line text-gray"></i> <i class="ri-search-line text-gray"></i>
...@@ -1283,7 +1283,7 @@ ...@@ -1283,7 +1283,7 @@
<td class="flex justify-center"> <td class="flex justify-center">
{{((modal.currentPage-1) * 10)+(i+1)}} {{((modal.currentPage-1) * 10)+(i+1)}}
</td> </td>
<td>{{item.codeId}}</td> <td>{{item.plId}}</td>
<td>{{item.tdesc}}</td> <td>{{item.tdesc}}</td>
<td>{{item.edesc}}</td> <td>{{item.edesc}}</td>
</tr> </tr>
......
...@@ -92,7 +92,7 @@ export class SubEmployeeRegistrationComponent { ...@@ -92,7 +92,7 @@ export class SubEmployeeRegistrationComponent {
}) })
} }
plListFilter() { plListFilter() {
return this.empType.dataList.filter(x => x.codeId.toLowerCase().includes(this.search.toLowerCase()) || return this.pl.dataList.filter(x => x.plId.toLowerCase().includes(this.search.toLowerCase()) ||
x.tdesc.toLowerCase().includes(this.search.toLowerCase()) || x.tdesc.toLowerCase().includes(this.search.toLowerCase()) ||
x.edesc.toLowerCase().includes(this.search.toLowerCase())) x.edesc.toLowerCase().includes(this.search.toLowerCase()))
} }
......
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