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
8d495143
Commit
8d495143
authored
Mar 24, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口
parent
4a65bae7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
6 deletions
+37
-6
api.js
gavel/src/main/resources/static/js/dashboard/api.js
+26
-0
echarts.js
gavel/src/main/resources/static/js/dashboard/echarts.js
+2
-2
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+3
-1
fourth.html
...main/resources/templates/views/kmes/dashboard/fourth.html
+2
-1
second.html
...main/resources/templates/views/kmes/dashboard/second.html
+2
-1
third.html
.../main/resources/templates/views/kmes/dashboard/third.html
+2
-1
No files found.
gavel/src/main/resources/static/js/dashboard/api.js
View file @
8d495143
/* 获取真实数据 */
function
apiCurProZtsl
(
chart
){
HTTP
.
post
(
"queryCurProZtsl"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
records
let
newdata
=
[]
newdata
.
push
(
data
[
"KWELL002"
]
||
0
)
newdata
.
push
(
data
[
"KWELL003"
]
||
0
)
newdata
.
push
(
data
[
"KWELL004"
]
||
0
)
newdata
.
push
(
data
[
"KWELL005"
]
||
0
)
setproduceEchart
(
chart
,
newdata
)
}
else
{
console
.
log
(
"请求失败"
)
}
});
}
//安全生产天数
function
apigetscts
(
dom
){
HTTP
.
post
(
"querySafeDays"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
records
dom
.
text
(
"安全生产天数"
+
data
||
'0'
+
"天"
)
}
else
{
console
.
log
(
"请求失败"
)
}
});
}
//时段产量
function
apisetTimeProductionEchart
(
myChartSdcl
){
HTTP
.
post
(
"queryWeekPcsl"
,
{},
function
(
result
)
{
...
...
gavel/src/main/resources/static/js/dashboard/echarts.js
View file @
8d495143
...
...
@@ -2025,7 +2025,7 @@ chart.setOption(option, true);
}
/*在制品状态图表*/
function
setproduceEchart
(
chart
)
{
function
setproduceEchart
(
chart
,
apidata
)
{
option
=
{
barWidth
:
30
,
color
:
[
"#A2E9FF"
,
"#409eff"
],
...
...
@@ -2081,7 +2081,7 @@ function setproduceEchart(chart) {
},
series
:
[
{
data
:
[
120
,
200
,
150
,
80
],
data
:
apidata
||
[
120
,
200
,
150
,
80
],
type
:
'bar'
,
label
:
{
show
:
true
,
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
8d495143
...
...
@@ -31,7 +31,7 @@
<div
style=
"width: 100%;height: 50%;"
>
数字化柔性自动生产车间看板
</div>
<div
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
<div
id=
"aqscts"
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
安全生产天数:0
</div>
</div>
...
...
@@ -371,6 +371,8 @@
}
/* 调用 */
function
getAlldata
(){
apigetscts
(
$
(
"#aqscts"
))
apiCurProZtsl
(
chartTzzp
)
apisetRpcHglEchart
(
chartRpcdcsj
,
'rcl'
)
// apisetTimeProductionEchart(myChartSdcl)
// apisetDailyDataEchart(chartRpcdcsj)
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/fourth.html
View file @
8d495143
...
...
@@ -43,7 +43,7 @@
<div
style=
"width: 100%;height: 50%;"
>
数字化柔性自动生产车间看板
</div>
<div
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
<div
id=
"aqscts"
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
安全生产天数:0
</div>
</div>
...
...
@@ -388,6 +388,7 @@
chartJdshCirle
.
resize
()
}
function
getAlldata
(){
apigetscts
(
$
(
"#aqscts"
))
apisetTimeProductionEchart
(
myChartSdcl
)
apisetDailyDataEchart
(
chartRpcdcsj
)
apisetPieDailyChart
(
chartRjh
)
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/second.html
View file @
8d495143
...
...
@@ -17,7 +17,7 @@
<div
style=
"width: 100%;height: 50%;"
>
数字化柔性自动生产车间看板
</div>
<div
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
<div
id=
"aqscts"
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
安全生产天数:0
</div>
</div>
...
...
@@ -275,6 +275,7 @@
});
getVideo
()
function
getAlldata
(){
apigetscts
(
$
(
"#aqscts"
))
apisetTimeProductionEchart
(
myChartSdcl
)
apisetDailyDataEchart
(
chartRpcdcsj
)
apisetPieDailyChart
(
chartRjh
)
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/third.html
View file @
8d495143
...
...
@@ -31,7 +31,7 @@
<div
style=
"width: 100%;height: 50%;"
>
数字化柔性自动生产车间看板
</div>
<div
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
<div
id=
"aqscts"
style=
"width: 100%;font-size: .2rem;height: .3rem;line-height: .3rem;margin-top: -0.2rem;"
>
安全生产天数:0
</div>
</div>
...
...
@@ -332,6 +332,7 @@
chartJdshCirle
.
resize
()
}
function
getAlldata
(){
apigetscts
(
$
(
"#aqscts"
))
apisetTimeProductionEchart
(
myChartSdcl
)
apisetPieDailyChart
(
chartRjh
)
apisetPieDailyCharty
(
chartYjh
)
...
...
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