From da64ab0923bf8817fc8599a6e37b953ce38f64c8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 27 八月 2023 18:37:36 +0800
Subject: [PATCH] 2023-08-27

---
 src/templates/comtableconfig/index.jsx |   32 +++++++++++---------------------
 1 files changed, 11 insertions(+), 21 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 44a0274..7c55fb4 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -210,7 +210,7 @@
       loading: type,
       tabviews: []
     })
-    Api.getSystemConfig({func: 'sPC_Get_UserTemp', TypeCharTwo: 'tab'}).then(res => {
+    Api.getCloudConfig({func: 'sPC_Get_UserTemp', TypeCharTwo: 'tab'}).then(res => {
       if (res.status) {
         this.setState({
           loading: false,
@@ -498,7 +498,7 @@
             }
 
             return new Promise(resolve => {
-              Api.getSystemConfig(_param).then(response => {
+              Api.getCloudConfig(_param).then(response => {
                 resolve(response)
               })
             })
@@ -552,8 +552,7 @@
         }
       }).then(resp => {
         if (resp === false) return
-        let localParam = fromJS(param).toJS()
-        Api.getSystemConfig(param).then(response => {
+        Api.getCloudConfig(param).then(response => {
           if (response.status) {
             this.setState({
               config: _config,
@@ -561,15 +560,7 @@
               originMenu: fromJS(_config).toJS()
             })
 
-            localParam.func = 'sPC_TrdMenu_AddUpt_For_Local'
-            delete localParam.LongParam
-            delete localParam.PageParam
-            delete localParam.Template
-            delete localParam.Sort
-            delete localParam.EasyCode
-            delete localParam.open_edition
-
-            this.submitAction(btnParam, localParam)
+            this.submitAction(btnParam)
           } else {
             this.setState({
               menuloading: false,
@@ -589,12 +580,12 @@
   /**
    * @description 淇濆瓨鎴栦慨鏀硅彍鍗曟寜閽泦
    */
-  submitAction = (btnParam, localParam) => {
+  submitAction = (btnParam) => {
     const { config } = this.state
 
     new Promise(resolve => {
       if (btnParam.LText) {
-        Api.getSystemConfig(btnParam).then(result => {
+        Api.getCloudConfig(btnParam).then(result => {
           if (result.status) {
             this.setState({ // 淇濆瓨鎴愬姛鍚庢竻绌哄鍒跺垪琛�
               copyActions: []
@@ -635,7 +626,7 @@
       oriActions.forEach(action => {
         if (!action.prebtn || !action.prebtn.uuid) return
 
-        Api.getSystemConfig({
+        Api.getCloudConfig({
           func: 'sPC_Get_LongParam',
           MenuID: action.prebtn.uuid
         }).then(result => {
@@ -663,7 +654,7 @@
               PageParam: JSON.stringify({Template: _temp}),
               LongParam: result.LongParam
             }
-            Api.getSystemConfig(param).then(() => {})
+            Api.getCloudConfig(param).then(() => {})
           }
         })
       })
@@ -685,7 +676,6 @@
           })
         }
         this.props.reloadmenu()
-        Api.genericInterface(localParam)
       } else {
         this.setState({
           menuloading: false,
@@ -804,7 +794,7 @@
         loading: true
       })
 
-      Api.getSystemConfig({
+      Api.getCloudConfig({
         func: 'sPC_Get_LongParam',
         MenuID: uuid
       }).then(res => {
@@ -964,7 +954,7 @@
         func: 'sPC_MainMenu_Del',
         MenuID: item
       }
-      Api.getSystemConfig(_param)
+      Api.getCloudConfig(_param)
     })
     this.props.handleView()
   }
@@ -1027,7 +1017,7 @@
       MenuID: menu.MenuID
     }
 
-    Api.getSystemConfig(param).then(res => {
+    Api.getCloudConfig(param).then(res => {
       if (res.status) {
         let _config = ''
         if (res.LongParam) {

--
Gitblit v1.8.0