Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
fa7e68db
Commit
fa7e68db
authored
Oct 27, 2024
by
lyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
echarts图表显示问题
parent
7f70d060
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
8 deletions
+39
-8
HPBI003.jsp
src/main/webapp/HP/BI/HPBI003.jsp
+39
-8
No files found.
src/main/webapp/HP/BI/HPBI003.jsp
View file @
fa7e68db
...
...
@@ -265,7 +265,9 @@
queryXMinfoList
:[],
dataList
:[
'项目名称'
,
'计划完成时间'
,
'计划产量'
,
'实际产量'
,
'生产进度'
,
'发货进度'
],
testList
:[]
testList
:[],
extremes
:{},
};
},
mounted
()
{
...
...
@@ -468,12 +470,33 @@
IPLAT
.
EiCommunicator
.
send
(
'HPBI003'
,
'queryZHCLInfo'
,
inInfo
,
{
onSuccess
:
function
(
res
)
{
_this
.
queryZHCLInfoList
=
res
.
extAttr
.
result
;
_this
.
queryZHCLInfoList
.
forEach
(
item
=>
{
item
.
label
=
{
show
:
true
,
position
:
'top'
};
// _this.queryZHCLInfoList.forEach(item => {
// item.label = {
// show: true,
// position: 'top'
// };
// });
var
overallMax
=
-
Infinity
;
var
overallMin
=
Infinity
;
_this
.
queryZHCLInfoList
.
forEach
(
series
=>
{
series
.
data
.
forEach
(
value
=>
{
if
(
value
>
overallMax
)
{
overallMax
=
value
;
// 更新整体最大值
}
if
(
value
<
overallMin
)
{
overallMin
=
value
;
// 更新整体最小值
}
});
});
_this
.
extremes
=
{
max
:
overallMax
,
min
:
overallMin
};
console
.
log
(
'extremes'
,
_this
.
extremes
);
console
.
log
(
'queryZHCLInfoArray'
,
_this
.
queryZHCLInfoList
)
_this
.
queryZHCLInfoArray
=
res
.
extAttr
.
name
;
console
.
log
(
'queryZHCLInfoArray'
,
_this
.
queryZHCLInfoArray
)
...
...
@@ -494,6 +517,9 @@
color
:
'#A4B3C5'
,
fontSize
:
14
,
},
tooltip
:{
trigger
:
'axis'
},
legend
:
{
data
:
this
.
queryZHCLInfoArray
,
textStyle
:
{
...
...
@@ -513,9 +539,14 @@
data
:
this
.
queryZHCLInfoDate
},
yAxis
:
{
type
:
'value'
type
:
'value'
,
max
:
this
.
extremes
.
max
+
1
,
min
:
this
.
extremes
.
min
,
axisLabel
:
{
show
:
false
}
},
series
:
this
.
queryZHCLInfoList
series
:
this
.
queryZHCLInfoList
,
}
},
...
...
Write
Preview
Markdown
is supported
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