Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-journey
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 c10dcf60
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
6208a316
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
31 deletions
src/api/modules/journeyConfig.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/relatedActivity.vue
src/views/journeyConfig/config.vue
src/views/journeyConfig/index.vue
src/api/modules/journeyConfig.js
View file @
c10dcf6
...
@@ -76,5 +76,14 @@ const concatActivity = params => {
...
@@ -76,5 +76,14 @@ const concatActivity = params => {
sign
:
false
sign
:
false
})
})
}
}
const
activityRelInfo
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.activityRelInfo`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
activityPage
,
byGroupIdSop
,
getInstIdDetail
,
setSopInsts
,
concatActivity
,
findMarketingTask
,
getActivityDetailApi
}
export
default
{
activityPage
,
byGroupIdSop
,
getInstIdDetail
,
setSopInsts
,
concatActivity
,
findMarketingTask
,
getActivityDetailApi
,
activityRelInfo
}
src/views/journeyConfig/components/CollapseItem.vue
View file @
c10dcf6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-2
5 15:41:52
* @LastEditTime: 2023-09-2
7 09:45:36
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<div
class=
"step-item-desc"
>
<div
class=
"step-item-desc"
>
<span>
[
{{
stage_time
[
value
.
taskType
]
}}
]发送 |
{{
stage
[
value
.
taskType
]
}}
|
{{
stage_info
[
value
.
taskType
]
}}
</span>
<span>
[
{{
stage_time
[
value
.
taskType
]
}}
]发送 |
{{
stage
[
value
.
taskType
]
}}
|
{{
stage_info
[
value
.
taskType
]
}}
</span>
</div>
</div>
<div
class=
"step-item-name"
>
{{
stage_prefix
[
value
.
taskType
]
}}{{
value
.
textContent
.
defaultValue
}}
</div>
<div
class=
"step-item-name"
v-if=
"value.taskType"
>
{{
activityInfo
[
stage_prefix
[
value
.
taskType
].
key
]
}}
</div>
</div>
</div>
<!--
<div
class=
"step-detail-btn"
@
click=
"getEmpDetail"
>
详情
</div>
-->
<!--
<div
class=
"step-detail-btn"
@
click=
"getEmpDetail"
>
详情
</div>
-->
</div>
</div>
...
@@ -131,11 +131,24 @@ const STAGE_TIME = Object.freeze({
...
@@ -131,11 +131,24 @@ const STAGE_TIME = Object.freeze({
6
:
'09:00'
6
:
'09:00'
})
})
const
STAGE_PREFIX
=
Object
.
freeze
({
const
STAGE_PREFIX
=
Object
.
freeze
({
4
:
''
,
4
:
{
3
:
''
,
key
:
'activityName'
1
:
'短信模版:'
,
},
2
:
'AI话术模版:'
,
3
:
{
5
:
'提醒模版:'
,
key
:
'activityName'
},
1
:
{
key
:
'textMessage'
,
label
:
'短信模版:'
},
2
:
{
key
:
'aiSpeech'
,
label
:
'AI话术模版:'
},
5
:
{
key
:
''
,
label
:
'提醒模版:'
},
6
:
'查询内容:'
6
:
'查询内容:'
})
})
// import empDetail from './empDetail'
// import empDetail from './empDetail'
...
@@ -147,6 +160,10 @@ export default {
...
@@ -147,6 +160,10 @@ export default {
stepItem
:
{
stepItem
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
activityInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
}
},
},
data
()
{
data
()
{
...
...
src/views/journeyConfig/components/relatedActivity.vue
View file @
c10dcf6
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动链接:"
size=
"small"
prop=
"activityId"
>
<el-form-item
label=
"活动链接:"
size=
"small"
prop=
"activityId"
>
<div
class=
"flex-column-center"
>
<div
class=
"flex-column-center"
>
<el-select
filterable
v-model=
"addForm.activityId"
placeholder=
"请选择"
@
change=
"getActivity"
:disabled=
"journeyStatus ==
1
"
>
<el-select
filterable
v-model=
"addForm.activityId"
placeholder=
"请选择"
@
change=
"getActivity"
:disabled=
"journeyStatus ==
3
"
>
<el-option
v-for=
"item in activityList"
:key=
"item.id"
:label=
"item.activityName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in activityList"
:key=
"item.id"
:label=
"item.activityName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<div
class=
"add-btn-a"
@
click=
"jumpActivity"
>
创建活动
</div>
<div
class=
"add-btn-a"
@
click=
"jumpActivity"
>
创建活动
</div>
...
@@ -21,24 +21,24 @@
...
@@ -21,24 +21,24 @@
<div
class=
"activity-detail-info"
>
<div
class=
"activity-detail-info"
>
<div
class=
"activity-detail-item"
>
<div
class=
"activity-detail-item"
>
<label>
客户数量:
</label>
<label>
客户数量:
</label>
<span>
{{
activityInfo
.
total
}}
人
</span>
<span>
{{
activityInfo
.
customerNum
}}
人
</span>
</div>
</div>
<div
class=
"activity-detail-item"
>
<div
class=
"activity-detail-item"
>
<label>
关联员工:
</label>
<label>
关联员工:
</label>
<div
class=
"emp-wrap"
>
<div
class=
"emp-wrap"
>
<div
class=
"emp-item"
v-for=
"(val, i) in activityInfo.
emp
"
:key=
"i"
>
<div
class=
"emp-item"
v-for=
"(val, i) in activityInfo.
staffList
"
:key=
"i"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
<span>
{{
val
.
usern
ame
}}
</span>
<span>
{{
val
.
staffN
ame
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"activity-detail-item"
>
<div
class=
"activity-detail-item"
>
<label>
AI话术:
</label>
<label>
AI话术:
</label>
<span>
{{
activityInfo
.
aiSpeech
}}
人
</span>
<span>
{{
activityInfo
.
talkNameList
[
0
]
}}
人
</span>
</div>
</div>
<div
class=
"activity-detail-item"
>
<div
class=
"activity-detail-item"
>
<label>
营销短信:
</label>
<label>
营销短信:
</label>
<span>
{{
activityInfo
.
textMessage
}}
人
</span>
<span>
{{
activityInfo
.
messageList
[
0
]
}}
人
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -56,10 +56,9 @@ export default {
...
@@ -56,10 +56,9 @@ export default {
name
:
this
.
$route
.
query
.
title
name
:
this
.
$route
.
query
.
title
},
},
activityInfo
:
{
activityInfo
:
{
message
:
'【东莞睿博】千元礼包,钜惠来袭,诚邀参与#活动名称#活动'
,
talkNameList
:
[],
total
:
20
,
messageList
:
[],
emp
:
[{
username
:
'张珊'
},
{
username
:
'李即'
}],
staffList
:
[]
ai
:
'沃尔沃续保招揽AI话术'
},
},
activityList
:
[],
activityList
:
[],
addRules
:
{
addRules
:
{
...
@@ -70,20 +69,17 @@ export default {
...
@@ -70,20 +69,17 @@ export default {
methods
:
{
methods
:
{
//获取活动信息
//获取活动信息
getActivity
()
{
getActivity
()
{
this
.
$apis
.
journeyConfig
.
getActivityDetailApi
({
id
:
this
.
addForm
.
activityId
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
activityRelInfo
({
id
:
this
.
addForm
.
activityId
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
this
.
activityInfo
=
res
})
this
.
$apis
.
journeyConfig
.
findMarketingTask
({
activityId
:
this
.
addForm
.
activityId
}).
then
(
res
=>
{
console
.
log
(
res
)
})
})
},
},
init
(
info
)
{
init
(
info
)
{
this
.
dialogVisible
=
true
this
.
getActivityList
()
if
(
info
.
activityId
)
{
if
(
info
.
activityId
)
{
this
.
activityInfo
=
info
this
.
addForm
.
activityId
=
info
.
activityId
this
.
addForm
.
activityId
=
info
.
activityId
this
.
getActivity
()
}
}
this
.
dialogVisible
=
true
this
.
getActivityList
()
},
},
//创建活动
//创建活动
jumpActivity
()
{
jumpActivity
()
{
...
@@ -100,6 +96,7 @@ export default {
...
@@ -100,6 +96,7 @@ export default {
this
.
$refs
.
addForm
.
validate
(
valid
=>
{
this
.
$refs
.
addForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
handleClose
()
this
.
handleClose
()
const
{
talkNameList
}
=
this
.
activityInfo
this
.
$emit
(
'setProcess'
,
{
this
.
$emit
(
'setProcess'
,
{
activityId
:
10596
,
// 活动id
activityId
:
10596
,
// 活动id
activityName
:
'活动名称'
,
activityName
:
'活动名称'
,
...
...
src/views/journeyConfig/config.vue
View file @
c10dcf6
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
<div
class=
"journey-step-body"
>
<div
class=
"journey-step-body"
>
<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"
>
<collapse-item
:stepItem=
"val"
></collapse-item>
<collapse-item
:stepItem=
"val"
:activityInfo=
"activityInfo"
></collapse-item>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/journeyConfig/index.vue
View file @
c10dcf6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-2
5 15:55:48
* @LastEditTime: 2023-09-2
7 09:54:05
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<img
src=
"@/assets/config/icon-1.png"
/>
<img
src=
"@/assets/config/icon-1.png"
/>
<span>
{{
item
.
instName
}}
</span>
<span>
{{
item
.
instName
}}
</span>
<a
@
click=
"handleEdit(item)"
>
编辑
</a>
<a
@
click=
"handleEdit(item)"
>
编辑
</a>
<div
:class=
"
{ 'journey-item-status flex-center': true, 'is-disable': item.instStatus
!= 1
}">
<div
:class=
"
{ 'journey-item-status flex-center': true, 'is-disable': item.instStatus
== -1 || item.instStatus == 0
}">
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
</div>
</div>
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
const
STATUS
=
[
const
STATUS
=
[
{
label
:
'已启用'
,
value
:
0
,
icon
:
'el-icon-check'
},
{
label
:
'已启用'
,
value
:
1
,
icon
:
'el-icon-check'
},
{
label
:
'未启用'
,
value
:
1
,
icon
:
'el-icon-close'
},
{
label
:
'未启用'
,
value
:
0
,
icon
:
'el-icon-close'
},
{
label
:
'已禁用'
,
value
:
-
1
,
icon
:
'el-icon-remove-outline'
}
{
label
:
'已禁用'
,
value
:
-
1
,
icon
:
'el-icon-remove-outline'
}
]
]
export
default
{
export
default
{
...
...
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