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 ab7c4c12
authored
Jul 19, 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
fbd2a7d6
5933775d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
src/views/solar/MerchantTrends.vue
src/views/solar/PurchaseRank.vue
src/views/solar/PurchaseTrends.vue
src/views/solar/MerchantTrends.vue
View file @
ab7c4c1
...
@@ -62,7 +62,10 @@ export default {
...
@@ -62,7 +62,10 @@ export default {
this
.
dataList
=
[]
this
.
dataList
=
[]
const
_data
=
await
this
.
api
.
solar
.
getAllOpenBuyTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_data
=
await
this
.
api
.
solar
.
getAllOpenBuyTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
if
(
!
_dataList
.
length
)
this
.
isEmpty
=
true
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
return
}
_dataList
.
forEach
(
item
=>
{
_dataList
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
this
.
dataList
.
push
({
month
:
item
.
statDate
,
month
:
item
.
statDate
,
...
...
src/views/solar/PurchaseRank.vue
View file @
ab7c4c1
...
@@ -15,9 +15,12 @@
...
@@ -15,9 +15,12 @@
</div>
-->
</div>
-->
</div>
</div>
<!-- 门店排行 -->
<!-- 门店排行 -->
<div
class=
"merchant-box"
>
<div
v-if=
"merchantsList.length"
class=
"merchant-box"
>
<ranking
:rankingsList=
"merchantsList"
:rankingDataObj=
"merchantsDataObj"
:isMultiple=
"false"
@
goDetailPage=
"goDetailPage"
></ranking>
<ranking
:rankingsList=
"merchantsList"
:rankingDataObj=
"merchantsDataObj"
:isMultiple=
"false"
@
goDetailPage=
"goDetailPage"
></ranking>
</div>
</div>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,7 +36,8 @@ export default {
...
@@ -33,7 +36,8 @@ export default {
// 采购额排名下拉框显示
// 采购额排名下拉框显示
isShow
:
false
,
isShow
:
false
,
// 采购额排名下拉框数据
// 采购额排名下拉框数据
purchaseList
:
[{
purchaseList
:
[
{
labelName
:
'总采购额排行-商城采购'
,
labelName
:
'总采购额排行-商城采购'
,
value
:
'shopranking'
value
:
'shopranking'
},
},
...
@@ -48,7 +52,8 @@ export default {
...
@@ -48,7 +52,8 @@ export default {
{
{
labelName
:
'近三月采购额排行-自采'
,
labelName
:
'近三月采购额排行-自采'
,
value
:
'selfrankingnear3'
value
:
'selfrankingnear3'
}],
}
],
rankingList
:
{},
rankingList
:
{},
// 采购额排名当前选中值
// 采购额排名当前选中值
purchase
:
{},
purchase
:
{},
...
@@ -188,5 +193,10 @@ export default {
...
@@ -188,5 +193,10 @@ export default {
.merchant-box
{
.merchant-box
{
margin-top
:
2.06vh
;
margin-top
:
2.06vh
;
}
}
.empty
{
height
:
19vh
;
display
:
flex
;
align-items
:
center
;
}
}
}
</
style
>
</
style
>
src/views/solar/PurchaseTrends.vue
View file @
ab7c4c1
...
@@ -73,7 +73,10 @@ export default {
...
@@ -73,7 +73,10 @@ export default {
this
.
dataList
=
[]
this
.
dataList
=
[]
const
_data
=
await
this
.
api
.
solar
.
getAllPurchaseTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_data
=
await
this
.
api
.
solar
.
getAllPurchaseTrend
({
year
:
this
.
$store
.
state
.
app
.
solarYear
})
const
_dataList
=
_data
.
data
.
dataList
const
_dataList
=
_data
.
data
.
dataList
if
(
!
_dataList
.
length
)
this
.
isEmpty
=
true
if
(
!
_dataList
.
length
)
{
this
.
isEmpty
=
true
return
}
_dataList
.
forEach
(
item
=>
{
_dataList
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
this
.
dataList
.
push
({
month
:
item
.
statDate
,
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