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
d4f770dc
Commit
d4f770dc
authored
May 31, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/销售线索2期' of
http://115.159.76.241/marketing-web/marketing
into feature/销售线索2期
parents
2636b03d
c421ca44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
11 deletions
+34
-11
touch-clue.vue
src/views/ecm/touch-clue.vue
+24
-5
card-profit.vue
src/views/ecm/touch-components/card-profit.vue
+10
-6
No files found.
src/views/ecm/touch-clue.vue
View file @
d4f770dc
...
...
@@ -17,7 +17,12 @@
<!--转为树结构下钻-->
<div
class=
"area_content"
>
<div
class=
"tree"
>
<el-tree
ref=
"treeList"
:expand-on-click-node=
"false"
highlight-current
:props=
"defaultProps"
@
node-click=
"refreshLazyTree"
:load=
"loadNode"
lazy
node-key=
"storeGroupId"
:default-expanded-keys=
"allStoreId"
></el-tree>
<el-tree
ref=
"treeList"
:expand-on-click-node=
"false"
highlight-current
:props=
"defaultProps"
@
node-click=
"refreshLazyTree"
:load=
"loadNode"
lazy
node-key=
"storeGroupId"
:default-expanded-keys=
"allStoreId"
>
<span
class=
"node-label"
v-if=
"data.storeGroupName.length
<
=
10
"
slot-scope=
"
{ data }">
{{
data
.
storeGroupName
}}
</span>
<el-tooltip
effect=
"dark"
:content=
"data.storeGroupName"
placement=
"top"
slot-scope=
"
{ data }" v-else>
<span
class=
"custom-tree-node"
>
{{
data
.
storeGroupName
}}
</span>
</el-tooltip>
</el-tree>
</div>
<div
class=
"map_area"
>
<div
class=
"top"
>
...
...
@@ -73,7 +78,8 @@ export default {
}
],
defaultProps
:
{
label
:
'storeGroupName'
label
:
'storeGroupName'
,
isLeaf
:
'isLeaf'
},
tabsIndex
:
0
,
taskTabIndex
:
0
,
...
...
@@ -348,6 +354,9 @@ export default {
let
params
=
{
level
:
node
.
level
,
storeGroupId
:
node
.
data
?
node
.
data
.
storeGroupId
:
null
};
if
(
node
.
level
===
0
)
{
let
allStore
=
await
getGroupTree
(
params
);
allStore
.
result
.
forEach
(
el
=>
{
el
.
isLeaf
=
!
el
.
child
;
});
this
.
allStoreId
.
push
(
allStore
.
result
[
0
].
storeGroupId
);
// 设置默认展开所有门店的叶子节点
this
.
$nextTick
(()
=>
this
.
$refs
.
treeList
.
setCurrentKey
(
this
.
allStoreId
[
0
]));
// 设置树默认高亮结点
return
resolve
(
allStore
.
result
||
[]);
...
...
@@ -358,6 +367,9 @@ export default {
this
.
getTableFirstData
();
}
let
otherArea
=
await
getGroupTree
(
params
);
otherArea
.
result
.
forEach
(
el
=>
{
el
.
isLeaf
=
!
el
.
child
;
});
return
resolve
(
otherArea
.
result
||
[]);
},
// 点击表格映射到树结构
...
...
@@ -517,12 +529,19 @@ export default {
display
:
flex
;
border-top
:
1px
solid
#dcdfe6
;
.tree
{
width
:
2
4
3px
;
padding
-top
:
20px
;
width
:
2
2
3px
;
padding
:
20px
20px
0
0
;
border-right
:
1px
solid
#dcdfe6
;
/deep/
.el-tree-node__label
{
.node-label
{
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
color
:
#303133
;
}
.custom-tree-node
{
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
color
:
#303133
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
/
deep
/
.el-tree-node__expand-icon
{
margin-left
:
31px
;
...
...
src/views/ecm/touch-components/card-profit.vue
View file @
d4f770dc
...
...
@@ -4,7 +4,7 @@
<h2>
卡券收益
</h2>
<span>
计划中的卡券,计划中卡券触达的人群使用该卡券消费的收益,包含已过计划收益有效期的数据
</span>
</div>
<template
v-if=
"tableData.length"
>
<template
v-if=
"
!
tableData.length"
>
<div
class=
"list"
>
<div
class=
"list_left"
>
<div>
...
...
@@ -19,7 +19,7 @@
</div>
<div>
<p>
使用人数
<span>
(使用率
{{
formatterRate
((
list
.
useMbrNum
/
list
.
touch
MbrNum
)
*
100
)
}}
)
</span>
使用人数
<span>
(使用率
{{
formatterRate
((
list
.
useMbrNum
/
list
.
get
MbrNum
)
*
100
)
}}
)
</span>
</p>
<p>
{{
formatterNum
(
list
.
useMbrNum
)
}}
</p>
</div>
...
...
@@ -27,7 +27,7 @@
<div
class=
"list_right"
>
<div>
<p>
销售单数
</p>
<p>
{{
formatterNum
(
list
.
salesAm
t
)
}}
</p>
<p>
{{
formatterNum
(
list
.
orderCn
t
)
}}
</p>
</div>
<div>
<p>
销售单金额(元)
</p>
...
...
@@ -61,7 +61,7 @@
<
div
class
=
"empty"
v
-
else
>
<
div
class
=
"content"
>
<
span
class
=
"icon iconfont"
>&
#
xe76e
;
<
/span
>
<
span
>
本计划未使用卡券营销
<
/span
>
<
span
class
=
"none-tip"
>
本计划未使用卡券营销
<
/span
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -87,9 +87,9 @@ export default {
{
label
:
'领取人数'
,
prop
:
'getMbrNum'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterNum
(
row
.
getMbrNum
)
}
,
{
label
:
'领取率'
,
prop
:
'drawRate'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterRate
((
row
.
getMbrNum
/
row
.
touchMbrNum
)
*
100
)
}
,
{
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
.
touch
MbrNum
)
*
100
)
}
,
{
label
:
'使用率'
,
prop
:
'useRate'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
this
.
formatterRate
((
row
.
useMbrNum
/
row
.
get
MbrNum
)
*
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
=>
this
.
formatterNum
(
row
.
salesAmt
)
}
{
label
:
'销售单金额'
,
prop
:
'salesAmt'
,
minWidth
:
'160'
,
align
:
'left'
,
fixed
:
'left'
,
formatter
:
row
=>
parseInt
(
row
.
salesAmt
||
0
).
toLocaleString
(
'zh'
,
{
minimumFractionDigits
:
2
}
)
}
]
}
;
}
,
...
...
@@ -226,6 +226,10 @@ export default {
font
-
size
:
30
px
;
margin
-
right
:
10
px
;
}
.
none
-
tip
{
color
:
#
c0c4cc
;
font
-
size
:
14
px
;
}
}
}
}
...
...
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