| | |
| | | <div> |
| | | <!-- <el-button @click="testMove()">测试移动车</el-button>--> |
| | | <el-button @click="resetMap()">重置地图</el-button> |
| | | <el-button @click="checkTask()">任务检测</el-button> |
| | | <!-- <el-button @click="initLoc()">初始化库位</el-button>--> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | checkTask() { |
| | | let that = this |
| | | $.ajax({ |
| | | url:baseUrl+"/console/checkTask", |
| | | headers:{ |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | | data:{}, |
| | | method:'get', |
| | | success:function (res) { |
| | | if (res.code === 200) { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | initLev(){ |
| | | let that = this |
| | | $.ajax({ |