Commit 6e853dbf by Nattana Chaiyamat

ส่วนย่อย1

parent 7c9e1e0e
...@@ -120,8 +120,7 @@ ...@@ -120,8 +120,7 @@
</span> </span>
</label> </label>
<div class="relative flex rounded-md w-1/2"> <div class="relative flex rounded-md w-1/2">
<input type="text" class="ti-form-input" <input type="text" class="ti-form-input" [class.!border-red]="currentModal=='add'&&checkPrimary()"
[class.!border-red]="currentModal=='add'&&checkPrimary()"
[class.!bg-input-readonly]="currentModal=='edit'" [readonly]="currentModal=='edit'" [class.!bg-input-readonly]="currentModal=='edit'" [readonly]="currentModal=='edit'"
[(ngModel)]="bu4.select.bu4id"> [(ngModel)]="bu4.select.bu4id">
</div> </div>
...@@ -156,18 +155,12 @@ ...@@ -156,18 +155,12 @@
ข้อมูลทะเบียนส่วน ข้อมูลทะเบียนส่วน
</h3> </h3>
<div class="flex justify-end"> <div class="flex justify-end">
<button *ngIf="currentModal=='add'" type="button" <button type="button"
class="hs-dropdown-toggle ti-modal-clode-btn text-danger" class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay="#sub-department-one-modal"> data-hs-overlay="#sub-department-one-modal">
<span class="sr-only">Close</span> <span class="sr-only">Close</span>
<i class="ti ti-circle-x fs-xxl"></i> <i class="ti ti-circle-x fs-xxl"></i>
</button> </button>
<button *ngIf="currentModal=='edit'" type="button"
class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay="#sub-department-one-modal-edit">
<span class="sr-only">Close</span>
<i class="ti ti-circle-x fs-xxl"></i>
</button>
</div> </div>
</div> </div>
<div class="ti-modal-body"> <div class="ti-modal-body">
...@@ -209,30 +202,16 @@ ...@@ -209,30 +202,16 @@
</tr> </tr>
</tbody> </tbody>
<tbody *ngIf="filterBu3Modal().length"> <tbody *ngIf="filterBu3Modal().length">
<ng-container *ngIf="currentModal=='add'"> <tr *ngFor="let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index"
<tr *ngFor="let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index" class="cursor-pointer" (click)="selectBu3(item)"
class="cursor-pointer" (click)="selectBu3(item)" data-hs-overlay="#sub-department-one-modal">
data-hs-overlay="#sub-department-one-modal"> <td class="flex justify-center">
<td class="flex justify-center"> {{((bu3Modal.currentPage-1) * bu3Modal.pageSize)+(i+1)}}
{{((bu3Modal.currentPage-1) * bu3Modal.pageSize)+(i+1)}} </td>
</td> <td>{{item.bu3id}}</td>
<td>{{item.bu3id}}</td> <td>{{item.tdesc}}</td>
<td>{{item.tdesc}}</td> <td>{{item.edesc}}</td>
<td>{{item.edesc}}</td> </tr>
</tr>
</ng-container>
<ng-container *ngIf="currentModal=='edit'">
<tr *ngFor="let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index"
class="cursor-pointer" (click)="selectBu3(item)"
data-hs-overlay="#sub-department-one-modal-edit">
<td class="flex justify-center">
{{((bu3Modal.currentPage-1) * bu3Modal.pageSize)+(i+1)}}
</td>
<td>{{item.bu3id}}</td>
<td>{{item.tdesc}}</td>
<td>{{item.edesc}}</td>
</tr>
</ng-container>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -240,16 +219,11 @@ ...@@ -240,16 +219,11 @@
(pageChange)="bu3Modal.currentPage = $event" (pageChange)="bu3Modal.currentPage = $event"
(pageSizeChange)="bu3Modal.pageSize = $event;bu3Modal.currentPage = 1"></app-pagination> (pageSizeChange)="bu3Modal.pageSize = $event;bu3Modal.currentPage = 1"></app-pagination>
<div class="flex justify-end mt-2rem mb-1rem space-x-4"> <div class="flex justify-end mt-2rem mb-1rem space-x-4">
<button type="button" *ngIf="currentModal=='add'" <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 dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" 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 dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay="#sub-department-one-modal"> data-hs-overlay="#sub-department-one-modal">
ย้อนกลับ ย้อนกลับ
</button> </button>
<button type="button" *ngIf="currentModal=='edit'"
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 dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay="#sub-department-one-modal-edit">
ย้อนกลับ
</button>
</div> </div>
</div> </div>
</div> </div>
......
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