|
|
@@ -60,6 +60,8 @@
|
|
|
<app-uploader
|
|
|
@resultData="_resultData"
|
|
|
:num="1"
|
|
|
+ :prefixShow="true"
|
|
|
+ :imgList="imgList"
|
|
|
/>
|
|
|
<!-- <image
|
|
|
src="form.cover"
|
|
|
@@ -133,7 +135,8 @@ export default {
|
|
|
name: "下架"
|
|
|
}
|
|
|
],
|
|
|
- imgShow: false
|
|
|
+ imgShow: false,
|
|
|
+ imgList: []
|
|
|
};
|
|
|
},
|
|
|
onLoad () {
|
|
|
@@ -167,6 +170,8 @@ export default {
|
|
|
pxClassDetail({ id: this.option.id }).then(res => {
|
|
|
console.log(res)
|
|
|
this.form = res.data
|
|
|
+ this.imgList.push(res.data.cover )
|
|
|
+ console.log(this.imgList)
|
|
|
}).catch(err => { console.log(err) })
|
|
|
},
|
|
|
radioChange: function (evt) {
|
|
|
@@ -191,7 +196,7 @@ export default {
|
|
|
let promptText = this.option.id ? "修改成功!" : "添加成功!";
|
|
|
this.$msg(promptText);
|
|
|
setTimeout(() => {
|
|
|
- this.pageTo({url: "/pagesStatistics/trainingClass", type: 2});
|
|
|
+ this.pageTo(1);
|
|
|
}, 1000);
|
|
|
});
|
|
|
},
|