From c1f9e05741e64087ebbfa5e1185bfd0beeb4eeb5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 07 一月 2022 17:50:18 +0800
Subject: [PATCH] 2022-01-07

---
 src/views/pcdesign/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index 94cd024..d78d938 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -1502,7 +1502,12 @@
         } else if (item.type === 'tree' && (!item.wrap.valueField || !item.wrap.labelField || !item.wrap.parentField)) {
           error = `缁勪欢銆�${item.name}銆嬪熀鏈俊鎭皻鏈缃紒`
         } else if (item.type === 'table' && item.wrap.doubleClick) {
-          if (item.action.findIndex((m) => m.uuid === item.wrap.doubleClick) === -1) {
+          let _actions = [...item.action]
+          item.cols.forEach(col => {
+            if (col.type !== 'action') return
+            _actions.push(...col.elements)
+          })
+          if (_actions.findIndex((m) => m.uuid === item.wrap.doubleClick) === -1) {
             error = `缁勪欢銆�${item.name}銆嬬粦瀹氱殑鍙屽嚮鎸夐挳宸插垹闄わ紒`
           }
         }

--
Gitblit v1.8.0