Commit 6d207092 by zhuzhequan

bug修复

parent 9de22220
{
"apiApiHost":"http://10.168.31.142:8060/api",
"fileApiUrl":"http://10.168.31.142:80/upload/factory",
"visionUrl":"https://console.jomalls.com"
"apiApiHost":"http://10.168.31.142:8060/api",
"fileApiUrl":"http://10.168.31.142:80/upload/factory",
"visionUrl":"https://console.jomalls.com"
}
......@@ -2,7 +2,7 @@
"name": "JomallProductionAssistant",
"productName": "JomallProductionAssistant",
"description": "",
"version": "1.0.6",
"version": "1.0.7",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
......@@ -239,7 +239,7 @@ export default {
bus.$emit("busEmit", {
type: "sendFile",
value: res.data,
size: { width: 35, height: 39 }
// size: { width: this.detail.mssWidth || 500, height: this.detail.mssHeight || 500 }
});
this.productionNo = "";
......
......@@ -299,7 +299,7 @@ export default {
// 获取图片的宽高
let w = image.clientWidth; // 图片宽
let h = image.clientHeight; // 图片高
console.log(w,h,'w,h');
console.log(w, h, "w,h");
const x = relativeX;
const y = relativeY;
const r = this.imgList[0].r;
......@@ -375,7 +375,12 @@ export default {
const imgFileName = this.imgList[0].fileName;
let position = ""; // 位置
let size = ""; // 图像大小
position = `${x},${y}`;
if (Number(x) < 0 || Number(y) < 0) {
position = `"${x},${y}"`;
} else {
position = `${x}${y}`;
}
size = `${w}${h}`;
console.log(position, size);
await this.sendCmd(imgFileName, size, position, r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment