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 e7ea2c2e
authored
Sep 26, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.19.0_10' into 'v3.19.0'
更新客户旅程代码 See merge request
!4
2 parents
4c508ece
89d4d533
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
15 deletions
src/api/modules/common.js
src/api/modules/journeyConfig.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/merchantStore.vue
src/views/journeyConfig/config/table-config.js
src/views/journeyConfig/details.vue
src/views/journeyConfig/index.vue
src/api/modules/common.js
View file @
e7ea2c2
...
@@ -22,9 +22,9 @@ const pictureUpload = params => {
...
@@ -22,9 +22,9 @@ const pictureUpload = params => {
}
}
const
getMerchantList
=
params
=>
{
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
params
.
method
=
'merchants.api.open.findMerchantListByPage'
return
http_merchant
({
return
http_merchant
({
url
:
'rop-
scrm-carlife
/router'
,
url
:
'rop-
merchants
/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
...
...
src/api/modules/journeyConfig.js
View file @
e7ea2c2
...
@@ -62,7 +62,7 @@ const sopInstsApi = (params) => {
...
@@ -62,7 +62,7 @@ const sopInstsApi = (params) => {
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
false
,
sign
:
false
,
no
Nee
d
:
true
no
SessionI
d
:
true
})
})
}
}
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
e7ea2c2
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +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"
>
<div
v-if=
"stepItem.sopList.flat(Initify).length>0"
>
<!-- v-if="stepItem.sopList.flat(Initify).length>0"-->
<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>
...
...
src/views/journeyConfig/components/merchantStore.vue
View file @
e7ea2c2
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
],
],
pageConfig
:
{
pageConfig
:
{
pageSize
:
10
,
pageSize
:
10
,
currentPage
:
1
pageNum
:
1
},
},
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
}
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
currentPage'
,
totalCount
:
'total
'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
pageNum'
,
totalCount
:
'count
'
},
baseData
:
{}
baseData
:
{}
}
}
},
},
...
@@ -166,6 +166,7 @@ export default {
...
@@ -166,6 +166,7 @@ export default {
getList
(
pageCon
)
{
getList
(
pageCon
)
{
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
var
params
=
{
merchantAccountLevel
:[
4
],
merchantId
:
this
.
merchantId
,
merchantId
:
this
.
merchantId
,
...
this
.
searchForm
,
...
this
.
searchForm
,
...
this
.
pageConfig
...
this
.
pageConfig
...
@@ -173,14 +174,13 @@ export default {
...
@@ -173,14 +174,13 @@ export default {
}
}
this
.
$apis
.
common
.
getMerchantList
(
params
).
then
(
res
=>
{
this
.
$apis
.
common
.
getMerchantList
(
params
).
then
(
res
=>
{
this
.
storeList
=
res
.
list
this
.
storeList
=
res
.
data
this
.
total
=
res
.
total
this
.
total
=
res
.
count
// // this.storeList = res.staffUnitList
// // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page
// // var page = this.$refs.staffRef.page
// // // 添加序号
// // // 添加序号
// pageConfig
// pageConfig
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
pageNum
-
1
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
item
.
idx
=
index
+
1
+
nowIndex
})
})
...
...
src/views/journeyConfig/config/table-config.js
View file @
e7ea2c2
...
@@ -19,7 +19,7 @@ const tableConfig = {
...
@@ -19,7 +19,7 @@ const tableConfig = {
label
:
'旅程阶段'
,
label
:
'旅程阶段'
,
prop
:
'instRemark'
,
prop
:
'instRemark'
,
addHtml
:
'instRemark'
,
addHtml
:
'instRemark'
,
width
:
25
0
width
:
32
0
},
},
{
{
label
:
'门店名称'
,
label
:
'门店名称'
,
...
...
src/views/journeyConfig/details.vue
View file @
e7ea2c2
...
@@ -111,7 +111,8 @@ export default {
...
@@ -111,7 +111,8 @@ export default {
methods
:
{
methods
:
{
getDetail
(
val
)
{
getDetail
(
val
)
{
this
.
$apis
.
journeyConfig
.
getInsDetailsApi
({
instId
:
val
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
getInsDetailsApi
({
instId
:
val
}).
then
(
res
=>
{
const
stages
=
JSON
.
parse
(
res
.
instParam
).
stages
.
defaultValue
const
stages
=
JSON
.
parse
(
res
.
instParam
).
stages
// .defaultValue
const
nodes
=
res
.
nodes
const
nodes
=
res
.
nodes
const
configList
=
[]
const
configList
=
[]
for
(
let
k
in
stages
)
{
for
(
let
k
in
stages
)
{
...
...
src/views/journeyConfig/index.vue
View file @
e7ea2c2
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
:beforeSearchFn=
"beforeSearchFn"
>
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"instRemark"
slot-scope=
"scope"
style=
"display:flex"
>
<div
slot=
"instRemark"
slot-scope=
"scope"
style=
"display:flex"
>
<div
v-for=
"(item,index) in handleStage(scope)"
:key=
"index"
>
<div
v-for=
"(item,index) in handleStage(scope)"
:key=
"index"
>
<div
v-if=
"index
<
=
4
">
<div
v-if=
"index
<
=
3
">
{{
item
.
name
}}
{{
item
.
name
}}
{{
getCommaSeparator
(
'less'
,
index
,
scope
)
}}
{{
getCommaSeparator
(
'less'
,
index
,
scope
)
}}
</div>
</div>
<div
v-if=
"index >
4
"
>
<div
v-if=
"index >
3
"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...
</span>
<span
slot=
"reference"
>
...
</span>
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
},
},
handleStage
(
scope
)
{
handleStage
(
scope
)
{
let
stages
=
JSON
.
parse
(
scope
.
scope
.
instParam
).
stages
.
defaultValue
let
stages
=
JSON
.
parse
(
scope
.
scope
.
instParam
).
stages
let
list
=
[]
let
list
=
[]
for
(
let
k
in
stages
)
{
for
(
let
k
in
stages
)
{
list
.
push
({
list
.
push
({
...
...
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