| | |
| | | <span style="font-size: 12px; font-weight: normal; margin-right: 5px;">指令间隔</span> |
| | | <el-input-number size="mini" v-model="timeOutNum" style="margin-right: 5px;"></el-input-number> |
| | | <span style="font-size: 12px; font-weight: normal; margin-right: 20px;">秒</span> |
| | | <el-button size="mini" :disabled="!connStatus || !sendList.length" v-if="!sending" @click="sending = true"><i |
| | | class="iconfont icon-kaishi" style="font-size: 12px;"></i> |
| | | <el-button size="mini" :disabled="!connStatus || !sendList.length" v-if="!sending" |
| | | @click="sending = true"><i class="iconfont icon-kaishi" style="font-size: 12px;"></i> |
| | | 开始发送</el-button> |
| | | <el-button size="mini" v-if="sending" @click="sending = false"><i class="iconfont icon-jieshu" |
| | | style="font-size: 12px;"></i> |
| | |
| | | <!-- 队列 --> |
| | | <div class="sendList" v-show="showSendList"> |
| | | <div class="sendListItem" v-for="item, index in sendList"> |
| | | <div class="index">{{ index+1 }}</div> |
| | | <div class="index">{{ index + 1 }}</div> |
| | | <div class="name">{{ item.name }}</div> |
| | | <div class="value">{{ item.value }}</div> |
| | | <div class="sendStatus"> |
| | |
| | | setTimeout(() => { |
| | | var div = document.getElementById('messages') |
| | | div.scrollTop = div.scrollHeight |
| | | },100) |
| | | }, 100) |
| | | } |
| | | } |
| | | }, |
| | |
| | | clearInterval(this.timer) |
| | | } |
| | | this.timer = setInterval(() => { |
| | | |
| | | |
| | | if (!this.sending) { |
| | | return |
| | | } |
| | |
| | | if (this.sendList.length == 0) { |
| | | this.sending = false |
| | | this.messageList.push({ |
| | | type:'system', |
| | | type: 'system', |
| | | content: '已停止队列发送' |
| | | },) |
| | | } |
| | | } else { |
| | | this.sending = false |
| | | this.messageList.push({ |
| | | type:'system', |
| | | type: 'system', |
| | | content: '已停止队列发送' |
| | | },) |
| | | } |