From 316877c1d9e5b6d92334f30b03d97d7e833cd934 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 02 二月 2021 16:01:57 +0800
Subject: [PATCH] 2021-02-02

---
 src/tabviews/zshare/actionList/exceloutbutton/index.jsx |   51 +++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 43 insertions(+), 8 deletions(-)

diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
index 8da8de9..f2a67e7 100644
--- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -111,6 +111,9 @@
     }
 
     MKEmitter.emit('getexceloutparam', btn.$menuId, btn.uuid)
+    if (window.GLOB.systemType === 'production') {
+      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '瀵煎嚭Excel'})
+    }
   }
 
   /**
@@ -190,13 +193,21 @@
           if (btn.sysInterface === 'true' && options.cloudServiceApi) {
             param.rduri = options.cloudServiceApi
           } else if (btn.sysInterface !== 'true') {
-            param.rduri = btn.interface
+            if (window.GLOB.systemType === 'production' && btn.proInterface) {
+              param.rduri = btn.proInterface
+            } else {
+              param.rduri = btn.interface
+            }
           }
         } else {
           if (btn.sysInterface === 'true' && window.GLOB.mainSystemApi) {
             param.rduri = window.GLOB.mainSystemApi
           } else if (btn.sysInterface !== 'true') {
-            param.rduri = btn.interface
+            if (window.GLOB.systemType === 'production' && btn.proInterface) {
+              param.rduri = btn.proInterface
+            } else {
+              param.rduri = btn.interface
+            }
           }
         }
   
@@ -228,13 +239,21 @@
               if (btn.sysInterface === 'true' && options.cloudServiceApi) {
                 res.rduri = options.cloudServiceApi
               } else if (btn.sysInterface !== 'true') {
-                res.rduri = btn.interface
+                if (window.GLOB.systemType === 'production' && btn.proInterface) {
+                  res.rduri = btn.proInterface
+                } else {
+                  res.rduri = btn.interface
+                }
               }
             } else {
               if (btn.sysInterface === 'true' && window.GLOB.mainSystemApi) {
                 res.rduri = window.GLOB.mainSystemApi
               } else if (btn.sysInterface !== 'true') {
-                res.rduri = btn.interface
+                if (window.GLOB.systemType === 'production' && btn.proInterface) {
+                  res.rduri = btn.proInterface
+                } else {
+                  res.rduri = btn.interface
+                }
               }
             }
   
@@ -289,13 +308,21 @@
           if (btn.sysInterface === 'true' && options.cloudServiceApi) {
             res.rduri = options.cloudServiceApi
           } else if (btn.sysInterface !== 'true') {
-            res.rduri = btn.interface
+            if (window.GLOB.systemType === 'production' && btn.proInterface) {
+              res.rduri = btn.proInterface
+            } else {
+              res.rduri = btn.interface
+            }
           }
         } else {
           if (btn.sysInterface === 'true' && window.GLOB.mainSystemApi) {
             res.rduri = window.GLOB.mainSystemApi
           } else if (btn.sysInterface !== 'true') {
-            res.rduri = btn.interface
+            if (window.GLOB.systemType === 'production' && btn.proInterface) {
+              res.rduri = btn.proInterface
+            } else {
+              res.rduri = btn.interface
+            }
           }
         }
 
@@ -353,13 +380,21 @@
         if (btn.sysInterface === 'true' && options.cloudServiceApi) {
           param.rduri = options.cloudServiceApi
         } else if (btn.sysInterface !== 'true') {
-          param.rduri = btn.interface
+          if (window.GLOB.systemType === 'production' && btn.proInterface) {
+            param.rduri = btn.proInterface
+          } else {
+            param.rduri = btn.interface
+          }
         }
       } else {
         if (btn.sysInterface === 'true' && window.GLOB.mainSystemApi) {
           param.rduri = window.GLOB.mainSystemApi
         } else if (btn.sysInterface !== 'true') {
-          param.rduri = btn.interface
+          if (window.GLOB.systemType === 'production' && btn.proInterface) {
+            param.rduri = btn.proInterface
+          } else {
+            param.rduri = btn.interface
+          }
         }
       }
       

--
Gitblit v1.8.0