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 c8fd1aed
authored
Jan 16, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
4d912365
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
12 deletions
src/mixins/model.js
src/views/journeyConfig/add.vue
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/CollapseItemTpl.vue
src/views/journeyConfig/details.vue
src/views/journeyModel/add.vue
src/views/journeyModel/components/CollapseItem.vue
src/views/journeyModel/components/condition.vue
src/mixins/model.js
View file @
c8fd1ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36
* @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-1
2 13:41:22
* @LastEditTime: 2024-01-1
6 10:09:46
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @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 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
val
.
subConditions
.
forEach
(
i
=>
{
val
.
subConditions
.
forEach
(
i
=>
{
i
.
operators
.
forEach
(
o
=>
{
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
if
(
o
.
value
)
{
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}${
o
.
unit
}
`
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}${
o
.
unit
?
o
.
unit
:
''
}
`
}
}
})
})
})
})
...
...
src/views/journeyConfig/add.vue
View file @
c8fd1ae
...
@@ -185,6 +185,7 @@ export default {
...
@@ -185,6 +185,7 @@ export default {
configList
.
push
({
configList
.
push
({
label
:
stages
[
k
].
value
,
label
:
stages
[
k
].
value
,
isExpaned
:
true
,
isExpaned
:
true
,
editable
:
stages
[
k
].
editable
,
conditionsList
:
stages
[
k
].
conditions
||
[],
conditionsList
:
stages
[
k
].
conditions
||
[],
sopList
sopList
})
})
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
c8fd1ae
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持手动标记
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持
{{
stepItem
.
editable
?
''
:
'不'
}}
手动标记
</div>
</div>
</div>
<div
class=
"progress-item-content bg-fff"
>
<div
class=
"progress-item-content bg-fff"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
...
...
src/views/journeyConfig/components/CollapseItemTpl.vue
View file @
c8fd1ae
...
@@ -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-1
5 14:43:49
* @LastEditTime: 2024-01-1
6 10:38:50
* @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
-->
-->
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持手动标记
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持
{{
stepItem
.
editable
?
''
:
'不'
}}
手动标记
</div>
</div>
</div>
<div
class=
"progress-item-content bg-fff"
>
<div
class=
"progress-item-content bg-fff"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
...
...
src/views/journeyConfig/details.vue
View file @
c8fd1ae
...
@@ -146,6 +146,7 @@ export default {
...
@@ -146,6 +146,7 @@ export default {
configList
.
push
({
configList
.
push
({
label
:
stages
[
k
].
value
,
label
:
stages
[
k
].
value
,
isExpaned
:
true
,
isExpaned
:
true
,
editable
:
stages
[
k
].
editable
,
conditionsList
:
stages
[
k
].
conditions
||
[],
conditionsList
:
stages
[
k
].
conditions
||
[],
sopList
sopList
})
})
...
...
src/views/journeyModel/add.vue
View file @
c8fd1ae
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"journey-step bg-fff pb20"
v-if=
"addForm.region"
>
<div
class=
"journey-step bg-fff pb20"
>
<div
class=
"journey-step-title border-title"
>
<div
class=
"journey-step-title border-title"
>
客户旅程阶段配置
客户旅程阶段配置
</div>
</div>
...
@@ -264,7 +264,8 @@ export default {
...
@@ -264,7 +264,8 @@ export default {
//获取圈化人群的方式
//获取圈化人群的方式
sopDataTypesList
()
{
sopDataTypesList
()
{
this
.
$apis
.
journeyModel
.
sopDataTypesList
({}).
then
(
res
=>
{
this
.
$apis
.
journeyModel
.
sopDataTypesList
({}).
then
(
res
=>
{
this
.
sopDataTypes
=
res
this
.
sopDataTypes
=
res
||
[{}]
this
.
addForm
.
region
=
this
.
sopDataTypes
[
0
].
code
})
})
},
},
//获取详情
//获取详情
...
...
src/views/journeyModel/components/CollapseItem.vue
View file @
c8fd1ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 20:36:05
* @Date: 2023-12-22 20:36:05
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-1
2 15:53:49
* @LastEditTime: 2024-01-1
6 10:37:53
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.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
-->
-->
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</div>
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-name"
>
进入条件
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-desc"
>
(描述用户触发何种条件后,将自动变更为该旅程阶段)
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持手动标记
</div>
<div
class=
"task-item-mark"
>
该旅程阶段支持
{{
stepItem
.
editable
?
''
:
'不'
}}
手动标记
</div>
</div>
</div>
<div
class=
"progress-item-content bg-fff"
v-if=
"stepItem.conditionsList.length"
>
<div
class=
"progress-item-content bg-fff"
v-if=
"stepItem.conditionsList.length"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
<div
class=
"progress-item"
v-for=
"(v, k) in stepItem.conditionsList"
:key=
"k"
>
...
...
src/views/journeyModel/components/condition.vue
View file @
c8fd1ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43
* @Date: 2023-12-25 13:34:43
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-1
5 11:16:55
* @LastEditTime: 2024-01-1
6 10:47:30
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.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
-->
-->
...
@@ -133,10 +133,10 @@ export default {
...
@@ -133,10 +133,10 @@ export default {
const
_conditions
=
this
.
stepList
.
find
(
i
=>
i
.
id
==
val
.
id
).
conditions
const
_conditions
=
this
.
stepList
.
find
(
i
=>
i
.
id
==
val
.
id
).
conditions
_conditions
.
forEach
(
i
=>
{
_conditions
.
forEach
(
i
=>
{
if
(
i
.
id
==
this
.
condition
.
id
&&
this
.
condition
.
subConditions
.
length
==
0
&&
i
.
subConditions
.
length
>
0
)
{
if
(
i
.
id
==
this
.
condition
.
id
&&
this
.
condition
.
subConditions
.
length
==
0
&&
i
.
subConditions
.
length
>
0
)
{
this
.
condition
.
subConditions
=
i
.
subConditions
this
.
condition
.
subConditions
=
this
.
$common
.
utils
.
deepClone
(
i
.
subConditions
)
}
}
})
})
console
.
log
(
this
.
condition
List
,
'this.conditionList'
)
console
.
log
(
this
.
condition
,
_conditions
,
'this.conditionList'
)
},
},
// 保存最后一项用于新增
// 保存最后一项用于新增
delCondition
(
val
,
k
)
{
delCondition
(
val
,
k
)
{
...
...
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