#
vincent
2020-05-30 a5c50ff60d14cad5ff27bfcade405c796f9ab0d3
src/main/webapp/views/console.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<!--5层 28列 1120库位-->
<head>
    <meta charset="UTF-8">
    <title>WCS控制中心</title>
@@ -10,74 +11,48 @@
    <link rel="stylesheet" type="text/css" href="../static/css/common.css">
    <link rel="stylesheet" type="text/css" href="../static/css/console.css">
    <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../static/js/layer/layer.js"></script>
    <style>
        /* 站点 */
        .site {
            color: #333;
            height: 20px;
            border: 1px solid #fff;
        .system-state {
            position: absolute;
            top: 40px;
            right: 20px;
        }
        .system-icon {
            width: 100px;
            height: 100px;
            background-image: url("../static/image/stop48.png");
            background-repeat: no-repeat;
            background-size:100% 100%;
            background-position: top center;
            cursor: pointer;
            width: 50px;
            text-align: center;
            background-color: #21ff3a;
            font-size: 13px;
        }
        /* 无效站点(必须在site下面) */
        .site-none {
            border: none;
            background-color: transparent;
        }
        /* --------- 货架总成 --------- */
        .main-part {
            position: absolute;
            top: 250px;
            left: 400px;
        }
        /* --------- 输送线总成 --------- */
        .site-row {
            position: absolute;
            top: 122px;
        }
        /* 输送线第一列 */
        .site-row-1 {
            left: 200px;
        }
        .site-row-1 .site {
            width: 100px;
        }
        /* 输送线第二列 */
        .site-row-2 {
            left: 300px;
        }
        .site-row-2 .site {
            width: 100px;
        }
        /* 输送线第三列 */
        .site-row-3 {
            left: 400px;
            width: 100px;
        }
        .site-row-3 .site {
            float: left;
            width: 100px;
        }
        /* 输送线第四列 */
        .site-row-4 {
            left: 500px;
            width: 100px;
        }
        .site-row-4 .site {
            float: right;
            width: 100px;
        }
    </style>
</head>
<body>
<header>
    <span>描述信息</span>
    <h1>自动仓库 WCS 监控图</h1>
    <!-- 状态 -->
    <div class="machine-state">
        <div class="crn-state-group">
            <span>堆垛机状态:</span>
            <span class="crn-state" style="background-color: #21ff3a">自动</span>
            <span class="crn-state" style="background-color: red">异常</span>
        </div>
        <div class="site-state-group">
            <span>站点状态:</span>
            <span class="site-state" style="background-color: #21ff3a;">自动</span>
            <span class="site-state" style="background-color: red;">异常</span>
        </div>
    </div>
    <!-- 系统运行 -->
    <div class="system-state">
        <div class="system-icon"></div>
    </div>
</header>
<main>
@@ -157,6 +132,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <div class="stock-group">
@@ -185,6 +164,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <!-- 堆垛机 -->
@@ -219,6 +202,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <div class="stock-group">
@@ -247,6 +234,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <br>
@@ -280,6 +271,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <div class="stock-group">
@@ -308,6 +303,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <!-- 堆垛机 -->
@@ -342,6 +341,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
        <div class="stock-group">
@@ -370,6 +373,10 @@
            <button class="item">22</button>
            <button class="item">23</button>
            <button class="item">24</button>
            <button class="item">25</button>
            <button class="item">26</button>
            <button class="item">27</button>
            <button class="item">28</button>
            <div class="site site-none">&nbsp;&nbsp;&nbsp;&nbsp;</div>
        </div>
    </div>
@@ -378,6 +385,8 @@
    <input id="val" type="text">
    <button id="animate">animate</button>
</main>
</body>
<script>
    var crn1Position = 0;
@@ -402,5 +411,13 @@
        }
    }
    $('.item').on('click', function () {
        layer.open({
            type: 1,
            shadeClose: true, //点击遮罩关闭层
            content: 'text'
        });
    })
</script>
</html>