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 | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx b/src/templates/sharecomponent/actioncomponent/dragaction/index.jsx index 5e1da18..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) @@ -53,10 +53,9 @@ copycard.uuid = Utils.getuuid() copycard.origin = false copycard.copyType = 'action' - copycard.label = copycard.label + '(copy)' copycard.focus = true - copycard.originCard = card + copycard.originCard = {...card, appkey: window.GLOB.appkey} if (copycard.OpenType === 'popview') { // 寰呭畬鍠� copycard.linkTab = '' @@ -65,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 = '' } @@ -107,12 +117,10 @@ newcard.icon = '' newcard.class = 'default' newcard.intertype = 'system' - newcard.method = 'POST' newcard.position = 'toolbar' newcard.execSuccess = 'grid' newcard.execError = 'never' newcard.popClose = 'never' - newcard.errorTime = 10 newcard.verify = null if (item.subType === 'excelIn') { @@ -127,6 +135,7 @@ newcard.sysInterface = setting.sysInterface newcard.outerFunc = setting.outerFunc newcard.interface = setting.interface + newcard.execSuccess = 'never' newcard.class = 'dgreen' } @@ -136,7 +145,7 @@ targetId = item.dropTargetId delete item.dropTargetId } else if (cards.length > 0) { - targetId = cards[cards.length - 1].uuid + targetId = cards.slice(-1)[0].uuid } const { index: overIndex } = findCard(`${targetId}`) @@ -165,7 +174,7 @@ {cards.length === 0 ? <div className="common-drawarea-placeholder"> - {placeholder} + 璇锋坊鍔犳寜閽� </div> : null } </div> -- Gitblit v1.8.0