diff --git a/src/app/ui/plan-template/plan-template.component.ts b/src/app/ui/plan-template/plan-template.component.ts index ee2855a..db69a86 100644 --- a/src/app/ui/plan-template/plan-template.component.ts +++ b/src/app/ui/plan-template/plan-template.component.ts @@ -401,7 +401,12 @@ export class PlanTemplateComponent implements OnInit { if (array[index].groupName==groupName) { array[index].attribute.forEach((element,i) => { if(element.surveyName==surveyName){ - array[index].attribute[i].completed=false + if(array[index].attribute[i].zdy!=undefined){ + array[index].attribute.splice(i,1) + }else{ + array[index].attribute[i].completed=false + } + } }); }