فهرست منبع

时间段右键菜单显示问题

duy 1 هفته پیش
والد
کامیت
f09bd5907c
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 2 2
      src/config/index.json
  2. 4 1
      src/plugins/HTableForm.js

+ 2 - 2
src/config/index.json

@@ -1,10 +1,10 @@
 {
     "version": "20230607160059",
-    "target1": "http://127.0.0.1:8090",
+    "target": "http://127.0.0.1:8090",
     "target55": "http://39.108.216.210:8090",
     "target3": "http://192.168.0.125:8090",
     "target4": "http://183.247.216.148:28090",
-    "target":   "http://192.168.0.109:8090",
+    "target1":   "http://192.168.0.109:8090",
     "target33": "http://219.151.181.73:8090",
     "socket1": "wss://measure.hczcxx.cn/websocket",
     "socket2": "ws://192.168.0.125:9527/websocket",

+ 4 - 1
src/plugins/HTableForm.js

@@ -92,7 +92,10 @@ export default class HTableForm {
                 // 右键点击处理
                 RightClick(a, b, c, d, e, f, event) {
                     setTimeout(() => {
-                        const KeyName = event?.target?.getAttribute('keyname') || ''
+                        console.log('11111右键菜单:', event.target)
+
+                        const KeyName = event?.target?.getAttribute('keyname') || event?.target?.getAttribute('id') || ''
+                        console.log('22222右键菜单:', event?.target)
                         if (onRight) {
                             event.preventDefault()
                             onRight(event, KeyName)