Commit 139d0f48 by Nakarin Luankla

UPDATE modal pms

parent 6f9dad8f
......@@ -275,7 +275,7 @@
</td>
<td >{{item.item.groupAssessment1.pmsTopic.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">
<i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="deleteFormOne(item.item);"></i>
</td>
......
......@@ -151,8 +151,8 @@ export class EditEvaluationFormComponent {
saveIndicators() {
if (this.empassessmentRoundListCheckbox.map(x => x.item).length > 0) {
if (this.empassessmentList) {
this.empassessmentList.masfromTopic = this.empassessmentRoundListCheckbox.map(x => {
x.item.weight = Number(x.item.weight);
this.empassessmentList.masfromEvaluationAssessment1lList = this.empassessmentRoundListCheckbox.map(x => {
x.item.groupAssessment1.pmsTopic.weight = Number(x.item.groupAssessment1.pmsTopic.weight);
return x.item as any;
});
}
......
import { MasfromEvaluationAssessment1lList } from "./pms-masfrom-evaluation-list.model"
export interface EvaluationModal {
personalLevel: PersonalLevel
......@@ -12,6 +13,7 @@
apsapprove5: Apsapprove5
masfromTypeList: MasfromTypeList[]
masfromTopic: MasfromTopic[]
masfromEvaluationAssessment1lList: MasfromEvaluationAssessment1lList[]
}
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