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 89d4d533
authored
Sep 26, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新客户旅程代码
1 parent
494a5587
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
14 deletions
src/api/modules/common.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 @
89d4d53
...
...
@@ -22,9 +22,9 @@ const pictureUpload = params => {
}
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
params
.
method
=
'merchants.api.open.findMerchantListByPage'
return
http_merchant
({
url
:
'rop-
scrm-carlife
/router'
,
url
:
'rop-
merchants
/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
89d4d53
...
...
@@ -9,7 +9,8 @@
<
template
>
<div
class=
"border-content"
>
<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-tab flex-column-center pl20"
>
<i
class=
"el-icon-caret-bottom"
v-show=
"stepItem.isExpaned"
@
click=
"handleExpand(stepItem)"
></i>
...
...
src/views/journeyConfig/components/merchantStore.vue
View file @
89d4d53
...
...
@@ -88,7 +88,7 @@ export default {
],
pageConfig
:
{
pageSize
:
10
,
currentPage
:
1
pageNum
:
1
},
tableParams
:
{
listName
:
'list'
,
...
...
@@ -128,7 +128,7 @@ export default {
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
currentPage'
,
totalCount
:
'total
'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'
pageNum'
,
totalCount
:
'count
'
},
baseData
:
{}
}
},
...
...
@@ -166,6 +166,7 @@ export default {
getList
(
pageCon
)
{
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
merchantAccountLevel
:[
4
],
merchantId
:
this
.
merchantId
,
...
this
.
searchForm
,
...
this
.
pageConfig
...
...
@@ -173,14 +174,13 @@ export default {
}
this
.
$apis
.
common
.
getMerchantList
(
params
).
then
(
res
=>
{
this
.
storeList
=
res
.
list
this
.
total
=
res
.
total
this
.
storeList
=
res
.
data
this
.
total
=
res
.
count
// // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page
// // // 添加序号
// pageConfig
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
pageNum
-
1
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
})
...
...
src/views/journeyConfig/config/table-config.js
View file @
89d4d53
...
...
@@ -19,7 +19,7 @@ const tableConfig = {
label
:
'旅程阶段'
,
prop
:
'instRemark'
,
addHtml
:
'instRemark'
,
width
:
25
0
width
:
32
0
},
{
label
:
'门店名称'
,
...
...
src/views/journeyConfig/details.vue
View file @
89d4d53
...
...
@@ -111,7 +111,8 @@ export default {
methods
:
{
getDetail
(
val
)
{
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
configList
=
[]
for
(
let
k
in
stages
)
{
...
...
src/views/journeyConfig/index.vue
View file @
89d4d53
...
...
@@ -27,11 +27,11 @@
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"instRemark"
slot-scope=
"scope"
style=
"display:flex"
>
<div
v-for=
"(item,index) in handleStage(scope)"
:key=
"index"
>
<div
v-if=
"index
<
=
4
">
<div
v-if=
"index
<
=
3
">
{{
item
.
name
}}
{{
getCommaSeparator
(
'less'
,
index
,
scope
)
}}
</div>
<div
v-if=
"index >
4
"
>
<div
v-if=
"index >
3
"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...
</span>
...
...
@@ -88,7 +88,7 @@ export default {
},
handleStage
(
scope
)
{
let
stages
=
JSON
.
parse
(
scope
.
scope
.
instParam
).
stages
.
defaultValue
let
stages
=
JSON
.
parse
(
scope
.
scope
.
instParam
).
stages
let
list
=
[]
for
(
let
k
in
stages
)
{
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