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 aa17ddbc
authored
Jan 11, 2024
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
bac1c203
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
35 deletions
src/views/journeyModel/add.vue
src/views/journeyModel/components/CollapseItem.vue
src/views/journeyModel/components/sopItem.vue
src/views/journeyModel/index.vue
src/views/journeyModel/add.vue
View file @
aa17ddb
...
@@ -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
0 09:23:30
* @LastEditTime: 2024-01-1
1 16:34:45
* @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
-->
-->
...
@@ -294,7 +294,11 @@ export default {
...
@@ -294,7 +294,11 @@ export default {
}
}
list
=
list
.
filter
(
item
=>
item
.
day
)
list
=
list
.
filter
(
item
=>
item
.
day
)
list
.
sort
((
a
,
b
)
=>
{
list
.
sort
((
a
,
b
)
=>
{
return
a
.
day
-
b
.
day
if
(
a
.
day
==
b
.
day
)
{
return
a
.
time
.
replace
(
':'
,
''
)
-
b
.
time
.
replace
(
':'
,
''
)
}
else
{
return
a
.
day
-
b
.
day
}
})
})
console
.
log
(
list
,
'list'
)
console
.
log
(
list
,
'list'
)
const
sopList
=
this
.
groupBy
(
list
,
'day'
)
const
sopList
=
this
.
groupBy
(
list
,
'day'
)
...
...
src/views/journeyModel/components/CollapseItem.vue
View file @
aa17ddb
...
@@ -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-
09 14:50
:35
* @LastEditTime: 2024-01-
11 17:05
:35
* @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
-->
-->
...
@@ -302,6 +302,11 @@ export default {
...
@@ -302,6 +302,11 @@ export default {
}
}
this
.
stepItem
.
sopList
=
this
.
stepItem
.
sopList
.
filter
(
i
=>
i
[
0
])
this
.
stepItem
.
sopList
=
this
.
stepItem
.
sopList
.
filter
(
i
=>
i
[
0
])
this
.
stepItem
.
sopList
.
sort
((
a
,
b
)
=>
a
[
0
].
day
-
b
[
0
].
day
)
this
.
stepItem
.
sopList
.
sort
((
a
,
b
)
=>
a
[
0
].
day
-
b
[
0
].
day
)
this
.
stepItem
.
sopList
.
forEach
(
item
=>
{
item
.
sort
((
x
,
y
)
=>
{
return
new
Date
(
'1970/01/01 '
+
x
.
time
)
-
new
Date
(
'1970/01/01 '
+
y
.
time
)
// 按照 time 排序
})
})
},
},
showEditCondition
(
val
,
index
)
{
showEditCondition
(
val
,
index
)
{
this
.
activityConfig
=
{
this
.
activityConfig
=
{
...
@@ -397,6 +402,7 @@ export default {
...
@@ -397,6 +402,7 @@ export default {
transition
:
all
0.3s
;
transition
:
all
0.3s
;
.task-item
{
.task-item
{
&-head
{
&-head
{
height
:
28px
;
.task-item-icon
{
.task-item-icon
{
width
:
20px
;
width
:
20px
;
height
:
20px
;
height
:
20px
;
...
...
src/views/journeyModel/components/sopItem.vue
View file @
aa17ddb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 14:31:26
* @Date: 2023-12-25 14:31:26
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-
09 17:57:40
* @LastEditTime: 2024-01-
10 17:16:34
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid
-->
-->
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"sop-item flex-column-center"
>
<div
class=
"sop-item flex-column-center"
>
<label>
*
</label>
<label>
*
</label>
<span>
请设置营销时间:
</span>
<span>
请设置营销时间:
</span>
<el-input-number
v-model=
"day"
:min=
"1"
:max=
"
1000
"
:size=
"size"
></el-input-number>
<el-input-number
v-model=
"day"
:min=
"1"
:max=
"
999
"
:size=
"size"
></el-input-number>
<span>
天后,当日
</span>
<span>
天后,当日
</span>
<el-time-picker
:picker-options=
"rangeStart"
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>
<span>
发送
</span>
...
...
src/views/journeyModel/index.vue
View file @
aa17ddb
...
@@ -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
0 09:13:25
* @LastEditTime: 2024-01-1
1 15:09:07
* @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
-->
-->
...
@@ -19,10 +19,6 @@
...
@@ -19,10 +19,6 @@
<img
src=
"@/assets/config/icon-1.png"
/>
<img
src=
"@/assets/config/icon-1.png"
/>
<span>
{{
item
.
tplName
}}
</span>
<span>
{{
item
.
tplName
}}
</span>
<a
@
click=
"handleEdit(item)"
>
编辑
</a>
<a
@
click=
"handleEdit(item)"
>
编辑
</a>
<div
:class=
"
{ 'journey-item-status flex-center': true, 'is-disable': item.tplStatus == -1 || item.tplStatus == 0 }">
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
</div>
</div>
</div>
<div
class=
"journey-item-body"
>
<div
class=
"journey-item-body"
>
<div
class=
"journey-process"
>
<div
class=
"journey-process"
>
...
@@ -50,11 +46,6 @@
...
@@ -50,11 +46,6 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
const
STATUS
=
[
{
label
:
'已启用'
,
value
:
1
,
icon
:
'el-icon-check'
},
{
label
:
'未启用'
,
value
:
0
,
icon
:
'el-icon-close'
},
{
label
:
'已禁用'
,
value
:
-
1
,
icon
:
'el-icon-remove-outline'
}
]
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -70,15 +61,6 @@ export default {
...
@@ -70,15 +61,6 @@ export default {
optionList
:
[],
optionList
:
[],
optionId
:
'tplId'
,
optionId
:
'tplId'
,
optionLabel
:
'tplName'
optionLabel
:
'tplName'
},
{
label
:
'状态'
,
name
:
'tplStatus'
,
type
:
'select'
,
optionList
:
STATUS
,
optionId
:
'value'
,
optionLabel
:
'label'
,
multiple
:
true
}
}
],
],
journeyList
:
[]
journeyList
:
[]
...
@@ -152,12 +134,6 @@ export default {
...
@@ -152,12 +134,6 @@ export default {
this
.
handleSearch
()
this
.
handleSearch
()
})
})
},
},
//状态值映射
getStatusValue
(
val
,
prop
)
{
console
.
log
(
val
,
'fff'
)
if
(
!
val
||
!
prop
)
return
return
STATUS
.
find
(
item
=>
item
.
value
==
val
.
tplStatus
)[
prop
]
},
handleEdit
(
item
)
{
handleEdit
(
item
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/journeyModel/add'
,
path
:
'/journeyModel/add'
,
...
@@ -168,16 +144,12 @@ export default {
...
@@ -168,16 +144,12 @@ export default {
})
})
},
},
async
handleSearch
()
{
async
handleSearch
()
{
const
{
tpl
Status
,
tpl
Id
}
=
this
.
searchForm
const
{
tplId
}
=
this
.
searchForm
this
.
journeyList
=
this
.
journeyAllList
this
.
journeyList
=
this
.
journeyAllList
console
.
log
(
this
.
journeyAllList
,
'this.journeyAllList'
)
console
.
log
(
this
.
journeyAllList
,
'this.journeyAllList'
)
if
(
tplId
)
{
if
(
tplId
)
{
this
.
journeyList
=
this
.
journeyList
.
filter
(
item
=>
item
.
tplId
==
tplId
)
this
.
journeyList
=
this
.
journeyList
.
filter
(
item
=>
item
.
tplId
==
tplId
)
}
}
if
(
tplStatus
&&
tplStatus
.
length
)
{
this
.
journeyList
=
this
.
journeyList
.
filter
(
item
=>
tplStatus
.
includes
(
item
.
tplStatus
))
}
console
.
log
(
this
.
journeyList
,
5555
)
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{}
this
.
searchForm
=
{}
...
...
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