Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 f972858b
authored
Jan 10, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.23.1' of
http://192.168.3.233:8090/saas/scrm-micro-scene
into v3.23.1
2 parents
b8eef6aa
5723937a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
50 deletions
src/mixins/config.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/editCondition.vue
src/views/journeyConfig/components/selectType.vue
src/views/journeyConfig/config.vue
src/views/journeyConfig/index.vue
src/mixins/config.js
View file @
f972858
...
@@ -85,17 +85,6 @@ export default {
...
@@ -85,17 +85,6 @@ export default {
],
],
2
:
[
2
:
[
{
{
describe
:
'营销活动 已关联'
,
icon
:
'el-icon-success'
,
plain
:
true
,
isDisabled
:
false
,
status
:
[
2
],
btnName
:
'去查看'
,
clickFun
:
()
=>
{
this
.
concatActivity
()
}
},
{
describe
:
'客户旅程 未开启'
,
describe
:
'客户旅程 未开启'
,
icon
:
'el-icon-warning'
,
icon
:
'el-icon-warning'
,
isDisabled
:
false
,
isDisabled
:
false
,
...
@@ -106,17 +95,6 @@ export default {
...
@@ -106,17 +95,6 @@ export default {
}
}
},
},
{
{
describe
:
'营销活动 已关联'
,
icon
:
'el-icon-success'
,
isDisabled
:
false
,
plain
:
true
,
status
:
[
3
],
btnName
:
'去查看'
,
clickFun
:
()
=>
{
this
.
concatActivity
()
}
},
{
describe
:
'客户旅程 已开启'
,
describe
:
'客户旅程 已开启'
,
icon
:
'el-icon-success'
,
icon
:
'el-icon-success'
,
isDisabled
:
false
,
isDisabled
:
false
,
...
@@ -127,17 +105,6 @@ export default {
...
@@ -127,17 +105,6 @@ export default {
}
}
},
},
{
{
describe
:
'营销活动 已关联'
,
icon
:
'el-icon-success'
,
plain
:
true
,
isDisabled
:
false
,
status
:
[
4
],
btnName
:
'去查看'
,
clickFun
:
()
=>
{
this
.
concatActivity
()
}
},
{
describe
:
'客户旅程 已停用'
,
describe
:
'客户旅程 已停用'
,
icon
:
'el-icon-warning'
,
icon
:
'el-icon-warning'
,
isDisabled
:
true
,
isDisabled
:
true
,
...
@@ -155,7 +122,7 @@ export default {
...
@@ -155,7 +122,7 @@ export default {
this
.
getDetail
()
this
.
getDetail
()
},
},
methods
:
{
methods
:
{
getDetail
()
{
getDetail
(
order
)
{
this
.
$apis
.
journeyConfig
.
getInstIdDetail
({
instId
:
this
.
query
.
instId
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
getInstIdDetail
({
instId
:
this
.
query
.
instId
}).
then
(
res
=>
{
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
this
.
dataTypeCode
=
instParam
.
dataTypeCode
this
.
dataTypeCode
=
instParam
.
dataTypeCode
...
@@ -197,7 +164,7 @@ export default {
...
@@ -197,7 +164,7 @@ export default {
configList
.
push
({
configList
.
push
({
order
:
k
,
order
:
k
,
label
:
stages
[
k
].
value
,
label
:
stages
[
k
].
value
,
isExpaned
:
false
,
isExpaned
:
order
==
k
?
true
:
false
,
editable
:
stages
[
k
].
editable
,
editable
:
stages
[
k
].
editable
,
conditionsList
:
stages
[
k
].
conditions
||
[],
conditionsList
:
stages
[
k
].
conditions
||
[],
sopList
,
sopList
,
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
f972858
...
@@ -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: 2024-01-0
8 13:57:59
* @LastEditTime: 2024-01-0
9 16:38:06
* @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
-->
-->
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
</div>
</div>
</div>
</div>
<stat-dialog
v-if=
"statVisible"
:statVisible=
"statVisible"
:stageid=
"stageid"
></stat-dialog>
<stat-dialog
v-if=
"statVisible"
:statVisible=
"statVisible"
:stageid=
"stageid"
></stat-dialog>
<edit-condition
v-if=
"conditionVisible"
:conditionVisible=
"conditionVisible"
:conditionInfo=
"conditionInfo"
@
closeCondition=
"closeCondition"
></edit-condition>
<edit-condition
v-if=
"conditionVisible"
:conditionVisible=
"conditionVisible"
:
order=
"stepItem.order"
:
conditionInfo=
"conditionInfo"
@
closeCondition=
"closeCondition"
></edit-condition>
<select-tag
ref=
"selectTagRef"
@
tagSelected=
"handleTagSelect"
></select-tag>
<select-tag
ref=
"selectTagRef"
@
tagSelected=
"handleTagSelect"
></select-tag>
<model-dialog
:tplVisible=
"tplVisible"
v-bind=
"sopItem"
@
dialogClose=
"dialogClose"
@
confirm=
"updateContent"
></model-dialog>
<model-dialog
:tplVisible=
"tplVisible"
v-bind=
"sopItem"
@
dialogClose=
"dialogClose"
@
confirm=
"updateContent"
></model-dialog>
</div>
</div>
...
@@ -413,13 +413,29 @@ export default {
...
@@ -413,13 +413,29 @@ export default {
}
}
},
},
spiltString
(
data
,
n
)
{
spiltString
(
data
,
n
)
{
let
title
=
''
try
{
title
+=
JSON
.
parse
(
data
.
paramRemark
).
title
}
catch
(
error
)
{
console
.
log
(
error
)
}
if
(
!
data
.
flag
)
{
if
(
!
data
.
flag
)
{
return
data
.
name
return
data
.
name
}
}
const
val
=
data
.
conditions
.
find
(
i
=>
i
.
id
==
data
.
flag
)
const
val
=
data
.
conditions
.
find
(
i
=>
i
.
id
==
data
.
flag
)
let
title
=
''
try
{
try
{
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
let
day
=
''
if
(
val
.
operators
&&
val
.
operators
.
length
)
{
val
.
operators
.
forEach
(
item
=>
{
if
(
item
.
value
)
{
day
=
[
item
.
name
,
item
.
value
]
}
})
}
if
(
/
\[
.*
\]
/
.
test
(
title
)
&&
day
.
length
==
2
)
{
title
=
title
.
replace
(
/
\[
.*
?\]
/
,
day
[
0
]).
replace
(
/
\[
.*
?\]
/
,
day
[
1
])
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
...
...
src/views/journeyConfig/components/editCondition.vue
View file @
f972858
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
8 12:23:45
* @LastEditTime: 2024-01-0
9 16:36:29
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.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
-->
-->
...
@@ -119,6 +119,7 @@ export default {
...
@@ -119,6 +119,7 @@ export default {
},
},
props
:
{
props
:
{
conditionVisible
:
Boolean
,
conditionVisible
:
Boolean
,
order
:
String
,
conditionInfo
:
{
conditionInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
...
@@ -365,7 +366,7 @@ export default {
...
@@ -365,7 +366,7 @@ export default {
}
}
}
}
this
.
$apis
.
journeyConfig
.
setStageData
({
instId
,
data
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
setStageData
({
instId
,
data
}).
then
(
res
=>
{
this
.
$parent
.
$parent
.
getDetail
()
this
.
$parent
.
$parent
.
getDetail
(
this
.
order
)
})
})
this
.
$emit
(
'closeCondition'
)
this
.
$emit
(
'closeCondition'
)
},
},
...
...
src/views/journeyConfig/components/selectType.vue
View file @
f972858
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 16:01:13
* @Date: 2023-12-22 16:01:13
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-0
3 16:28:00
* @LastEditTime: 2024-01-0
9 18:04:31
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\selectType.vue
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\selectType.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
-->
-->
<
template
>
<
template
>
<GLDialog
title=
"编辑页面"
mode=
"small"
:append-to-body=
"true"
cancelText=
"取消"
okText=
"下一步"
:visible
.
sync=
"typeVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
:before-close=
"handleClose"
>
<GLDialog
title=
"编辑页面"
class=
"activity-dialog"
mode=
"small"
:append-to-body=
"true"
cancelText=
"取消"
okText=
"下一步"
:visible
.
sync=
"typeVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
:before-close=
"handleClose"
>
<div
class=
"dialog-body flex"
>
<div
class=
"dialog-body flex"
>
<label>
选择页面类型:
</label>
<label>
选择页面类型:
</label>
<el-radio-group
v-model=
"type"
>
<el-radio-group
v-model=
"type"
>
...
@@ -45,4 +45,12 @@ export default {
...
@@ -45,4 +45,12 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
<
style
scoped
lang=
"scss"
>
.activity-dialog
{
/deep/.el-dialog__body
{
height
:
100px
;
padding
:
40px
;
box-sizing
:
border-box
;
}
}
</
style
>
src/views/journeyConfig/config.vue
View file @
f972858
...
@@ -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: 2024-01-
04 13:54:59
* @LastEditTime: 2024-01-
10 14:14:26
* @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
-->
-->
...
@@ -18,9 +18,7 @@
...
@@ -18,9 +18,7 @@
</
template
>
</
template
>
</div>
</div>
<div
class=
"journey-step bg-fff pb20"
>
<div
class=
"journey-step bg-fff pb20"
>
<div
class=
"journey-step-title border-title"
>
<div
class=
"journey-step-title border-title"
>
客户旅程阶段
</div>
客户旅程阶段{{ journeyStatus }}
</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"
:activityInfo=
"activityInfo"
></collapse-item>
<collapse-item
:stepItem=
"val"
:activityInfo=
"activityInfo"
></collapse-item>
...
@@ -191,8 +189,8 @@ export default {
...
@@ -191,8 +189,8 @@ export default {
padding
:
20px
;
padding
:
20px
;
}
}
.journey-step-config
{
.journey-step-config
{
&:
first-child
{
&:
not(:first-child)
{
margin-
bottom
:
20px
;
margin-
top
:
20px
;
}
}
i
{
i
{
font-size
:
14px
;
font-size
:
14px
;
...
...
src/views/journeyConfig/index.vue
View file @
f972858
...
@@ -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: 2024-01-
03 15:06:07
* @LastEditTime: 2024-01-
10 09:14:20
* @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
-->
-->
...
@@ -261,6 +261,10 @@ export default {
...
@@ -261,6 +261,10 @@ export default {
.journey-step-desc
{
.journey-step-desc
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
padding
:
0px
6px
;
}
}
}
}
}
}
...
...
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