Commit 9034d007 by xuyl

任务分析页面存在缓存修改

1 parent d6b5848e
...@@ -21,36 +21,50 @@ export default { ...@@ -21,36 +21,50 @@ export default {
taskInfoList: [ taskInfoList: [
{ {
name: '业务场景:', name: '业务场景:',
value: 'businessSceneName' value: 'businessSceneName',
id:'businessSceneName'
}, },
{ {
name: '商户:', name: '商户:',
value: 'merchantName' value: 'merchantName',
id:'merchantName'
}, },
{ {
name: '活动/产品:', name: '活动/产品:',
value: 'activityName' value: 'activityName',
id:'activityName'
}, },
{ {
name: '任务指定人群:', name: '任务指定人群:',
value: 'crowdName' value: 'crowdName',
id:'crowdName'
}, },
{ {
name: '发放渠道:', name: '发放渠道:',
value: 'channelName' value: 'channelName',
id:'channelName'
} }
] ]
} }
}, },
created() { watch: {
this.taskInfoList.map(item => { taskInfo:{
Object.keys(this.taskInfo).forEach(key => { handler(newVal,oldVal){
if (item.value == key) { if (!oldVal || newVal !== oldVal) {
item.value = this.taskInfo[key] this.taskInfoList.map((item,index) => {
Object.keys(newVal).forEach(key => {
if (item.id == key) {
item.value = newVal[key]
this.$set(this.taskInfoList,index,item)
} }
}) })
}) })
}
},
immediate: true,
deep: true
}, },
}
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!