Commit b1f9d97c by 王志慧

fixed

1 parent 393da539
......@@ -372,25 +372,26 @@ export default {
})
},
previewForm(val) {
console.log( this.$common.utils.deepClone(val),'9999999999')
const value = this.$common.utils.deepClone(val)
if (value[0] && !value[0].attContent) value.splice(0, 1)
this.tplForm.attContentList = this.$common.utils.deepClone(value)
value.forEach(activity => {
let opts
if (activity.attType == 7) {
activity.attType = 4
opts = {
type: activity.attContent.marketingType,
id: activity.attContent.marketingId
}
activity.attContent = this.renderParameter(opts)
} else if (activity.attType == 6) {
activity.attType = 4
} else if (activity.attType == 6) {
opts = {
type: activity.attType,
id: JSON.parse(activity.attContent).objectId
}
activity.attContent = this.renderParameter(opts)
activity.attType = 4
}
})
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!