Commit dc97efb8 authored by 李维's avatar 李维

Bug fix

parent d088ed78
......@@ -25,34 +25,41 @@
<div *ngIf="dataArray.length==0" style="font-style: italic;">
请新建问答
</div>
<div ngfor *ngFor="let item of dataArray; let i = index" class="section-content" style="border-bottom: 1px dashed #ccc; padding-bottom: 5px;">
<h3>-{{i+1}}-</h3>
<nz-form-item>
<nz-form-label [nzSpan]="2">问题</nz-form-label>
<nz-form-control [nzSpan]="12">
<textarea rows="4" nz-input [(ngModel)]="item.questionText" (blur)="saveItem()"></textarea>
</nz-form-control>
<nz-form-label [nzSpan]="2">问题-音频</nz-form-label>
<nz-form-control [nzSpan]="8">
<app-audio-recorder [audioUrl]="item.audio_url_question"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url_question',item)">
</app-audio-recorder>
<label nz-checkbox nzValue="Yes" [(ngModel)]="item.showIndex" (ngModelChange)="saveItem()">显示题号</label>
</nz-form-control>
</nz-form-item>
<div ngfor *ngFor="let item of dataArray; let i = index" class="section-content clearfix" style="border-bottom: 1px dashed #ccc; padding-bottom: 5px;">
<div>
<h3>-{{i+1}}-</h3>
<nz-form-item>
<nz-form-label [nzSpan]="2">问题</nz-form-label>
<nz-form-control [nzSpan]="12">
<textarea rows="4" nz-input [(ngModel)]="item.questionText" (blur)="saveItem()"></textarea>
</nz-form-control>
<nz-form-label [nzSpan]="2">问题-音频</nz-form-label>
<nz-form-control [nzSpan]="8">
<app-audio-recorder [audioUrl]="item.audio_url_question"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url_question',item)">
</app-audio-recorder>
<label nz-checkbox nzValue="Yes" [(ngModel)]="item.showIndex" (ngModelChange)="saveItem()">显示题号</label>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">答案</nz-form-label>
<nz-form-control [nzSpan]="12">
<textarea rows="4" nz-input [(ngModel)]="item.answerText" (blur)="saveItem()"></textarea>
</nz-form-control>
<nz-form-label [nzSpan]="2">答案-音频</nz-form-label>
<nz-form-control [nzSpan]="8">
<app-audio-recorder [audioUrl]="item.audio_url_answer"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url_answer',item)">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">答案</nz-form-label>
<nz-form-control [nzSpan]="12">
<textarea rows="4" nz-input [(ngModel)]="item.answerText" (blur)="saveItem()"></textarea>
</nz-form-control>
<nz-form-label [nzSpan]="2">答案-音频</nz-form-label>
<nz-form-control [nzSpan]="8">
<app-audio-recorder [audioUrl]="item.audio_url_answer"
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url_answer',item)">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</div>
<div>
<button style="margin-bottom: 10px; float: right;" nz-button nzType="danger" (click)="deleteItem(i)">
<span>删除</span>
</button>
</div>
</div>
</div>
</div>
......
......@@ -452,6 +452,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let clickSY = 0
let baseY = 0;
const scrollPannel = this.g_cartoon.getCartoonElement("scroll-pannel")
this.subscribeMapDragEvent(sliderBody.id, ()=>{
clickSY = this.g_clickY;
baseY = sliderBody.ref.y
......@@ -654,6 +655,8 @@ export class PlayComponent implements OnInit, OnDestroy {
btnQuestion.show(()=>{
this.g_enableMapDown = true;
})
} else {
this.g_enableMapDown = true;
}
})
})
......
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