|
@ -108,7 +108,6 @@ new Vue({
|
|
|
// console.log(datas[1])
|
|
|
vm.middleData1 = toThousands(datas[1].obj.VIEW_22_0004[0].HC_22_1001/10000);
|
|
|
vm.middleData3 = toThousands(datas[1].obj.VIEW_22_0004[0].HC_22_1006/10000);
|
|
|
debugger
|
|
|
if(vm.middleData3 != "0"){
|
|
|
vm.middleData2 = ((datas[1].obj.VIEW_22_0004[0].HC_22_1001-datas[1].obj.VIEW_22_0004[0].HC_22_1006)/datas[1].obj.VIEW_22_0004[0].HC_22_1006*100).toFixed(2);
|
|
|
}else{
|
|
@ -364,21 +363,38 @@ document.getElementById("full").onclick = function (event) {
|
|
|
console.log()
|
|
|
if($("#full").attr('src') == "../images/full-q.png"){
|
|
|
$("#full").attr('src',"../images/full-s.png")
|
|
|
FullScreen(app);
|
|
|
}else{
|
|
|
$("#full").attr('src',"../images/full-q.png")
|
|
|
exitfullscreen()
|
|
|
}
|
|
|
FullScreen(app);
|
|
|
}
|
|
|
function FullScreen(el) {
|
|
|
var isFullscreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
|
|
|
if (!isFullscreen) { //进入全屏,多重短路表达式
|
|
|
(el.requestFullscreen && el.requestFullscreen()) ||
|
|
|
(el.mozRequestFullScreen && el.mozRequestFullScreen()) ||
|
|
|
(el.webkitRequestFullscreen && el.webkitRequestFullscreen()) || (el.msRequestFullscreen && el.msRequestFullscreen());
|
|
|
|
|
|
} else { //退出全屏,三目运算符
|
|
|
document.exitFullscreen ? document.exitFullscreen() :
|
|
|
document.mozCancelFullScreen ? document.mozCancelFullScreen() :
|
|
|
document.webkitExitFullscreen ? document.webkitExitFullscreen() : '';
|
|
|
function FullScreen() {
|
|
|
var el = document.documentElement;
|
|
|
var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen; //定义不同浏览器的全屏API
|
|
|
//执行全屏
|
|
|
if (typeof rfs != "undefined" && rfs) {
|
|
|
debugger
|
|
|
rfs.call(el);
|
|
|
} else if (typeof window.ActiveXObject != "undefined") {
|
|
|
var wscript = new ActiveXObject("WScript.Shell");
|
|
|
if (wscript != null) {
|
|
|
debugger
|
|
|
wscript.SendKeys("{F11}");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function exitfullscreen() { //退出全屏
|
|
|
if (document.exitFullscreen) {
|
|
|
document.exitFullscreen();
|
|
|
}
|
|
|
else if (document.mozCancelFullScreen) {
|
|
|
document.mozCancelFullScreen();
|
|
|
}
|
|
|
else if (document.webkitCancelFullScreen) {
|
|
|
document.webkitCancelFullScreen();
|
|
|
}
|
|
|
else if (document.msExitFullscreen) {
|
|
|
document.msExitFullscreen();
|
|
|
}
|
|
|
}
|