Commit ad5aae0f authored by limingzhe's avatar limingzhe

feat: 分数模式

parent 9ae26a53
No preview for this file type
......@@ -5,6 +5,11 @@
<input type="text" nz-input [(ngModel)]="item.title" (blur)="save()" style=" width: 350px;">
</div>
<div style="margin: 30px; display: flex; align-items: center; ">
<h3>是否展示分数:</h3>
<label style="margin-left: 10px; margin-bottom: 5px;" nz-checkbox [(ngModel)]="item.isShowScore" (ngModelChange)="checkboxChange($event, item, 'isShowScore')"></label>
</div>
<div *ngIf="item && item.quesArr">
<div *ngFor="let ques of item.quesArr; let i = index"
......
......@@ -528,6 +528,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.quesArr = [];
}
// 初始化是否展示分数,默认为false
if (this.item.isShowScore === undefined) {
this.item.isShowScore = false;
}
}
......
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