课程图片回显
This commit is contained in:
@@ -326,6 +326,15 @@ export default {
|
|||||||
init(row) {
|
init(row) {
|
||||||
console.log("11111", row);
|
console.log("11111", row);
|
||||||
this.dataForm = 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.id = row.id || 0
|
||||||
// this.dataForm.title = row.title || ''
|
// this.dataForm.title = row.title || ''
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
@@ -352,7 +361,7 @@ export default {
|
|||||||
id: this.dataForm.id || undefined,
|
id: this.dataForm.id || undefined,
|
||||||
title: this.dataForm.title,
|
title: this.dataForm.title,
|
||||||
sort: this.dataForm.sort,
|
sort: this.dataForm.sort,
|
||||||
image:this.dataForm.image,
|
image: this.dataForm.image
|
||||||
// 'authorId': this.dataForm.authorId.join(','),
|
// 'authorId': this.dataForm.authorId.join(','),
|
||||||
// 'description': this.dataForm.description,
|
// 'description': this.dataForm.description,
|
||||||
// 'title': this.dataForm.title,
|
// 'title': this.dataForm.title,
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
// api接口请求地址
|
// api接口请求地址
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';//张川川
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';//张川川
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
||||||
window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user