| | |
| | | </template> |
| | | </div> |
| | | <!--左翻页按钮--> |
| | | <div v-show="showPreviousTaskBtn" class="paginator-btn previous" @click="previousTask"><</div> |
| | | <div v-show="showPreviousTaskBtn" class="paginator-btn previous" :class="{disabled:showBtn ===2 ||messageError}" @click="previousTask"><</div> |
| | | <!--右翻页按钮--> |
| | | <div v-show="showNextTaskBtn" class="paginator-btn next" @click="nextTask">></div> |
| | | <div v-show="showNextTaskBtn" class="paginator-btn next" :class="{disabled:showBtn ===2 ||messageError}" @click="nextTask">></div> |
| | | </div> |
| | | <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" |
| | | style="overflow: hidden"> |
| | |
| | | * 前翻页 |
| | | */ |
| | | previousTask() { |
| | | // 生产准备倒计时中和下发失败禁止翻页 |
| | | if (this.showBtn === 2 || this.messageError){ |
| | | return |
| | | } |
| | | if (this.currentTaskIndex - 1 >= 0) { |
| | | this.currentTaskIndex -= 1 |
| | | this.$nextTick(() => { |
| | |
| | | * 后翻页 |
| | | */ |
| | | nextTask() { |
| | | // 生产准备倒计时中和下发失败禁止翻页 |
| | | if (this.showBtn === 2 || this.messageError){ |
| | | return |
| | | } |
| | | if (this.currentTaskIndex + 1 <= this.taskList.length - 1) { |
| | | this.currentTaskIndex += 1 |
| | | this.$nextTick(() => { |
| | |
| | | &.next { |
| | | right: -60px; |
| | | padding-left: 4px; |
| | | |
| | | } |
| | | &.disabled{ |
| | | background-color: #cccccc; |
| | | opacity: 0.8; |
| | | cursor: not-allowed; |
| | | } |
| | | } |
| | | |
| | |
| | | color: #ffffffaa; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | } |
| | | .process-err-tip{ |
| | | box-sizing: border-box; |