Commit b1f9d97c by 王志慧

fixed

1 parent 393da539
...@@ -372,25 +372,26 @@ export default { ...@@ -372,25 +372,26 @@ export default {
}) })
}, },
previewForm(val) { previewForm(val) {
console.log( this.$common.utils.deepClone(val),'9999999999')
const value = this.$common.utils.deepClone(val) const value = this.$common.utils.deepClone(val)
if (value[0] && !value[0].attContent) value.splice(0, 1) if (value[0] && !value[0].attContent) value.splice(0, 1)
this.tplForm.attContentList = this.$common.utils.deepClone(value) this.tplForm.attContentList = this.$common.utils.deepClone(value)
value.forEach(activity => { value.forEach(activity => {
let opts let opts
if (activity.attType == 7) { if (activity.attType == 7) {
activity.attType = 4
opts = { opts = {
type: activity.attContent.marketingType, type: activity.attContent.marketingType,
id: activity.attContent.marketingId id: activity.attContent.marketingId
} }
activity.attContent = this.renderParameter(opts) activity.attContent = this.renderParameter(opts)
} else if (activity.attType == 6) {
activity.attType = 4 activity.attType = 4
} else if (activity.attType == 6) {
opts = { opts = {
type: activity.attType, type: activity.attType,
id: JSON.parse(activity.attContent).objectId id: JSON.parse(activity.attContent).objectId
} }
activity.attContent = this.renderParameter(opts) activity.attContent = this.renderParameter(opts)
activity.attType = 4
} }
}) })
this.tplForm.attachments = value this.tplForm.attachments = value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!