Commit 9034d007 by xuyl

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

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