From 12c4dd8bb0bb4c523dcf2fbb81191a7f3556a430 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 15 一月 2020 12:50:22 +0800
Subject: [PATCH] 2020-01-15

---
 src/tabviews/tableshare/actionList/index.jsx |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/tableshare/actionList/index.jsx b/src/tabviews/tableshare/actionList/index.jsx
index baf03ed..ecab41d 100644
--- a/src/tabviews/tableshare/actionList/index.jsx
+++ b/src/tabviews/tableshare/actionList/index.jsx
@@ -109,7 +109,14 @@
         duration: 10
       })
     } else if (item.OpenType === 'outerpage') {
-      console.log(item)
+      let url = item.url
+      if (item.Ot === 'requiredSgl' && setting.primaryKey) {
+        url = url + '?ID=' + data[0][setting.primaryKey]
+      } else if (item.Ot !== 'notRequired' && !setting.primaryKey) {
+        let ids = data.map(_data => _data[setting.primaryKey]).join(',')
+        url = url + '?ID=' + ids
+      }
+      window.open(url)
     } else {
       notification.warning({
         top: 92,

--
Gitblit v1.8.0