Commit b99b4f93 authored by liujiangnan's avatar liujiangnan

feat: 表单配置

parent 7b5c88a2
......@@ -126,16 +126,6 @@
(click)="addPage()">+增加提示内容</button>
</div>
</div>
<!-- <span style="font-size: 20px;">提示音频: </span>
<div style="display:flex ;">
<div>
<app-audio-recorder [audioUrl]="item.audio" (audioUploaded)="onAudioUploadSuccess($event, 'audio')">
</app-audio-recorder>
</div>
<div style="margin: 5px">
<span>{{ item.audioName}}</span>
</div>
</div> -->
</div>
......@@ -162,6 +152,11 @@
</div>
<input type="text" nz-input [(ngModel)]="item.jumpIdx" (blur)="save()">
</div>
<div style="padding: 20px">
<app-upload-video [videoUrl]="item.video_url" (videoUploaded)="onVideoUploaded($event)"></app-upload-video>
</div>
</div>
<nz-modal [(nzVisible)]="isVisible" [nzTitle]="null" [nzContent]="modalContent" [nzFooter]="modalFooter"
......
......@@ -133,6 +133,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
contentMain: "",
contentArr: [],
video_url: "",
};
constructor(public nzMessageService: NzMessageService, public appRef: ApplicationRef, public changeDetectorRef: ChangeDetectorRef) {
......@@ -228,6 +230,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this.save();
}
onVideoUploaded(evt) {
this.item.video_url = evt.url;
console.log(evt);
this.save();
}
changeMain() {
//输出的数据可以识别到\n的换行符
let arr = this.item.contentMain.split(" ");
......
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