课程图片回显
This commit is contained in:
@@ -326,6 +326,15 @@ export default {
|
||||
init(row) {
|
||||
console.log("11111", row);
|
||||
this.dataForm = row || {};
|
||||
if (row.image != "" && row.image != null) {
|
||||
var img = {
|
||||
name: "",
|
||||
url: row.image
|
||||
};
|
||||
var attr = [];
|
||||
attr.push(img);
|
||||
this.fileList = attr;
|
||||
}
|
||||
// this.dataForm.id = row.id || 0
|
||||
// this.dataForm.title = row.title || ''
|
||||
this.visible = true;
|
||||
@@ -352,7 +361,7 @@ export default {
|
||||
id: this.dataForm.id || undefined,
|
||||
title: this.dataForm.title,
|
||||
sort: this.dataForm.sort,
|
||||
image:this.dataForm.image,
|
||||
image: this.dataForm.image
|
||||
// 'authorId': this.dataForm.authorId.join(','),
|
||||
// 'description': this.dataForm.description,
|
||||
// 'title': this.dataForm.title,
|
||||
|
||||
Reference in New Issue
Block a user