#
vincent
2020-06-02 38be704dd5027056e135a5613299163e861f89cf
#
2个文件已修改
1个文件已添加
32 ■■■■ 已修改文件
src/main/webapp/static/css/console.css 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/image/start48.png 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/console.css
@@ -36,17 +36,23 @@
    text-align: center;
    color: #2d6aff;
}
.system-icon {
#system-icon {
    display: inline-block;
    width: 70%;
    height: 70%;
    background-image: url("../image/stop48.png");
    background-repeat: no-repeat;
    background-size:100% 100%;
    background-position: top center;
    cursor: pointer;
}
.system-state span {
.system-icon-open {
    background-image: url("../image/stop48.png");
}
.system-icon-close {
    background-image: url("../image/start48.png");
}
#system-run-desc {
    font-size: large;
    display: inline-block;
    padding-top: 10px;
src/main/webapp/static/image/start48.png
src/main/webapp/views/console.html
@@ -21,8 +21,8 @@
<header>
    <!-- 系统运行状态 -->
    <div class="system-state">
        <div class="system-icon"></div>
        <span>系统运行中...</span>
        <div id="system-icon" class="system-icon-open" onclick="systemSwitch()"></div>
        <span id="system-run-desc">系统运行中...</span>
    </div>
    <!-- 信息展示 -->
@@ -406,7 +406,7 @@
</main>
</body>
<script>
    var systemRunning = true;
    var crn1Position = 0;
    var crn2Position = 0;
    // 初始化
@@ -420,6 +420,20 @@
        getSitesInfo();
    }, 3000);
    // 系统运行开关
    function systemSwitch() {
        if (systemRunning){
            $('#system-icon').attr("class", "system-icon-close");
            $('#system-run-desc').html("系统已停止!");
            systemRunning = false;
        } else {
            $('#system-icon').attr("class", "system-icon-open");
            $('#system-run-desc').html("系统运行中...");
            systemRunning = true;
        }
    }
    // 输送设备实时数据获取
    function getSitesInfo(){
        $.ajax({