#
vincent
2020-06-02 b5d61b944f4822e59bcaf3f825fac1b6683f29e9
#
2个文件已修改
7 ■■■■■ 已修改文件
src/main/webapp/views/console.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pipeline.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html
@@ -448,7 +448,6 @@
            success: function (res) {
                if (res.code === 200){
                    var crns = res.data;
                    console.log(crns);
                    for (var i = 0; i < crns.length; i++){
                        crnAnimate(crns[i].crnId, crns[i].offset);
                    }
src/main/webapp/views/pipeline.html
@@ -426,6 +426,10 @@
<script>
    // 初始化
    var outputDom = document.getElementById("output");
    // 实时访问
    setInterval(function () {
        getPlcError();
    }, 500);
    // 空白表格渲染
    $(document).ready(function() {
@@ -454,11 +458,9 @@
            method: 'POST',
            success: function (res) {
                if (res.code === 200){
                    console.log(res.data);
                    var tpl = $("#plcErrorTable").html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
                    console.log(html);
                    $('#plc-error-table').append(html);
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/login";