| | |
| | | <!--输出小车--> |
| | | <div v-for="(car,idx) in currentLevShuttleList" |
| | | :style="{ |
| | | left: getCarPosition(car.wcsPoint.x,car.wcsPoint.y)[1] |
| | | ,top: getCarPosition(car.wcsPoint.x,car.wcsPoint.y)[0] |
| | | left: getCarPosition(car.point.x,car.point.y)[1] |
| | | ,top: getCarPosition(car.point.x,car.point.y)[0] |
| | | ,color: shuttleColorList[car.shuttleNo] |
| | | }" |
| | | class="sxcar" :id="'sxcar-' + car.shuttleNo"> |
| | |
| | | <div> |
| | | <!-- <el-button @click="testMove()">测试移动车</el-button>--> |
| | | <el-button @click="resetMap()">重置地图</el-button> |
| | | <el-button @click="initLoc()">初始化库位</el-button> |
| | | <!-- <el-button @click="initLoc()">初始化库位</el-button>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | map: [],//地图数据 |
| | | currentLev: 1,//地图当前楼层 |
| | | siteWindow: false, //站点弹窗显示默认不显示 |
| | | floorList: [1, 2, 3], //当前项目楼层 |
| | | floorList: [1, 2, 3, 4], //当前项目楼层 |
| | | shuttleList: [], //四向穿梭车集合 |
| | | currentLevShuttleList: [],//当前楼层四向穿梭车集合 |
| | | shuttleColorList: [],//四向穿梭车颜色集合 |
| | |
| | | let tmp = null |
| | | tmp = setInterval(() => { |
| | | if (index < res.length) { |
| | | that.currentLevShuttleList[0].wcsPoint.y = res[index].y |
| | | that.currentLevShuttleList[0].wcsPoint.x = res[index].x |
| | | that.currentLevShuttleList[0].point.y = res[index].y |
| | | that.currentLevShuttleList[0].point.x = res[index].x |
| | | index++ |
| | | }else { |
| | | clearInterval(tmp) |