Commit c86694fc authored by 李苏's avatar 李苏 💬

对接大屏接口

parent effb7a94
...@@ -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
...@@ -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>
......
...@@ -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>
......
...@@ -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)
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment