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 6e681226
authored
Jul 18, 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
867f9fe7
f922bc54
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
src/views/home/solar/PurchaseProgress.vue
src/views/solarDetail/MerchantsPropotion.vue
src/views/solarDetail/index.vue
src/views/home/solar/PurchaseProgress.vue
View file @
6e68122
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
this
.
openMessage
(
'获取采购进度占比失败'
)
this
.
openMessage
(
'获取采购进度占比失败'
)
return
return
}
}
this
.
progressData
=
res
.
data
.
dataList
||
[]
this
.
progressData
=
res
.
data
.
dataList
.
slice
(
0
,
3
)
||
[]
})
})
}
}
}
}
...
...
src/views/solarDetail/MerchantsPropotion.vue
View file @
6e68122
...
@@ -59,21 +59,25 @@ export default {
...
@@ -59,21 +59,25 @@ export default {
},
},
shopmallLegend
:
[
shopmallLegend
:
[
{
{
name
:
'goodsname'
name
:
'goodsname'
,
width
:
'7vw'
},
},
{
{
name
:
'rate'
,
name
:
'rate'
,
type
:
'decimal'
type
:
'decimal'
,
width
:
'3vw'
},
},
{
{
name
:
'purchaseamount'
,
name
:
'purchaseamount'
,
hasIcon
:
'¥'
,
hasIcon
:
'¥'
,
type
:
'number'
type
:
'number'
,
width
:
'5vw'
},
},
{
{
name
:
'averprice'
,
name
:
'averprice'
,
hasIcon
:
'均价¥'
,
hasIcon
:
'均价¥'
,
type
:
'number'
type
:
'number'
,
width
:
'5vw'
}
}
],
],
// 自采饼图结构
// 自采饼图结构
...
@@ -85,21 +89,25 @@ export default {
...
@@ -85,21 +89,25 @@ export default {
},
},
selfPickLegend
:
[
selfPickLegend
:
[
{
{
name
:
'goodsname'
name
:
'goodsname'
,
width
:
'7vw'
},
},
{
{
name
:
'rate'
,
name
:
'rate'
,
type
:
'decimal'
type
:
'decimal'
,
width
:
'3vw'
},
},
{
{
name
:
'purchaseamount'
,
name
:
'purchaseamount'
,
hasIcon
:
'¥'
,
hasIcon
:
'¥'
,
type
:
'number'
type
:
'number'
,
width
:
'5vw'
},
},
{
{
name
:
'averprice'
,
name
:
'averprice'
,
hasIcon
:
'均价¥'
,
hasIcon
:
'均价¥'
,
type
:
'number'
type
:
'number'
,
width
:
'5vw'
}
}
]
]
}
}
...
...
src/views/solarDetail/index.vue
View file @
6e68122
...
@@ -112,12 +112,11 @@ export default {
...
@@ -112,12 +112,11 @@ export default {
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
this
.
tabObject
=
this
.
$route
.
query
this
.
tabObject
=
this
.
$route
.
query
const
{
year
}
=
this
.
$route
.
query
const
{
merchantid
,
purchaseType
,
year
}
=
this
.
$route
.
query
this
.
defaultYear
=
year
const
{
merchantid
,
purchaseType
}
=
this
.
$route
.
query
const
_merchantList
=
await
this
.
getAllRanking
(
purchaseType
)
const
_merchantList
=
await
this
.
getAllRanking
(
purchaseType
)
this
.
merchantList
=
_merchantList
this
.
merchantList
=
_merchantList
this
.
purchaseType
=
purchaseType
this
.
purchaseType
=
purchaseType
this
.
defaultYear
=
year
this
.
getMerchantGoodsRatio
(
merchantid
)
this
.
getMerchantGoodsRatio
(
merchantid
)
this
.
getMerchantPurchase
(
merchantid
)
this
.
getMerchantPurchase
(
merchantid
)
this
.
getMerchantPurchaseTrend
(
merchantid
)
this
.
getMerchantPurchaseTrend
(
merchantid
)
...
...
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