Browse Source

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

刘洋 1 năm trước cách đây
mục cha
commit
d786a34d2e

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

@@ -43,13 +43,12 @@ const fun = () => {
 const curRow: any = ref({})
 const onload = (row: any, column: any, event: any) => {
   curRow.value = row
-  console.log('curRow:', curRow)
 
   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 {
-    rkm.value.style.top = event.clientY - 30 + 'px'
+    rkm.value.style.top = event.clientY - 40 + 'px'
   }
   rkm.value.style.left = event.clientX + 20 + 'px'
   document.addEventListener('click', fun)