Commit 139d0f48 by Nakarin Luankla

UPDATE modal pms

parent 6f9dad8f
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
</td> </td>
<td >{{item.item.groupAssessment1.pmsTopic.tdesc}}</td> <td >{{item.item.groupAssessment1.pmsTopic.tdesc}}</td>
<td class="!text-center">{{item.item.groupAssessment1.pmsTopic.pmsType.tdesc}}</td> <td class="!text-center">{{item.item.groupAssessment1.pmsTopic.pmsType.tdesc}}</td>
<td class="!text-center"><input type="text" class="form-control" oninput="this.value = this.value.replace(/[^0-9]/g, '')" [(ngModel)]="item.item.weight" style="width: 60px;"></td> <td class="!text-center"><input type="text" class="form-control" oninput="this.value = this.value.replace(/[^0-9]/g, '')" [(ngModel)]="item.item.groupAssessment1.pmsTopic.weight" style="width: 60px;"></td>
<td class="flex justify-center"> <td class="flex justify-center">
<i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="deleteFormOne(item.item);"></i> <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="deleteFormOne(item.item);"></i>
</td> </td>
......
...@@ -151,8 +151,8 @@ export class EditEvaluationFormComponent { ...@@ -151,8 +151,8 @@ export class EditEvaluationFormComponent {
saveIndicators() { saveIndicators() {
if (this.empassessmentRoundListCheckbox.map(x => x.item).length > 0) { if (this.empassessmentRoundListCheckbox.map(x => x.item).length > 0) {
if (this.empassessmentList) { if (this.empassessmentList) {
this.empassessmentList.masfromTopic = this.empassessmentRoundListCheckbox.map(x => { this.empassessmentList.masfromEvaluationAssessment1lList = this.empassessmentRoundListCheckbox.map(x => {
x.item.weight = Number(x.item.weight); x.item.groupAssessment1.pmsTopic.weight = Number(x.item.groupAssessment1.pmsTopic.weight);
return x.item as any; return x.item as any;
}); });
} }
......
import { MasfromEvaluationAssessment1lList } from "./pms-masfrom-evaluation-list.model"
export interface EvaluationModal { export interface EvaluationModal {
personalLevel: PersonalLevel personalLevel: PersonalLevel
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
apsapprove5: Apsapprove5 apsapprove5: Apsapprove5
masfromTypeList: MasfromTypeList[] masfromTypeList: MasfromTypeList[]
masfromTopic: MasfromTopic[] masfromTopic: MasfromTopic[]
masfromEvaluationAssessment1lList: MasfromEvaluationAssessment1lList[]
} }
export interface PersonalLevel { export interface PersonalLevel {
......
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