From 567cea64c520654876e8c1a7f4ca2baf2c1c773f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 十一月 2022 11:16:39 +0800
Subject: [PATCH] 2022-11-25

---
 src/tabviews/zshare/actionList/printbutton/index.jsx |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/src/tabviews/zshare/actionList/printbutton/index.jsx b/src/tabviews/zshare/actionList/printbutton/index.jsx
index fc6b529..99b5db8 100644
--- a/src/tabviews/zshare/actionList/printbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -1459,23 +1459,12 @@
 
   handleModelConfig = (config) => {
     let roleId = sessionStorage.getItem('role_id') || '' // 瑙掕壊ID
-    let _sql = `Declare @mk_organization nvarchar(512)  select @mk_organization='${sessionStorage.getItem('organization') || ''}'\n`
-    let _sso = _sql
-    let _local = _sql
     config.fields = config.fields.map(cell => {
       // 鏁版嵁婧恠ql璇彞锛岄澶勭悊锛屾潈闄愰粦鍚嶅崟瀛楁璁剧疆涓洪殣钘忚〃鍗�
       if (['select', 'link', 'multiselect', 'radio', 'checkbox', 'checkcard'].includes(cell.type) && cell.resourceType === '1') {
         let _option = Utils.getSelectQueryOptions(cell)
 
-        if (cell.database === 'sso') {
-          cell.data_sql = Utils.formatOptions(_sso + _option.sql)
-          _sso = ''
-        } else {
-          cell.data_sql = Utils.formatOptions(_local + _option.sql)
-          _local = ''
-        }
-
-        cell.base_sql = window.btoa(window.encodeURIComponent(_sql + _option.sql))
+        cell.base_sql = _option.sql
         cell.arr_field = _option.field
       }
 

--
Gitblit v1.8.0