Commit b4ff8dbf by Nattana Chaiyamat

ข้อมูลทั่วไป

parent 86f746d2
...@@ -70,6 +70,7 @@ export class RolePermissionConfigComponent { ...@@ -70,6 +70,7 @@ export class RolePermissionConfigComponent {
getConfigList() { getConfigList() {
this.configPermission.loading = true this.configPermission.loading = true
this.configPermission.dataList = [] this.configPermission.dataList = []
this.selectedItems.data.clear()
this.configPermissionService.getList().subscribe({ this.configPermissionService.getList().subscribe({
next: response => { next: response => {
this.configPermission.dataList = response.map(x => { this.configPermission.dataList = response.map(x => {
......
...@@ -166,6 +166,7 @@ export class UserSettingsComponent { ...@@ -166,6 +166,7 @@ export class UserSettingsComponent {
getUserList() { getUserList() {
this.user.loading = true this.user.loading = true
this.selectedItems.data.clear()
this.userService.getList().subscribe({ this.userService.getList().subscribe({
next: response => { next: response => {
this.user.dataList = response.map(x => { this.user.dataList = response.map(x => {
......
...@@ -514,6 +514,7 @@ export class SubEmployeeRegistrationComponent { ...@@ -514,6 +514,7 @@ export class SubEmployeeRegistrationComponent {
getEmployeeList() { getEmployeeList() {
this.employee.loading = true this.employee.loading = true
this.selectedItems.data.clear()
this.employeeService.getList().subscribe({ this.employeeService.getList().subscribe({
next: response => { next: response => {
this.employee.dataList = response.map(x => { this.employee.dataList = response.map(x => {
......
...@@ -28,6 +28,13 @@ ...@@ -28,6 +28,13 @@
Add Add
</button> </button>
</div> </div>
<div class="px-1">
<button type="button" class="ti-btn ti-btn-soft-danger h-45px m-0 shadow-md"
data-hs-overlay="#company-registration-page-alert-modal" (click)="currentModal='delete'">
<i class="ri-delete-bin-6-line"></i>
Delete
</button>
</div>
</div> </div>
</div> </div>
...@@ -36,7 +43,6 @@ ...@@ -36,7 +43,6 @@
[columns]="columns" [selectedItems]="selectedItems" modalName="#sub-job-competency-component-modal-edit" [columns]="columns" [selectedItems]="selectedItems" modalName="#sub-job-competency-component-modal-edit"
(sendSelectData)="currentModal='edit';edit($event)" (sendSelectedItems)="onSelectItemChange($event)"> (sendSelectData)="currentModal='edit';edit($event)" (sendSelectedItems)="onSelectItemChange($event)">
</app-datagrid-syncfution> </app-datagrid-syncfution>
</div> </div>
...@@ -75,12 +81,6 @@ ...@@ -75,12 +81,6 @@
Clear Clear
</button> </button>
</div> </div>
<!-- <div class="px-1">
<button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
<i class="ti ti-book fs-l"></i>
Help
</button>
</div> -->
</div> </div>
</div> </div>
<div class="ti-modal-body" style="padding-top: 0px;"> <div class="ti-modal-body" style="padding-top: 0px;">
...@@ -196,7 +196,12 @@ ...@@ -196,7 +196,12 @@
ยืนยันการบันทึกข้อมูลหรือไม่ ยืนยันการบันทึกข้อมูลหรือไม่
</ng-container> </ng-container>
<ng-container *ngIf="currentModal=='delete'"> <ng-container *ngIf="currentModal=='delete'">
ยืนยันการลบข้อมูลหรือไม่ <ng-container *ngIf="numSelectItem()">
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container *ngIf="!numSelectItem()">
เลือกข้อมูลที่ต้องการลบ
</ng-container>
</ng-container> </ng-container>
</p> </p>
...@@ -219,7 +224,8 @@ ...@@ -219,7 +224,8 @@
ย้อนกลับ ย้อนกลับ
</button> </button>
<a class="ti-btn ti-btn-danger" href="javascript:void(0);" <a class="ti-btn ti-btn-danger" href="javascript:void(0);"
data-hs-overlay="#company-registration-page-alert-modal" (click)="deleteJob()"> data-hs-overlay="#company-registration-page-alert-modal" (click)="deleteJob()"
*ngIf="numSelectItem()">
ลบข้อมูล ลบข้อมูล
</a> </a>
</ng-container> </ng-container>
......
...@@ -131,6 +131,7 @@ export class ImportDataComponent { ...@@ -131,6 +131,7 @@ export class ImportDataComponent {
getListJob() { getListJob() {
this.loading = false this.loading = false
this.selectedItems.data.clear()
this.jobcodeService.getList().subscribe({ this.jobcodeService.getList().subscribe({
next: response => { next: response => {
this.jobCodeList = response.map((x: any) => { this.jobCodeList = response.map((x: any) => {
......
...@@ -55,6 +55,7 @@ export class WorkDetailComponent { ...@@ -55,6 +55,7 @@ export class WorkDetailComponent {
} }
getListJob() { getListJob() {
this.loading = false this.loading = false
this.selectedItems.data.clear()
this.jobcodeService.getList().subscribe({ this.jobcodeService.getList().subscribe({
next: response => { next: response => {
this.jobCodeList = response.map((x: any) => { this.jobCodeList = response.map((x: any) => {
......
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