From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 十一月 2020 21:56:42 +0800
Subject: [PATCH] 2020-11-26

---
 src/menu/actioncomponent/dragaction/index.jsx |   36 +-----------------------------------
 1 files changed, 1 insertions(+), 35 deletions(-)

diff --git a/src/menu/actioncomponent/dragaction/index.jsx b/src/menu/actioncomponent/dragaction/index.jsx
index af88544..8024806 100644
--- a/src/menu/actioncomponent/dragaction/index.jsx
+++ b/src/menu/actioncomponent/dragaction/index.jsx
@@ -2,13 +2,12 @@
 import { useDrop } from 'react-dnd'
 import { is, fromJS } from 'immutable'
 import update from 'immutability-helper'
-import { Icon } from 'antd'
 
 import Utils from '@/utils/utils.js'
 import Card from './card'
 import './index.scss'
 
-const Container = ({plus, list, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => {
+const Container = ({list, handleList, handleMenu, deleteMenu, profileMenu, doubleClickCard }) => {
   const [cards, setCards] = useState(list)
   const moveCard = (id, atIndex) => {
     const { card, index } = findCard(id)
@@ -90,38 +89,6 @@
     drop() {}
   })
 
-  const addaction = () => {
-    let newcard = {}
-    newcard.uuid = Utils.getuuid()
-    newcard.focus = true
-    
-    newcard.label = 'button'
-    newcard.sqlType = ''
-    newcard.Ot = 'requiredSgl'
-    newcard.OpenType = 'prompt'
-    newcard.icon = ''
-    newcard.class = 'primary'
-    newcard.intertype = 'system'
-    newcard.method = 'POST'
-    newcard.execSuccess = 'grid'
-    newcard.execError = 'never'
-    newcard.popClose = 'never'
-    newcard.errorTime = 10
-    newcard.verify = null
-    newcard.show = 'icon'
-    
-    let targetId = cards.length > 0 ? cards[cards.length - 1].uuid : 0
-
-    const { index: overIndex } = findCard(`${targetId}`)
-    let targetIndex = overIndex
-
-    targetIndex++
-
-    const _cards = update(cards, { $splice: [[targetIndex, 0, newcard]] })
-
-    handleList(_cards, newcard)
-  }
-
   return (
     <div ref={drop} className="ant-row">
       {cards.map(card => (
@@ -138,7 +105,6 @@
           doubleClickCard={doubleClickBtn}
         />
       ))}
-      {plus !== 'false' ? <Icon type="plus" title="娣诲姞鎸夐挳" onClick={addaction}/> : null}
     </div>
   )
 }

--
Gitblit v1.8.0