#
luxiaotao1123
2020-12-30 32d5fb4ef401ce79e6d2f843eadaabf636d036ab
src/main/webapp/views/crn.html
@@ -52,6 +52,12 @@
            <!--            <span>&nbsp;</span>-->
            <input id="crn1" disabled="disabled">
        </div>
        <div class="crn-command-item">
            <label>2#</label>
            <button id="demoBtn-2" class="demoBtn" onclick="demoSwitch(this.id)">演示</button>
            <!--            <span>&nbsp;</span>-->
            <input id="crn2" disabled="disabled">
        </div>
    </div>
    <!-- 堆垛机状态位信息 -->
    <div class="crn-state">
@@ -544,11 +550,18 @@
        crnOutputDom.scrollTop = crnOutputDom.scrollHeight;
    }
    // function demoSwitch(el) {
    //     var crnId = el.split("-")[1];
    //     layer.prompt({title: '请输入口令,并开始'+crnId+"号堆垛机演示", formType: 1, shadeClose: true}, function (pass, idx) {
    //         layer.close(idx);
    //         doDemo(crnId, pass); // 停止wcs系统
    //     });
    // }
    function demoSwitch(el) {
        var crnId = el.split("-")[1];
        layer.prompt({title: '请输入口令,并开始'+crnId+"号堆垛机演示", formType: 1, shadeClose: true}, function (pass, idx) {
            layer.close(idx);
            doDemo(crnId, pass); // 停止wcs系统
        layer.confirm(crnId + ' 号堆垛机确定开始演示吗?', function(){
            doDemo(crnId, 'root'); // 停止wcs系统
        });
    }