소스 검색

人员数据统计右键菜单优化

刘洋 1 년 전
부모
커밋
d786a34d2e
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      src/modules/analysis/personnel-statistics/components/RightKeyMenu.vue

+ 3 - 4
src/modules/analysis/personnel-statistics/components/RightKeyMenu.vue

@@ -43,13 +43,12 @@ const fun = () => {
 const curRow: any = ref({})
 const curRow: any = ref({})
 const onload = (row: any, column: any, event: any) => {
 const onload = (row: any, column: any, event: any) => {
   curRow.value = row
   curRow.value = row
-  console.log('curRow:', curRow)
 
 
   let betweenHeight = document.body.clientHeight - event.clientY
   let betweenHeight = document.body.clientHeight - event.clientY
-  if (betweenHeight < 150) {
-    rkm.value.style.top = event.clientY - 80 + 'px'
+  if (betweenHeight < 180) {
+    rkm.value.style.top = event.clientY - 140 + 'px'
   } else {
   } else {
-    rkm.value.style.top = event.clientY - 30 + 'px'
+    rkm.value.style.top = event.clientY - 40 + 'px'
   }
   }
   rkm.value.style.left = event.clientX + 20 + 'px'
   rkm.value.style.left = event.clientX + 20 + 'px'
   document.addEventListener('click', fun)
   document.addEventListener('click', fun)