|
@@ -109,8 +109,8 @@ export default {
|
|
|
previewLogo: [],
|
|
|
hdLogo: [],
|
|
|
eventTimeArr: [
|
|
|
- this.$moment(new Date()).format('yyyy-MM-dd HH:mm:ss'),
|
|
|
- this.$moment(new Date()).format('yyyy-MM-dd HH:mm:ss')
|
|
|
+ this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
+ this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
],
|
|
|
isShow: false,
|
|
|
sort: 1
|
|
@@ -189,18 +189,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
let params = Object.assign({}, _that.form);
|
|
|
- params.cover =
|
|
|
- _that.form.cover &&
|
|
|
- _that.form.cover.length > 0 &&
|
|
|
- _that.form.cover[0].url;
|
|
|
- params.previewLogo =
|
|
|
- _that.form.previewLogo &&
|
|
|
- _that.form.previewLogo.length > 0 &&
|
|
|
- _that.form.previewLogo[0].url;
|
|
|
- params.hdLogo =
|
|
|
- _that.form.hdLogo &&
|
|
|
- _that.form.hdLogo.length > 0 &&
|
|
|
- _that.form.hdLogo[0].url;
|
|
|
+ params.cover = (_that.form.cover && _that.form.cover.length > 0) ? _that.form.cover[0].url : '';
|
|
|
+ params.previewLogo = (_that.form.previewLogo && _that.form.previewLogo.length > 0) ? _that.form.previewLogo[0].url : '';
|
|
|
+ params.hdLogo = (_that.form.hdLogo && _that.form.hdLogo.length > 0) ? _that.form.hdLogo[0].url : '';
|
|
|
params.eventStartDate = _that.form.eventTimeArr[0];
|
|
|
params.eventEndDate = _that.form.eventTimeArr[1];
|
|
|
|