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 15c7b97c
authored
Jul 17, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口调整
1 parent
2b5441dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
src/views/solarDetail/index.vue
src/views/solarDetail/index.vue
View file @
15c7b97
...
...
@@ -94,7 +94,15 @@ export default {
},
created
()
{
this
.
$bus
.
$on
(
'selectVal'
,
data
=>
{
console
.
log
(
data
)
this
.
$router
.
replace
({
path
:
'/solarDetail'
,
query
:
{
merchantid
:
data
.
merchantid
,
merchantname
:
data
.
merchantname
,
purchaseType
:
this
.
purchaseType
,
year
:
this
.
$store
.
state
.
app
.
solarYear
}
})
this
.
init
()
})
},
...
...
@@ -103,13 +111,14 @@ export default {
},
methods
:
{
async
init
()
{
console
.
log
(
222
);
this
.
tabObject
=
this
.
$route
.
query
const
{
year
}
=
this
.
$route
.
query
this
.
defaultYear
=
year
const
{
merchantid
,
purchaseType
}
=
this
.
$route
.
query
const
_merchantList
=
await
this
.
getAllRanking
(
purchaseType
)
this
.
merchantList
=
_merchantList
console
.
log
(
this
.
merchantList
,
'this.merchantList'
)
this
.
purchaseType
=
purchaseType
this
.
getMerchantGoodsRatio
(
merchantid
)
this
.
getMerchantPurchase
(
merchantid
)
this
.
getMerchantPurchaseTrend
(
merchantid
)
...
...
@@ -151,6 +160,10 @@ export default {
return
}
const
_dataList
=
res
.
data
.
dataList
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
return
}
_dataList
.
forEach
((
item
,
index
)
=>
{
this
.
dataList
[
index
]
=
{
month
:
item
.
statDate
,
...
...
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