| | |
| | | <el-collapse-item title="仓库一层" name="1"> |
| | | <el-card class="box-card" shadow="hover"> |
| | | <el-text style="margin-right: 15px;">托盘输送</el-text> |
| | | <el-button @click="write('OnePalletStart','1')">启动</el-button> |
| | | <el-button @click="write('OnePalletStop','1')">停止</el-button> |
| | | <el-button @mousedown="writeDown('OnePalletStart','1')" @mouseup="writeUp('OnePalletStart','1')">启动</el-button> |
| | | <el-button @mousedown="writeDown('OnePalletStop','1')" @mouseup="writeUp('OnePalletStop','1')">停止</el-button> |
| | | </el-card> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <!-- <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">拆跺机器人1</el-text> |
| | | <el-button @click="write('OneChaiStart','1')">启动</el-button> |
| | | <el-button @click="write('OneChaiStop','1')">停止</el-button> |
| | |
| | | <el-text style="margin-right: 15px;">拆跺机器人2</el-text> |
| | | <el-button @click="write('OneChaiTwoStart','1')">启动</el-button> |
| | | <el-button @click="write('OneChaiTwoStop','1')">停止</el-button> |
| | | </el-card> |
| | | </el-card> --> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">件箱输送</el-text> |
| | | <el-button @click="write('OneBoxStart','1')">启动</el-button> |
| | | <el-button @click="write('OneBoxStop','1')">停止</el-button> |
| | | <el-button @mousedown="writeDown('OneBoxStart','1')" @mouseup="writeUp('OneBoxStart','1')">启动</el-button> |
| | | <el-button @mousedown="writeDown('OneBoxStop','1')" @mouseup="writeUp('OneBoxStop','1')">停止</el-button> |
| | | </el-card> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | |
| | | <el-collapse-item title="仓库二层" name="2"> |
| | | <el-card class="box-card" shadow="hover"> |
| | | <el-text style="margin-right: 15px;">托盘输送</el-text> |
| | | <el-button @click="write('TwoPalletStart','2')">启动</el-button> |
| | | <el-button @click="write('TwoPalletStop','2')">停止</el-button> |
| | | <el-button @mousedown="writeDown('TwoPalletStart','2')" @mouseup="writeUp('TwoPalletStart','2')">启动</el-button> |
| | | <el-button @mousedown="writeDown('TwoPalletStop','2')" @mouseup="writeUp('TwoPalletStop','2')">停止</el-button> |
| | | </el-card> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">码跺机器人1</el-text> |
| | | <el-button @click="write('TwoMaStart','2')">启动</el-button> |
| | | <el-button @click="write('TwoMaStop','2')">停止</el-button> |
| | | <el-button @mousedown="writeDown('TwoMaStart','2')" @mouseup="writeUp('TwoMaStart','2')">启动</el-button> |
| | | <el-button @mousedown="writeDown('TwoMaStop','2')" @mouseup="writeUp('TwoMaStop','2')">停止</el-button> |
| | | </el-card> |
| | | |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">码跺机器人2</el-text> |
| | | <el-button @click="write('TwoMaTwoStart','2')">启动</el-button> |
| | | <el-button @click="write('TwoMaTwoStop','2')">停止</el-button> |
| | | <el-button @mousedown="writeDown('TwoMaTwoStart','2')" @mouseup="writeUp('TwoMaTwoStart','2')">启动</el-button> |
| | | <el-button @mousedown="writeDown('TwoMaTwoStop','2')" @mouseup="writeUp('TwoMaTwoStop','2')">停止</el-button> |
| | | </el-card> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">件箱输送</el-text> |
| | | <el-button @click="write('TwoBoxStart','2')">启动</el-button> |
| | | <el-button @click="write('TwoBoxStop','2')">停止</el-button> |
| | | <el-button @mousedown="writeDown('TwoBoxStart','2')" @mouseup="writeUp('TwoBoxStart','2')">启动</el-button> |
| | | <el-button @mousedown="writeDown('TwoBoxStop','2')" @mouseup="writeUp('TwoBoxStop','2')">停止</el-button> |
| | | </el-card> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | |
| | | <el-collapse-item title="仓库三层" name="3"> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-text style="margin-right: 15px;">托盘输送</el-text> |
| | | <el-button @click="write('ThreePalletStart','3')">启动</el-button> |
| | | <el-button @click="write('ThreePalletStop','3')">停止</el-button> |
| | | <el-button @mousedown="writeDown('ThreePalletStart','3')" @mouseup="writeUp('ThreePalletStart','3')">启动</el-button> |
| | | <el-button @mousedown="writeDown('ThreePalletStop','3')" @mouseup="writeUp('ThreePalletStop','3')">停止</el-button> |
| | | </el-card> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | |
| | | console.log(res.data.result); |
| | | // ElMessage.success(res.data.result); |
| | | } |
| | | |
| | | const writeDown = async (type: string,layer: string) => { |
| | | |
| | | var data={ |
| | | Type:type, |
| | | Layer: layer, |
| | | FuncName : "true" |
| | | } |
| | | var res = await WriteStartStop(data); |
| | | console.log(type+"按下事件"); |
| | | |
| | | } |
| | | const writeUp = async (type: string,layer: string) => { |
| | | |
| | | var data={ |
| | | Type:type, |
| | | Layer: layer, |
| | | FuncName : "false" |
| | | } |
| | | var res = await WriteStartStop(data); |
| | | console.log(type+"抬起事件"); |
| | | |
| | | } |
| | | |
| | | </script> |
| | | |