Browse Source

积分兑换-修改-请上传附件

xiaowang-social
是小王呀\24601 10 months ago
parent
commit
7cb8388833
  1. 22
      src/views/modules/volunteer/pointsRedemption/update.vue

22
src/views/modules/volunteer/pointsRedemption/update.vue

@ -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
})) : []; // efileList
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";

Loading…
Cancel
Save