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