| | |
| | | const { code, msg, data: { rcsStatus, common, point } } = res.data; |
| | | if (code === 200) { |
| | | setRcsStatus(rcsStatus); |
| | | const mapItemList = [...eval(common), ...eval(point)]; |
| | | const commonList = common ? eval(common) : []; |
| | | const pointList = point ? eval(point) : []; |
| | | const mapItemList = [...commonList, ...pointList]; |
| | | |
| | | mapItemList.forEach(item => { |
| | | if (item.type !== DEVICE_TYPE.AGV) { |
| | | const sprite = Tool.generateSprite(item.type); |
| | |
| | | for (Code code : codeList) { |
| | | Double x = code.getX(); |
| | | Double y = code.getY(); |
| | | if (null == x || null == y) { continue; } |
| | | if (!xIdxList.contains(x)) { |
| | | xIdxList.add(x); |
| | | } |
| | |
| | | return R.ok().add(Cools |
| | | .add("rcsStatus", configService.getVal("TaskAssignMode", Boolean.class)) |
| | | .add("point", GsonUtils.toJson(mapCodeItems)) |
| | | .add("common", activeNavMap.getData()) |
| | | .add("common", null != activeNavMap ? activeNavMap.getData() : null) |
| | | ); |
| | | } |
| | | |