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
8a33ac30
Commit
8a33ac30
authored
Jun 02, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
622b486a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
14 deletions
+36
-14
activityDetail.vue
src/views/game/cmh/statistics/activityDetail.vue
+1
-1
statistics.vue
src/views/game/cmh/statistics/statistics.vue
+35
-13
No files found.
src/views/game/cmh/statistics/activityDetail.vue
View file @
8a33ac30
<
template
>
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"pt20 pb20 clearfix"
>
<el-input
v-model=
"form.search"
class=
"w260"
placeholder=
"请输入姓名/昵称/手机号/会员卡号"
clearable
@
change=
"refresh"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-date-picker
class=
"w256"
v-model=
"form.dateTime"
value-format=
"yyyy-MM-dd"
@
change=
"refresh"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
<el-input
v-model=
"form.search"
class=
"w260"
placeholder=
"请输入会员号/手机号/昵称"
clearable
@
change=
"refresh"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-button
icon=
"iconfont fz14 icon-cp-xiazai"
type=
"primary"
class=
"fr"
@
click=
"handleExport"
size=
"small"
:disabled=
"!total"
>
查询结果导出
</el-button>
</div>
<el-table
tooltipEffect=
"light"
:data=
"tableList"
style=
"width:100%"
>
...
...
src/views/game/cmh/statistics/statistics.vue
View file @
8a33ac30
...
...
@@ -24,7 +24,7 @@
</el-col>
</el-row>
</div>
<div
class=
"report-module"
>
<div
class=
"report-module"
v-if=
"isCard"
>
<dm-sub-title>
卡券核销
</dm-sub-title>
...
...
@@ -35,17 +35,17 @@
</el-row>
</div>
<div
class=
"report-module"
>
<dm-sub-title
title-align=
"space-between"
>
<dm-sub-title
title-align=
"space-between"
class=
"mb20"
>
<div>
奖品数据
<el-button
class=
"check-detail"
@
click=
"toDetailPage(2)"
>
查看详情
</el-button>
</div>
</dm-sub-title>
<el-radio-group
class=
"customize
mt20 mb20"
v-model=
"dimension"
@
change=
"radioChange
"
>
<el-radio-group
class=
"customize
"
v-model=
"dimension"
@
change=
"radioChange"
v-if=
"isCard
"
>
<el-radio-button
label=
"1"
value=
"1"
>
卡券
</el-radio-button>
<el-radio-button
label=
"2"
value=
"2"
>
积分
</el-radio-button>
</el-radio-group>
<el-table
:data=
"prizeList"
style=
"width:100%"
:key=
"dimension"
>
<el-table
:data=
"prizeList"
style=
"width:100%"
:key=
"dimension"
class=
"mt20"
>
<el-table-column
v-for=
"v in tableHeader"
:show-overflow-tooltip=
"v.tooltip"
:width=
"v.width"
:min-width=
"v.minWidth"
:align=
"v.align"
:key=
"v.prop"
:prop=
"v.prop"
:label=
"v.label"
:formatter=
"v.formatter"
:sortable=
"v.sortable"
:fixed=
"v.fixed"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"v.formatter"
v-html=
"v.formatter(scope.row)"
></span>
...
...
@@ -322,15 +322,15 @@ export default {
cardData
:
[],
prizeList
:
[],
tableHeader
:
[],
gameId
:
this
.
$route
.
params
.
id
gameId
:
this
.
$route
.
params
.
id
,
isShare
:
false
,
// 有门槛且配置了分享
isPoint
:
false
,
// 有门槛且配置了消耗积分
isCard
:
false
//奖品配置了卡券
};
},
mounted
()
{
const
gameId
=
this
.
$route
.
params
.
id
;
this
.
getGameOverview
(
gameId
);
this
.
getGameCardWriteOff
(
gameId
);
this
.
getGameDetail
(
gameId
);
this
.
getGamePrize
(
1
);
},
computed
:
{},
methods
:
{
...
...
@@ -343,7 +343,6 @@ export default {
}
},
radioChange
(
data
)
{
console
.
log
(
data
);
this
.
getGamePrize
(
data
);
},
getGameOverview
(
gameId
)
{
...
...
@@ -361,12 +360,32 @@ export default {
getGameDetail
(
gameId
)
{
getGameDetail
({
gameId
}).
then
(
res
=>
{
const
{
result
:
{
startDate
,
endDate
,
gameName
,
status
}
result
:
{
startDate
,
endDate
,
gameName
,
status
,
gameRuleConditionList
,
gamePrizeList
,
gameRuleInfo
:
{
playConditionFlag
}
}
}
=
res
;
if
(
playConditionFlag
==
1
)
{
gameRuleConditionList
.
map
(
item
=>
item
.
conditionType
).
includes
(
1
)
?
(
this
.
isShare
=
true
)
:
''
;
gameRuleConditionList
.
map
(
item
=>
item
.
conditionType
).
includes
(
0
)
?
(
this
.
isPoint
=
true
)
:
''
;
}
let
startDateStr
=
formatDateTimeByType
(
startDate
,
'yyyy-MM-dd'
);
let
endDateStr
=
formatDateTimeByType
(
endDate
,
'yyyy-MM-dd'
);
let
gameTimeStr
=
startDateStr
+
' 至 '
+
endDateStr
;
this
.
baseData
=
{
gameTimeStr
,
gameName
,
status
};
this
.
getGameOverview
(
gameId
);
// 活动基础数据
if
(
gamePrizeList
.
map
(
item
=>
item
.
prizeType
).
includes
(
2
))
{
this
.
isCard
=
true
;
this
.
getGameCardWriteOff
(
gameId
);
// 卡券核销数据
this
.
getGamePrize
(
1
);
}
else
{
this
.
getGamePrize
(
2
);
}
});
},
getGamePrize
(
prizeType
)
{
...
...
@@ -409,10 +428,13 @@ export default {
item
.
value
=
!
isNaN
(
value
)
?
value
+
'%'
:
'- -'
;
break
;
}
if
([
'shareCnt'
,
'openCardCnt'
].
includes
(
item
.
key
))
{
return
this
.
isShare
;
}
if
([
'integralUseCnt'
].
includes
(
item
.
key
))
{
return
this
.
isPoint
;
}
return
true
;
// 活动不发送挂机短信时,数据指标不展示短信发送总数和发送成功数的字段
// 活动未开启活动分析时,数据指标展示活动费用
// return !((this.aiDataShow.smsFlag == 0 && item.key == 'sentMessagesNumber') || (this.aiDataShow.smsFlag == 0 && item.key == 'sentSuccessfullyNumber') || (this.aiDataShow.analyseFlag != 0 && item.key == 'activityCost'));
});
})
.
filter
(
el
=>
el
.
length
>
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