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 30076dbf
authored
Jan 08, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fb7b235e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
22 deletions
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/CollapseItemTpl.vue
src/views/journeyModel/components/CollapseItem.vue
src/views/journeyModel/components/concatActivity.vue
src/views/journeyModel/components/condition.vue
src/views/journeyConfig/components/CollapseItem.vue
View file @
30076db
...
@@ -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
3 12:33:37
* @LastEditTime: 2024-01-0
8 13:55:46
* @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
-->
-->
...
@@ -258,10 +258,28 @@ export default {
...
@@ -258,10 +258,28 @@ export default {
}
}
}
}
},
},
spiltString
(
val
,
n
)
{
spiltString
(
data
,
n
)
{
const
title
=
JSON
.
parse
(
val
.
paramRemark
).
title
if
(
!
data
.
flag
)
{
return
data
.
name
}
const
val
=
data
.
conditions
.
find
(
i
=>
i
.
id
==
data
.
flag
)
let
title
=
''
try
{
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
}
catch
(
error
)
{
console
.
log
(
error
)
}
val
&&
val
.
subConditions
&&
val
.
subConditions
.
length
&&
val
.
subConditions
.
forEach
(
i
=>
{
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}
`
}
})
})
return
title
return
title
// return (title.split('-')[n] || '').replace('文字备注:', '')
},
},
//查看详情
//查看详情
getEmpDetail
()
{
getEmpDetail
()
{
...
...
src/views/journeyConfig/components/CollapseItemTpl.vue
View file @
30076db
...
@@ -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
3 13:37:45
* @LastEditTime: 2024-01-0
8 13:55:00
* @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
-->
-->
...
@@ -242,10 +242,29 @@ export default {
...
@@ -242,10 +242,29 @@ export default {
}
}
}
}
},
},
spiltString
(
val
,
n
)
{
spiltString
(
data
,
n
)
{
const
title
=
JSON
.
parse
(
val
.
paramRemark
).
title
console
.
log
(
data
,
8
)
if
(
!
data
.
flag
)
{
return
data
.
name
}
const
val
=
data
.
conditions
.
find
(
i
=>
i
.
id
==
data
.
flag
)
let
title
=
''
try
{
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
}
catch
(
error
)
{
console
.
log
(
error
)
}
val
&&
val
.
subConditions
&&
val
.
subConditions
.
length
&&
val
.
subConditions
.
forEach
(
i
=>
{
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}
`
}
})
})
return
title
return
title
// return (title.split('-')[n] || '').replace('文字备注:', '')
},
},
//查看详情
//查看详情
getEmpDetail
()
{
getEmpDetail
()
{
...
...
src/views/journeyModel/components/CollapseItem.vue
View file @
30076db
...
@@ -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-08 1
2:24:07
* @LastEditTime: 2024-01-08 1
3:47:39
* @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
-->
-->
...
@@ -331,25 +331,27 @@ export default {
...
@@ -331,25 +331,27 @@ export default {
showStat
()
{
showStat
()
{
this
.
statVisible
=
true
this
.
statVisible
=
true
},
},
spiltString
(
val
,
n
)
{
spiltString
(
data
,
n
)
{
if
(
!
data
.
flag
)
{
return
data
.
name
}
const
val
=
data
.
conditions
.
find
(
i
=>
i
.
id
==
data
.
flag
)
let
title
=
''
let
title
=
''
try
{
try
{
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
title
+=
JSON
.
parse
(
val
.
paramRemark
).
title
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
}
}
val
.
conditions
.
forEach
(
item
=>
{
val
&&
title
+=
JSON
.
parse
(
item
.
paramRemark
).
title
val
.
subConditions
&&
item
.
subConditions
&&
val
.
subConditions
.
length
&&
item
.
subConditions
.
length
&&
val
.
subConditions
.
forEach
(
i
=>
{
item
.
subConditions
.
forEach
(
i
=>
{
i
.
operators
.
forEach
(
o
=>
{
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
if
(
o
.
value
)
{
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}
`
title
+=
`并且满足
${
i
.
name
}${
o
.
name
}${
o
.
value
}
`
}
}
})
})
})
})
})
return
title
return
title
},
},
//查看详情
//查看详情
...
...
src/views/journeyModel/components/concatActivity.vue
View file @
30076db
...
@@ -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-08 1
0:31:05
* @LastEditTime: 2024-01-08 1
2:27:57
* @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
-->
-->
...
@@ -136,9 +136,6 @@ export default {
...
@@ -136,9 +136,6 @@ export default {
handleSure
()
{
handleSure
()
{
const
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
const
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
conditionList
.
conditions
.
forEach
(
i
=>
{
conditionList
.
conditions
.
forEach
(
i
=>
{
i
.
subConditions
=
i
.
subConditions
.
filter
(
sub
=>
sub
.
value
!==
''
)
})
conditionList
.
conditions
.
forEach
(
i
=>
{
conditionListAll
.
conditions
.
forEach
(
j
=>
{
conditionListAll
.
conditions
.
forEach
(
j
=>
{
if
(
i
.
id
==
j
.
id
)
{
if
(
i
.
id
==
j
.
id
)
{
j
.
operators
=
i
.
operators
j
.
operators
=
i
.
operators
...
...
src/views/journeyModel/components/condition.vue
View file @
30076db
...
@@ -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-08 1
0:28:06
* @LastEditTime: 2024-01-08 1
3:33:38
* @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
-->
-->
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-select
v-model=
"item.name"
placeholder=
"请选择"
:size=
"size"
class=
"condition-1"
v-if=
"item.operators"
>
<el-select
v-model=
"item.name"
placeholder=
"请选择"
:size=
"size"
class=
"condition-1"
v-if=
"item.operators"
>
<el-option
v-for=
"itm in [item.name]"
:key=
"itm"
:label=
"itm"
:value=
"itm"
></el-option>
<el-option
v-for=
"itm in [item.name]"
:key=
"itm"
:label=
"itm"
:value=
"itm"
></el-option>
</el-select>
</el-select>
<el-select
v-model=
"item.value"
@
change=
"
item.operators[item.value].value = ''
"
placeholder=
"请选择"
:size=
"size"
class=
"condition-1"
v-if=
"item.operators"
>
<el-select
v-model=
"item.value"
@
change=
"
setInputValue(item.operators)
"
placeholder=
"请选择"
:size=
"size"
class=
"condition-1"
v-if=
"item.operators"
>
<el-option
v-for=
"(itm, i) in item.operators"
:key=
"i"
:label=
"itm.name"
:value=
"i"
></el-option>
<el-option
v-for=
"(itm, i) in item.operators"
:key=
"i"
:label=
"itm.name"
:value=
"i"
></el-option>
</el-select>
</el-select>
<div
class=
"condition-input"
v-if=
"item.operators[item.value].style == 'input'"
>
<div
class=
"condition-input"
v-if=
"item.operators[item.value].style == 'input'"
>
...
@@ -97,6 +97,11 @@ export default {
...
@@ -97,6 +97,11 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
setInputValue
(
arr
)
{
for
(
let
i
in
arr
)
{
arr
[
i
].
value
=
''
}
},
// mergeArr(arr1, arr2, val) {
// mergeArr(arr1, arr2, val) {
// // 遍历数组 arr1
// // 遍历数组 arr1
// arr1.forEach(a1 => {
// arr1.forEach(a1 => {
...
...
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