Commit 56fbcd85 by Nattana Chaiyamat

รอบการประเมิน

parent cd0ddd12
...@@ -144,7 +144,6 @@ export class EvaluationCycleComponent { ...@@ -144,7 +144,6 @@ export class EvaluationCycleComponent {
this.evaluation_cycle = new MyEvaluationCycleModel(data) this.evaluation_cycle = new MyEvaluationCycleModel(data)
} }
addevaluation_cycle() { addevaluation_cycle() {
this.evaluation_cycle.personalLevel.pop()
const body = new MyEvaluationCycleModel(this.evaluation_cycle) const body = new MyEvaluationCycleModel(this.evaluation_cycle)
this.dataLoading = true this.dataLoading = true
this.evaluationCycleService.post(body).subscribe({ this.evaluationCycleService.post(body).subscribe({
...@@ -168,7 +167,6 @@ export class EvaluationCycleComponent { ...@@ -168,7 +167,6 @@ export class EvaluationCycleComponent {
deleteevaluation_cycle() { deleteevaluation_cycle() {
let body: EvaluationCycleModel | EvaluationCycleModel[] = [] let body: EvaluationCycleModel | EvaluationCycleModel[] = []
if (this.evaluation_cycle.evaluationRoundId) { if (this.evaluation_cycle.evaluationRoundId) {
this.evaluation_cycle.personalLevel.pop()
body = new MyEvaluationCycleModel(this.evaluation_cycle) body = new MyEvaluationCycleModel(this.evaluation_cycle)
} else { } else {
body = this.evaluation_cyclelist.filter(x => x.check).map(x => new MyEvaluationCycleModel(x.data)) body = this.evaluation_cyclelist.filter(x => x.check).map(x => new MyEvaluationCycleModel(x.data))
......
...@@ -146,7 +146,6 @@ export class ManagementCycleComponent { ...@@ -146,7 +146,6 @@ export class ManagementCycleComponent {
this.pmsMasfromEvaluation = new MyPmsMasfromEvaluationModel(data) this.pmsMasfromEvaluation = new MyPmsMasfromEvaluationModel(data)
} }
addPmsMasfromEvaluation() { addPmsMasfromEvaluation() {
this.pmsMasfromEvaluation.personalLevel.pop()
const body = new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation) const body = new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation)
this.dataLoading = true this.dataLoading = true
this.pmsMasfromEvaluationCycleService.post(body).subscribe({ this.pmsMasfromEvaluationCycleService.post(body).subscribe({
...@@ -170,7 +169,6 @@ export class ManagementCycleComponent { ...@@ -170,7 +169,6 @@ export class ManagementCycleComponent {
deletePmsMasfromEvaluation() { deletePmsMasfromEvaluation() {
let body: PmsMasfromEvaluationModel[] = [] let body: PmsMasfromEvaluationModel[] = []
if (this.pmsMasfromEvaluation.pmsEvaluationRoundId) { if (this.pmsMasfromEvaluation.pmsEvaluationRoundId) {
this.pmsMasfromEvaluation.personalLevel.pop()
body = [new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation)] body = [new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation)]
} else { } else {
body = this.pmsMasfromEvaluationlist.filter(x => x.check).map(x => new MyPmsMasfromEvaluationModel(x.data)) body = this.pmsMasfromEvaluationlist.filter(x => x.check).map(x => new MyPmsMasfromEvaluationModel(x.data))
......
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