From 8d6f1d97f1f9d8c81313a2b27802be6426436518 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 04 二月 2020 20:07:19 +0800
Subject: [PATCH] 2020-02-04

---
 src/templates/subtableconfig/index.jsx |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx
index 9283033..3c345ab 100644
--- a/src/templates/subtableconfig/index.jsx
+++ b/src/templates/subtableconfig/index.jsx
@@ -427,6 +427,28 @@
             MenuID: card.originCard.uuid
           }).then(result => {
             if (result.status && result.LongParam) {
+              let _LongParam = ''
+
+              // 瑙f瀽閰嶇疆锛屼慨鏀规ā鎬佹鏍囬鍚嶇О
+              if (result.LongParam) {
+                try {
+                  _LongParam = window.decodeURIComponent(window.atob(result.LongParam))
+                  _LongParam = JSON.parse(_LongParam)
+                } catch (e) {
+                  _LongParam = ''
+                }
+              }
+              if (_LongParam && _LongParam.type === 'Modal') {
+                try {
+                  _LongParam.setting.title = res.label
+                  _LongParam = window.btoa(window.encodeURIComponent(JSON.stringify(_LongParam)))
+                } catch {
+                  _LongParam = ''
+                }
+              } else {
+                _LongParam = ''
+              }
+
               let param = {
                 func: 'sPC_ButtonParam_AddUpt',
                 ParentID: config.uuid,
@@ -435,7 +457,7 @@
                 Template: 'Modal',
                 MenuName: res.label,
                 PageParam: JSON.stringify({Template: 'Modal'}),
-                LongParam: result.LongParam
+                LongParam: _LongParam
               }
               Api.getSystemConfig(param).then(response => {
                 if (!response.status) {

--
Gitblit v1.8.0