|
@@ -87,7 +87,6 @@
|
|
|
:filleNumber="mp3Number"
|
|
|
:uploadType="'mp3'"
|
|
|
:index="toIndex"
|
|
|
-
|
|
|
/>
|
|
|
</div>
|
|
|
<div
|
|
@@ -119,7 +118,9 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="margin-top:15px" class="addoption" @click="addtopic">添加一个题</div>
|
|
|
+ <div style="margin-top: 15px" class="addoption" @click="addtopic">
|
|
|
+ 添加一个题
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -169,6 +170,7 @@ export default {
|
|
|
img_list: [],
|
|
|
mp3_list: [],
|
|
|
isAnswer: "",
|
|
|
+ font: "",
|
|
|
},
|
|
|
{
|
|
|
number: "",
|
|
@@ -176,6 +178,7 @@ export default {
|
|
|
img_list: [],
|
|
|
mp3_list: [],
|
|
|
isAnswer: "",
|
|
|
+ font: "",
|
|
|
},
|
|
|
],
|
|
|
correct: [],
|
|
@@ -364,7 +367,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]));
|
|
@@ -375,7 +378,7 @@ export default {
|
|
|
}
|
|
|
this.curQue[index].option.push(obj);
|
|
|
},
|
|
|
- timuchangeMp3(fileList,item,index) {
|
|
|
+ timuchangeMp3(fileList, item, index) {
|
|
|
console.log(fileList);
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
@@ -390,9 +393,11 @@ export default {
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- this.curQue[index].topic.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQue[index].topic.mp3_list = JSON.parse(
|
|
|
+ JSON.stringify(articleImgRes)
|
|
|
+ );
|
|
|
},
|
|
|
- timuchangeImage(fileList,item,index) {
|
|
|
+ timuchangeImage(fileList, item, index) {
|
|
|
console.log(fileList);
|
|
|
const articleImgList = JSON.parse(JSON.stringify(fileList));
|
|
|
const articleImgRes = [];
|
|
@@ -406,7 +411,9 @@ export default {
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- this.curQue[index].topic.img_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQue[index].topic.img_list = JSON.parse(
|
|
|
+ JSON.stringify(articleImgRes)
|
|
|
+ );
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -472,7 +479,7 @@ export default {
|
|
|
line-height: 40px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
- .close{
|
|
|
+ .close {
|
|
|
width: 24px;
|
|
|
cursor: pointer;
|
|
|
}
|