|
@@ -9,9 +9,9 @@
|
|
|
class="adult-book-input"
|
|
|
:autosize="{ minRows: 2 }"
|
|
|
type="textarea"
|
|
|
- placeholder="请输入标题"
|
|
|
- v-model="curQueItem.title"
|
|
|
- @blur="curQueItem.title = curQueItem.title.trim()"
|
|
|
+ placeholder="请输入题目"
|
|
|
+ v-model="curQueItem.topic.con"
|
|
|
+ @blur="curQueItem.topic.con = curQueItem.topic.con.trim()"
|
|
|
></el-input>
|
|
|
<img
|
|
|
@click="deleteOption"
|
|
@@ -24,7 +24,7 @@
|
|
|
<span class="adult-book-lable">题目图片:</span>
|
|
|
<Upload
|
|
|
:changeFillId="timuchangeImage"
|
|
|
- :datafileList="fileCon.img_list"
|
|
|
+ :datafileList="fileCon.timu_img_list"
|
|
|
:filleNumber="imgNumber"
|
|
|
:uploadType="'image'"
|
|
|
/>
|
|
@@ -33,7 +33,7 @@
|
|
|
<span class="adult-book-lable">题目音频:</span>
|
|
|
<Upload
|
|
|
:changeFillId="timuchangeMp3"
|
|
|
- :datafileList="fileCon.mp3_list"
|
|
|
+ :datafileList="fileCon.timu_mp3_list"
|
|
|
:filleNumber="mp3Number"
|
|
|
:uploadType="'mp3'"
|
|
|
/>
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
articleImgRes.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- this.curQueItem.con.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQueItem.topic.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
},
|
|
|
timuchangeImage(fileList) {
|
|
|
console.log(fileList);
|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
//this.articleImgList = articleImgRes;
|
|
|
- this.curQueItem.con.img_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
+ this.curQueItem.topic.img_list = JSON.parse(JSON.stringify(articleImgRes));
|
|
|
},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -224,6 +224,9 @@ export default {
|
|
|
if (this.curQueItem) {
|
|
|
this.fileCon.img_list = this.curQueItem.img_list;
|
|
|
this.fileCon.mp3_list = this.curQueItem.mp3_list;
|
|
|
+ this.fileCon.timu_img_list = this.curQueItem.topic.img_list;
|
|
|
+ this.fileCon.timu_mp3_list = this.curQueItem.topic.mp3_list;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|