Commit cfc1a741 by 胡悦

修改场景编辑

1 parent 6abe56c7
......@@ -178,8 +178,14 @@ export default {
if (templateList.length !== 0) {
templateList.forEach(item => {
item.paramValue = JSON.parse(item.paramValue)
if (item.type === 1) scenarioParams.conditionList.push(item)
else if (item.type === 2) scenarioParams.contentList.push(item)
if (item.type === 1) {
if (item.paramKey === 'scene_condition_click') {
scenarioParams.scenarioRuleForm.condition = '1'
} else {
scenarioParams.scenarioRuleForm.condition = '2'
}
scenarioParams.conditionList.push(item)
} else if (item.type === 2) scenarioParams.contentList.push(item)
})
}
this.hideDialog()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!