|
|
|
|
@ -7,8 +7,17 @@
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css"/>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
<style th:inline="css">
|
|
|
|
|
html,
|
|
|
|
|
body {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
margin: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body.gray-bg {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background: linear-gradient(90deg, #365280 0%, #1B4CAF 50%, #202845 100%);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
@ -18,6 +27,11 @@
|
|
|
|
|
.search-collapse {
|
|
|
|
|
background: linear-gradient(90deg, #365280 0%, #1B4CAF 50%, #202845 100%);
|
|
|
|
|
color: #fff;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container-div {
|
|
|
|
|
height: calc(100vh - 5vw);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-layout-west,
|
|
|
|
|
@ -36,21 +50,21 @@
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 3.2vw;
|
|
|
|
|
height: 4.2vw;
|
|
|
|
|
min-height: 44px;
|
|
|
|
|
margin: 0 0 0.8vw;
|
|
|
|
|
padding: 0 1.4vw;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
|
|
|
background: rgba(1, 36, 71, 0.42);
|
|
|
|
|
border: 0;
|
|
|
|
|
background: url([[@{/img/title.png}]]) center / 80% auto no-repeat;
|
|
|
|
|
color: #fff;
|
|
|
|
|
box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.12);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.monitor-header::after {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 1.2vw;
|
|
|
|
|
right: 1.2vw;
|
|
|
|
|
left: 10%;
|
|
|
|
|
right: 10%;
|
|
|
|
|
bottom: -1px;
|
|
|
|
|
height: 2px;
|
|
|
|
|
background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
|
|
|
|
|
@ -58,13 +72,18 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.monitor-header-title {
|
|
|
|
|
font-size: 1.35vw;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
font-size: 1.8vw;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
text-align: center;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.monitor-header-time {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
@ -310,11 +329,12 @@
|
|
|
|
|
var prefix = ctx + "system/TempertureData";
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
var panehHidden = false;
|
|
|
|
|
if ($(this).width() < 769) {
|
|
|
|
|
panehHidden = true;
|
|
|
|
|
}
|
|
|
|
|
$('body').layout({initClosed: panehHidden, west__size: 245});
|
|
|
|
|
var pageLayout = $('body').layout({
|
|
|
|
|
west__initClosed: true,
|
|
|
|
|
west__size: 245,
|
|
|
|
|
west__spacing_closed: 0
|
|
|
|
|
});
|
|
|
|
|
setupLeftPanelAutoToggle(pageLayout);
|
|
|
|
|
updateHeaderTime();
|
|
|
|
|
setInterval(updateHeaderTime, 1000);
|
|
|
|
|
queryDeptTree();
|
|
|
|
|
@ -341,6 +361,37 @@
|
|
|
|
|
$("#currentTime").text(text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setupLeftPanelAutoToggle(pageLayout) {
|
|
|
|
|
var hoverTimer = null;
|
|
|
|
|
var isOpen = false;
|
|
|
|
|
|
|
|
|
|
function clearHoverTimer() {
|
|
|
|
|
if (hoverTimer) {
|
|
|
|
|
clearTimeout(hoverTimer);
|
|
|
|
|
hoverTimer = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).on("mousemove.leftPanelToggle", function (event) {
|
|
|
|
|
var triggerWidth = $(window).width() * 0.3;
|
|
|
|
|
if (event.clientX <= triggerWidth) {
|
|
|
|
|
if (!isOpen && !hoverTimer) {
|
|
|
|
|
hoverTimer = setTimeout(function () {
|
|
|
|
|
pageLayout.open("west");
|
|
|
|
|
isOpen = true;
|
|
|
|
|
hoverTimer = null;
|
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
clearHoverTimer();
|
|
|
|
|
if (isOpen) {
|
|
|
|
|
pageLayout.close("west");
|
|
|
|
|
isOpen = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function parseTemperature(value) {
|
|
|
|
|
var num = parseFloat(value);
|
|
|
|
|
return isNaN(num) ? null : num;
|
|
|
|
|
|