Commit a97b98b7 authored by kingweight's avatar kingweight

判断题 支持上传图片和语音

parent 53443d69
......@@ -166,6 +166,27 @@
<!-- 判断题 -->
<div *ngIf="question.type=='judgment'" style="border: 1px #ccc solid; border-radius: 15px; padding: 15px; background-color: rgb(255, 250, 243);">
<div style="margin-bottom: 10px; display: flex; align-items: center;">
<div style="width: 300px;">
<app-upload-image-with-preview [picUrl]="question.pic_url"
(imageUploaded)="onItemImgUploadSuccess($event, question, 'pic_url')">
</app-upload-image-with-preview>
</div>
<button *ngIf="question.pic_url" style="margin-left: 10px;" nz-button nzType="" (click)="onDeletaImg(question, 'pic_url')">
x
</button>
</div>
<div style="margin-bottom: 10px; display: flex; align-items: center;">
<app-audio-recorder [audioUrl]="question.audio_url"
(audioUploaded)="onItemAudioUploadSuccess($event, question, 'audio_url')">
</app-audio-recorder>
<button *ngIf="question.audio_url" style="margin-left: 10px;" nz-button nzType="danger" (click)="onDeletaImg(question, 'audio_url')">
x
</button>
</div>
<div style="margin-top: 5px; display: flex; align-items: center; ">
<span style="">问题:</span>
<textarea nz-input [(ngModel)]="question.text" (blur)="save()" style=" width: 300px; min-height: 60px;"></textarea>
......
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