Commit aaf8fac6 authored by limingzhe's avatar limingzhe

fix: debug

parent d63e11b8
...@@ -68,6 +68,13 @@ ...@@ -68,6 +68,13 @@
<div *ngIf="isPreviewTemplate" style="margin: 30px;"> <div *ngIf="isPreviewTemplate" style="margin: 30px;">
<div style="margin: 30px; display: flex; align-items: center; ">
<h3>分数反馈</h3>
<label style="margin-left: 10px; margin-bottom: 5px;" nz-checkbox [(ngModel)]="tempItem.isShowScore" (ngModelChange)="checkboxChange($event, tempItem, 'isShowScore')"></label>
</div>
<div *ngIf="!baseData" style="margin: 30px; padding-top: 30px;"> <div *ngIf="!baseData" style="margin: 30px; padding-top: 30px;">
<button style="" nz-button nzType="primary" (click)="hidePreviewTemplate()"> <button style="" nz-button nzType="primary" (click)="hidePreviewTemplate()">
返回 返回
......
...@@ -863,6 +863,16 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -863,6 +863,16 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
} }
checkboxChange(e, it, key) {
console.log('e: ', e);
it[key] = e;
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