Commit b0a7675e by chenwq Committed by 杨北旺

sop编辑-联调-属性int

1 parent f6c575b2
...@@ -121,15 +121,15 @@ export default { ...@@ -121,15 +121,15 @@ export default {
baseData: { baseData: {
channelTypeList: [ channelTypeList: [
{ {
confId: '1', confId: 1,
confName: '企业微信' confName: '企业微信'
}, },
{ {
confId: '2', confId: 2,
confName: '短信' confName: '短信'
}, },
{ {
confId: '3', confId: 3,
confName: '微信朋友圈' confName: '微信朋友圈'
} }
] ]
......
...@@ -105,6 +105,7 @@ const ATT_TYPE = { ...@@ -105,6 +105,7 @@ const ATT_TYPE = {
ACTIVITY: 7 ACTIVITY: 7
} }
import ActivityModel from './components/activityModel' import ActivityModel from './components/activityModel'
import * as moment from 'moment'
export default { export default {
name: 'editGift', name: 'editGift',
data() { data() {
...@@ -126,7 +127,7 @@ export default { ...@@ -126,7 +127,7 @@ export default {
eventTime: '', eventTime: '',
repeatFlag: 'N', repeatFlag: 'N',
// 1:按天,2:按周,3:按月 // 1:按天,2:按周,3:按月
repeatMode: '1', repeatMode: 1,
repeatTime: '', repeatTime: '',
eventEndDate: '', eventEndDate: '',
pushChannelType: '', pushChannelType: '',
...@@ -251,7 +252,7 @@ export default { ...@@ -251,7 +252,7 @@ export default {
this.editFormDataTime[index].isHide = val == 'N' this.editFormDataTime[index].isHide = val == 'N'
}) })
if (val == 'N') { if (val == 'N') {
this.editForm.repeatMode = '1' this.editForm.repeatMode = 1
this.editForm.repeatTime = '' this.editForm.repeatTime = ''
this.editForm.eventEndDate = '' this.editForm.eventEndDate = ''
} }
...@@ -265,15 +266,15 @@ export default { ...@@ -265,15 +266,15 @@ export default {
optionLabel: 'confName', optionLabel: 'confName',
optionList: [ optionList: [
{ {
confId: '1', confId: 1,
confName: '按天' confName: '按天'
}, },
{ {
confId: '2', confId: 2,
confName: '按周' confName: '按周'
}, },
{ {
confId: '3', confId: 3,
confName: '按月' confName: '按月'
} }
], ],
...@@ -319,17 +320,17 @@ export default { ...@@ -319,17 +320,17 @@ export default {
optionLabel: 'confName', optionLabel: 'confName',
optionList: [ optionList: [
{ {
confId: '1', confId: 1,
confName: '企业微信', confName: '企业微信',
isDisabled: false isDisabled: false
}, },
{ {
confId: '2', confId: 2,
confName: '短信', confName: '短信',
isDisabled: false isDisabled: false
}, },
{ {
confId: '3', confId: 3,
confName: '微信朋友圈', confName: '微信朋友圈',
isDisabled: false isDisabled: false
} }
...@@ -399,7 +400,7 @@ export default { ...@@ -399,7 +400,7 @@ export default {
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// this.editForm = JSON.parse(JSON.stringify(this.eventObj.info)) // this.editForm = JSON.parse(JSON.stringify(this.eventObj.info))
Object.assign(this.editForm, this.eventObj.info) Object.assign(this.editForm, this.eventObj.info)
// console.log(this.editForm) console.log(this.editForm)
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
...@@ -443,6 +444,8 @@ export default { ...@@ -443,6 +444,8 @@ export default {
}, },
getInfo() { getInfo() {
this.editForm.eventStartDate = moment(this.editForm.eventStartDate).format('YYYY-MM-DD')
this.editForm.eventEndDate = moment(this.editForm.eventEndDate).format('YYYY-MM-DD')
this.recoveryRepeat() this.recoveryRepeat()
this.recoveryEndTime() this.recoveryEndTime()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!