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 4bf33f6e
authored
Oct 25, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查看任务修复
1 parent
6dbca4aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
17 deletions
src/views/task/observeTask/cpns/BasicInfo.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/task/observeTask/index.vue
src/views/task/observeTask/cpns/BasicInfo.vue
View file @
4bf33f6
...
...
@@ -20,23 +20,31 @@ export default {
data
(){
return
{
basicInfoList
:[
{
infoName
:
'业务场景:'
,
infoVal
:
'businessSceneName'
},
{
infoName
:
'商户:'
,
infoVal
:
'merchantName'
},
{
infoName
:
'活动/产品:'
,
infoVal
:
'activityName'
},
{
infoName
:
'任务指定人群:'
,
infoVal
:
'crowdName'
},
{
infoName
:
'发放渠道:'
,
infoVal
:
'channelName'
},
{
infoName
:
'备注:'
,
infoVal
:
'remark'
},
{
infoName
:
'业务场景:'
,
infoVal
:
'businessSceneName'
,
id
:
'businessSceneName'
},
{
infoName
:
'商户:'
,
infoVal
:
'merchantName'
,
id
:
'merchantName'
},
{
infoName
:
'活动/产品:'
,
infoVal
:
'activityName'
,
id
:
'activityName'
},
{
infoName
:
'任务指定人群:'
,
infoVal
:
'crowdName'
,
id
:
'crowdName'
},
{
infoName
:
'发放渠道:'
,
infoVal
:
'channelName'
,
id
:
'channelName'
},
{
infoName
:
'备注:'
,
infoVal
:
'remark'
,
id
:
'remark'
},
]
}
},
created
()
{
this
.
basicInfoList
.
map
(
item
=>
{
Object
.
keys
(
this
.
basicInfo
).
forEach
(
key
=>
{
if
(
item
.
infoVal
==
key
)
{
item
.
infoVal
=
this
.
basicInfo
[
key
]
watch
:
{
basicInfo
:{
handler
(
newVal
,
oldVal
){
if
(
!
oldVal
||
newVal
!==
oldVal
)
{
this
.
basicInfoList
.
map
(
item
=>
{
Object
.
keys
(
newVal
).
forEach
(
key
=>
{
if
(
item
.
id
==
key
)
{
item
.
infoVal
=
newVal
[
key
]
}
})
})
}
})
})
},
immediate
:
true
,
deep
:
true
}
}
}
</
script
>
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
4bf33f6
...
...
@@ -55,9 +55,18 @@ export default {
activeName
:
''
}
},
created
()
{
this
.
activeName
=
this
.
taskPlanList
&&
this
.
taskPlanList
[
0
].
activityTime
}
watch
:
{
taskPlanList
:{
handler
(
newVal
,
oldVal
){
if
(
!
oldVal
||
newVal
!==
oldVal
)
{
this
.
activeName
=
newVal
&&
newVal
[
0
].
activityTime
this
.
taskPlanList
=
newVal
}
},
immediate
:
true
,
deep
:
true
}
},
}
</
script
>
...
...
src/views/task/observeTask/index.vue
View file @
4bf33f6
...
...
@@ -23,7 +23,9 @@ export default {
data
(){
return
{
hasbasicInfo
:
false
,
hastaskPlanList
:
false
hastaskPlanList
:
false
,
basicInfo
:{},
taskPlanList
:[]
}
},
methods
:
{
...
...
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