Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
afd703c1
Commit
afd703c1
authored
Mar 22, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新改
parent
767162bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
31 deletions
+31
-31
index.css
gavel/src/main/resources/static/css/dashboard/index.css
+3
-3
echarts.js
gavel/src/main/resources/static/js/dashboard/echarts.js
+23
-24
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+5
-4
No files found.
gavel/src/main/resources/static/css/dashboard/index.css
View file @
afd703c1
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
padding
:
.1rem
.2rem
.1rem
.2rem
;
padding
:
.1rem
.2rem
.1rem
.2rem
;
}
}
.center
.center-left
{
.center
.center-left
{
width
:
30
%
;
width
:
25
%
;
padding
:
.1rem
;
padding
:
.1rem
;
/* border: 1px solid red;*/
/* border: 1px solid red;*/
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
margin-top
:
0.1rem
;
margin-top
:
0.1rem
;
}
}
.center
.center-cen
{
.center
.center-cen
{
width
:
4
0%
;
width
:
5
0%
;
padding
:
.1rem
;
padding
:
.1rem
;
}
}
.center
.center-cen
.cen-top
{
.center
.center-cen
.cen-top
{
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
}
}
.center
.center-right
{
.center
.center-right
{
width
:
30
%
;
width
:
25
%
;
padding
:
.1rem
;
padding
:
.1rem
;
}
}
...
...
gavel/src/main/resources/static/js/dashboard/echarts.js
View file @
afd703c1
...
@@ -1940,7 +1940,6 @@ $(function () {
...
@@ -1940,7 +1940,6 @@ $(function () {
});
});
/*时段产量图表*/
/*时段产量图表*/
function
setTimeProductionEchart
(
chart
,
apidata
)
{
function
setTimeProductionEchart
(
chart
,
apidata
)
{
console
.
log
(
apidata
)
if
(
apidata
){
if
(
apidata
){
var
list
=
[]
var
list
=
[]
apidata
.
xseriesList
.
forEach
(
function
(
e
,
index
){
apidata
.
xseriesList
.
forEach
(
function
(
e
,
index
){
...
@@ -2023,7 +2022,7 @@ function setTimeProductionEchart(chart,apidata) {
...
@@ -2023,7 +2022,7 @@ function setTimeProductionEchart(chart,apidata) {
type
:
'category'
,
type
:
'category'
,
data
:
dateList
,
data
:
dateList
,
axisLabel
:
{
axisLabel
:
{
interval
:
0
,
interval
:
1
,
tooltip
:
{
tooltip
:
{
show
:
true
,
show
:
true
,
},
},
...
@@ -2032,26 +2031,26 @@ function setTimeProductionEchart(chart,apidata) {
...
@@ -2032,26 +2031,26 @@ function setTimeProductionEchart(chart,apidata) {
fontSize
:
12
fontSize
:
12
},
},
color
:
'rgba(255,255,255,0.6)'
,
color
:
'rgba(255,255,255,0.6)'
,
//
formatter:function(value){
formatter
:
function
(
value
){
//
var str = "";
var
str
=
""
;
// var num = 4
; //每行显示字数
var
num
=
6
;
//每行显示字数
//
var valLength = value.length; //该项x轴字数
var
valLength
=
value
.
length
;
//该项x轴字数
//
var rowNum = Math.ceil(valLength / num); // 行数
var
rowNum
=
Math
.
ceil
(
valLength
/
num
);
// 行数
//
if(rowNum > 1) {
if
(
rowNum
>
1
)
{
//
for(var i = 0; i < rowNum; i++) {
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
//
var temp = "";
var
temp
=
""
;
//
var start = i * num;
var
start
=
i
*
num
;
//
var end = start + num;
var
end
=
start
+
num
;
//
temp = value.substring(start, end) + "\n";
temp
=
value
.
substring
(
start
,
end
)
+
"
\n
"
;
//
str += temp;
str
+=
temp
;
//
}
}
//
return str;
return
str
;
//
} else {
}
else
{
//
return value;
return
value
;
//
}
}
//
}
}
},
},
axisTick
:
{
axisTick
:
{
show
:
false
show
:
false
...
@@ -2065,8 +2064,6 @@ function setTimeProductionEchart(chart,apidata) {
...
@@ -2065,8 +2064,6 @@ function setTimeProductionEchart(chart,apidata) {
},
},
yAxis
:
[{
yAxis
:
[{
type
:
'value'
,
type
:
'value'
,
min
:
0.0
,
max
:
50.0
,
splitLine
:
{
splitLine
:
{
show
:
false
,
show
:
false
,
lineStyle
:
{
lineStyle
:
{
...
@@ -2409,10 +2406,12 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
...
@@ -2409,10 +2406,12 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
let
wglist
=
[]
let
wglist
=
[]
if
(
apidata1
&&
apidata2
){
if
(
apidata1
&&
apidata2
){
apidata1
.
forEach
(
function
(
e
){
apidata1
.
forEach
(
function
(
e
){
datelist
.
push
(
e
.
fkrq
)
hgllist
.
push
(
e
.
hgl
)
hgllist
.
push
(
e
.
hgl
)
})
})
apidata2
.
forEach
(
function
(
e
){
apidata2
.
forEach
(
function
(
e
){
console
.
log
(
e
.
jhrq
)
datelist
.
push
(
e
.
jhrq
.
slice
(
5
))
jslist
.
push
(
e
.
jhsl
)
jslist
.
push
(
e
.
jhsl
)
wglist
.
push
(
e
.
wgsl
)
wglist
.
push
(
e
.
wgsl
)
})
})
...
@@ -2574,7 +2573,7 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
...
@@ -2574,7 +2573,7 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
{
{
name
:
'合格率'
,
name
:
'合格率'
,
type
:
'line'
,
type
:
'line'
,
yAxisIndex
:
1
,
yAxisIndex
:
0
,
data
:
hgllist
||
[
20
,
30
,
90
,
30
,
29
],
data
:
hgllist
||
[
20
,
30
,
90
,
30
,
29
],
itemStyle
:{
itemStyle
:{
normal
:{
normal
:{
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
afd703c1
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</div>
</div>
</div>
</div>
<div
class=
"left-cen rightTop border"
>
<div
class=
"left-cen rightTop border"
>
<div
class=
"title"
>
日排产
达成数据
</div>
<div
class=
"title"
>
日排产
&
合格率
</div>
<div
class=
"bottom-b"
>
<div
class=
"bottom-b"
>
<div
id=
"chartRpcdcsj"
class=
"allnav"
></div>
<div
id=
"chartRpcdcsj"
class=
"allnav"
></div>
</div>
</div>
...
@@ -286,14 +286,14 @@
...
@@ -286,14 +286,14 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"right-cen border"
>
<div
class=
"right-cen border"
style=
"display: none;"
>
<div
class=
"title"
>
合格率
</div>
<div
class=
"title"
>
合格率
</div>
<div
class=
"right-cen-cent"
>
<div
class=
"right-cen-cent"
>
<div
id=
"chartHgl"
class=
"allnav"
></div>
<div
id=
"chartHgl"
class=
"allnav"
></div>
</div>
</div>
</div>
</div>
<div
class=
"right-bottom rightTop border"
>
<div
class=
"right-bottom rightTop border"
style=
"height: 6.8rem;"
>
<div
class=
"title"
>
工艺流程图
</div>
<div
class=
"title"
>
工艺流程图
</div>
<div
class=
"chat"
>
<div
class=
"chat"
>
<canvas
id=
"gylct"
style=
"width: 100%;height: 100%"
></canvas>
<canvas
id=
"gylct"
style=
"width: 100%;height: 100%"
></canvas>
...
@@ -355,8 +355,9 @@
...
@@ -355,8 +355,9 @@
}
}
/* 调用 */
/* 调用 */
function
getAlldata
(){
function
getAlldata
(){
apisetRpcHglEchart
(
chartRpcdcsj
)
apisetTimeProductionEchart
(
myChartSdcl
)
apisetTimeProductionEchart
(
myChartSdcl
)
apisetDailyDataEchart
(
chartRpcdcsj
)
//
apisetDailyDataEchart(chartRpcdcsj)
apisetPieDailyChart
(
chartRjh
)
apisetPieDailyChart
(
chartRjh
)
apisetPieDailyCharty
(
chartYjh
)
apisetPieDailyCharty
(
chartYjh
)
apisetHglEchart
(
chartHgl
)
apisetHglEchart
(
chartHgl
)
...
...
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