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
4b12d34d
Commit
4b12d34d
authored
May 07, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:触达效果
parent
c3b961fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
touch-clue.vue
src/views/ecm/touch-clue.vue
+3
-2
touch-charts.vue
src/views/ecm/touch-components/touch-charts.vue
+2
-3
touch-effect.vue
src/views/ecm/touch-effect.vue
+2
-2
No files found.
src/views/ecm/touch-clue.vue
View file @
4b12d34d
...
...
@@ -15,9 +15,10 @@
<span
v-for=
"item in listTabs"
:key=
"item.value"
:class=
"
{ active: item.value == listTabsIndex }" @click="changeListTab(item.value)">
{{
item
.
name
}}
</span>
<div
class=
"line"
:class=
"
{ lineActive: listTabsIndex == 0 }">
</div>
</div>
<div
class=
"tab2"
>
<!--暂时隐藏-->
<!--
<div
class=
"tab2"
>
<span
v-for=
"item in listTabsIndex == 1 ? touchTabs : taskTabs"
:key=
"item.value"
:class=
"
{ active2: listTabsIndex == 1 ? item.value == tabsIndex : item.value == taskTabIndex }" @click="changeTabs(item.value)">
{{
item
.
name
}}
</span>
</div>
</div>
-->
</div>
<el-table
ref=
"table"
tooltipEffect=
"light"
:data=
"tableList"
style=
"width: 100%"
element-loading-text=
"拼命加载中"
@
sort-change=
"sortChange"
:style=
"
{ marginTop: '20px', padding: '0 20px 0 22px' }">
<el-table-column
v-for=
"(v, i) in tableHeader"
:key=
"i"
:prop=
"v.prop"
:label=
"v.label"
:formatter=
"v.formatter"
:sortable=
"v.sortable"
>
...
...
src/views/ecm/touch-components/touch-charts.vue
View file @
4b12d34d
...
...
@@ -27,7 +27,6 @@ export default {
methods
:
{
draw
()
{
this
.
chartData
=
this
.
formatterData
(
this
.
chartData
);
console
.
log
(
this
.
chartData
);
let
valueArr
=
this
.
chartData
.
filter
(
item
=>
item
.
value
>=
0
);
let
rateArr
=
this
.
chartData
.
filter
(
item
=>
item
.
rate
>=
0
);
let
valueFlag
=
valueArr
.
every
(
item
=>
item
.
value
==
0
);
// value是否出现全为0的情况
...
...
@@ -118,7 +117,7 @@ export default {
else
if
(
this
.
type
==
1
)
meth
=
ecmGuideCluesColumnDiagram
;
else
meth
=
ecmHeadCluesColumnDiagram
;
meth
({
ecmPlanId
:
this
.
$route
.
query
.
id
||
this
.
$route
.
params
.
id
}).
then
(
res
=>
{
if
(
!
res
.
result
||
!
res
.
result
[
0
]
)
{
if
(
!
res
.
result
||
!
res
.
result
.
length
)
{
// 没数据的情况
this
.
isNone
=
true
;
}
else
{
...
...
@@ -127,7 +126,7 @@ export default {
item
.
rate
=
item
.
vaule
?
parseFloat
(
item
.
vaule
)
:
0
;
delete
item
.
vaule
;
}
else
{
item
.
value
=
item
.
vaule
?
item
.
vaule
*
1
:
0
;
item
.
value
=
item
.
vaule
?
parseFloat
(
item
.
vaule
)
:
0
;
delete
item
.
vaule
;
}
return
item
;
...
...
src/views/ecm/touch-effect.vue
View file @
4b12d34d
...
...
@@ -119,7 +119,7 @@ export default {
ecmTouchEffectFunnelChart
({
ecmPlanId
:
this
.
ecmPlanId
}).
then
(
res
=>
{
let
checkData
=
res
.
result
.
map
(
item
=>
{
if
(
!
item
||
!
Object
.
keys
(
item
).
length
)
{
// 是否为空对象或者不存在
// 是否为空对象或者不存在
null
item
=
{
转化人数
:
'null'
,
线索转化收益
:
'null'
,
触达人数
:
'null'
,
计划触达人数
:
'null'
};
}
else
{
// 存在,将不存在的值 null 0 undefined转为字符串
...
...
@@ -151,7 +151,7 @@ export default {
if
(
i
!=
'收益'
&&
i
==
'触达人数'
&&
item
[
i
]
&&
item
.
计划触达人数
)
{
obj
.
unshift
({
action
:
i
,
value
:
parseInt
(
item
[
i
])
?
item
[
i
]
*
1
:
0
,
value
:
parseInt
(
item
[
i
])
?
item
[
i
]
*
1
:
0
,
// 防止字符串的null
rateAction
:
'触达率'
,
rate
:
(
item
.
触达人数
/
item
.
计划触达人数
)
*
100
?
((
item
.
触达人数
/
item
.
计划触达人数
)
*
100
).
toFixed
(
2
)
+
'%'
:
0
+
'%'
});
...
...
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