|
@@ -76,6 +76,7 @@
|
|
|
:datafileList="topic.topic.img_list"
|
|
|
:filleNumber="imgNumber"
|
|
|
:uploadType="'image'"
|
|
|
+ :index="toIndex"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="adult-book-input-item">
|
|
@@ -85,6 +86,8 @@
|
|
|
:datafileList="topic.topic.mp3_list"
|
|
|
:filleNumber="mp3Number"
|
|
|
:uploadType="'mp3'"
|
|
|
+ :index="toIndex"
|
|
|
+
|
|
|
/>
|
|
|
</div>
|
|
|
<div
|
|
@@ -116,7 +119,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="addoption" @click="addtopic">添加一个题</div>
|
|
|
+ <div style="margin-top:15px" class="addoption" @click="addtopic">添加一个题</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -361,7 +364,7 @@ export default {
|
|
|
this.curQue.push(obj);
|
|
|
},
|
|
|
//添加一个选项
|
|
|
- addOption(index) {
|
|
|
+ addOption(index,) {
|
|
|
let obj;
|
|
|
if (this.type == "single_chs") {
|
|
|
obj = JSON.parse(JSON.stringify(this.data_structure[0].option[0]));
|
|
@@ -372,7 +375,7 @@ export default {
|
|
|
}
|
|
|
this.curQue[index].option.push(obj);
|
|
|
},
|
|
|
- timuchangeMp3(fileList) {
|
|
|
+ timuchangeMp3(fileList,item,index) {
|
|
|
console.log(fileList);
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
@@ -387,9 +390,9 @@ export default {
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- this.curQue.topic.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQue[index].topic.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
},
|
|
|
- timuchangeImage(fileList) {
|
|
|
+ timuchangeImage(fileList,item,index) {
|
|
|
console.log(fileList);
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
@@ -403,7 +406,7 @@ export default {
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- this.curQue.topic.img_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQue[index].topic.img_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|