Commit 7dcffd06 by 前端

修复objectId问题

1 parent 10cbe928
...@@ -1013,7 +1013,6 @@ export default { ...@@ -1013,7 +1013,6 @@ export default {
reachesType: item.reachesType, reachesType: item.reachesType,
reachesTypeSet: item.reachesTypeSet reachesTypeSet: item.reachesTypeSet
}) })
console.log(item)
if (item.id) { if (item.id) {
params.eventList[idx].id = item.id params.eventList[idx].id = item.id
} }
...@@ -1039,6 +1038,7 @@ export default { ...@@ -1039,6 +1038,7 @@ export default {
videoImageStorage.push(obj.attContent) videoImageStorage.push(obj.attContent)
params.eventList[index].resourceList = videoImageStorage params.eventList[index].resourceList = videoImageStorage
} }
// 活动
if (obj && obj.attType == 7) { if (obj && obj.attType == 7) {
params.eventList[index].additionalType = 2 params.eventList[index].additionalType = 2
let attContentCopy = JSON.parse(obj.attContent) let attContentCopy = JSON.parse(obj.attContent)
...@@ -1062,10 +1062,12 @@ export default { ...@@ -1062,10 +1062,12 @@ export default {
} }
} }
// 素材
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 1 params.eventList[index].additionalType = 1
params.eventList[index].objectType = 10 params.eventList[index].objectType = 10
params.eventList[index].objectId = JSON.parse(obj.attContent).objectId let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId
} }
}) })
} else { } else {
...@@ -1075,7 +1077,8 @@ export default { ...@@ -1075,7 +1077,8 @@ export default {
} }
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 6 params.eventList[index].additionalType = 6
params.eventList[index].objectId = JSON.parse(obj.attContent).objectId let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && obj.attType == 7) { if (obj && obj.attType == 7) {
let attContentCopy = JSON.parse(obj.attContent) let attContentCopy = JSON.parse(obj.attContent)
...@@ -1132,7 +1135,8 @@ export default { ...@@ -1132,7 +1135,8 @@ export default {
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 1 params.eventList[index].additionalType = 1
params.eventList[index].objectType = 10 params.eventList[index].objectType = 10
params.eventList[index].objectId = JSON.parse(obj.attContent).objectId let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && obj.attType == 7) { if (obj && obj.attType == 7) {
params.eventList[index].additionalType = 2 params.eventList[index].additionalType = 2
...@@ -1165,7 +1169,8 @@ export default { ...@@ -1165,7 +1169,8 @@ export default {
} }
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 6 params.eventList[index].additionalType = 6
params.eventList[index].objectId = JSON.parse(obj.attContent).objectId let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && obj.attType == 7) { if (obj && obj.attType == 7) {
let attContentCopy = JSON.parse(obj.attContent) let attContentCopy = JSON.parse(obj.attContent)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!