|
|
@ -220,7 +220,7 @@ export default { |
|
|
actType: '',// 活动类型,来源于活动类型接口value |
|
|
actType: '',// 活动类型,来源于活动类型接口value |
|
|
holdYearId: '',//活动开始时间所属年份:yyyy |
|
|
holdYearId: '',//活动开始时间所属年份:yyyy |
|
|
holdMonthId: '',//活动开始时间所属月份:yyyyMM |
|
|
holdMonthId: '',//活动开始时间所属月份:yyyyMM |
|
|
holdTime: new Date(),//活动开始时间:yyyy-MM-dd HH:mm:ss |
|
|
holdTime: this.getFormatDate(),//活动开始时间:yyyy-MM-dd HH:mm:ss |
|
|
topic: '',// 活动主题 |
|
|
topic: '',// 活动主题 |
|
|
address: '',// 活动地址 |
|
|
address: '',// 活动地址 |
|
|
latitude: '',//活动地点纬度 |
|
|
latitude: '',//活动地点纬度 |
|
|
@ -288,7 +288,20 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getFormatDate() { |
|
|
|
|
|
var date = new Date(); |
|
|
|
|
|
var month = date.getMonth() + 1; |
|
|
|
|
|
var strDate = date.getDate(); |
|
|
|
|
|
if (month >= 1 && month <= 9) { |
|
|
|
|
|
month = "0" + month; |
|
|
|
|
|
} |
|
|
|
|
|
if (strDate >= 0 && strDate <= 9) { |
|
|
|
|
|
strDate = "0" + strDate; |
|
|
|
|
|
} |
|
|
|
|
|
var currentDate = date.getFullYear() + "-" + month + "-" + strDate |
|
|
|
|
|
+ " " + '09:00:00'; |
|
|
|
|
|
return currentDate; |
|
|
|
|
|
}, |
|
|
handleChangeScope (value) { |
|
|
handleChangeScope (value) { |
|
|
|
|
|
|
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
@ -360,7 +373,9 @@ export default { |
|
|
this.formData.isAutoInform = '0' |
|
|
this.formData.isAutoInform = '0' |
|
|
} |
|
|
} |
|
|
this.formData.attachmentList = [...this.fileList] |
|
|
this.formData.attachmentList = [...this.fileList] |
|
|
|
|
|
let array = this.formData.holdTime.split('-') |
|
|
|
|
|
this.formData.holdYearId = array[0] |
|
|
|
|
|
this.formData.holdMonthId = array[0] + array[1] |
|
|
|
|
|
|
|
|
if (this.formType === 'add') { |
|
|
if (this.formType === 'add') { |
|
|
this.formData.icPartyActId = '' |
|
|
this.formData.icPartyActId = '' |
|
|
|