From 145c4b6ec2ea4f1dd7986b3179ca505a79bc0598 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 18 八月 2020 17:47:44 +0800
Subject: [PATCH] 2020-08-18

---
 src/tabviews/formtab/index.jsx |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/formtab/index.jsx b/src/tabviews/formtab/index.jsx
index 02bba3c..f9daef9 100644
--- a/src/tabviews/formtab/index.jsx
+++ b/src/tabviews/formtab/index.jsx
@@ -197,7 +197,6 @@
         if (item.resourceType === '1' && item.dataSource) {
           let _option = Utils.getSelectQueryOptions(item)
           let _sql = Utils.formatOptions(_option.sql)
-          let isSSO = item.database === 'sso'
   
           let param = {
             func: 'sPC_Get_SelectedList',
@@ -218,12 +217,18 @@
 
           if (this.props.menuType === 'HS') { // 浜戠鏁版嵁楠岃瘉
             param.open_key = Utils.encrypt(param.secretkey, param.timestamp, true)
-          } else if (window.GLOB.systemType !== 'production') {
-            isSSO = false
+
+            if (item.database === 'sso' && options.cloudServiceApi) { // 瀛樺湪浜戠鍦板潃鏃讹紝浣跨敤浜戠绯荤粺鍙傛暟
+              param.rduri = options.cloudServiceApi
+              param.userid = sessionStorage.getItem('CloudUserID') || ''
+              param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
+            }
+          } else if (item.database === 'sso' && window.GLOB.mainSystemApi && window.GLOB.systemType === 'production') {
+            param.rduri = window.GLOB.mainSystemApi
           }
   
           let defer = new Promise(resolve => {
-            Api.getSystemCacheConfig(param, isSSO).then(res => {
+            Api.getSystemCacheConfig(param).then(res => {
               res.search = item
               resolve(res)
             })

--
Gitblit v1.8.0