Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-peregrination
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 13f0f422
authored
Sep 27, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.19.0_10' into 'v3.19.0'
更新客户旅程代码 See merge request
!6
2 parents
c4fc42ef
9574816b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
22 deletions
src/views/journeyConfig/add.vue
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/CollapseItemTpl.vue
src/views/journeyConfig/details.vue
src/views/journeyConfig/add.vue
View file @
13f0f42
...
...
@@ -155,16 +155,16 @@ export default {
},
getDetail
(
val
)
{
this
.
$apis
.
journeyConfig
.
getSOPDetailsApi
({
tplId
:
val
}).
then
(
res
=>
{
const
stages
=
JSON
.
parse
(
res
.
tplParamDef
).
stages
.
defaultValue
const
tplParamDef
=
JSON
.
parse
(
res
.
tplParamDef
)
const
stages
=
tplParamDef
.
stages
.
defaultValue
const
customData
=
tplParamDef
.
customData
.
defaultValue
const
nodes
=
res
.
nodes
const
configList
=
[]
for
(
let
k
in
stages
)
{
let
list
=
[]
for
(
let
v
of
nodes
)
{
console
.
log
(
JSON
.
parse
(
v
.
nodeParamDef
))
if
(
v
.
nodeParamDef
&&
JSON
.
parse
(
v
.
nodeParamDef
).
stage
.
defaultValue
==
stages
[
k
].
value
)
{
list
.
push
({...
JSON
.
parse
(
v
.
nodeParamDef
),
nodeSkipable
:
v
.
nodeSkipable
,
nodeId
:
v
.
nodeId
})
list
.
push
({...
JSON
.
parse
(
v
.
nodeParamDef
),
nodeSkipable
:
v
.
nodeSkipable
,
nodeId
:
v
.
nodeId
,
customData
})
}
}
list
=
list
.
filter
(
item
=>
item
.
day
)
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
13f0f42
...
...
@@ -78,9 +78,8 @@
>
</el-switch>
</div>
<!--
<div
class=
"step-item-name"
>
活动名称
</div>
-->
<!--
{{
value
.
textContent
.
defaultValue
}}
-->
<div
class=
"step-item-name"
>
{{
stage_prefix
[
value
.
taskType
]
}}
</div>
<div
class=
"step-item-name"
v-if=
"value.taskType"
>
{{
value
.
customData
[
stage_prefix
[
value
.
taskType
].
key
]
}}
</div>
</div>
<!--
<div
class=
"step-detail-btn"
@
click=
"getEmpDetail"
>
详情
</div>
-->
</div>
...
...
@@ -103,14 +102,14 @@
<el-popover
placement=
"top-start"
width=
"100"
trigger=
"click"
>
<div
class=
"popover-panel"
v-for=
"(t, pkey) in v"
:key=
"pkey"
>
<div
class=
"flex-column-center"
>
<span>
9:00
</span>
<span>
{{
stage_time
[
t
.
taskType
]
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{t.taskType}`]">
</div>
</div>
<div
class=
"stage-desc"
>
{{
stage
[
t
.
taskType
]
}}
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length
<
= 2">
<span>
9:00
</span>
<span>
{{
stage_time
[
value
.
taskType
]
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{value.taskType}`]">
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
...
...
@@ -159,11 +158,24 @@ const STAGE_TIME = Object.freeze({
6
:
'09:00'
})
const
STAGE_PREFIX
=
Object
.
freeze
({
4
:
''
,
3
:
''
,
1
:
'短信模版:'
,
2
:
'AI话术模版:'
,
5
:
'提醒模版:'
,
4
:
{
key
:
'activityName'
},
3
:
{
key
:
'activityName'
},
1
:
{
key
:
'textMessage'
,
label
:
'短信模版:'
},
2
:
{
key
:
'aiSpeech'
,
label
:
'AI话术模版:'
},
5
:
{
key
:
''
,
label
:
'提醒模版:'
},
6
:
'查询内容:'
})
// import empDetail from './empDetail'
...
...
src/views/journeyConfig/components/CollapseItemTpl.vue
View file @
13f0f42
...
...
@@ -79,7 +79,7 @@
>
</el-switch>
</div>
<div
class=
"step-item-name"
v-if=
"value.taskType.defaultValue"
>
{{
stage_prefix
[
value
.
taskType
.
defaultValue
]
}}
</div>
<div
class=
"step-item-name"
v-if=
"value.taskType.defaultValue"
>
{{
value
.
customData
[
stage_prefix
[
value
.
taskType
.
defaultValue
].
key
]
}}
</div>
</div>
</div>
</div>
...
...
@@ -149,11 +149,24 @@ const DES = {
6
:
'本功能配合第三方平台,定时获取客户信息并更新。'
}
const
STAGE_PREFIX
=
Object
.
freeze
({
4
:
''
,
3
:
''
,
1
:
'短信模版:'
,
2
:
'AI话术模版:'
,
5
:
'提醒模版:'
,
4
:
{
key
:
'activityName'
},
3
:
{
key
:
'activityName'
},
1
:
{
key
:
'textMessage'
,
label
:
'短信模版:'
},
2
:
{
key
:
'aiSpeech'
,
label
:
'AI话术模版:'
},
5
:
{
key
:
''
,
label
:
'提醒模版:'
},
6
:
'查询内容:'
})
// import empDetail from './empDetail'
...
...
src/views/journeyConfig/details.vue
View file @
13f0f42
...
...
@@ -111,7 +111,9 @@ export default {
methods
:
{
getDetail
(
val
)
{
this
.
$apis
.
journeyConfig
.
getInsDetailsApi
({
instId
:
val
}).
then
(
res
=>
{
const
stages
=
JSON
.
parse
(
res
.
instParam
).
stages
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
const
stages
=
instParam
.
stages
const
customData
=
instParam
.
customData
// .defaultValue
const
nodes
=
res
.
nodes
const
configList
=
[]
...
...
@@ -119,7 +121,7 @@ export default {
let
list
=
[]
for
(
let
v
of
nodes
)
{
if
(
v
.
nodeParam
&&
JSON
.
parse
(
v
.
nodeParam
).
stage
==
stages
[
k
].
value
)
{
list
.
push
({...
JSON
.
parse
(
v
.
nodeParam
),
nodeSkipable
:
v
.
nodeSkip
,
nodeId
:
v
.
nodeId
})
list
.
push
({...
JSON
.
parse
(
v
.
nodeParam
),
nodeSkipable
:
v
.
nodeSkip
,
nodeId
:
v
.
nodeId
,
customData
})
}
}
list
=
list
.
filter
(
item
=>
item
.
day
)
...
...
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