lxf 1 vuosi sitten
vanhempi
commit
f87a40917c
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 7 7
      src/views/sell/draft-design/drawing/index.vue

+ 7 - 7
src/views/sell/draft-design/drawing/index.vue

@@ -121,14 +121,14 @@
       <div style="height: calc(100vh - 94px); overflow: auto; display: flex; align-items: center; justify-content: center; position: relative">
         <div style="position: absolute; left: 10px; top: 10px">
           <div style="font-size: 20; font-weight: 700">裸垫参数:</div>
-          <div style="margin: 4px 8px 4px">长: {{ formData.data.length }}mm</div>
-          <div style="margin: 4px 8px 4px">宽: {{ formData.data.width }}mm</div>
+          <div style="margin: 4px 8px 4px">长: {{ formData.data.length }}cm</div>
+          <div style="margin: 4px 8px 4px">宽: {{ formData.data.width }}cm</div>
           <div style="margin-top: 16px; font-size: 20; font-weight: 700">元素参数:</div>
-          <div style="margin: 4px 8px 4px">长: {{ elLength }}mm</div>
-          <div style="margin: 4px 8px 4px">宽: {{ elWidth }}mm</div>
+          <div style="margin: 4px 8px 4px">长: {{ elLength }}cm</div>
+          <div style="margin: 4px 8px 4px">宽: {{ elWidth }}cm</div>
           <div style="margin: 4px 8px 4px">旋转角度: {{ elAngle }}</div>
           <div style="margin-top: 16px; font-size: 20; font-weight: 700">比例:</div>
-          <div style="margin: 4px 8px 4px">{{ ratio }}px : 1mm</div>
+          <div style="margin: 4px 8px 4px">{{ ratio }}px : 1cm</div>
         </div>
         <div style="width: 757px; height: 813px; border: 2px dashed #bdbdbd" ref="mainDIV">
           <div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%)">
@@ -481,8 +481,8 @@ const elementMarking = (item) => {
   }
   elCoordinates.value.push({ textStatus: false, x1: 0, y1: yLine, x2: xLine, y2: yLine });
   elCoordinates.value.push({ textStatus: false, x1: xLine, y1: 0, x2: xLine, y2: yLine });
-  elCoordinates.value.push({ textStatus: true, x: xLine / 2, y: yLine, color: "red", text: Number(Math.round(xLine / ratio.value)) + "mm", crosswise: true });
-  elCoordinates.value.push({ textStatus: true, x: xLine, y: yLine / 2, color: "red", text: Number(Math.round(yLine / ratio.value)) + "mm", crosswise: false });
+  elCoordinates.value.push({ textStatus: true, x: xLine / 2, y: yLine, color: "red", text: Number(Math.round(xLine / ratio.value)) + "cm", crosswise: true });
+  elCoordinates.value.push({ textStatus: true, x: xLine, y: yLine / 2, color: "red", text: Number(Math.round(yLine / ratio.value)) + "cm", crosswise: false });
 };
 const clickToView = () => {
   openDrawing.value = true;