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
c86694fc
Commit
c86694fc
authored
Mar 10, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接大屏接口
parent
effb7a94
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
26 deletions
+34
-26
api.js
gavel/src/main/resources/static/js/dashboard/api.js
+22
-0
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+4
-7
fourth.html
...main/resources/templates/views/kmes/dashboard/fourth.html
+4
-9
second.html
...main/resources/templates/views/kmes/dashboard/second.html
+2
-5
third.html
.../main/resources/templates/views/kmes/dashboard/third.html
+2
-5
No files found.
gavel/src/main/resources/static/js/dashboard/api.js
View file @
c86694fc
...
@@ -216,4 +216,26 @@
...
@@ -216,4 +216,26 @@
console
.
log
(
"请求失败"
)
console
.
log
(
"请求失败"
)
}
}
});
});
}
/* pdf */
function
getPdf
(
time
){
HTTP
.
post
(
"getPdf"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
pdf
pdfshow
(
data
,
"gylct"
,
time
||
20000
)
}
else
{
console
.
log
(
"请求失败"
)
}
});
}
/* video */
function
getVideo
(){
HTTP
.
post
(
"getVideo"
,
{},
function
(
result
)
{
if
(
result
[
'success'
])
{
let
data
=
result
.
data
.
video
$
(
"video"
).
attr
(
'src'
,
data
)
}
else
{
console
.
log
(
"请求失败"
)
}
});
}
}
\ No newline at end of file
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
c86694fc
...
@@ -92,11 +92,7 @@
...
@@ -92,11 +92,7 @@
</div>
</div>
<div
class=
"center-cen fl"
>
<div
class=
"center-cen fl"
>
<div
class=
"cen-top rightTop border"
>
<div
class=
"cen-top rightTop border"
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
loop=
"loop"
>
<source
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
type=
"video/mp4"
>
<object
data=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
<embed
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
</object>
</video>
</video>
</div>
</div>
<div
class=
"cen-bottom rightTop border"
>
<div
class=
"cen-bottom rightTop border"
>
...
@@ -335,7 +331,6 @@
...
@@ -335,7 +331,6 @@
rowHeight
:
46
//li的高度
rowHeight
:
46
//li的高度
});
});
/* 调用 */
/* 调用 */
pdfshow
(
"D:
\\
projectinfo
\\
kwell-mes
\\
gavel
\\
src
\\
main
\\
resources
\\
static
\\
pdf
\\
dashboard.pdf"
,
"gylct"
,
20000
)
function
getAlldata
(){
function
getAlldata
(){
apisetTimeProductionEchart
(
myChartSdcl
)
apisetTimeProductionEchart
(
myChartSdcl
)
apisetDailyDataEchart
(
chartRpcdcsj
)
apisetDailyDataEchart
(
chartRpcdcsj
)
...
@@ -346,9 +341,11 @@
...
@@ -346,9 +341,11 @@
apiqueryringpoint
()
apiqueryringpoint
()
}
}
getAlldata
()
getAlldata
()
getVideo
()
getPdf
(
2000
)
setInterval
(
function
(){
setInterval
(
function
(){
getAlldata
()
getAlldata
()
},
1000
*
60
*
5
)
},
1000
*
60
)
});
});
</script>
</script>
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/fourth.html
View file @
c86694fc
...
@@ -52,13 +52,7 @@
...
@@ -52,13 +52,7 @@
<div
class=
"center"
>
<div
class=
"center"
>
<div
class=
"center-left fl"
style=
"width: 33.3%"
>
<div
class=
"center-left fl"
style=
"width: 33.3%"
>
<div
class=
"left-top rightTop border"
>
<div
class=
"left-top rightTop border"
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
loop=
"loop"
>
<source
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
type=
"video/mp4"
>
<!-- <source src="http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4.ogg" type="video/ogg">-->
<!-- <source src="http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4.webm" type="video/webm">-->
<object
data=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
<embed
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
</object>
</video>
</video>
</div>
</div>
<div
class=
"left-cen rightTop border"
>
<div
class=
"left-cen rightTop border"
>
...
@@ -364,7 +358,8 @@
...
@@ -364,7 +358,8 @@
rowHeight
:
46
//li的高度
rowHeight
:
46
//li的高度
});
});
/* 调用 */
/* 调用 */
pdfshow
(
"D:
\\
projectinfo
\\
kwell-mes
\\
gavel
\\
src
\\
main
\\
resources
\\
static
\\
pdf
\\
dashboard.pdf"
,
"gylct"
,
20000
)
getPdf
(
20000
)
getVideo
()
/* */
/* */
function
getAlldata
(){
function
getAlldata
(){
apisetTimeProductionEchart
(
myChartSdcl
)
apisetTimeProductionEchart
(
myChartSdcl
)
...
@@ -380,7 +375,7 @@
...
@@ -380,7 +375,7 @@
getAlldata
()
getAlldata
()
setInterval
(
function
(){
setInterval
(
function
(){
getAlldata
()
getAlldata
()
},
1000
*
60
*
5
)
},
1000
*
60
)
});
});
</script>
</script>
<script>
<script>
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/second.html
View file @
c86694fc
...
@@ -26,11 +26,7 @@
...
@@ -26,11 +26,7 @@
<div
class=
"center"
>
<div
class=
"center"
>
<div
class=
"center-cen fl"
>
<div
class=
"center-cen fl"
>
<div
class=
"cen-top rightTop border"
>
<div
class=
"cen-top rightTop border"
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
loop=
"loop"
>
<source
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
type=
"video/mp4"
>
<object
data=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
<embed
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
</object>
</video>
</video>
</div>
</div>
<div
class=
"cen-bottom rightTop border"
style=
"width: calc(50% - 0.1rem);float: left;margin-right: 0.1rem"
>
<div
class=
"cen-bottom rightTop border"
style=
"width: calc(50% - 0.1rem);float: left;margin-right: 0.1rem"
>
...
@@ -270,6 +266,7 @@
...
@@ -270,6 +266,7 @@
speed
:
60
,
//数值越大,速度越慢
speed
:
60
,
//数值越大,速度越慢
rowHeight
:
46
//li的高度
rowHeight
:
46
//li的高度
});
});
getVideo
()
function
getAlldata
(){
function
getAlldata
(){
apisetTimeProductionEchart
(
myChartSdcl
)
apisetTimeProductionEchart
(
myChartSdcl
)
apisetDailyDataEchart
(
chartRpcdcsj
)
apisetDailyDataEchart
(
chartRpcdcsj
)
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/third.html
View file @
c86694fc
...
@@ -233,11 +233,7 @@
...
@@ -233,11 +233,7 @@
</div>
</div>
<div
class=
"center-cen fr"
style=
"width: 60%"
>
<div
class=
"center-cen fr"
style=
"width: 60%"
>
<div
class=
"cen-top rightTop border"
>
<div
class=
"cen-top rightTop border"
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
>
<video
width=
"100%"
height=
"100%"
controls
id=
"firstVideo"
autoplay=
"autoplay"
muted
loop=
"loop"
>
<source
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
type=
"video/mp4"
>
<object
data=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
<embed
src=
"D:\\projectinfo\\kwell-mes\\gavel\\src\\main\\resources\\static\\video\\dashboard.mp4"
width=
"100%"
height=
"100%"
>
</object>
</video>
</video>
</div>
</div>
<div
class=
"cen-bottom rightTop border"
style=
"width: calc(50% - 0.1rem);float: left;margin-right: 0.1rem"
>
<div
class=
"cen-bottom rightTop border"
style=
"width: calc(50% - 0.1rem);float: left;margin-right: 0.1rem"
>
...
@@ -319,6 +315,7 @@
...
@@ -319,6 +315,7 @@
apiqueryringpoint
()
apiqueryringpoint
()
}
}
getAlldata
()
getAlldata
()
getVideo
()
setInterval
(
function
(){
setInterval
(
function
(){
getAlldata
()
getAlldata
()
},
1000
*
60
*
5
)
},
1000
*
60
*
5
)
...
...
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