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
1324b2c4
Commit
1324b2c4
authored
Jun 03, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: 触达效果图表
parent
ab91c6e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
touch-charts.vue
src/views/ecm/touch-components/touch-charts.vue
+9
-5
No files found.
src/views/ecm/touch-components/touch-charts.vue
View file @
1324b2c4
...
...
@@ -157,7 +157,7 @@ export default {
let
dateArr
=
this
.
allDate
();
chartData
.
forEach
(
item
=>
{
dateArr
.
forEach
(
el
=>
{
if
(
item
.
date
==
el
.
date
&&
item
.
name
==
el
.
name
)
{
if
(
item
.
date
==
this
.
formatterTime
(
el
.
date
)
&&
item
.
name
==
el
.
name
)
{
if
(
el
.
name
==
'线索转化收益'
)
el
.
rate
=
item
.
rate
;
else
el
.
value
=
item
.
value
;
}
...
...
@@ -166,14 +166,18 @@ export default {
// 过滤出从营销计划开始之后的数据
dateArr
=
dateArr
.
filter
(
item
=>
{
if
(
item
.
date
>=
this
.
createTime
)
{
let
year
=
new
Date
(
item
.
date
).
getFullYear
();
let
month
=
String
(
new
Date
(
item
.
date
).
getMonth
()
+
1
).
padStart
(
'2'
,
'0'
);
let
day
=
String
(
new
Date
(
item
.
date
).
getDate
()).
padStart
(
'2'
,
'0'
);
item
.
date
=
year
+
'-'
+
month
+
'-'
+
day
;
item
.
date
=
this
.
formatterTime
(
item
.
date
);
return
item
;
}
});
return
dateArr
;
},
formatterTime
(
val
)
{
let
year
=
new
Date
(
val
).
getFullYear
();
let
month
=
String
(
new
Date
(
val
).
getMonth
()
+
1
).
padStart
(
'2'
,
'0'
);
let
day
=
String
(
new
Date
(
val
).
getDate
()).
padStart
(
'2'
,
'0'
);
let
time
=
year
+
'-'
+
month
+
'-'
+
day
;
return
time
;
}
}
};
...
...
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