zhouna 5 år sedan
förälder
incheckning
7a8da13b43

+ 2 - 2
src/components/qualityControl/QCTipPop.vue

@@ -17,8 +17,8 @@
       return {
         getStyle(){
             return {
-                top:(this.top-340)+"px",
-                left:(this.left-310)+"px",
+                top:(this.top-350)+"px",
+                left:(this.left-330)+"px",
                 display:this.show?"block":"none"
             }
         }

+ 3 - 1
src/components/qualityControl/QCTypePour.vue

@@ -50,6 +50,7 @@
 <script>
 import api from '@api/qualityControl.js';
 import QCTipPop from './QCTipPop.vue';
+import $ from 'jquery'
 
 export default {
     name: "QCTypePour",
@@ -112,10 +113,11 @@ export default {
             this.closePop();
             return;
           }
+          const t=$(".el-main").scrollTop();
           this.activeId = item.id;
           this.curName = item.name;
           this.curEmp = item.behospitalCodes;
-          this.popTop = e.clientY;
+          this.popTop = t+e.clientY;
           this.popLeft=e.clientX;
           this.showPop = true;
         },