| | |
| | | <span class="mc-field-label">工作号</span> |
| | | <input class="mc-input" v-model="controlParam.taskNo" placeholder="输入工作号" /> |
| | | </label> |
| | | <label class="mc-field"> |
| | | <span class="mc-field-label">slotIdx</span> |
| | | <input class="mc-input" v-model="controlParam.slotIdx" placeholder="输入缓存索引" /> |
| | | </label> |
| | | <label class="mc-field mc-span-2"> |
| | | <span class="mc-field-label">目标站</span> |
| | | <input class="mc-input" v-model="controlParam.targetStationId" placeholder="输入目标站号" /> |
| | | </label> |
| | | <div class="mc-action-row"> |
| | | <button type="button" class="mc-btn" @click="controlCommand">下发</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="clearPathCommand">清路径</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="clearPathByTaskNoCommand">工作号清路径</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="clearPathBySlotCommand">站点清路径</button> |
| | | <button type="button" class="mc-btn mc-btn-soft" @click="resetCommand">复位</button> |
| | | <button type="button" class="mc-btn mc-btn-ghost" @click="openStationTracePage">运行轨迹</button> |
| | | <button v-if="showFakeTraceEntry" type="button" class="mc-btn mc-btn-ghost" @click="openFakeTracePage">仿真轨迹</button> |
| | |
| | | controlParam: { |
| | | stationId: "", |
| | | taskNo: "", |
| | | slotIdx: "", |
| | | targetStationId: "" |
| | | }, |
| | | barcodePreviewCache: {}, |
| | |
| | | controlCommand: function () { |
| | | this.postControl("/station/command/move", this.controlParam); |
| | | }, |
| | | clearPathCommand: function () { |
| | | clearPathByTaskNoCommand: function () { |
| | | this.postControl("/station/command/clearPath", this.controlParam); |
| | | }, |
| | | clearPathBySlotCommand: function () { |
| | | this.postControl("/station/command/clearPathBySlot", this.controlParam); |
| | | }, |
| | | resetCommand: function () { |
| | | this.postControl("/station/command/reset", this.controlParam); |
| | | } |