Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
c42c3b71
Commit
c42c3b71
authored
Aug 08, 2022
by
季圣华
Browse files
给首页数据统计接口增加数据角色判断
parent
fe6682bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/dashboard/IndexChart.vue
View file @
c42c3b71
...
@@ -148,6 +148,7 @@
...
@@ -148,6 +148,7 @@
import
{
getBuyAndSaleStatistics
,
buyOrSalePrice
,
getPlatformConfigByKey
}
from
'
@/api/api
'
import
{
getBuyAndSaleStatistics
,
buyOrSalePrice
,
getPlatformConfigByKey
}
from
'
@/api/api
'
import
{
handleIntroJs
}
from
"
@/utils/util
"
import
{
handleIntroJs
}
from
"
@/utils/util
"
import
{
getAction
,
postAction
}
from
'
../../api/manage
'
import
{
getAction
,
postAction
}
from
'
../../api/manage
'
import
Vue
from
'
vue
'
export
default
{
export
default
{
name
:
"
IndexChart
"
,
name
:
"
IndexChart
"
,
...
@@ -199,12 +200,12 @@
...
@@ -199,12 +200,12 @@
},
},
methods
:
{
methods
:
{
initInfo
()
{
initInfo
()
{
getBuyAndSaleStatistics
(
null
).
then
((
res
)
=>
{
getBuyAndSaleStatistics
(
{
"
roleType
"
:
Vue
.
ls
.
get
(
'
roleType
'
)}
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
this
.
statistics
=
res
.
data
;
this
.
statistics
=
res
.
data
;
}
}
})
})
buyOrSalePrice
(
null
).
then
(
res
=>
{
buyOrSalePrice
(
{
"
roleType
"
:
Vue
.
ls
.
get
(
'
roleType
'
)}
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
this
.
buyPriceData
=
res
.
data
.
buyPriceList
;
this
.
buyPriceData
=
res
.
data
.
buyPriceList
;
this
.
salePriceData
=
res
.
data
.
salePriceList
;
this
.
salePriceData
=
res
.
data
.
salePriceList
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment