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 bac1c203
authored
Jan 10, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
bfd52cba
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
78 additions
and
45 deletions
src/mixins/model.js
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/concatActivity.vue
src/views/journeyModel/components/sopItem.vue
src/views/journeyModel/index.vue
src/mixins/model.js
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:3
5:11
* @LastEditTime: 2024-01-09 15:3
9:12
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -44,7 +44,6 @@ export default {
}
})
}
console
.
log
(
val
.
operators
,
day
,
'dat'
)
if
(
/
\[
.*
\]
/
.
test
(
title
)
&&
day
.
length
==
2
)
{
title
=
title
.
replace
(
/
\[
.*
?\]
/
,
day
[
0
]).
replace
(
/
\[
.*
?\]
/
,
day
[
1
])
}
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-
09 15:34:19
* @LastEditTime: 2024-01-
10 16:36:13
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -67,7 +67,7 @@
<div
v-for=
"(value, key) in v"
:key=
"key"
class=
"step-time-item flex-column-center"
>
<div
style=
"width: 100%"
>
<div
class=
"step-item-desc"
>
<span>
[
{{
value
.
time
}}
]发送 |
{{
stageInfo
([
value
.
taskType
]).
nodeName
}}
|
{{
stageInfo
([
value
.
taskType
]).
desc
}}
</span>
<span>
[
{{
value
.
time
}}
]发送 |
{{
stageInfo
([
value
.
nodeProtoId
]).
nodeName
}}
|
{{
stageInfo
([
value
.
nodeProtoId
]).
desc
}}
</span>
</div>
<div
class=
"step-item-name"
v-if=
"value.taskType"
>
{{
activity_name
[
value
.
taskType
]
}}
</div>
...
...
@@ -102,7 +102,6 @@
<div
class=
"popover-panel"
v-for=
"(t, pkey) in v"
:key=
"pkey"
>
<div
class=
"flex-column-center"
>
<span>
{{
value
.
time
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{t.taskType}`]">
</div>
</div>
<div
class=
"stage-desc"
>
{{
stageInfo
([
t
.
taskType
]).
nodeName
}}
</div>
</div>
...
...
@@ -116,7 +115,6 @@
<!-- 5 =>跟进提醒-->
<!-- 6 =>修改旅程阶段-->
<!-- 7 => 获取客户信息-->
<div
:class=
"['stage-icon', `stage-$
{value.taskType}`]">
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
<span>
{{
v
.
length
}}
个任务
</span>
...
...
@@ -249,13 +247,15 @@ export default {
methods
:
{
//获取sop映射字段
stageInfo
(
i
)
{
console
.
log
(
i
)
const
defaultStage
=
{
nodeName
:
''
,
desc
:
''
}
if
(
this
.
modelList
)
{
return
this
.
modelList
.
find
(
item
=>
item
.
id
==
i
)
return
this
.
modelList
.
find
(
item
=>
item
.
id
==
i
)
||
defaultStage
}
else
{
return
{
nodeName
:
''
,
desc
:
''
}
return
defaultStage
}
},
//查看详情
...
...
src/views/journeyConfig/components/CollapseItemTpl.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-
08 17:59:32
* @LastEditTime: 2024-01-
10 16:35:33
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -90,14 +90,12 @@
<div
class=
"popover-panel"
v-for=
"(t, pkey) in v"
:key=
"pkey"
>
<div
class=
"flex-column-center"
v-if=
"t.nodeSkip == '0'"
>
<span>
{{
value
.
time
.
defaultValue
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{t.taskType.defaultValue}`]">
</div>
</div>
<!--
<div
class=
"stage-desc"
>
{{
stageInfo
([
t
.
taskType
]).
nodeName
}}
</div>
-->
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length
<
= 2
&&
value.nodeSkip == '0'">
<span>
{{
value
.
time
.
defaultValue
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{value.taskType.defaultValue}`]">
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
<span>
{{
v
.
filter
(
item
=>
item
.
nodeSkip
==
'0'
).
length
}}
个任务
</span>
...
...
@@ -233,13 +231,14 @@ export default {
},
//获取sop映射字段
stageInfo
(
i
)
{
const
defaultStage
=
{
nodeName
:
''
,
desc
:
''
}
if
(
this
.
modelList
)
{
return
this
.
modelList
.
find
(
item
=>
item
.
id
==
i
)
return
this
.
modelList
.
find
(
item
=>
item
.
id
==
i
)
||
defaultStage
}
else
{
return
{
nodeName
:
''
,
desc
:
''
}
return
defaultStage
}
},
//查看详情
...
...
src/views/journeyConfig/details.vue
View file @
bac1c20
...
...
@@ -16,7 +16,7 @@ import CollapseItem from './components/CollapseItem'
export
default
{
components
:
{
CollapseItem
,
CollapseItem
},
data
()
{
return
{
...
...
@@ -110,7 +110,7 @@ export default {
},
methods
:
{
getDetail
(
val
)
{
this
.
$apis
.
journeyConfig
.
getInsDetailsApi
({
instId
:
val
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
getInsDetailsApi
({
instId
:
val
}).
then
(
res
=>
{
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
const
stages
=
instParam
.
stages
const
customData
=
instParam
.
customData
...
...
@@ -126,6 +126,7 @@ export default {
nodeSkip
:
v
.
nodeSkip
,
nodeVisible
:
v
.
nodeVisible
,
nodeId
:
v
.
nodeId
,
nodeProtoId
:
v
.
nodeProtoId
,
customData
})
}
...
...
@@ -135,13 +136,13 @@ export default {
return
a
.
day
-
b
.
day
})
let
sopList
=
this
.
groupBy
(
list
,
'day'
)
sopList
=
sopList
.
map
(
function
(
arr
)
{
return
arr
.
filter
(
function
(
obj
)
{
sopList
=
sopList
.
map
(
function
(
arr
)
{
return
arr
.
filter
(
function
(
obj
)
{
// nodeVisible 0 节点不可见 1 可见
// nodeSkip 0 节点不跳过 1 节点跳过
return
obj
.
nodeSkip
==
0
&&
obj
.
nodeVisible
==
1
;
})
;
})
;
return
obj
.
nodeSkip
==
0
&&
obj
.
nodeVisible
==
1
})
})
configList
.
push
({
label
:
stages
[
k
].
value
,
isExpaned
:
true
,
...
...
src/views/journeyModel/add.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-
09 14:02:39
* @LastEditTime: 2024-01-
10 09:23:30
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -147,24 +147,24 @@ export default {
return
this
.
showError
(
'请选择圈化人群的方式'
)
}
let
stage
=
{}
this
.
configList
.
forEach
((
item
,
k
)
=>
{
stage
[
'stage'
+
(
k
+
1
)]
=
{
const
nodes
=
[]
this
.
configList
=
this
.
configList
.
filter
(
item
=>
item
.
label
)
this
.
configList
.
forEach
((
item
,
index
)
=>
{
stage
[
'stage'
+
(
index
+
1
)]
=
{
editable
:
item
.
editable
,
conditions
:
item
.
conditionsList
,
value
:
item
.
label
}
})
const
nodes
=
[]
this
.
configList
.
forEach
(
i
=>
{
i
.
sopList
.
forEach
(
days
=>
{
item
.
sopList
.
forEach
(
days
=>
{
days
.
forEach
(
k
=>
{
nodes
.
push
({
nodeParamDef
:
JSON
.
stringify
({
stage
:
{
defaultValue
:
k
.
stage
},
day
:
{
defaultValue
:
k
.
day
},
time
:
{
defaultValue
:
k
.
time
}
time
:
{
defaultValue
:
k
.
time
}
}),
nodeProtoId
:
k
.
taskType
})
...
...
@@ -185,7 +185,6 @@ export default {
tplParamDef
:
JSON
.
stringify
(
dataTypeCode
),
nodes
}
console
.
log
(
params
,
7
)
this
.
$apis
.
journeyModel
.
sopTplsSave
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
$router
.
go
(
-
1
)
...
...
src/views/journeyModel/components/CollapseItem.vue
View file @
bac1c20
...
...
@@ -118,14 +118,12 @@
<div
class=
"popover-panel"
v-for=
"(t, pkey) in v"
:key=
"pkey"
>
<div
class=
"flex-column-center"
>
<span>
{{
value
.
time
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{stage_icon[t.taskType]}`]">
</div>
</div>
<div
class=
"stage-desc"
>
{{
stageInfo
([
t
.
taskType
]).
nodeName
}}
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length
<
= 2">
<span>
{{
value
.
time
}}
</span>
<div
:class=
"['stage-icon', `stage-$
{stage_icon[value.taskType]}`]">
</div>
</div>
<div
slot=
"reference"
class=
"flex-column-center"
v-if=
"v.length > 2 && key == 0"
>
<span>
3条内容
</span>
...
...
src/views/journeyModel/components/concatActivity.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 1
3:39:49
* @LastEditTime: 2024-01-09 1
7:17:26
* @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
-->
...
...
@@ -139,8 +139,26 @@ export default {
})
},
handleSure
()
{
const
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
//条件序号condition_i
let
{
conditionList
,
conditionListAll
,
condition_i
}
=
this
.
$refs
.
conditionForm
,
isInput
=
true
if
(
!
conditionList
.
conditions
)
{
this
.
$message
({
type
:
'error'
,
message
:
'请选择进入条件'
,
customClass
:
'error-tips'
})
return
}
conditionList
.
conditions
.
forEach
(
i
=>
{
if
(
i
.
operators
&&
i
.
operators
.
length
)
{
isInput
=
false
i
.
operators
.
forEach
(
o
=>
{
if
(
o
.
value
)
{
isInput
=
true
}
})
}
conditionListAll
.
conditions
.
forEach
(
j
=>
{
if
(
i
.
id
==
j
.
id
)
{
j
.
operators
=
i
.
operators
...
...
@@ -148,7 +166,14 @@ export default {
}
})
})
console
.
log
(
conditionList
,
conditionListAll
,
9
)
if
(
!
isInput
)
{
this
.
$message
({
type
:
'error'
,
message
:
'请完善条件'
,
customClass
:
'error-tips'
})
return
}
this
.
$emit
(
'closeActivity'
,
{
conditionList
:
{
...
conditionListAll
,
flag
:
conditionList
.
flag
},
condition_i
})
},
handleAddEmp
()
{
...
...
@@ -219,3 +244,8 @@ export default {
}
}
</
style
>
<
style
>
.error-tips
{
z-index
:
99999
!important
;
}
</
style
>
src/views/journeyModel/components/sopItem.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 14:31:26
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 1
5:19:18
* @LastEditTime: 2024-01-09 1
7:57:40
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid
-->
...
...
@@ -14,7 +14,7 @@
<span>
请设置营销时间:
</span>
<el-input-number
v-model=
"day"
:min=
"1"
:max=
"1000"
:size=
"size"
></el-input-number>
<span>
天后,当日
</span>
<el-time-picker
v-model=
"time"
:size=
"size"
format=
"HH:mm"
value-format=
"HH:mm"
></el-time-picker>
<el-time-picker
:picker-options=
"rangeStart"
v-model=
"time"
:size=
"size"
format=
"HH:mm"
value-format=
"HH:mm"
></el-time-picker>
<span>
发送
</span>
</div>
<div
class=
"sop-item flex"
>
...
...
@@ -48,6 +48,9 @@ export default {
},
data
()
{
return
{
rangeStart
:
{
selectableRange
:
'09:00:00 - 22:00:00'
// 09:00:00 - 22:00:00的时间才可以选择
},
nodeKey
:
''
,
day
:
0
,
time
:
''
,
...
...
src/views/journeyModel/index.vue
View file @
bac1c20
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 202
3-12-27 19:57:1
5
* @LastEditTime: 202
4-01-10 09:13:2
5
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -276,6 +276,10 @@ export default {
.journey-step-desc
{
font-size
:
14px
;
color
:
#333333
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
padding
:
0px
6px
;
}
}
}
...
...
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