Luolei %!s(int64=6) %!d(string=hai) anos
pai
achega
54787c67b7
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  1. 1 1
      src/components/TreatDesc/index.jsx
  2. 5 4
      src/utils/tools.js

+ 1 - 1
src/components/TreatDesc/index.jsx

@@ -29,7 +29,7 @@ class TreatDesc extends Component {
         const drugNameWidth = parseInt($('#'+item.medicitionName)[0].offsetWidth)
         
         const imgLeft = drugNameWidth/2-10
-        console.log('imgLeft', imgLeft)
+        // console.log('imgLeft', imgLeft)
         $('#'+item.medicitionName).find('img').css('left', imgLeft)
        
         this.setState({

+ 5 - 4
src/utils/tools.js

@@ -788,10 +788,11 @@ function dragBox(domWrap,domDrag){
     }
   },document)
   windowEventHandler('mouseup',()=>{
-    if(isMove){ //有move就设置位置没有移动就不处理
-      wrap.style.left = dragX + 'px'
-      wrap.style.top = dragY + 'px'
-    }
+    // if(isMove){ //有move就设置位置没有移动就不处理
+      // console.log(dragX)
+      // wrap.style.left = dragX + 'px'
+      // wrap.style.top = dragY + 'px'
+    // }
     isDrag = false
     return false
   },document)