#
vincent
2020-06-02 41eaaf7f671bc59ec2fc195c299ba158f02b2d45
src/main/webapp/views/pipeline.html
@@ -10,65 +10,9 @@
    <link rel="stylesheet" type="text/css" href="../static/css/common.css">
    <link rel="stylesheet" type="text/css" href="../static/css/pipeline.css">
    <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../static/js/common.js"></script>
    <script type="text/javascript" src="../static/js/layer/layer.js"></script>
    <style>
        .plc-log-header {
            height: 15%;
        }
        .plc-log-body {
            height: 85%;
            overflow: auto;
        }
        /* 站点表格 */
        #site-table {
            font-size: 12px;
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
        }
        #site-table td, #site-table th {
            border: 1px solid #cad9ea;
            color: #666;
            height: 25px;
        }
        #site-table thead th {
            background-color: #CCE8EB;
            width: 100px;
        }
        #site-table tr:nth-child(odd) {
            background: #fff;
        }
        #site-table tr:nth-child(even) {
            background: #F5FAFA;
        }
        /* plc异常表格 */
        #plc-error-table {
            font-size: 12px;
            border-collapse: collapse;
            margin: 0 auto;
        }
        #plc-error-table td, #plc-error-table th {
            border: 1px solid #cad9ea;
            color: #666;
            height: 25px;
            text-align: left;
            padding-left: 5px;
        }
        #plc-error-table thead th {
            background-color: #CCE8EB;
            width: 100px;
        }
        #plc-error-table tr:nth-child(odd) {
            background: #fff;
        }
        #plc-error-table tr:nth-child(even) {
            background: #F5FAFA;
        }
    </style>
</head>
@@ -489,6 +433,26 @@
        $('#plc-error-table tbody').after(html);
    });
    getPlcError();
    // plc异常信息表获取
    function getPlcError() {
        $.ajax({
            url: baseUrl+ "/site/table/plc/errors",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            success: function (res) {
                if (res.code === 200){
                    console.log(res.data);
                    addPlcError(res.data);
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/login";
                }  else {
                    alert(res.msg);
                }
            }
        });
    }
    // plc异常输入
    function addPlcError(val) {