|
|
@ -40,8 +40,8 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="项目展示图" label-width="150px" prop="fileList"> |
|
|
<el-form-item label="项目展示图" label-width="150px" prop=""> |
|
|
<template> |
|
|
<template> |
|
|
<upload-image :defaultFileList="fileList" :limit="1" @change="onChangeFileList" |
|
|
<upload-image :defaultFileList="fileList" :limit="1" @change="onChangeFileList" |
|
|
@file-removed="removedImg"></upload-image> |
|
|
@file-removed="removedImg"></upload-image> |
|
|
</template> |
|
|
</template> |
|
|
@ -144,15 +144,6 @@ |
|
|
recruitDeadline:"",//招募截止时间, |
|
|
recruitDeadline:"",//招募截止时间, |
|
|
recruitRequirement:"",//招募要求 |
|
|
recruitRequirement:"",//招募要求 |
|
|
attachments:[ |
|
|
attachments:[ |
|
|
{format: "png", |
|
|
|
|
|
name:"banner.png", |
|
|
|
|
|
type: "image", |
|
|
|
|
|
url: "https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet-saas/dev/20240912/36cbe79b43cd45d381e3c8e4f92e1c3d.png" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],//附件 |
|
|
],//附件 |
|
|
description:"",//项目简介 |
|
|
description:"",//项目简介 |
|
|
projectTitle:"",//项目标题 |
|
|
projectTitle:"",//项目标题 |
|
|
@ -341,7 +332,40 @@ |
|
|
this.formData.online = 0; |
|
|
this.formData.online = 0; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onChangeFileList(e) { |
|
|
|
|
|
console.log(e, 'sssssb'); |
|
|
|
|
|
this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
|
|
|
fileType: '0', |
|
|
|
|
|
fileUrl: item.response.data.url, |
|
|
|
|
|
name: item.response.data.fileName, |
|
|
|
|
|
url: item.response.data.url, |
|
|
|
|
|
type: "image", |
|
|
|
|
|
format: item.raw.name.split('.').pop(), |
|
|
|
|
|
})) : []; // 当e为空时清空fileList |
|
|
|
|
|
if (e.length > 0) { |
|
|
|
|
|
this.formData.coverPic = e[0].response.data.url; |
|
|
|
|
|
console.log( this.fileList, 'sssssb'); |
|
|
|
|
|
this.formData.attachments= this.fileList |
|
|
|
|
|
} else { |
|
|
|
|
|
this.formData.coverPic = ''; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// onChangeFileList(e) { |
|
|
|
|
|
// console.log(e, 'sssssb'); |
|
|
|
|
|
// this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
|
|
|
// name: item.response.data.fileName, |
|
|
|
|
|
// url: item.response.data.url, |
|
|
|
|
|
// type: "image", |
|
|
|
|
|
// format: item.raw.name.split('.').pop(), |
|
|
|
|
|
// })) : []; // 当e为空时清空fileList |
|
|
|
|
|
// if (e.length > 0) { |
|
|
|
|
|
// this.formData.coverPic = e[0].response.data.url; |
|
|
|
|
|
// console.log(this.fileList, 'sssssb'); |
|
|
|
|
|
|
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.formData.coverPic = ''; |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
// onChangeFileList(e) { |
|
|
// onChangeFileList(e) { |
|
|
// if (e.length > 0) { |
|
|
// if (e.length > 0) { |
|
|
// let item = e[0]; |
|
|
// let item = e[0]; |
|
|
@ -356,23 +380,23 @@ |
|
|
removedImg() { |
|
|
removedImg() { |
|
|
this.formData.coverPic = '' |
|
|
this.formData.coverPic = '' |
|
|
}, |
|
|
}, |
|
|
onChangeFileList(e) { |
|
|
// onChangeFileList(e) { |
|
|
console.log(e, e.length, 'sssssb'); |
|
|
// console.log(e, e.length, 'sssssb'); |
|
|
this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
// this.fileList = e.length > 0 ? e.map(item => ({ |
|
|
name: item.response.data.fileName, |
|
|
// name: item.response.data.fileName, |
|
|
url: item.response.data.url, |
|
|
// url: item.response.data.url, |
|
|
type:"image", |
|
|
// type:"image", |
|
|
format: item.raw.name.split('.').pop(), |
|
|
// format: item.raw.name.split('.').pop(), |
|
|
})) : []; // 当e为空时清空fileList |
|
|
// })) : []; // 当e为空时清空fileList |
|
|
|
|
|
|
|
|
console.log(this.fileList, e,'sssssb'); |
|
|
// console.log(this.fileList, e,'sssssb'); |
|
|
|
|
|
|
|
|
if (e.length > 0) { |
|
|
// if (e.length > 0) { |
|
|
// this.formData.attachments= this.fileList |
|
|
// // this.formData.attachments= this.fileList |
|
|
console.log(this.formData.attachments, 'sssssb'); |
|
|
// console.log(this.formData.attachments, 'sssssb'); |
|
|
} else { |
|
|
// } else { |
|
|
} |
|
|
// } |
|
|
}, |
|
|
// }, |
|
|
|
|
|
|
|
|
// onChangeImgs(e, rowIndex = 0) { |
|
|
// onChangeImgs(e, rowIndex = 0) { |
|
|
// console.log('onChangeFileList', e) |
|
|
// console.log('onChangeFileList', e) |
|
|
@ -711,44 +735,7 @@ |
|
|
this.formData.longitude = lonlat[0]; |
|
|
this.formData.longitude = lonlat[0]; |
|
|
this.searchValue = selPosition.address + selPosition.name |
|
|
this.searchValue = selPosition.address + selPosition.name |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
resetData() { |
|
|
|
|
|
this.timeRange = [] |
|
|
|
|
|
this.fileList = [] |
|
|
|
|
|
this.searchValue = '' |
|
|
|
|
|
this.searchOptions = [] |
|
|
|
|
|
this.resultList = [] |
|
|
|
|
|
this.activityId = '' |
|
|
|
|
|
this.keyWords = '' |
|
|
|
|
|
this.online = false |
|
|
|
|
|
this.formType = '' |
|
|
|
|
|
this.summary = true |
|
|
|
|
|
this.formData = { |
|
|
|
|
|
id: "", |
|
|
|
|
|
typeId: "", |
|
|
|
|
|
activityName: "",//活动名称 |
|
|
|
|
|
status: 0,//状态 |
|
|
|
|
|
assistingParty: "",//协办方 |
|
|
|
|
|
startTime: "",//开始时间 |
|
|
|
|
|
endTime: "",//结束时间 |
|
|
|
|
|
content: "",//活动内容 |
|
|
|
|
|
address: "",//地址 |
|
|
|
|
|
online: 0,//开关 |
|
|
|
|
|
cutOffTime: "",//截止时间 |
|
|
|
|
|
points: 0,//积分 |
|
|
|
|
|
participants: 0,//活动人数 |
|
|
|
|
|
sendMessage: 0,//推送数 |
|
|
|
|
|
sumUp: "",//活动总结 |
|
|
|
|
|
activityImgs: [],//图片列表 |
|
|
|
|
|
longitude: this.$store.state.user.longitude, //经度 |
|
|
|
|
|
latitude: this.$store.state.user.latitude//纬度 |
|
|
|
|
|
// longitude: null, //经度 |
|
|
|
|
|
// latitude: null//纬度 |
|
|
|
|
|
} |
|
|
|
|
|
map="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 开启加载动画 |
|
|
// 开启加载动画 |
|
|
startLoading() { |
|
|
startLoading() { |
|
|
loading = Loading.service({ |
|
|
loading = Loading.service({ |
|
|
|