Commit fee3b9f3 by 前端

Merge branch 'xuyl_dev_v3.3.1.1' into 'v3.3.1'

解决重复新增

See merge request !408
2 parents 9241ea2d 60db009f
......@@ -936,8 +936,9 @@ export default {
reachesType: item.reachesType,
reachesTypeSet: item.reachesTypeSet
})
console.log(item.id)
if (item.id) {
params.eventList[idx].id = item.id
params.eventList[index].id = item.id
}
if (item.repeatFlag == 'Y') {
params.eventList[idx].repeatTime = item.repeatTime
......@@ -1132,6 +1133,7 @@ export default {
deleteIdList: this.deleteIdList,
editList: params.eventList
}
console.log(batchEditParams.editList)
batchEditParams.editList.forEach((item,indx) =>{
if(item.backupContent instanceof Array){
item.backupContent = JSON.stringify(item.backupContent)
......@@ -1151,9 +1153,9 @@ export default {
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({}, {pageName: '营销SOP', name: '编辑sop事件', params}))
if (res.code == '0') {
this.cancelJump()
}
// if (res.code == '0') {
// this.cancelJump()
// }
})
} else {
params.eventList = JSON.stringify(params.eventList)
......@@ -1164,9 +1166,9 @@ export default {
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({}, {pageName: '营销SOP', name: '创建sop事件', params}))
if (res.code == '0') {
this.cancelJump()
}
// if (res.code == '0') {
// this.cancelJump()
// }
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!