Commit 2fa83e1d authored by limingzhe's avatar limingzhe

fix: debug

parent 265f4517
...@@ -97,14 +97,14 @@ ...@@ -97,14 +97,14 @@
<span style="">题-{{j+1}}:</span> <span style="">题-{{j+1}}:</span>
<input type="text" nz-input [(ngModel)]="option.text" (blur)="save()" style=" width: 200px;"> <input type="text" nz-input [(ngModel)]="option.text" (blur)="save()" style=" width: 200px;">
<div align="center" style="display: flex; align-items: center; justify-content: center;margin-top: -7px;"> <!-- <div align="center" style="display: flex; align-items: center; justify-content: center;margin-top: -7px;">
<nz-radio-group [ngModel]="option.type" (ngModelChange)="radioChange($event, option, 'type')"> <nz-radio-group [ngModel]="option.type" (ngModelChange)="radioChange($event, option, 'type')">
<div style="display: flex; flex-wrap: wrap; width: 100%;"> <div style="display: flex; flex-wrap: wrap; width: 100%;">
<label style="margin-left: 5px;" nz-radio [nzValue]="'quesOption'">{{'问题和选项'}}</label> <label style="margin-left: 5px;" nz-radio [nzValue]="'quesOption'">{{'问题和选项'}}</label>
<label style="margin-left: 5px;" nz-radio [nzValue]="'wrongOption'">{{'错误干扰项'}}</label> <label style="margin-left: 5px;" nz-radio [nzValue]="'wrongOption'">{{'错误干扰项'}}</label>
</div> </div>
</nz-radio-group> </nz-radio-group>
</div> </div> -->
<button style="margin-left: 10px;" nz-button nzType="danger" (click)="deleteOptionBtnClick(ques.optionArr, j)"> <button style="margin-left: 10px;" nz-button nzType="danger" (click)="deleteOptionBtnClick(ques.optionArr, j)">
x x
......
...@@ -802,7 +802,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -802,7 +802,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
ques.optionArr = []; ques.optionArr = [];
} }
ques.optionArr.push({ ques.optionArr.push({
type: 'wrongOption' // type: 'wrongOption'
type: 'quesOption'
}); });
this.save(); this.save();
} }
......
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