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
5014355e
Commit
5014355e
authored
Feb 23, 2022
by
王向前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏
parent
eccba7a5
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1247 additions
and
24 deletions
+1247
-24
KmesBoardController.java
.../java/com/gavel/kwell/controller/KmesBoardController.java
+15
-0
index.css
gavel/src/main/resources/static/css/dashboard/index.css
+43
-0
echarts.js
gavel/src/main/resources/static/js/dashboard/echarts.js
+180
-20
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+1
-1
fourth.html
...main/resources/templates/views/kmes/dashboard/fourth.html
+370
-0
index.html
.../main/resources/templates/views/kmes/dashboard/index.html
+3
-3
second.html
...main/resources/templates/views/kmes/dashboard/second.html
+303
-0
third.html
.../main/resources/templates/views/kmes/dashboard/third.html
+332
-0
No files found.
gavel/src/main/java/com/gavel/kwell/controller/KmesBoardController.java
View file @
5014355e
...
@@ -19,5 +19,20 @@ public class KmesBoardController extends BaseController {
...
@@ -19,5 +19,20 @@ public class KmesBoardController extends BaseController {
return
"kmes/dashboard/first"
;
return
"kmes/dashboard/first"
;
}
}
@RequestMapping
(
"/second"
)
public
String
interfaceSecond
()
{
return
"kmes/dashboard/second"
;
}
@RequestMapping
(
"/third"
)
public
String
interfaceThird
()
{
return
"kmes/dashboard/third"
;
}
@RequestMapping
(
"/fourth"
)
public
String
interfaceFourth
()
{
return
"kmes/dashboard/fourth"
;
}
}
}
gavel/src/main/resources/static/css/dashboard/index.css
View file @
5014355e
...
@@ -486,4 +486,47 @@
...
@@ -486,4 +486,47 @@
}
}
.border
:hover
.in
{
.border
:hover
.in
{
background
:
#0d283f
;
background
:
#0d283f
;
}
.main-second
.center
.center-cen
{
width
:
75%
;
}
.main-second
.center-right
.right-bottom
.bottom-b
{
width
:
calc
(
100%
-
0.2rem
);
height
:
2.6rem
;
margin-left
:
0.1rem
;
margin-top
:
0.1rem
;
}
.banner
{
width
:
calc
(
100%
-
.2rem
);
height
:
calc
(
100%
-
.6rem
);
margin-left
:
.1rem
;
margin-top
:
.1rem
;
padding
:
.1rem
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
.banner
.list
{
color
:
white
!important
;
width
:
6rem
;
float
:
left
;
height
:
100%
;
margin-top
:
0.1rem
;
}
.list
.listTxt
{
color
:
white
!important
;
/*width: 80%;*/
float
:
left
;
height
:
100%
;
}
.list
.listTxt
p
label
{
text-align
:
right
;
width
:
1rem
;
display
:
inline-block
;
color
:
#a9e2ff
;
}
.list
.listTxt
p
{
color
:
#a9e2ff
;
font-size
:
14px
;
line-height
:
25px
;
padding-bottom
:
0.1rem
;
}
}
\ No newline at end of file
gavel/src/main/resources/static/js/dashboard/echarts.js
View file @
5014355e
...
@@ -2232,7 +2232,7 @@ function setHglEchart(chart) {
...
@@ -2232,7 +2232,7 @@ function setHglEchart(chart) {
chart
.
setOption
(
ops
,
true
);
chart
.
setOption
(
ops
,
true
);
}
}
function
setPieDailyChart
(
chart
)
{
function
setPieDailyChart
(
chart
,
cerpent
)
{
var
ops
=
{
var
ops
=
{
color
:[
"#A2E9FF"
,
"#409eff"
],
color
:[
"#A2E9FF"
,
"#409eff"
],
tooltip
:
{
tooltip
:
{
...
@@ -2249,30 +2249,31 @@ function setPieDailyChart(chart) {
...
@@ -2249,30 +2249,31 @@ function setPieDailyChart(chart) {
type
:
'pie'
,
type
:
'pie'
,
radius
:
[
'40%'
,
'70%'
],
radius
:
[
'40%'
,
'70%'
],
avoidLabelOverlap
:
false
,
avoidLabelOverlap
:
false
,
/*label: {
hoverAnimation
:
false
,
show: false,
silent
:
true
,
position: 'center',
label
:
{
normal:{
normal
:
{
show:true,
position:"center",
formatter: '{a}\r\n{b}%',
/!* formatter:function () {
}*!/
}
},*/
/* emphasis: {
label: {
show
:
true
,
show
:
true
,
fontSize: '40',
position
:
'center'
,
fontWeight: 'bold'
formatter
:
function
(
data
){
// 设置圆饼图中间文字排版
return
"完工率
\n
"
+
(
cerpent
?(
cerpent
+
"%"
):
""
)
},
},
emphasis
:
{
disabled
:
true
,
show
:
false
,
//文字至于中间时,这里需为true
textStyle
:
{
//设置文字样式
fontSize
:
'12'
,
color
:
"#333"
}
}
}
},
*/
},
labelLine
:
{
labelLine
:
{
show
:
false
normal
:
{
show
:
false
}
},
},
data
:
[
data
:
[
{
value
:
20
,
name
:
'未完工'
},
{
value
:
20
,
name
:
'未完工'
},
{
value
:
80
,
name
:
'完工'
},
{
value
:
80
,
name
:
'完工'
},
]
]
...
@@ -2282,6 +2283,165 @@ function setPieDailyChart(chart) {
...
@@ -2282,6 +2283,165 @@ function setPieDailyChart(chart) {
chart
.
setOption
(
ops
,
true
);
chart
.
setOption
(
ops
,
true
);
}
}
function
setRpcHglEchart
(
chart
)
{
var
ops
=
{
color
:[
"#409eff"
,
"#ffd03e"
],
// tooltip: {
// trigger: 'axis',
// axisPointer: {
// type: 'cross',
// crossStyle: {
// color: '#999'
// }
// }
// },
legend
:
{
data
:
[
'计划'
,
'合格率'
],
textStyle
:{
color
:
'white'
}
},
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'3%'
,
containLabel
:
true
},
xAxis
:
[
{
type
:
'category'
,
data
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
],
axisPointer
:
{
type
:
'shadow'
},
axisTick
:{
show
:
true
,
lineStyle
:{
color
:
"white"
}
},
axisLine
:{
show
:
true
,
lineStyle
:{
color
:
"white"
}
},
axisLabel
:{
show
:
true
,
color
:
'white'
}
}
],
yAxis
:
[
{
type
:
'value'
,
name
:
'计划'
,
nameTextStyle
:{
color
:
"white"
},
splitLine
:
{
show
:
false
,
},
axisTick
:{
show
:
true
,
lineStyle
:{
color
:
'white'
,
}
},
axisLine
:{
show
:
true
,
lineStyle
:{
color
:
'white'
,
}
},
axisLabel
:{
show
:
true
,
color
:
'white'
,
formatter
:
'{value}'
}
},
{
type
:
'value'
,
name
:
'合格率'
,
min
:
0
,
max
:
100
,
interval
:
20
,
nameTextStyle
:{
color
:
"white"
},
splitLine
:
{
show
:
false
,
},
axisTick
:{
show
:
true
,
lineStyle
:{
color
:
'white'
,
}
},
axisLine
:{
show
:
true
,
lineStyle
:{
color
:
'white'
,
}
},
axisLabel
:{
show
:
true
,
color
:
'white'
,
formatter
:
'{value} %'
}
}
],
series
:
[
{
name
:
'计划'
,
type
:
'bar'
,
data
:
[
2.6
,
5.9
,
9.0
,
26.4
,
28.7
,
],
barWidth
:
30
,
itemStyle
:{
normal
:{
label
:{
show
:
true
,
position
:
"top"
,
textStyle
:{
color
:
"white"
,
}
}
}
}
},
{
name
:
'合格率'
,
type
:
'line'
,
yAxisIndex
:
1
,
data
:
[
20
,
30
,
90
,
30
,
29
],
itemStyle
:{
normal
:{
label
:{
show
:
true
,
position
:
"top"
,
textStyle
:{
color
:
"orange"
,
}
}
}
}
}
]
};
chart
.
setOption
(
ops
,
true
);
}
// function setPieYChart(chart) {
// function setPieYChart(chart) {
// var ops= {
// var ops= {
// tooltip: {
// tooltip: {
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
5014355e
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setTimeProductionEchart
(
myChartSdcl
);
/*时段产量*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setDailyDataEchart
(
chartRpcdcsj
);
/*日排产达成数据*/
setHglEchart
(
chartHgl
);
/*合格率*/
setHglEchart
(
chartHgl
);
/*合格率*/
setPieDailyChart
(
chartRjh
);
/*日计划*/
setPieDailyChart
(
chartRjh
,
80
);
/*日计划*/
setPieDailyChart
(
chartYjh
);
setPieDailyChart
(
chartYjh
);
$
(
'.myscroll'
).
myScroll
({
$
(
'.myscroll'
).
myScroll
({
speed
:
60
,
//数值越大,速度越慢
speed
:
60
,
//数值越大,速度越慢
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/fourth.html
0 → 100644
View file @
5014355e
This diff is collapsed.
Click to expand it.
gavel/src/main/resources/templates/views/kmes/dashboard/index.html
View file @
5014355e
...
@@ -17,19 +17,19 @@
...
@@ -17,19 +17,19 @@
</a>
</a>
</li>
</li>
<li>
<li>
<a
href=
"
survey.html
"
target=
"_blank"
>
<a
href=
"
kmes/dashboard/second
"
target=
"_blank"
>
<img
src=
"images/dashboard/xinyong.png"
alt=
""
>
<img
src=
"images/dashboard/xinyong.png"
alt=
""
>
<span>
展示效果二
</span>
<span>
展示效果二
</span>
</a>
</a>
</li>
</li>
<li>
<li>
<a
href=
"
index2.html
"
target=
"_blank"
>
<a
href=
"
kmes/dashboard/third
"
target=
"_blank"
>
<img
src=
"images/dashboard/fengxian.png"
alt=
""
>
<img
src=
"images/dashboard/fengxian.png"
alt=
""
>
<span>
展示效果三
</span>
<span>
展示效果三
</span>
</a>
</a>
</li>
</li>
<li>
<li>
<a
href=
"
index3.html
"
target=
"_blank"
>
<a
href=
"
kmes/dashboard/fourth
"
target=
"_blank"
>
<img
src=
"images/dashboard/chanye.png"
alt=
""
>
<img
src=
"images/dashboard/chanye.png"
alt=
""
>
<span>
展示效果四
</span>
<span>
展示效果四
</span>
</a>
</a>
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/second.html
0 → 100644
View file @
5014355e
This diff is collapsed.
Click to expand it.
gavel/src/main/resources/templates/views/kmes/dashboard/third.html
0 → 100644
View file @
5014355e
This diff is collapsed.
Click to expand it.
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