|
|
@ -43,7 +43,7 @@ |
|
|
<el-form-item label="活动封面图" label-width="140px" prop="coverPic"> |
|
|
<el-form-item label="活动封面图" label-width="140px" prop="coverPic"> |
|
|
<template> |
|
|
<template> |
|
|
<upload-image :defaultFileList="fileList" :limit="1" |
|
|
<upload-image :defaultFileList="fileList" :limit="1" |
|
|
@change="onChangeFileList"></upload-image> |
|
|
@change="onChangeFileList" @file-removed="removedImg"></upload-image> |
|
|
</template> |
|
|
</template> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -353,8 +353,11 @@ export default { |
|
|
// this.formData.coverPic = ob.fileUrl; |
|
|
// this.formData.coverPic = ob.fileUrl; |
|
|
// } |
|
|
// } |
|
|
// }, |
|
|
// }, |
|
|
|
|
|
removedImg(){ |
|
|
|
|
|
this.formData.coverPic = '' |
|
|
|
|
|
}, |
|
|
onChangeFileList(e) { |
|
|
onChangeFileList(e) { |
|
|
|
|
|
console.log(e,'sssssb'); |
|
|
this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
fileType: '0', |
|
|
fileType: '0', |
|
|
fileUrl: item.response.data.url |
|
|
fileUrl: item.response.data.url |
|
|
|