Junjie
2023-06-29 0c9b8fe24e495da1f5e3362fa6b36acc41617cb7
src/main/webapp/views/lift.html
@@ -65,6 +65,7 @@
                    <th>进输送线卡托盘报警</th>
                    <th>出输送线卡托盘报警</th>
                    <th>作业标记</th>
                    <th>穿梭车号</th>
                </tr>
                </thead>
                <tbody>
@@ -95,11 +96,20 @@
                <fieldset>
                    <legend>手动操作</legend>
                    <div class="button-group">
                        <button class="item" onclick="liftOperator(1)">上升一层</button>
                        <button class="item" onclick="liftOperator(2)">下降一层</button>
                        <button class="item" onclick="liftOperator(3)">有货正转</button>
                        <button class="item" onclick="liftOperator(4)">有货反转</button>
                        <button class="item" onclick="liftOperator(5)">复位</button>
                        <select id="liftLev">
                            <option value="1" selected>1F</option>
                            <option value="3">2F</option>
                            <option value="4">3F</option>
                            <option value="5">4F</option>
                            <option value="2">输送线位置</option>
                        </select>
                        <button class="item" onclick="liftOperator(1)">移动提升机</button>
                        <button class="item" onclick="liftOperator(3)">无货正转</button>
                        <button class="item" onclick="liftOperator(4)">无货反转</button>
                        <button class="item" onclick="liftOperator(5)">有货正转</button>
                        <button class="item" onclick="liftOperator(6)">有货反转</button>
                        <button class="item" onclick="liftOperator(7)">链条停止</button>
                        <button class="item" onclick="liftOperator(0)">复位</button>
                    </div>
                </fieldset>
            </div>
@@ -309,7 +319,7 @@
                        let tr = tableEl.find("tr").eq(i);
                        setVal(tr.children("td").eq(0), table[i-1].liftNo);
                        setVal(tr.children("td").eq(1), table[i-1].taskNo);
                        setVal(tr.children("td").eq(2), table[i-1].protocolStatus);
                        setVal(tr.children("td").eq(2), table[i-1].protocolStatus$);
                        setVal(tr.children("td").eq(3), table[i-1].liftLock$);
                        setVal(tr.children("td").eq(4), table[i-1].positionArrivalFeedback);
                        setVal(tr.children("td").eq(5), table[i-1].ready$);
@@ -322,8 +332,8 @@
                        setVal(tr.children("td").eq(12), table[i-1].servoError1);
                        setVal(tr.children("td").eq(13), table[i-1].servoError2);
                        setVal(tr.children("td").eq(14), table[i-1].servoError3);
                        setVal(tr.children("td").eq(14), table[i-1].servoError4);
                        setVal(tr.children("td").eq(14), table[i-1].liftActualSpeed);
                        setVal(tr.children("td").eq(15), table[i-1].servoError4);
                        setVal(tr.children("td").eq(16), table[i-1].liftActualSpeed);
                    }
                } else if (res.code === 403){
                    window.location.href = baseUrl+"/login";
@@ -360,6 +370,7 @@
                        setVal(tr.children("td").eq(7), table[i-1].inConveyLineCardTrayAlarm$);
                        setVal(tr.children("td").eq(8), table[i-1].outConveyLineCardTrayAlarm$);
                        setVal(tr.children("td").eq(9), table[i-1].pakMk);
                        setVal(tr.children("td").eq(10), table[i-1].shuttleNo);
                    }
                } else if (res.code === 403){
                    window.location.href = baseUrl+"/login";
@@ -393,6 +404,7 @@
        http.post(baseUrl+"/lift/operator/lift", {
            liftNo: $('input[name="liftSelect"]:checked').val(),
            liftTaskMode: liftTaskMode,
            lev: $("#liftLev").val()
        }, function (res) {
            layer.msg(res.msg, {icon: 1});
        });