Commit b0a7675e by chenwq Committed by 杨北旺

sop编辑-联调-属性int

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