Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a5cc55a5
authored
Aug 10, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除控制台打印
1 parent
17897fd7
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
4 additions
and
35 deletions
src/views/crowdfunding/CrowdfundLeft.vue
src/views/crowdfunding/CrowdfundRight.vue
src/views/crowdfunding/components/ActivityTrends.vue
src/views/crowdfunding/components/BarChart.vue
src/views/crowdfunding/components/BrandDimension.vue
src/views/crowdfunding/components/GlDemension.vue
src/views/crowdfunding/components/MainTab.vue
src/views/crowdfunding/components/MerchantsRank.vue
src/views/crowdfunding/components/NearMerchantsRank.vue
src/views/crowdfunding/components/PaymentPropertion.vue
src/views/crowdfundingDetail/ActivityDetail.vue
src/views/crowdfundingDetail/ActivityTable.vue
src/views/crowdfundingDetail/index.vue
src/views/crowdfunding/CrowdfundLeft.vue
View file @
a5cc55a
...
...
@@ -118,13 +118,11 @@ export default {
// 获取总产值、总场次、总订单数
async
getAllOverview
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getAllOverview
()
console
.
log
(
_result
)
const
_data
=
_result
.
data
.
dataList
[
0
]
this
.
outputvalue
=
_data
.
outputvalue
this
.
orderNum
=
_data
.
orderNum
this
.
activityNum
=
_data
.
activityNum
this
.
dataList
.
amountDataList
=
_data
.
trend
console
.
log
(
this
.
dataList
.
amountDataList
)
this
.
$nextTick
(()
=>
{
this
.
$refs
.
amountChartRef
.
drawBar
()
this
.
$refs
.
sessionChartRef
.
drawBar
()
...
...
src/views/crowdfunding/CrowdfundRight.vue
View file @
a5cc55a
...
...
@@ -8,14 +8,10 @@
<
template
>
<div
class=
"right"
>
<MainTab
class=
"main-tab"
:tabList=
"tabList"
@
tabChange=
"tabChange"
></MainTab>
<template
v-if=
"currentTab == 0"
>
<!-- 广联维度 -->
<GlDemension></GlDemension>
</
template
>
<
template
v-else
>
<!-- 品牌维度 -->
<BrandDimension></BrandDimension>
</
template
>
<!-- 广联维度 -->
<GlDemension
v-show=
"currentTab == 0"
></GlDemension>
<!-- 品牌维度 -->
<BrandDimension
v-show=
"currentTab == 1"
></BrandDimension>
</div>
</
template
>
...
...
src/views/crowdfunding/components/ActivityTrends.vue
View file @
a5cc55a
...
...
@@ -57,7 +57,6 @@ export default {
methods
:
{
async
getActivityTrend
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getActivityTrend
()
console
.
log
(
_result
)
const
_data
=
_result
.
data
.
dataList
this
.
dataList
=
_data
this
.
$nextTick
(()
=>
{
...
...
src/views/crowdfunding/components/BarChart.vue
View file @
a5cc55a
...
...
@@ -72,7 +72,6 @@ export default {
return
_html
},
drawBar
()
{
console
.
log
(
this
.
dataList
,
this
.
tooltipFormatterObj
)
this
.
barOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statMonth
)
this
.
barOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
[
this
.
tooltipFormatterObj
.
attrName
])
this
[
this
.
domId
].
setOption
(
this
.
barOptions
)
...
...
src/views/crowdfunding/components/BrandDimension.vue
View file @
a5cc55a
...
...
@@ -107,7 +107,6 @@ export default {
queryItem
}
const
_result
=
await
this
.
api
.
crowdFunding
.
getBrandRank
(
_params
)
console
.
log
(
_result
,
'555555555'
)
const
{
actiRank
,
avgChargebackRank
,
avgTransRank
,
outputRank
}
=
_result
.
data
.
dataList
[
0
]
this
.
sessionRankList
=
actiRank
this
.
productionRankList
=
outputRank
...
...
@@ -116,7 +115,6 @@ export default {
},
// tab切换
changeTab
(
val
)
{
console
.
log
(
val
);
switch
(
val
)
{
case
0
:
this
.
getBrandRank
(
'AR'
)
...
...
src/views/crowdfunding/components/GlDemension.vue
View file @
a5cc55a
...
...
@@ -95,7 +95,6 @@ export default {
methods
:
{
async
getGLOverview
(
Month
)
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getGLOverview
({
Month
})
console
.
log
(
_result
,
'999'
)
const
_dataList
=
_result
.
data
.
dataList
[
0
]
this
.
crowdfundList
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
...
...
src/views/crowdfunding/components/MainTab.vue
View file @
a5cc55a
...
...
@@ -53,10 +53,8 @@ export default {
methods
:
{
async
getMonth
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getMonth
()
console
.
log
(
_result
,
'==='
)
this
.
dataList
=
_result
.
data
.
dataList
this
.
defaultMonth
=
this
.
month
=
this
.
dataList
[
0
].
statMonth
console
.
log
(
this
.
defaultMonth
,
'+++++'
)
this
.
$bus
.
$emit
(
'crowdFundingMonth'
,
this
.
defaultMonth
)
},
// tab切换
...
...
@@ -68,7 +66,6 @@ export default {
this
.
isShow
=
!
this
.
isShow
},
selectVal
(
val
)
{
console
.
log
(
val
)
this
.
defaultMonth
=
this
.
month
=
val
.
statMonth
this
.
$bus
.
$emit
(
'crowdFundingMonth'
,
this
.
defaultMonth
)
this
.
switchMonth
()
...
...
src/views/crowdfunding/components/MerchantsRank.vue
View file @
a5cc55a
...
...
@@ -49,13 +49,11 @@ export default {
// 获取 产值、转换率、退单率 门店排名
async
getMerchantRank
(
Month
)
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getMerchantRank
({
Month
})
console
.
log
(
_result
,
'121212'
)
this
.
dataList
=
_result
.
data
.
dataList
[
0
]
this
.
merchantRankList
=
this
.
dataList
.
outputRank
},
// 跳转售后众筹二级页面
goDetailPage
(
item
)
{
console
.
log
(
item
);
const
routeData
=
this
.
$router
.
resolve
({
name
:
'crowdfundingDetail'
,
query
:
{
...
...
@@ -67,7 +65,6 @@ export default {
},
// tab切换
changeTab
(
val
)
{
console
.
log
(
val
)
switch
(
val
)
{
case
0
:
this
.
merchantRankList
=
this
.
dataList
.
outputRank
...
...
src/views/crowdfunding/components/NearMerchantsRank.vue
View file @
a5cc55a
...
...
@@ -44,7 +44,6 @@ export default {
methods
:
{
async
getMerchantActivityRank
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getMerchantActivityRank
()
console
.
log
(
_result
,
'22222'
);
this
.
dataList
=
_result
.
data
.
dataList
[
0
]
this
.
merchantRankList
=
this
.
dataList
.
activityRank
},
...
...
src/views/crowdfunding/components/PaymentPropertion.vue
View file @
a5cc55a
...
...
@@ -59,7 +59,6 @@ export default {
// 获取 产值、转换率、退单率 门店排名
async
getPaymentModel
(
Month
)
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getPaymentModel
({
Month
})
console
.
log
(
_result
,
'4545455'
)
this
.
dataList
=
_result
.
data
.
dataList
[
0
]
this
.
paymentData
=
this
.
dataList
.
totalData
},
...
...
src/views/crowdfundingDetail/ActivityDetail.vue
View file @
a5cc55a
...
...
@@ -41,13 +41,11 @@ export default {
},
mounted
()
{
},
methods
:
{
// 快捷切换日期
changeDate
(
val
)
{
console
.
log
(
val
)
if
(
val
===
3
)
{
this
.
showCalendar
=
true
return
...
...
@@ -70,13 +68,10 @@ export default {
start
=
this
.
formatDate
(
start
)
this
.
start
=
start
this
.
end
=
end
console
.
log
(
start
,
'start'
)
console
.
log
(
end
,
'end'
)
this
.
getActivityDetail
()
},
// 自定义日期选择
customerSelect
(
val
)
{
console
.
log
(
val
,
'val'
);
this
.
start
=
val
[
0
]
this
.
end
=
val
[
1
]
this
.
getActivityDetail
()
...
...
@@ -91,7 +86,6 @@ export default {
pageSize
:
this
.
pageSize
}
const
_result
=
await
this
.
api
.
crowdFunding
.
getActivityDetail
(
_params
)
console
.
log
(
_result
,
'66666'
);
const
_data
=
_result
.
data
.
dataList
[
0
]
this
.
dataTotal
=
_data
.
totalNum
this
.
tableData
=
_data
.
details
...
...
src/views/crowdfundingDetail/ActivityTable.vue
View file @
a5cc55a
...
...
@@ -59,12 +59,10 @@ export default {
}
},
handleSizeChange
(
e
)
{
console
.
log
(
e
)
this
.
curPageSize
=
e
this
.
$emit
(
'sizeChange'
,
e
)
},
handleCurrentChange
(
e
)
{
console
.
log
(
e
)
this
.
currentPage
=
e
this
.
$emit
(
'pageChange'
,
e
)
}
...
...
src/views/crowdfundingDetail/index.vue
View file @
a5cc55a
...
...
@@ -99,7 +99,6 @@ export default {
},
created
()
{
this
.
tabObject
=
this
.
$route
.
query
console
.
log
(
this
.
tabObject
,
'this.tabObject'
);
const
{
merchantid
,
merchantName
}
=
this
.
$route
.
query
this
.
merchantName
=
merchantName
this
.
merchantid
=
merchantid
...
...
@@ -107,7 +106,6 @@ export default {
this
.
getMerchantOverview
(
merchantid
)
this
.
$bus
.
$on
(
'selectVal'
,
data
=>
{
console
.
log
(
data
,
'dta'
);
this
.
$router
.
replace
({
path
:
'/crowdfundingDetail'
,
query
:
{
...
...
@@ -125,12 +123,10 @@ export default {
methods
:
{
async
getMerchant
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getMerchant
()
console
.
log
(
_result
,
'888'
)
this
.
merchantList
=
_result
.
data
.
dataList
},
async
getMerchantOverview
(
MerchantId
)
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getMerchantOverview
({
MerchantId
})
console
.
log
(
_result
,
'999'
)
const
_dataList
=
_result
.
data
.
dataList
[
0
]
this
.
crowdfundingDetailList
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment