Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
3decc754
Commit
3decc754
authored
Apr 27, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:触达效果
parent
61fdac5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
touch-effect.vue
src/views/ecm/touch-effect.vue
+14
-2
No files found.
src/views/ecm/touch-effect.vue
View file @
3decc754
...
...
@@ -117,8 +117,20 @@ export default {
},
getFunnelData
()
{
ecmTouchEffectFunnelChart
({
ecmPlanId
:
this
.
ecmPlanId
}).
then
(
res
=>
{
this
.
funnelData
=
this
.
formatFunnelData
(
res
.
result
);
this
.
clueRate
=
res
.
result
.
map
(
item
=>
{
let
checkData
=
res
.
result
.
map
(
item
=>
{
if
(
!
item
||
!
Object
.
keys
(
item
).
length
)
{
// 是否为空对象或者不存在
item
=
{
转化人数
:
'null'
,
线索转化收益
:
'null'
,
触达人数
:
'null'
,
计划触达人数
:
'null'
};
}
else
{
// 存在,将不存在的值 null 0 undefined转为字符串
for
(
let
key
in
item
)
{
if
(
!
item
[
key
])
item
[
key
]
=
item
[
key
]
+
''
;
}
}
return
item
;
});
this
.
funnelData
=
this
.
formatFunnelData
(
checkData
);
this
.
clueRate
=
checkData
.
map
(
item
=>
{
if
(
item
.
线索转化收益
&&
parseFloat
(
item
.
线索转化收益
))
{
item
=
parseFloat
(
item
.
线索转化收益
).
toFixed
(
2
);
let
i
=
item
.
indexOf
(
'.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment