Commit a969312d authored by 李维's avatar 李维

更新表单结构

parent 1d46c8f2
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
@import "../style/common_mixin";
.model-content {
padding: 20px;
.audio-upload {
border-radius: 20px;
border-style: dashed;
padding:20px;
margin-bottom: 10px;
}
.card-config {
width: 100%;
height: 100%;
margin-left: 10px;
display: flex;
flex-wrap: wrap;
.card-item{
flex:1;
.border {
border-radius: 20px;
border-style: dashed;
padding:20px;
width: 800px;
}
.card-item-content{
.title {
......
......@@ -66,23 +66,22 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
text:"",
image_url:"",
audio_url:"",
useText: false,
useImage: false,
useAudio: false,
questionShowType: 1,
questionType: 1, // 1-选择题 2-判断对错
},
choice:{
correct:{ useText: false, useImage: false, useAudio: false, text: "", image_url: "", audio_url: "" },
correct:{ showType: 1, text: "", image_url: "", audio_url: "" },
incorrect:[
{ useText: false, useImage: false, useAudio: false, text: "", image_url: "", audio_url: "" },
{ useText: false, useImage: false, useAudio: false, text: "", image_url: "", audio_url: "" },
{ useText: false, useImage: false, useAudio: false, text: "", image_url: "", audio_url: "" },
{ showType: 1, text: "", image_url: "", audio_url: "" },
{ showType: 1, text: "", image_url: "", audio_url: "" },
{ showType: 1, text: "", image_url: "", audio_url: "" },
]
}
};
}
cardChoiceData(){
return { useText: false, useImage: false, useAudio: false, text: "", image_url: "", audio_url: "" }
return { showType: 1, text: "", image_url: "", audio_url: "" }
}
getDefaultPicArr() {
......@@ -118,8 +117,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save();
}
onAudioUploadSuccessByItem(e, item) {
item.audio_url = e.url;
onAudioUploadSuccessByItem(e, item, key="audio_url") {
item[key] = e.url;
this.save();
}
onTitleAudioUploadSuccess(e) {
......
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