Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9034d007
authored
Oct 21, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
任务分析页面存在缓存修改
1 parent
d6b5848e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
src/views/task/analyseTask/cpns/TaskInfo.vue
src/views/task/analyseTask/cpns/TaskInfo.vue
View file @
9034d00
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment