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
ec2f1766
Commit
ec2f1766
authored
Jun 01, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 触达效果
parent
f4f89be6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
touch-clue.vue
src/views/ecm/touch-clue.vue
+15
-3
card-profit.vue
src/views/ecm/touch-components/card-profit.vue
+2
-2
No files found.
src/views/ecm/touch-clue.vue
View file @
ec2f1766
...
...
@@ -28,7 +28,9 @@
<div
class=
"top"
>
<div
class=
"tab2"
>
<template
v-if=
"type == 1"
>
<span
v-for=
"item in listTabsIndex == 1 ? touchTabs : taskTabs"
:key=
"item.id"
:class=
"
{ active2: listTabsIndex == 1 ? item.id == tabsIndex : item.id == taskTabIndex }" @click="changeTabs(item.id)">
{{
item
.
name
}}
</span>
<span
class=
"tab2-item"
v-for=
"item in listTabsIndex == 1 ? touchTabs : taskTabs"
:key=
"item.id"
:class=
"
{ active2: listTabsIndex == 1 ? item.id == tabsIndex : item.id == taskTabIndex }" @click="changeTabs(item.id)">
{{
item
.
name
}}
</span>
<span
class=
"tab2-tip"
v-if=
"listTabsIndex == 1"
>
* 只展示有数据的触达方式
</span>
<span
class=
"tab2-tip"
v-else
>
* 只展示有数据的任务
</span>
</
template
>
</div>
<el-button
type=
"primary"
class=
"btn"
@
click=
"cdkeyExport"
><i
class=
"iconfont icon-icon_yunxiazai"
style=
"marginRight:6px;fontSize:14px"
></i>
导出
</el-button>
...
...
@@ -225,17 +227,21 @@ export default {
align
:
'left'
,
fixed
:
'left'
,
formatter
(
row
)
{
let
textColor
=
'#606266'
;
let
color
=
'#F0F5FF'
;
if
(
row
.
index
==
1
)
{
textColor
=
'white'
;
color
=
'#F5222D'
;
}
else
if
(
row
.
index
==
2
)
{
color
=
'#FAAD14'
;
textColor
=
'white'
;
}
else
if
(
row
.
index
==
3
)
{
color
=
'#FFCB48'
;
textColor
=
'white'
;
}
else
if
(
!
row
.
index
)
{
return
'--'
;
}
return
`<span style="background:
${
color
}
;width: 16px; display: inline-block; text-align: center; line-height:16px">
${
row
.
index
}
</span>`
;
return
`<span style="background:
${
color
}
;
color:
${
textColor
}
;
width: 16px; display: inline-block; text-align: center; line-height:16px">
${
row
.
index
}
</span>`
;
}
},
{
...
...
@@ -570,7 +576,7 @@ export default {
.tab2
{
cursor
:
pointer
;
display
:
flex
;
span
{
.tab2-item
{
display
:
inline-block
;
width
:
84px
;
height
:
32px
;
...
...
@@ -584,6 +590,12 @@ export default {
line-height
:
32px
;
text-align
:
center
;
}
.tab2-tip
{
line-height
:
32px
;
color
:
#c0c4cc
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
margin-left
:
20px
;
}
.active2
{
background
:
#1890ff
;
color
:
#fff
;
...
...
src/views/ecm/touch-components/card-profit.vue
View file @
ec2f1766
...
...
@@ -31,7 +31,7 @@
</div>
<div>
<p>
销售单金额(元)
</p>
<p>
{{
parse
In
t
(
list
.
salesAmt
||
0
).
toLocaleString
(
'zh'
,
{
minimumFractionDigits
:
2
}
)
}}
<
/p
>
<p>
{{
parse
Floa
t
(
list
.
salesAmt
||
0
).
toLocaleString
(
'zh'
,
{
minimumFractionDigits
:
2
}
)
}}
<
/p
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -89,7 +89,7 @@ export default {
{
label
:
'使用人数'
,
prop
:
'useMbrNum'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterNum
(
row
.
useMbrNum
)
}
,
{
label
:
'使用率'
,
prop
:
'useRate'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterRate
((
row
.
useMbrNum
/
row
.
getMbrNum
)
*
100
)
}
,
{
label
:
'销售单数'
,
prop
:
'orderCnt'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterNum
(
row
.
orderCnt
)
}
,
{
label
:
'销售单金额'
,
prop
:
'salesAmt'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
parse
In
t
(
row
.
salesAmt
||
0
).
toLocaleString
(
'zh'
,
{
minimumFractionDigits
:
2
}
)
}
{
label
:
'销售单金额'
,
prop
:
'salesAmt'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
parse
Floa
t
(
row
.
salesAmt
||
0
).
toLocaleString
(
'zh'
,
{
minimumFractionDigits
:
2
}
)
}
]
}
;
}
,
...
...
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