From 80deba0c2dcffd9e6b6f07815c7c52199309ce42 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 23 六月 2025 17:36:03 +0800
Subject: [PATCH] 2025-06-23

---
 src/views/basedesign/updateFormTab/index.jsx |   30 ++++++++++++------------------
 1 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/src/views/basedesign/updateFormTab/index.jsx b/src/views/basedesign/updateFormTab/index.jsx
index c7ad6d8..a70d45b 100644
--- a/src/views/basedesign/updateFormTab/index.jsx
+++ b/src/views/basedesign/updateFormTab/index.jsx
@@ -28,7 +28,7 @@
 
   trigger = () => {
     const { config, menu, btnTab } = this.props
-    const _this = this
+    const that = this
 
     if (!config || !menu || !menu.LongParam) {
       notification.warning({
@@ -78,7 +78,7 @@
       content: '',
       onOk() {
         return new Promise(resolve => {
-          _this.execUpdate(resolve, _config)
+          that.execUpdate(resolve, _config)
         })
       },
       onCancel() {}
@@ -313,7 +313,7 @@
       let defers = _tbs.map((item, i) => {
         return new Promise((resolve) => {
           setTimeout(() => {
-            Api.getSystemConfig({
+            Api.getCloudConfig({
               func: 'sPC_Get_LongParam',
               MenuID: item.linkTab
             }).then(res => {
@@ -393,7 +393,7 @@
       let defers = popActions.map((item, i) => {
         return new Promise((resolve) => {
           setTimeout(() => {
-            Api.getSystemConfig({
+            Api.getCloudConfig({
               func: 'sPC_Get_LongParam',
               MenuID: item.linkTab
             }).then(res => {
@@ -573,7 +573,7 @@
       let defers = formActions.map((item, i) => {
         return new Promise((resolve) => {
           setTimeout(() => {
-            Api.getSystemConfig({
+            Api.getCloudConfig({
               func: 'sPC_Get_LongParam',
               MenuID: item.origin
             }).then(res => {
@@ -878,18 +878,18 @@
       debug_md5: key,
       debug_url: url,
       debug_list: window.btoa(tbs),
-      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config)))
+      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config))),
+      LText: ''
     }
 
-    param.LText = Utils.formatOptions(param.LText)
     param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
-    param.secretkey = Utils.encrypt(param.LText, param.timestamp)
+    param.secretkey = Utils.encrypt('', param.timestamp)
 
-    Api.getSystemConfig(param).then(res => {
+    Api.getCloudConfig(param).then(res => {
       _resolve()
       if (res.status) {
         // if (this.delButtons.length > 0) {
-        //   Api.getSystemConfig({
+        //   Api.getCloudConfig({
         //     func: 'sPC_MainMenu_Del',
         //     up_type: 'Y',
         //     MenuID: this.delButtons.join(',')
@@ -915,7 +915,7 @@
     let _card = {
       uuid: newCon.uuid,
       type: 'table',
-      name: newCon.name,
+      name: newCon.name || '',
       format: 'array',
       pageable: true,
       switchable: true,
@@ -923,7 +923,7 @@
       action: [],
       subtype: 'normaltable',
       setting: { useMSearch: 'false', sync: 'false', onload: 'true' },
-      wrap: {name: newCon.name},
+      wrap: {name: newCon.name || ''},
       style: {},
       headerStyle: {},
       columns: [],
@@ -1195,14 +1195,10 @@
         if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) {
           _btn.syncComponent.push(oldtabs[newCon.equalTab])
         }
-      } else if (_btn.execSuccess === 'maingrid') {
-        _btn.execSuccess = 'mainline'
       }
 
       if (_btn.execError === 'equaltab') {
         _btn.execError = 'grid'
-      } else if (_btn.execError === 'maingrid') {
-        _btn.execError = 'mainline'
       }
 
       if (_btn.popClose === 'equaltab') {
@@ -1212,8 +1208,6 @@
         if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) {
           _btn.syncComponent.push(oldtabs[newCon.equalTab])
         }
-      } else if (_btn.popClose === 'maingrid') {
-        _btn.popClose = 'mainline'
       }
 
       if (_btn.OpenType === 'pop' || (_btn.OpenType === 'funcbutton' && _btn.funcType === 'print' && _btn.execMode === 'pop')) {

--
Gitblit v1.8.0