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
480d8541
Commit
480d8541
authored
Apr 27, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/销售线索' of
http://115.159.76.241/marketing-web/marketing
into feature/销售线索
parents
f3887a3b
3decc754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
touch-clue.vue
src/views/ecm/touch-clue.vue
+1
-0
market-list.vue
src/views/ecm/touch-components/market-list.vue
+1
-1
touch-effect.vue
src/views/ecm/touch-effect.vue
+14
-2
No files found.
src/views/ecm/touch-clue.vue
View file @
480d8541
...
...
@@ -343,6 +343,7 @@ export default {
this
.
getTableList
();
},
storeChange
(
val
)
{
this
.
isAdd
=
false
;
this
.
uuid
=
val
;
this
.
getTableList
();
}
...
...
src/views/ecm/touch-components/market-list.vue
View file @
480d8541
<
template
>
<div
class=
"content"
>
<div
class=
"top"
v-if=
"!isCluePage"
>
<div
class=
"left"
>
计划:
踏青特惠
</div>
<div
class=
"left"
>
计划:
{{
$route
.
query
.
name
}}
</div>
<div
class=
"right"
v-if=
"isRepeat"
>
批次合计:
{{
batchNum
}}
/ 最新批次时间:
{{
batchTimes
}}
</div>
</div>
<div
class=
"middle"
v-for=
"(item, index) in data"
:key=
"index"
>
...
...
src/views/ecm/touch-effect.vue
View file @
480d8541
...
...
@@ -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