|
|
@ -183,6 +183,7 @@ import UploadImage from '@/views/modules/plugins/rent/upload-image.vue' |
|
|
|
|
|
|
|
], |
|
|
|
formData:{ |
|
|
|
imgAttachments:[], |
|
|
|
Servicelevel:"", |
|
|
|
starLevel:"", |
|
|
|
redeemTimesEveryone:'', |
|
|
@ -246,6 +247,27 @@ import UploadImage from '@/views/modules/plugins/rent/upload-image.vue' |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onChangeFileList(e) { |
|
|
|
console.log(e, 'sssssb'); |
|
|
|
this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
|
fileType: '0', |
|
|
|
type:'image', |
|
|
|
fileType: '0', |
|
|
|
name:item.response.data.fileName, |
|
|
|
fileUrl: item.response.data.url, |
|
|
|
format: item.response.data.fileName.split('.').pop(), |
|
|
|
url: item.response.data.url |
|
|
|
})) : []; // 当e为空时清空fileList |
|
|
|
if (e.length > 0) { |
|
|
|
console.log(this.fileList,"this.fileList"); |
|
|
|
this.formData.imgAttachments=this.fileList; |
|
|
|
console.log(this.formData.imgAttachments,"this.fileList"); |
|
|
|
|
|
|
|
} else { |
|
|
|
this.formData.coverPic = ''; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//获取详情 |
|
|
|
getTableData() { |
|
|
|
const url = "/voluntary/pointsAward/admin/detail"; |
|
|
|