From c8804ceb1fe2dea76f9949c5ea04423876ee2c81 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 28 六月 2024 14:02:47 +0800
Subject: [PATCH] 2024-06-28

---
 src/tabviews/custom/components/share/tabtransfer/index.jsx |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/custom/components/share/tabtransfer/index.jsx b/src/tabviews/custom/components/share/tabtransfer/index.jsx
index 7c061a0..34289a8 100644
--- a/src/tabviews/custom/components/share/tabtransfer/index.jsx
+++ b/src/tabviews/custom/components/share/tabtransfer/index.jsx
@@ -127,6 +127,18 @@
 
     let param = getStructuredParams(params, config, BID)
 
+    if (config.$cache && config.$time) {
+      Api.getLCacheConfig(params[0].uuid, config.$time, BID).then(res => {
+        if (!res.valid) {
+          this.getMainData(param, params, config.uuid)
+        }
+      })
+    } else {
+      this.getMainData(param, params, config.uuid)
+    }
+  }
+
+  getMainData = (param, params, tabId) => {
     Api.genericInterface(param).then(result => {
       if (result.status) {
         if (result.message) {
@@ -151,11 +163,15 @@
           window.GLOB.SyncData.set(item.name, _data)
         })
 
-        MKEmitter.emit('transferSyncData', config.uuid)
+        MKEmitter.emit('transferSyncData', tabId)
       } else {
-        MKEmitter.emit('transferSyncData', config.uuid)
+        MKEmitter.emit('transferSyncData', tabId)
 
         if (!result.message) return
+
+        if (/灏嗘埅鏂瓧绗︿覆鎴栦簩杩涘埗鏁版嵁/ig.test(result.message)) {
+          result.message = result.message + '璇锋鏌ュ瓧娈甸泦'
+        }
         if (result.ErrCode === 'N') {
           Modal.error({
             title: result.message,
@@ -278,9 +294,7 @@
         )
       } else if (item.type === 'group' && item.subtype === 'normalgroup') {
         return (
-          <Col span={item.width} style={style} key={item.uuid}>
-            <NormalGroup config={item}/>
-          </Col>
+          <NormalGroup config={item} style={style} key={item.uuid}/>
         )
       } else if (item.type === 'form' && item.subtype === 'simpleform') {
         return (

--
Gitblit v1.8.0