|
|
@@ -471,7 +471,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- console.log(markers,'markersmarkers')
|
|
|
this.bugMarkers = markers;
|
|
|
} catch (error) {
|
|
|
console.error('处理label参数失败:', error);
|
|
|
@@ -481,7 +480,7 @@ export default {
|
|
|
this.pestList = [];
|
|
|
const markers = [];
|
|
|
// 根据原图宽度计算缩放比例
|
|
|
- let scaleRatio = 4;
|
|
|
+ let scaleRatio = 3.1;
|
|
|
// if (this.imageWidth >= 5000) {
|
|
|
// scaleRatio = 4;
|
|
|
// } else if (this.imageWidth >= 4000) {
|
|
|
@@ -510,8 +509,8 @@ export default {
|
|
|
this.is_mark = 1
|
|
|
const { startX, startY,text } = item;
|
|
|
// 使用缩放比例计算标记位置和尺寸
|
|
|
- const x = (startX * scaleRatio / this.imageWidth) * 100;
|
|
|
- const y = (startY * scaleRatio / this.imageHeight) * 100;
|
|
|
+ const x = (startX * scaleRatio / this.imageWidth) * 105;
|
|
|
+ const y = (startY * scaleRatio / this.imageHeight) * 105;
|
|
|
const width = (item.width * scaleRatio / this.imageWidth) * 100;
|
|
|
const height = (item.height * scaleRatio / this.imageHeight) * 100;
|
|
|
|