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 a00b84e2
authored
Sep 26, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新客户旅程代码
1 parent
89d4d533
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
11 deletions
src/views/journeyConfig/add.vue
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/CollapseItemTpl.vue
src/views/journeyConfig/add.vue
View file @
a00b84e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
v-if=
"currentIndex == '1'"
>
<div
v-if=
"currentIndex == '1'"
>
<!--
<div
class=
"journey-step-info"
v-for=
"(val, k) in configList"
:key=
"k"
>
-->
<!--
<div
class=
"journey-step-info"
v-for=
"(val, k) in configList"
:key=
"k"
>
-->
<!-- configList-->
<!-- configList-->
<collapse-item
ref=
"collapseRef"
:configList=
"configList"
:isDisabled=
"isDisabled"
></collapse-item
>
<collapse-item
-tpl
ref=
"collapseRef"
:configList=
"configList"
:isDisabled=
"isDisabled"
></collapse-item-tpl
>
<!--
</div>
-->
<!--
</div>
-->
</div>
</div>
<DistributionStore
v-if=
"currentIndex == '2'"
></DistributionStore>
<DistributionStore
v-if=
"currentIndex == '2'"
></DistributionStore>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<
script
>
<
script
>
import
StepBar
from
'./components/StepBar.vue'
import
StepBar
from
'./components/StepBar.vue'
import
CollapseItem
from
'./components/CollapseItem
'
import
CollapseItem
Tpl
from
'./components/CollapseItemTpl
'
import
SelJourneyTemplate
from
"./components/selJourneyTemplate"
;
import
SelJourneyTemplate
from
"./components/selJourneyTemplate"
;
import
DistributionStore
from
"./components/DistributionStore"
;
import
DistributionStore
from
"./components/DistributionStore"
;
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
components
:
{
components
:
{
StepBar
,
StepBar
,
SelJourneyTemplate
,
SelJourneyTemplate
,
CollapseItem
,
CollapseItem
Tpl
,
DistributionStore
DistributionStore
},
},
name
:
"add"
,
name
:
"add"
,
...
@@ -162,15 +162,16 @@ export default {
...
@@ -162,15 +162,16 @@ export default {
for
(
let
k
in
stages
)
{
for
(
let
k
in
stages
)
{
let
list
=
[]
let
list
=
[]
for
(
let
v
of
nodes
)
{
for
(
let
v
of
nodes
)
{
if
(
v
.
nodeParamDef
&&
JSON
.
parse
(
v
.
nodeParamDef
).
stage
==
stages
[
k
].
value
)
{
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
})
}
}
}
}
list
=
list
.
filter
(
item
=>
item
.
day
)
list
=
list
.
filter
(
item
=>
item
.
day
)
list
.
sort
((
a
,
b
)
=>
{
list
.
sort
((
a
,
b
)
=>
{
return
a
.
day
-
b
.
day
return
a
.
day
.
defaultValue
-
b
.
day
.
defaultValue
})
})
const
sopList
=
this
.
groupBy
(
list
,
'day'
)
const
sopList
=
this
.
groupBy
(
list
,
'day
.defaultValue
'
)
configList
.
push
({
configList
.
push
({
label
:
stages
[
k
].
value
,
label
:
stages
[
k
].
value
,
isExpaned
:
false
,
isExpaned
:
false
,
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
a00b84e
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<
template
>
<
template
>
<div
class=
"border-content"
>
<div
class=
"border-content"
>
<div
class=
"journey-step-info"
v-for=
"(stepItem, k) in configList"
:key=
"k"
>
<div
class=
"journey-step-info"
v-for=
"(stepItem, k) in configList"
:key=
"k"
>
<!-- v-if="stepItem.sopList.flat(Initify).length>0"-->
<!-- v-if="stepItem.sopList.flat(Initify).length>0"-->
<div
>
<div>
<div
:class=
"
{ 'collapse-item': true, 'is-active': stepItem.isExpaned }">
<div
:class=
"
{ 'collapse-item': true, 'is-active': stepItem.isExpaned }">
<div
class=
"collapse-item-tab flex-column-center pl20"
>
<div
class=
"collapse-item-tab flex-column-center pl20"
>
<i
class=
"el-icon-caret-bottom"
v-show=
"stepItem.isExpaned"
@
click=
"handleExpand(stepItem)"
></i>
<i
class=
"el-icon-caret-bottom"
v-show=
"stepItem.isExpaned"
@
click=
"handleExpand(stepItem)"
></i>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<div
v-for=
"(value, key) in v"
:key=
"key"
class=
"step-time-item flex-column-center"
>
<div
v-for=
"(value, key) in v"
:key=
"key"
class=
"step-time-item flex-column-center"
>
<div
style=
"width: 100%"
>
<div
style=
"width: 100%"
>
<div
class=
"step-item-desc"
>
<div
class=
"step-item-desc"
>
<span>
[
9:00
]发送 |
{{
stage
[
value
.
taskType
]
}}
|
{{
<span>
[
{{
stage_time
[
value
.
taskType
]
}}
]发送 |
{{
stage
[
value
.
taskType
]
}}
|
{{
des
[
value
.
taskType
]
des
[
value
.
taskType
]
}}
</span>
}}
</span>
<el-switch
<el-switch
...
@@ -78,7 +78,9 @@
...
@@ -78,7 +78,9 @@
>
>
</el-switch>
</el-switch>
</div>
</div>
<div
class=
"step-item-name"
>
活动名称
</div>
<!--
<div
class=
"step-item-name"
>
活动名称
</div>
-->
<!--
{{
value
.
textContent
.
defaultValue
}}
-->
<div
class=
"step-item-name"
>
{{
stage_prefix
[
value
.
taskType
]
}}
</div>
</div>
</div>
<!--
<div
class=
"step-detail-btn"
@
click=
"getEmpDetail"
>
详情
</div>
-->
<!--
<div
class=
"step-detail-btn"
@
click=
"getEmpDetail"
>
详情
</div>
-->
</div>
</div>
...
@@ -112,7 +114,7 @@
...
@@ -112,7 +114,7 @@
<div
:class=
"['stage-icon', `stage-$
{value.taskType}`]">
</div>
<div
:class=
"['stage-icon', `stage-$
{value.taskType}`]">
</div>
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
<span>
{{
v
.
length
}}
个任务
</span>
<span>
{{
v
.
length
}}
个任务
</span>
</div>
</div>
</el-popover>
</el-popover>
</div>
</div>
...
@@ -148,6 +150,22 @@ const DES = {
...
@@ -148,6 +150,22 @@ const DES = {
5
:
'本功能将给跟进员工推送跟进提醒,提醒员工给客户打一个电话或其他跟进行为。'
,
5
:
'本功能将给跟进员工推送跟进提醒,提醒员工给客户打一个电话或其他跟进行为。'
,
6
:
'本功能配合第三方平台,定时获取客户信息并更新。'
6
:
'本功能配合第三方平台,定时获取客户信息并更新。'
}
}
const
STAGE_TIME
=
Object
.
freeze
({
4
:
'09:00'
,
3
:
'09:00'
,
1
:
'09:00'
,
2
:
'16:00'
,
5
:
'09:00'
,
6
:
'09:00'
})
const
STAGE_PREFIX
=
Object
.
freeze
({
4
:
''
,
3
:
''
,
1
:
'短信模版:'
,
2
:
'AI话术模版:'
,
5
:
'提醒模版:'
,
6
:
'查询内容:'
})
// import empDetail from './empDetail'
// import empDetail from './empDetail'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -190,6 +208,8 @@ export default {
...
@@ -190,6 +208,8 @@ export default {
return
{
return
{
stage
:
STAGE
,
stage
:
STAGE
,
des
:
DES
,
des
:
DES
,
stage_time
:
STAGE_TIME
,
stage_prefix
:
STAGE_PREFIX
,
empVisible
:
false
,
empVisible
:
false
,
nodes
:
null
,
nodes
:
null
,
sopList
:
[],
sopList
:
[],
...
...
src/views/journeyConfig/components/CollapseItemTpl.vue
0 → 100644
View file @
a00b84e
This diff is collapsed.
Click to expand it.
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