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 3dab356a
authored
Jul 14, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v1.0.0
2 parents
9f2551b1
713a9a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
src/views/home/solar/PurchaseRank.vue
src/views/solarDetail/index.vue
src/views/home/solar/PurchaseRank.vue
View file @
3dab356
...
...
@@ -105,7 +105,16 @@ export default {
// 跳转太阳膜详情页
goDetailPage
(
item
)
{
console
.
log
(
item
)
this
.
$router
.
push
({
path
:
`solarDetail?merchantid=
${
item
.
merchantid
}
&merchantname=
${
item
.
merchantname
}
&purchaseType=
${
this
.
purchase
.
value
}
`
})
// this.$router.push({ path: `solarDetail?merchantid=${item.merchantid}&merchantname=${item.merchantname}&purchaseType=${this.purchase.value}` })
const
routeData
=
this
.
$router
.
resolve
({
name
:
'solarDetail'
,
query
:
{
merchantid
:
item
.
merchantid
,
merchantname
:
item
.
merchantname
,
purchaseType
:
this
.
purchase
.
value
}
})
window
.
open
(
routeData
.
href
,
'_blank'
)
},
// 点击外部控制排名下拉隐藏
clickOutside
()
{
...
...
src/views/solarDetail/index.vue
View file @
3dab356
...
...
@@ -6,7 +6,7 @@
</
template
>
<
template
#
content
>
<div
class=
"solar-detail-content"
>
<view-date
:businessTime=
"businessTime"
@
yearValue=
"yearValue"
></view-date>
<view-date
:businessTime=
"businessTime"
></view-date>
<StatisticsBox
class=
"statistic-box"
:list=
"solarDetailList"
></StatisticsBox>
<!-- 采购趋势 -->
<div
class=
"tendency-box"
>
...
...
@@ -69,7 +69,6 @@
<
script
>
import
{
changeMixin
}
from
'@/mixins'
import
RightViewContent
from
'../home/solar/RightViewContent.vue'
import
{
mapActions
}
from
'vuex'
export
default
{
name
:
'SolarDetail'
,
mixins
:
[
changeMixin
],
...
...
@@ -182,10 +181,11 @@ export default {
businessTime
:
''
}
},
created
()
{},
created
()
{
this
.
initData
()
},
methods
:
{
...
mapActions
([
'setSolarYear'
]),
async
init
()
{
async
initData
()
{
console
.
log
(
this
.
$route
.
query
,
'999'
)
this
.
businessTime
=
this
.
$store
.
state
.
app
.
solarTime
this
.
businessYear
=
this
.
$store
.
state
.
app
.
solarYear
...
...
@@ -203,7 +203,8 @@ export default {
// _merchantList = _data[purchaseType]
// })
// }
if
(
!
_merchantList
.
length
)
_merchantList
=
await
this
.
getAllRanking
(
purchaseType
)
// if (!_merchantList.length)
_merchantList
=
await
this
.
getAllRanking
(
purchaseType
)
this
.
merchantList
=
_merchantList
console
.
log
(
this
.
merchantList
,
'this.merchantList'
)
this
.
tabObject
=
this
.
$route
.
query
...
...
@@ -240,6 +241,7 @@ export default {
},
// 获取每个门店的商城采购额(占比)、自采采购额(占比) 趋势
getMerchantPurchaseTrend
(
year
,
merchantid
)
{
this
.
dataList
=
[]
this
.
api
.
solar
.
getMerchantPurchaseTrend
({
year
:
year
,
MerchantId
:
merchantid
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
!
res
.
code
===
'0'
)
{
...
...
@@ -258,10 +260,6 @@ export default {
this
.
$refs
.
purchaseTrend
.
drawBarLine
()
})
},
// 切换年份
yearValue
(
val
)
{
this
.
setSolarYear
(
val
)
},
getAllRanking
(
purchaseType
)
{
return
new
Promise
(
resolve
=>
{
let
_merchantList
...
...
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