From 886e6cda9d597477825945181d58658564d2d445 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 一月 2025 22:38:27 +0800
Subject: [PATCH] 2025-01-16

---
 src/tabviews/basetable/index.jsx |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/src/tabviews/basetable/index.jsx b/src/tabviews/basetable/index.jsx
index a53fbef..32a42d2 100644
--- a/src/tabviews/basetable/index.jsx
+++ b/src/tabviews/basetable/index.jsx
@@ -39,7 +39,8 @@
     userConfig: null,     // 鐢ㄦ埛鑷畾涔夎缃�
     visible: false,       // 鏍囩椤垫帶鍒�
     shortcuts: null,      // 蹇嵎閿�
-    autoMatic: null
+    autoMatic: null,
+    noParam: false
   }
 
   /**
@@ -47,6 +48,7 @@
    */
   async loadconfig () {
     const { MenuID, MenuName, param } = this.props
+    const { noParam } = this.state
 
     let _param = {
       func: 'sPC_Get_LongParam',
@@ -164,13 +166,17 @@
       let skip = window.GLOB.mkHS
       let urlparam = {} // url鍙傛暟
       if (param) {
-        Object.keys(param).forEach(key => {
-          if (/^\$/.test(key)) {
-            urlparam[key] = param[key]
-          } else {
-            urlparam[key.toLowerCase()] = param[key]
-          }
-        })
+        if (!noParam) {
+          Object.keys(param).forEach(key => {
+            if (/^\$/.test(key)) {
+              urlparam[key] = param[key]
+            } else {
+              urlparam[key.toLowerCase()] = param[key]
+            }
+          })
+        } else {
+          urlparam.$BID = param.$BID
+        }
       }
 
       window.GLOB.CacheData.set(MenuID, urlparam)
@@ -712,12 +718,12 @@
     })
   }
 
-  reloadMenuView = (menuId) => {
+  reloadMenuView = (menuId, clear) => {
     const { MenuID } = this.props
 
     if (MenuID !== menuId) return
 
-    this.reloadview()
+    this.reloadview(clear)
   }
 
   resetActiveMenu = (menuId) => {
@@ -779,7 +785,7 @@
     })
   }
 
-  reloadview = () => {
+  reloadview = (clear) => {
     window.GLOB.CacheData.delete(this.props.MenuID)
     if (this.state.config) {
       this.deleteCache(this.state.config.components)
@@ -791,6 +797,7 @@
       viewlost: false,      // 椤甸潰涓㈠け锛�1銆佹湭鑾峰彇鍒伴厤缃�-椤甸潰涓㈠け锛�2銆侀〉闈㈡湭鍚敤
       config: null,         // 椤甸潰閰嶇疆淇℃伅锛屽寘鎷粍浠剁瓑
       shortcuts: null,
+      noParam: clear === true
     }, () => {
       this.loadconfig()
     })

--
Gitblit v1.8.0