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
68c64905
Commit
68c64905
authored
May 26, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:触达效果
parent
14bf5d40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
touch-clue.vue
src/views/ecm/touch-clue.vue
+13
-11
card-profit.vue
src/views/ecm/touch-components/card-profit.vue
+4
-1
No files found.
src/views/ecm/touch-clue.vue
View file @
68c64905
...
...
@@ -139,6 +139,7 @@ export default {
this
.
getTableFirstData
();
},
changeListTab
(
index
)
{
if
(
index
==
this
.
listTabsIndex
)
return
;
this
.
listTabsIndex
=
index
;
this
.
currentPage
=
1
;
this
.
$refs
.
table
.
clearSort
();
...
...
@@ -278,16 +279,15 @@ export default {
}
meth
(
params
).
then
(
res
=>
{
this
.
tableList
=
[];
console
.
log
(
res
.
result
);
if
(
!
res
.
result
.
result
||
!
res
.
result
.
result
.
length
)
return
;
// 拼接表头数据
if
(
this
.
currentPage
==
1
)
{
let
resetArr
=
[];
this
.
tableExtra
.
forEach
(
item
=>
{
if
(
item
.
groupName
==
'区域合计'
)
resetArr
[
0
]
=
item
;
else
if
(
item
.
groupName
==
'计划整体'
&&
this
.
level
<
2
)
resetArr
[
1
]
=
item
;
});
res
.
result
.
result
&&
(
this
.
tableList
=
resetArr
.
concat
(
res
.
result
.
result
));
}
let
resetArr
=
[];
this
.
tableExtra
.
forEach
(
item
=>
{
if
(
item
.
groupName
==
'区域合计'
)
resetArr
[
0
]
=
item
;
else
if
(
item
.
groupName
==
'计划整体'
&&
this
.
level
<
2
)
resetArr
[
1
]
=
item
;
});
res
.
result
.
result
&&
(
this
.
tableList
=
resetArr
.
concat
(
res
.
result
.
result
));
this
.
total
=
res
.
result
.
totalCount
;
this
.
loading
=
false
;
});
...
...
@@ -347,15 +347,17 @@ export default {
// 懒加载树结构
async
loadNode
(
node
,
resolve
)
{
let
params
=
{
level
:
node
.
level
,
storeGroupId
:
node
.
data
?
node
.
data
.
storeGroupId
:
null
};
this
.
level
=
node
.
level
;
this
.
storeGroupId
=
node
.
data
?
node
.
data
.
storeGroupId
:
null
;
if
(
node
.
level
===
0
)
{
let
allStore
=
await
getGroupTree
(
params
);
this
.
allStoreId
.
push
(
allStore
.
result
[
0
].
storeGroupId
);
// 设置默认展开所有门店的叶子节点
this
.
$nextTick
(()
=>
this
.
$refs
.
treeList
.
setCurrentKey
(
this
.
allStoreId
[
0
]));
// 设置树默认高亮结点
return
resolve
(
allStore
.
result
||
[]);
}
if
(
node
.
level
==
1
)
this
.
getTableFirstData
();
if
(
node
.
level
==
1
)
{
this
.
level
=
node
.
level
;
this
.
storeGroupId
=
node
.
data
?
node
.
data
.
storeGroupId
:
null
;
this
.
getTableFirstData
();
}
let
otherArea
=
await
getGroupTree
(
params
);
return
resolve
(
otherArea
.
result
||
[]);
},
...
...
src/views/ecm/touch-components/card-profit.vue
View file @
68c64905
...
...
@@ -41,7 +41,7 @@
<
div
class
=
"name"
v
-
if
=
"scope.row.cardName"
>
<
div
class
=
"top"
>
{{
scope
.
row
.
cardName
}}
<
span
class
=
"type"
>
{{
scope
.
row
.
card
Name
==
0
?
'抵金券'
:
scope
.
row
.
cardName
==
1
?
'折扣券'
:
scope
.
row
.
cardNam
e
==
2
?
'兑换券'
:
'--'
}}
<
/span
>
<
span
class
=
"type"
>
{{
scope
.
row
.
card
Type
==
0
?
'抵金券'
:
scope
.
row
.
cardType
==
1
?
'折扣券'
:
scope
.
row
.
cardTyp
e
==
2
?
'兑换券'
:
'--'
}}
<
/span
>
<
/div
>
<
p
>
{{
scope
.
row
.
subTitle
}}
<
/p
>
<
/div
>
...
...
@@ -174,6 +174,9 @@ export default {
}
}
}
.
list_right
div
{
text
-
align
:
center
;
}
}
.
name
{
color
:
#
303133
;
...
...
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