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
a9618466
Commit
a9618466
authored
Mar 10, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏接口调整对接
parent
00928b60
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
18 deletions
+71
-18
public.css
gavel/src/main/resources/static/css/dashboard/public.css
+4
-2
api.js
gavel/src/main/resources/static/js/dashboard/api.js
+10
-3
echarts.js
gavel/src/main/resources/static/js/dashboard/echarts.js
+45
-1
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+4
-3
fourth.html
...main/resources/templates/views/kmes/dashboard/fourth.html
+5
-5
second.html
...main/resources/templates/views/kmes/dashboard/second.html
+0
-1
third.html
.../main/resources/templates/views/kmes/dashboard/third.html
+3
-3
No files found.
gavel/src/main/resources/static/css/dashboard/public.css
View file @
a9618466
...
@@ -40,8 +40,10 @@ ul,ol{
...
@@ -40,8 +40,10 @@ ul,ol{
.allnav
{
.allnav
{
height
:
100%
;
height
:
100%
;
}
}
#chartJdshCirle
{
height
:
1.6rem
!important
;
width
:
1.6rem
!important
;
}
/*第三栏头部*/
/*第三栏头部*/
.rightTop
{
.rightTop
{
width
:
100%
;
width
:
100%
;
...
...
gavel/src/main/resources/static/js/dashboard/api.js
View file @
a9618466
...
@@ -141,23 +141,30 @@
...
@@ -141,23 +141,30 @@
});
});
}
}
/* 静电手环 */
/* 静电手环 */
function
apiqueryringpoint
(){
function
apiqueryringpoint
(
chartJdshCirle
){
let
$point
=
$
(
".allnav-right ul li"
).
children
()
let
$point
=
$
(
".allnav-right ul li"
).
children
()
let
$point1
=
$
(
".allnav-right ul li>div"
).
children
()
let
$point1
=
$
(
".allnav-right ul li>div"
).
children
()
console
.
log
(
$point
)
let
shdata
=
{}
shdata
.
g
=
0
shdata
.
r
=
0
shdata
.
s
=
0
HTTP
.
post
(
"/mes/kmes/point/queryringpoint"
,
{},
function
(
result
)
{
HTTP
.
post
(
"/mes/kmes/point/queryringpoint"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
records
let
data
=
result
.
data
.
records
data
.
forEach
(
function
(
e
,
index
){
data
.
forEach
(
function
(
e
,
index
){
if
(
e
.
value
==
0
){
if
(
e
.
value
==
0
){
shdata
.
g
++
$
(
$point
[
index
]).
css
(
"background-color"
,
"greenyellow"
);
$
(
$point
[
index
]).
css
(
"background-color"
,
"greenyellow"
);
}
else
if
(
e
.
value
==
1
){
}
else
if
(
e
.
value
==
1
){
$
(
$point
[
index
]).
css
(
"background-color"
,
"red"
);
$
(
$point
[
index
]).
css
(
"background-color"
,
"red"
);
shdata
.
r
++
}
else
{
}
else
{
$
(
$point
[
index
]).
css
(
"background-color"
,
"skyblue"
);
$
(
$point
[
index
]).
css
(
"background-color"
,
"skyblue"
);
shdata
.
s
++
}
}
$
(
$point1
[
index
]).
html
(
e
.
itemId
)
$
(
$point1
[
index
]).
html
(
e
.
itemId
)
})
})
setchartJdshCirle
(
chartJdshCirle
,
shdata
)
}
else
{
}
else
{
console
.
log
(
"请求失败"
)
console
.
log
(
"请求失败"
)
}
}
...
...
gavel/src/main/resources/static/js/dashboard/echarts.js
View file @
a9618466
...
@@ -2206,7 +2206,51 @@ function setDailyDataEchart(chart,apidata) {
...
@@ -2206,7 +2206,51 @@ function setDailyDataEchart(chart,apidata) {
chart
.
setOption
(
ops
,
true
);
chart
.
setOption
(
ops
,
true
);
}
}
/* 手环展示 */
function
setchartJdshCirle
(
chartJdshCirle
,
apidata
){
var
option
=
{
color
:[
'greenyellow'
,
'red'
,
'skyblue'
],
tooltip
:
{
trigger
:
'item'
},
legend
:
{
top
:
'5%'
,
left
:
'center'
},
series
:
[
{
type
:
'pie'
,
radius
:
[
'40%'
,
'70%'
],
avoidLabelOverlap
:
false
,
itemStyle
:
{
borderRadius
:
10
,
borderColor
:
'#fff'
,
borderWidth
:
2
},
label
:
{
show
:
false
,
position
:
'center'
},
emphasis
:
{
label
:
{
show
:
true
,
fontSize
:
'40'
,
fontWeight
:
'bold'
}
},
labelLine
:
{
show
:
false
},
data
:
[
{
value
:
apidata
.
g
||
0
},
{
value
:
apidata
.
r
||
0
},
{
value
:
apidata
.
s
||
0
},
]
}
]
};
chartJdshCirle
.
setOption
(
option
);
}
/*合格率*/
/*合格率*/
function
setHglEchart
(
chart
,
apidata
)
{
function
setHglEchart
(
chart
,
apidata
)
{
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
a9618466
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<div
class=
"bottom-b"
>
<div
class=
"bottom-b"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
class=
"allnav-left"
>
<div
class=
"allnav-left"
>
<div
class=
"circle
circle-normal
"
id=
"chartJdshCirle"
></div>
<div
class=
"circle "
id=
"chartJdshCirle"
></div>
<ul
class=
"allnav-circle"
>
<ul
class=
"allnav-circle"
>
<li>
<li>
<span
class=
"circle circle-small circle-normal"
></span>
<span
class=
"circle circle-small circle-normal"
></span>
...
@@ -320,7 +320,7 @@
...
@@ -320,7 +320,7 @@
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartJdshCirle
=
$
(
"#chartJdshCirle"
);
var
chartJdshCirle
=
echarts
.
init
(
document
.
getElementById
(
"chartJdshCirle"
)
);
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
// setHglEchart(chartHgl);/*合格率*/
// setHglEchart(chartHgl);/*合格率*/
...
@@ -330,6 +330,7 @@
...
@@ -330,6 +330,7 @@
speed
:
60
,
//数值越大,速度越慢
speed
:
60
,
//数值越大,速度越慢
rowHeight
:
46
//li的高度
rowHeight
:
46
//li的高度
});
});
/* 调用 */
/* 调用 */
function
getAlldata
(){
function
getAlldata
(){
apisetTimeProductionEchart
(
myChartSdcl
)
apisetTimeProductionEchart
(
myChartSdcl
)
...
@@ -338,7 +339,7 @@
...
@@ -338,7 +339,7 @@
apisetPieDailyCharty
(
chartYjh
)
apisetPieDailyCharty
(
chartYjh
)
apisetHglEchart
(
chartHgl
)
apisetHglEchart
(
chartHgl
)
apiqueryWo
()
apiqueryWo
()
apiqueryringpoint
()
apiqueryringpoint
(
chartJdshCirle
)
}
}
getAlldata
()
getAlldata
()
getVideo
()
getVideo
()
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/fourth.html
View file @
a9618466
...
@@ -74,15 +74,15 @@
...
@@ -74,15 +74,15 @@
<div
class=
"bottom-b"
>
<div
class=
"bottom-b"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
class=
"allnav-left"
>
<div
class=
"allnav-left"
>
<div
class=
"circle
circle-normal
"
id=
"chartJdshCirle"
></div>
<div
class=
"circle"
id=
"chartJdshCirle"
></div>
<ul
class=
"allnav-circle"
>
<ul
class=
"allnav-circle"
>
<li>
<li>
<span
class=
"circle circle-small circle-normal"
></span>
<span
class=
"circle circle-small circle-normal"
></span>
<span>
正常
</span>
<span>
正常
</span>
</li>
</li>
<li>
<li>
<span
class=
"circle circle-small circle-
close
"
></span>
<span
class=
"circle circle-small circle-
info
"
></span>
<span>
关闭
</span>
<span>
警告
</span>
</li>
</li>
<li>
<li>
<span
class=
"circle circle-small circle-offine"
></span>
<span
class=
"circle circle-small circle-offine"
></span>
...
@@ -347,7 +347,7 @@
...
@@ -347,7 +347,7 @@
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartJdshCirle
=
$
(
"#chartJdshCirle"
);
var
chartJdshCirle
=
echarts
.
init
(
document
.
getElementById
(
"chartJdshCirle"
)
);
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setHglEchart
(
chartHgl
);
/*合格率*/
setHglEchart
(
chartHgl
);
/*合格率*/
...
@@ -368,7 +368,7 @@
...
@@ -368,7 +368,7 @@
apisetPieDailyCharty
(
chartYjh
)
apisetPieDailyCharty
(
chartYjh
)
apisetHglEchart
(
chartHgl
)
apisetHglEchart
(
chartHgl
)
apiqueryWo
()
apiqueryWo
()
apiqueryringpoint
()
apiqueryringpoint
(
chartJdshCirle
)
apiqueryWorkingWO
()
apiqueryWorkingWO
()
}
}
apiqueryWorkingWO
()
apiqueryWorkingWO
()
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/second.html
View file @
a9618466
...
@@ -256,7 +256,6 @@
...
@@ -256,7 +256,6 @@
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartJdshCirle
=
$
(
"#chartJdshCirle"
);
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setHglEchart
(
chartHgl
);
/*合格率*/
setHglEchart
(
chartHgl
);
/*合格率*/
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/third.html
View file @
a9618466
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
<div
class=
"bottom-b"
>
<div
class=
"bottom-b"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
id=
"chartJdsh"
class=
"allnav"
>
<div
class=
"allnav-left"
>
<div
class=
"allnav-left"
>
<div
class=
"circle
circle-normal
"
id=
"chartJdshCirle"
></div>
<div
class=
"circle"
id=
"chartJdshCirle"
></div>
<ul
class=
"allnav-circle"
>
<ul
class=
"allnav-circle"
>
<li>
<li>
<span
class=
"circle circle-small circle-normal"
></span>
<span
class=
"circle circle-small circle-normal"
></span>
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
));
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartRpcHgl"
));
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartRpcHgl"
));
var
chartJdshCirle
=
$
(
"#chartJdshCirle"
);
var
chartJdshCirle
=
echarts
.
init
(
document
.
getElementById
(
"chartJdshCirle"
)
);
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setRpcHglEchart
(
chartHgl
);
/*日排产&合格率*/
setRpcHglEchart
(
chartHgl
);
/*日排产&合格率*/
setPieDailyChart
(
chartRjh
,
80
);
/*日计划*/
setPieDailyChart
(
chartRjh
,
80
);
/*日计划*/
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
apisetPieDailyCharty
(
chartYjh
)
apisetPieDailyCharty
(
chartYjh
)
apisetRpcHglEchart
(
chartHgl
)
apisetRpcHglEchart
(
chartHgl
)
apiqueryWo
()
apiqueryWo
()
apiqueryringpoint
()
apiqueryringpoint
(
chartJdshCirle
)
}
}
getAlldata
()
getAlldata
()
getVideo
()
getVideo
()
...
...
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