| | |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>地州新能源 - 系统平台</title> |
| | | <title>中扬 - 运维系统平台</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="icon" type="image/x-icon" href="../static/image/logo1.png" /> |
| | | <link rel="icon" type="image/x-icon" href="../static/image/favicon.ico" /> |
| | | <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../static/css/loader.css" media="all"> |
| | |
| | | <!-- 头部 --> |
| | | <div class="layui-header"> |
| | | <div class="layui-logo"> |
| | | <img src="../static/image/logo.svg"/> |
| | | <cite>地洲 - Emperyland</cite> |
| | | <img src="../static/image/logo.png" style="display: inline-block; width: 60%;height: auto"> |
| | | <!-- <span style="margin-top: 0; letter-spacing: 10px">中扬立库</span>--> |
| | | <!-- <img src="../static/image/logo.svg"/>--> |
| | | <!-- <cite>中扬 - Zoneyung</cite>--> |
| | | </div> |
| | | |
| | | <ul class="layui-nav layui-layout-left"> |
| | |
| | | <div class="layui-body"></div> |
| | | <!-- 底部 --> |
| | | <div class="layui-footer layui-text"> |
| | | copyright © 2021 地洲新能源科技(浙江)有限公司 all rights reserved. |
| | | <span class="pull-right">Version 1.1.0</span> |
| | | copyright © 2022 <a href="http://www.zoneyung.com" target="_blank">浙江中扬立库技术有限公司</a> all rights reserved. |
| | | <span class="pull-right">Version 1.0.0</span> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <script type="text/javascript" src="../static/js/handlebars/handlebars-v4.5.3.js"></script> |
| | | <script type="text/javascript" src="../static/js/common.js"></script> |
| | | <script> |
| | | console.log('%c 地洲新能源(浙江)平台 %c 1.1.0','background-color:rgb(53,73,94);color: #fff;border-radius:2px 0 0 2px;padding:2px 4px;','background-color:rgb(25,190,107);color: #fff;border-radius:0 2px 2px 0;padding:2px 4px;font: 9pt "Apercu Regular", Georgia, "Times New Roman", Times, serif;'); |
| | | console.log('%c 中扬立库平台 %c 1.0.0','background-color:rgb(53,73,94);color: #fff;border-radius:2px 0 0 2px;padding:2px 4px;','background-color:rgb(25,190,107);color: #fff;border-radius:0 2px 2px 0;padding:2px 4px;font: 9pt "Apercu Regular", Georgia, "Times New Roman", Times, serif;'); |
| | | $(function () { |
| | | if ("" === localStorage.getItem('token')) { |
| | | top.location.href = baseUrl + "/login"; |
| | |
| | | var url = logout.getAttribute('href'); |
| | | logout.setAttribute('href', baseUrl + "/login"); |
| | | |
| | | setInterval(function () { |
| | | $.ajax({ |
| | | url: baseUrl + "/alarm/index/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | if (res.data != null) { |
| | | notice["error"]({ |
| | | theme: "dark", |
| | | animateInside: true, |
| | | layout: 2, |
| | | rtl: false, |
| | | displayMode: 1, |
| | | position: "bottomRight", |
| | | transitionIn: "fadeInLeft", |
| | | transitionOut: "fadeOutRight", |
| | | title: res.data.sensorType$ + "设备报警", |
| | | message: "#" + res.data.uuid + "#" + res.data.desc, |
| | | pauseOnHover: false, |
| | | resetOnHover: false, |
| | | timeout: false, |
| | | progressBar: false, |
| | | onOpened: function () { |
| | | $(".iziToast-message").css("cursor", "pointer") |
| | | } |
| | | }); |
| | | } |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/login"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }); |
| | | }, 5000); |
| | | // setInterval(function () { |
| | | // $.ajax({ |
| | | // url: baseUrl + "/alarm/index/auth", |
| | | // headers: {'token': localStorage.getItem('token')}, |
| | | // method: 'GET', |
| | | // success: function (res) { |
| | | // if (res.code === 200) { |
| | | // if (res.data != null) { |
| | | // notice["error"]({ |
| | | // theme: "dark", |
| | | // animateInside: true, |
| | | // layout: 2, |
| | | // rtl: false, |
| | | // displayMode: 1, |
| | | // position: "bottomRight", |
| | | // transitionIn: "fadeInLeft", |
| | | // transitionOut: "fadeOutRight", |
| | | // title: res.data.sensorType$ + "设备报警", |
| | | // message: "#" + res.data.uuid + "#" + res.data.desc, |
| | | // pauseOnHover: false, |
| | | // resetOnHover: false, |
| | | // timeout: false, |
| | | // progressBar: false, |
| | | // onOpened: function () { |
| | | // $(".iziToast-message").css("cursor", "pointer") |
| | | // } |
| | | // }); |
| | | // } |
| | | // } else if (res.code === 403) { |
| | | // top.location.href = baseUrl + "/login"; |
| | | // } else { |
| | | // layer.msg(res.msg, {icon: 2}); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }, 5000); |
| | | |
| | | $(document).on('click', '.iziToast-message', function(el) { |
| | | var alarmUuid = el.target.innerText.match(/#(\S*)#/)[1]; |