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 5916bdf7
authored
Jan 05, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
0747eeff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
58 deletions
src/assets/css/public.scss
src/mixins/config.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/editCondition.vue
src/assets/css/public.scss
View file @
5916bdf
...
@@ -87,7 +87,9 @@ img {
...
@@ -87,7 +87,9 @@ img {
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.line-revert
{
line-height
:
revert
;
}
.flex-center
{
.flex-center
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
...
...
src/mixins/config.js
View file @
5916bdf
...
@@ -210,8 +210,8 @@ export default {
...
@@ -210,8 +210,8 @@ export default {
},
},
async
haneldOpenQY
()
{
async
haneldOpenQY
()
{
this
.
handleConfirm
(
'开启提示'
,
'确定开启'
,
'旅程开启后将无法修改关联的活动链接'
,
''
,
async
()
=>
{
this
.
handleConfirm
(
'开启提示'
,
'确定开启'
,
'旅程开启后将无法修改关联的活动链接'
,
''
,
async
()
=>
{
await
this
.
$apis
.
journeyConfig
.
authorizeMerchant
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})
await
this
.
$apis
.
journeyConfig
.
authorizeMerchant
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
})
await
this
.
$apis
.
journeyConfig
.
concatActivity
({
instId
:
this
.
query
.
instId
,
data
:
{
supMerchantNo
:
this
.
$globalState
.
session
.
merchantId
}
})
await
this
.
$apis
.
journeyConfig
.
concatActivity
({
instId
:
this
.
query
.
instId
,
data
:
{
supMerchantNo
:
this
.
$globalState
.
session
.
merchantId
}
})
this
.
setSopInsts
(
1
)
this
.
setSopInsts
(
1
)
})
})
}
}
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
5916bdf
...
@@ -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
4 17:00:27
* @LastEditTime: 2024-01-0
5 14:54:02
* @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
-->
-->
...
@@ -401,9 +401,11 @@ export default {
...
@@ -401,9 +401,11 @@ export default {
},
},
showEdit
(
v
,
k
)
{
showEdit
(
v
,
k
)
{
const
{
title
}
=
this
.
$route
.
query
,
const
{
title
}
=
this
.
$route
.
query
,
{
label
,
conditionsList
,
editable
}
=
this
.
stepItem
{
label
,
conditionsList
,
editable
,
flag
}
=
this
.
stepItem
console
.
log
(
conditionsList
,
8
)
this
.
conditionInfo
=
{
this
.
conditionInfo
=
{
title
,
title
,
flag
,
label
,
label
,
editable
,
editable
,
conditionsList
:
conditionsList
,
conditionsList
:
conditionsList
,
...
...
src/views/journeyConfig/components/editCondition.vue
View file @
5916bdf
...
@@ -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-05 1
3:50:27
* @LastEditTime: 2024-01-05 1
4:56:02
* @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
-->
-->
...
@@ -17,70 +17,76 @@
...
@@ -17,70 +17,76 @@
</div>
</div>
<div
class=
"condition-panel"
v-if=
"configInfo.length == 2"
>
<div
class=
"condition-panel"
v-if=
"configInfo.length == 2"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<label
class=
"condition-label"
>
企微成员范围:
</label>
<label
class=
"condition-label
line-revert
"
>
企微成员范围:
</label>
<div
class=
"condition-select"
>
<div
class=
"condition-select"
>
<div
class=
"m-b-10"
>
<div
class=
"m-b-10"
>
<el-radio-group
v-model=
"empType"
>
<el-radio-group
v-model=
"empType"
>
<el-radio
:label=
"index"
v-for=
"(item, index) in configInfo"
:key=
"item.id"
>
{{
item
.
name
}}
</el-radio>
<el-radio
:label=
"index"
v-for=
"(item, index) in configInfo"
:key=
"item.id"
>
{{
item
.
name
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<el-button
size=
"small"
@
click=
"handleAddEmp"
>
<template
v-if=
"empType == 0"
>
<i
class=
"el-icon-plus"
></i>
<el-button
size=
"small"
@
click=
"handleAddEmp"
>
选择成员
<i
class=
"el-icon-plus"
></i>
</el-button>
选择成员
<div
class=
"sale-select"
v-show=
"this.userList && this.userList.length != 0"
>
</el-button>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<div
class=
"sale-select"
v-show=
"this.userList && this.userList.length != 0"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in this.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<i
class=
"el-icon-user-solid"
></i>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in this.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
{{
tag
.
staffName
}}
<i
class=
"el-icon-user-solid"
></i>
</el-tag>
{{
tag
.
staffName
}}
</el-tag>
</div>
</div>
</div>
</
div
>
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"condition-panel"
v-if=
"conditionsList.name != '页面停留'"
>
<
template
v-if=
"conditionsList"
>
<div
class=
"flex"
>
<div
class=
"condition-panel"
>
<label
class=
"condition-label"
>
进入条件:
</label>
<div
class=
"flex"
>
<div
class=
"condition-select"
>
<label
class=
"condition-label"
>
进入条件:
</label>
<div
class=
"condition-input"
v-if=
"conditionsList.operators && conditionsList.operators[0]"
>
<div
class=
"condition-select"
>
<el-input
:value=
"conditionsList.name"
></el-input>
<div
class=
"condition-input"
v-if=
"conditionsList.operators"
>
<el-input
:value=
"conditionsList.operators[0].name"
></el-input>
<el-input
:value=
"conditionsList.name"
></el-input>
<el-input
:value=
"conditionsList.operators[0].value"
></el-input>
<template
v-if=
"conditionsList.operators[0]"
>
<span>
天后自动切换到此旅程阶段
</span>
<el-input
:value=
"conditionsList.operators[0].name"
></el-input>
</div>
<el-input
:value=
"conditionsList.operators[0].value"
></el-input>
<div
class=
"condition-input"
v-for=
"item in conditionsList.subConditions"
:key=
"item.id"
>
<span>
天后自动切换到此旅程阶段
</span>
<span>
并且满足 旅程阶段不包含
</span>
</
template
>
<el-input
:value=
"item.operators[item.value].value"
></el-input>
</div>
<div
class=
"condition-input"
v-for=
"item in conditionsList.subConditions"
:key=
"item.id"
>
<span>
并且满足 旅程阶段不包含
</span>
<el-input
:value=
"item.operators[item.value].value"
></el-input>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"condition-panel"
>
<div
class=
"condition-panel
"
>
<div
class=
"flex"
v-if=
"conditionsList.name == '页面停留'
"
>
<div
class=
"flex"
v-if=
"conditionsList.name == '页面停留'"
>
<label
class=
"condition-label"
>
进入条件:
</label
>
<label
class=
"condition-label"
>
进入条件:
</label
>
<div
class=
"condition-select"
>
<div
class=
"condition-select
"
>
<div
class=
"condition-input"
v-for=
"item in conditionsList.subConditions"
:key=
"item.id
"
>
<div
class=
"condition-input"
v-for=
"item in conditionsList.subConditions"
>
<span>
并且满足
</span
>
<span>
并且满足
</span>
<span>
页面停留时长
</span>
<span>
页面停留时长
</span
>
<el-input
:value=
"item.operators[item.value].name"
></el-input
>
<el-input
:value=
"item.operators[item.value].nam
e"
></el-input>
<el-input
:value=
"item.operators[item.value].valu
e"
></el-input>
<el-input
:value=
"item.operators[item.value].value"
></el-input
>
<span>
秒
</span
>
<
span>
秒
</span
>
<
/div
>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"flex-column-center"
v-if=
"configInfo.length == 1"
>
<div
class=
"flex-column-center"
v-if=
"configInfo.length == 1"
>
<label
class=
"require"
>
*
</label
>
<label
class=
"require"
>
*
</label>
<label
class=
"condition-label"
>
页面配置:
</label>
<label
class=
"condition-label"
>
页面配置:
</label
>
<div
class=
"condition-select"
>
<div
class=
"condition-selec
t"
>
<div
class=
"condition-inpu
t"
>
<div
class=
"condition-input"
>
<span>
当前页面营销活动为
</span
>
<span>
当前页面营销活动为
</span
>
<el-input
style=
"width: 284px;"
v-model=
"activityName"
></el-input
>
<el-input
style=
"width: 284px;"
v-model=
"activityName"
></el-input
>
<a
@
click=
"typeVisible = true"
>
编辑页面
</a
>
<
a
@
click=
"typeVisible = true"
>
编辑页面
</a
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
</div>
</
div
>
</
template
>
</div>
</div>
<GLDialog
:bigTitle=
"'选择成员'"
mode=
"big"
:append-to-body=
"true"
:visible
.
sync=
"membersVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"membersVisible = !membersVisible"
>
<GLDialog
:bigTitle=
"'选择成员'"
mode=
"big"
:append-to-body=
"true"
:visible
.
sync=
"membersVisible"
@
onOk=
"handleConfirm"
@
onCancel=
"membersVisible = !membersVisible"
>
<selectEmp
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"userList"
></selectEmp>
<selectEmp
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"userList"
></selectEmp>
...
@@ -95,7 +101,6 @@ import selectEmp from './selectEmp'
...
@@ -95,7 +101,6 @@ import selectEmp from './selectEmp'
import
selectType
from
'./selectType'
import
selectType
from
'./selectType'
import
materialModel
from
'@/components/model/materialModel'
import
materialModel
from
'@/components/model/materialModel'
import
activityModel
from
'@/components/model/activityModel'
import
activityModel
from
'@/components/model/activityModel'
import
{
use
}
from
'echarts'
export
default
{
export
default
{
components
:
{
components
:
{
selectEmp
,
selectEmp
,
...
@@ -238,12 +243,13 @@ export default {
...
@@ -238,12 +243,13 @@ export default {
},
},
mounted
()
{
mounted
()
{
const
{
index
}
=
this
.
conditionInfo
,
const
{
index
}
=
this
.
conditionInfo
,
{
dataTypeCode
,
conditions
}
=
this
.
conditionInfo
.
conditionsList
[
index
],
{
dataTypeCode
,
conditions
,
flag
}
=
this
.
conditionInfo
.
conditionsList
[
index
],
condition
=
conditions
.
filter
(
i
=>
i
.
isHide
)
condition
=
conditions
.
filter
(
i
=>
i
.
isHide
)
this
.
configInfo
=
condition
this
.
configInfo
=
condition
const
conditionsList
=
conditions
.
filter
(
i
=>
!
i
.
isHide
)
const
conditionsList
=
conditions
.
filter
(
i
=>
!
i
.
isHide
),
this
.
conditionsList
=
conditionsList
[
0
]
idx
=
conditionsList
.
findIndex
(
i
=>
i
.
id
==
flag
)
console
.
log
(
this
.
conditionsList
,
'this.conditionsList'
)
this
.
conditionsList
=
conditionsList
[
idx
>
-
1
?
idx
:
0
]
console
.
log
(
this
.
conditionsList
,
flag
,
'6this.conditionInfo'
)
this
.
$apis
.
journeyConfig
.
sopConditionList
({
dataTypeCode
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
sopConditionList
({
dataTypeCode
}).
then
(
res
=>
{
this
.
stepList
=
res
this
.
stepList
=
res
})
})
...
@@ -373,7 +379,7 @@ export default {
...
@@ -373,7 +379,7 @@ export default {
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.condition-label
{
.condition-label
{
width
:
9
0px
;
width
:
10
0px
;
line-height
:
32px
;
line-height
:
32px
;
}
}
...
...
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