|
|
@@ -80,6 +80,7 @@ export default {
|
|
|
const motorMapId = this.$route.query.motorMapId
|
|
|
this.mapId = motorMapId
|
|
|
const lotoId = this.$route.query.lotoId
|
|
|
+ const motorType=4
|
|
|
|
|
|
const mapPromise = selectIsMapById(motorMapId).then((response) => {
|
|
|
console.log(response, '获取底图')
|
|
|
@@ -90,7 +91,7 @@ export default {
|
|
|
this.y = response.data.y
|
|
|
})
|
|
|
|
|
|
- const pointPromise = getIsMotorListByLotoId({ lotoId }).then((response) => {
|
|
|
+ const pointPromise = getIsMotorListByLotoId({ lotoId,motorType }).then((response) => {
|
|
|
console.log(response, '查询电机对应的锁定站的点位列表')
|
|
|
this.pointList = response.data || []
|
|
|
})
|
|
|
@@ -211,7 +212,7 @@ export default {
|
|
|
|
|
|
const positions = this.pointList.map(item => ({
|
|
|
entityId: item.motorId,
|
|
|
- entityName: item.motorName,
|
|
|
+ entityName: item.motorCode,
|
|
|
pointId: item.pointId,
|
|
|
mapPointId: item.mapPointId,
|
|
|
// 如果 x / y 为空则默认放置到 0,0
|