|
|
|
@ -222,7 +222,6 @@ export class ApprovalTemplateComponent { |
|
|
|
if (this.listOfControl.length > 1) { |
|
|
|
if (this.listOfControl.length > 1) { |
|
|
|
const index = this.listOfControl.indexOf(i); |
|
|
|
const index = this.listOfControl.indexOf(i); |
|
|
|
this.listOfControl.splice(index, 1); |
|
|
|
this.listOfControl.splice(index, 1); |
|
|
|
console.log(this.listOfControl); |
|
|
|
|
|
|
|
this.editForm.removeControl(i.sort+""); |
|
|
|
this.editForm.removeControl(i.sort+""); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -323,7 +322,6 @@ export class ApprovalTemplateComponent { |
|
|
|
closeEditModal() { |
|
|
|
closeEditModal() { |
|
|
|
this.editForm.reset(); |
|
|
|
this.editForm.reset(); |
|
|
|
for (let obj of this.listOfControl) { |
|
|
|
for (let obj of this.listOfControl) { |
|
|
|
this.listOfControl.splice(obj.sort, 1); |
|
|
|
|
|
|
|
this.editForm.removeControl(obj.sort+""); |
|
|
|
this.editForm.removeControl(obj.sort+""); |
|
|
|
} |
|
|
|
} |
|
|
|
this.listOfControl = []; |
|
|
|
this.listOfControl = []; |
|
|
|
|