Explorar el Código

初始化大小优化

dengliying hace 1 año
padre
commit
3b831b4529
Se han modificado 1 ficheros con 7 adiciones y 8 borrados
  1. 7 8
      ui/src/views/monitor/pfd/index.vue

+ 7 - 8
ui/src/views/monitor/pfd/index.vue

@@ -60,25 +60,25 @@ export default {
             // 缩放比例
             scaleNum: 200,
             // 底图初始化宽度
-            imageWidth:15548,
+            imageWidth:2148,
 
             // 裂解炉初始化宽度
-            areaLJLWidth: 1898,
+            areaLJLWidth: 290,
             // 裂解炉区域缩放比例
             areaLJLScaleNum: 0,
 
             // 急冷区初始化宽度
-            areaJLQWidth: 2930,
+            areaJLQWidth: 284,
             // 裂解炉区域缩放比例
             areaJLQScaleNum: 0,
 
             // 中间区域初始化宽度
-            areaZJQWidth: 5760,
+            areaZJQWidth: 802,
             // 中间区域缩放比例
             areaZJQScaleNum: 0,
 
             // 冷区+热区-2初始化宽度
-            areaLQ_RQWidth: 4920,
+            areaLQ_RQWidth: 699,
             // 冷区+热区-2缩放比例
             areaLQ_RQScaleNum: 0,
 
@@ -134,10 +134,7 @@ export default {
     //在vue自定义指令中添加该指令
     directives: {
       move(el) {
-        console.log(el)
-        console.dir(el)
         el.onmousedown = function (e) {
-
           //获取鼠标点击处分别与div左边和div上边的距离:鼠标位置-div位置
           let startX = e.clientX - el.offsetLeft,
             startY = e.clientY - el.offsetTop;
@@ -223,6 +220,8 @@ body{
     position: relative;
     overflow: scroll;
     cursor: move;
+    margin-top: -77px;
+
 }
 .indexImg{
   width: 100%;