From b8e1395f02c929eaa96b949cf6027ee2a43856a6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 06 九月 2022 19:03:37 +0800
Subject: [PATCH] 2022-09-06

---
 src/templates/sharecomponent/actioncomponent/dragaction/index.jsx |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx b/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx
index e640a0e..5de06eb 100644
--- a/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx
@@ -6,7 +6,7 @@
 import Card from './card'
 import './index.scss'
 
-const Container = ({list, setting, placeholder, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => {
+const Container = ({list, setting, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => {
   const [cards, setCards] = useState(list)
   const moveCard = (id, atIndex) => {
     const { card, index } = findCard(id)
@@ -55,7 +55,7 @@
     copycard.copyType = 'action'
     copycard.focus = true
 
-    copycard.originCard = card
+    copycard.originCard = {...card, appkey: window.GLOB.appkey}
 
     if (copycard.OpenType === 'popview') { // 寰呭畬鍠�
       copycard.linkTab = ''
@@ -64,9 +64,20 @@
     let _val = fromJS(copycard).toJS()
 
     try {
+      if (_val.control) {
+        delete _val.controlField
+        delete _val.controlVal
+      }
+      delete _val.$srcId
+    
+      let srcid = localStorage.getItem(window.location.href.split('#')[0] + 'srcId')
+      if (srcid) {
+        _val.$srcId = srcid
+      }
+      
       _val.uuid = Utils.getuuid()
       _val = window.btoa(window.encodeURIComponent(JSON.stringify(_val)))
-    } catch {
+    } catch (e) {
       console.warn('Stringify Failure')
       _val = ''
     }
@@ -110,7 +121,6 @@
       newcard.execSuccess = 'grid'
       newcard.execError = 'never'
       newcard.popClose = 'never'
-      newcard.errorTime = 10
       newcard.verify = null
 
       if (item.subType === 'excelIn') {
@@ -125,6 +135,7 @@
         newcard.sysInterface = setting.sysInterface
         newcard.outerFunc = setting.outerFunc
         newcard.interface = setting.interface
+        newcard.execSuccess = 'never'
         newcard.class = 'dgreen'
       }
       
@@ -163,7 +174,7 @@
       
       {cards.length === 0 ?
         <div className="common-drawarea-placeholder">
-          {placeholder}
+          璇锋坊鍔犳寜閽�
         </div> : null
       }
     </div>

--
Gitblit v1.8.0