|
@@ -330,8 +330,15 @@ export default {
|
|
|
if (res.data.data) {
|
|
|
this.devInfo = res.data.data;
|
|
|
this.devType = this.devInfo.devType;
|
|
|
- this.width = this.devInfo.width * 100;
|
|
|
- this.length = this.devInfo.length * 100;
|
|
|
+
|
|
|
+ this.width =
|
|
|
+ Math.abs(
|
|
|
+ this.devInfo.yyEnd - this.devInfo.yyStart
|
|
|
+ ) * 100;
|
|
|
+ this.length =
|
|
|
+ Math.abs(
|
|
|
+ this.devInfo.xxEnd - this.devInfo.xxStart
|
|
|
+ ) * 100;
|
|
|
this.xOffset =
|
|
|
(this.devInfo.xxStart + this.devInfo.xxEnd) * 50;
|
|
|
this.yOffset =
|