|
@@ -71,6 +71,7 @@
|
|
|
:datafileList="curQueItem.mp3_list"
|
|
|
:filleNumber="mp3Number"
|
|
|
:uploadType="'mp3'"
|
|
|
+ :index="index"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -156,8 +157,9 @@ export default {
|
|
|
skin_url: "/tinymce/skins/ui/oxide",
|
|
|
height: 150,
|
|
|
width: 500,
|
|
|
- // plugins: "",
|
|
|
- toolbar: "bold",
|
|
|
+ plugins:
|
|
|
+ "link lists image code table colorpicker textcolor wordcount contextmenu",
|
|
|
+ toolbar: " forecolor",
|
|
|
branding: false,
|
|
|
}, //富文本初始化
|
|
|
};
|
|
@@ -169,9 +171,6 @@ export default {
|
|
|
ConInput(e) {},
|
|
|
// 选择声调
|
|
|
selectTone(oindex, aindex) {
|
|
|
- this.curQue.option.forEach((item) => {
|
|
|
- item.answer = null;
|
|
|
- });
|
|
|
this.curQue.option[oindex].answer = aindex;
|
|
|
},
|
|
|
numberInput(value) {
|
|
@@ -183,7 +182,7 @@ export default {
|
|
|
onBlur(item, field) {
|
|
|
item[field] = item[field] ? item[field].trim() : "";
|
|
|
},
|
|
|
- changeMp3(fileList) {
|
|
|
+ changeMp3(fileList, item, index) {
|
|
|
console.log(fileList);
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
@@ -192,14 +191,17 @@ export default {
|
|
|
const obj = {
|
|
|
name: item.name,
|
|
|
url: item.response.file_info_list[0].file_url,
|
|
|
- id: "[FID##" + item.response.file_info_list[0].file_id + "#FID]",
|
|
|
+ id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
|
|
|
media_duration: item.response.file_info_list[0].media_duration, //音频时长
|
|
|
};
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
//this.articleImgList = articleImgRes;
|
|
|
- this.curQueItem.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ console.log(index);
|
|
|
+ this.curQue.option[index].mp3_list = JSON.parse(
|
|
|
+ JSON.stringify(articleImgRes)
|
|
|
+ );
|
|
|
},
|
|
|
addoption() {
|
|
|
let leg = this.curQue.option.length;
|