diff --git a/src/i18n/langs/en.js b/src/i18n/langs/en.js index aedc82a..5cbf9c6 100644 --- a/src/i18n/langs/en.js +++ b/src/i18n/langs/en.js @@ -122,5 +122,6 @@ module.exports = { Dispatchvehiclenotconnected: 'Dispatch and the vehicle body are not connected.', Vehiclereturnpoint: 'Vehicle return point', autobackfailedmanually:'The automatic fallback has failed. Please take over manually.', - vehicleautobacknotmanwaitcompleted: 'The vehicle is in the process of automatic fallback. Do not manually move the vehicle. Please wait until the automatic fallback is completed.' + vehicleautobacknotmanwaitcompleted: 'The vehicle is in the process of automatic fallback. Do not manually move the vehicle. Please wait until the automatic fallback is completed.', + yousurereposition: 'Are you sure you want to reposition?' } diff --git a/src/i18n/langs/zh.js b/src/i18n/langs/zh.js index 4949d54..f42c9b2 100644 --- a/src/i18n/langs/zh.js +++ b/src/i18n/langs/zh.js @@ -122,5 +122,6 @@ module.exports = { Dispatchvehiclenotconnected: '调度和车辆本体未连接', Vehiclereturnpoint: '车辆返回点', autobackfailedmanually:'自动回退失败,请手动接管。', - vehicleautobacknotmanwaitcompleted: '车子正在自动回退中,请勿手动移动车辆,等待车辆自动回退完成。' + vehicleautobacknotmanwaitcompleted: '车子正在自动回退中,请勿手动移动车辆,等待车辆自动回退完成。', + yousurereposition: '是否确定重定位?' } diff --git a/src/images/new/agv.png b/src/images/new/agv.png index acfb94b..1cee3f8 100644 Binary files a/src/images/new/agv.png and b/src/images/new/agv.png differ diff --git a/src/images/new/agv_back.png b/src/images/new/agv_back.png new file mode 100644 index 0000000..d5a4cbe Binary files /dev/null and b/src/images/new/agv_back.png differ diff --git a/src/images/new/agv_out.png b/src/images/new/agv_out.png new file mode 100644 index 0000000..5ea1622 Binary files /dev/null and b/src/images/new/agv_out.png differ diff --git a/src/pages/modules/map/index copy.vue b/src/pages/modules/map/index copy.vue new file mode 100644 index 0000000..a70eea3 --- /dev/null +++ b/src/pages/modules/map/index copy.vue @@ -0,0 +1,886 @@ + + + + + \ No newline at end of file diff --git a/src/pages/modules/map/index.vue b/src/pages/modules/map/index.vue index a70eea3..6875639 100644 --- a/src/pages/modules/map/index.vue +++ b/src/pages/modules/map/index.vue @@ -22,8 +22,6 @@ + 小车 小车 @@ -68,7 +77,7 @@ :getStationName="getStationNameById" />
-

是否确定重定位?

+

{{ $t('yousurereposition') }}

{{$t('Cancel')}}

{{$t('Confirm')}}

@@ -181,6 +190,7 @@ export default { this._queryMapAllStation() ]) await Promise.all([ + // this.preloadImage('map', `${mapData.mapImageAddress}`), this.preloadImage('map', `${this.serverUrl}${mapData.mapImageAddress}`), this.preloadImage('marker', markerImage) ]) @@ -386,13 +396,13 @@ export default { this.ctx.drawImage(this.cachedImages.marker, point.px_x - MARKER_SIZE / 2, point.px_y - MARKER_SIZE / 2, MARKER_SIZE, MARKER_SIZE) } // 绘制点位名称(文字大小随缩放变化) - if (point.station_type !== 'Station') { + if (point.station_type === 'Station') { this.ctx.font = '12px Arial' this.ctx.fillStyle = '#62fa0a' this.ctx.textAlign = 'center' this.ctx.fillText(point.station_name, point.px_x, point.px_y + 22) - this.ctx.fillText(point.x, point.px_x, point.px_y + 34) - this.ctx.fillText(point.y, point.px_x, point.px_y + 50) + // this.ctx.fillText(point.x, point.px_x, point.px_y + 34) + // this.ctx.fillText(point.y, point.px_x, point.px_y + 50) } }) },