From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 09 十二月 2022 15:53:32 +0800
Subject: [PATCH] 2022-12-09

---
 src/menu/components/tabs/tabcomponents/index.jsx |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)

diff --git a/src/menu/components/tabs/tabcomponents/index.jsx b/src/menu/components/tabs/tabcomponents/index.jsx
index 1e30e2a..a0ed8c1 100644
--- a/src/menu/components/tabs/tabcomponents/index.jsx
+++ b/src/menu/components/tabs/tabcomponents/index.jsx
@@ -5,8 +5,6 @@
 import { Empty, notification, Modal } from 'antd'
 
 import Utils from '@/utils/utils.js'
-import MKEmitter from '@/utils/events.js'
-import MenuUtils from '@/utils/utils-custom.js'
 import Card from './card'
 import './index.scss'
 
@@ -48,17 +46,11 @@
       })
     }
 
-    let uuids = MenuUtils.getDelButtonIds(card)
-
     confirm({
       title: `纭畾鍒犻櫎銆�${card.name}銆嬪悧锛焋,
       content: hasComponent ? '褰撳墠缁勪欢涓惈鏈夊瓙缁勪欢锛�' : '',
       onOk() {
         handleList({...config, components: cards.filter(item => item.uuid !== card.uuid)})
-
-        if (uuids.length === 0) return
-        
-        MKEmitter.emit('delButtons', uuids)
       },
       onCancel() {}
     })
@@ -84,16 +76,6 @@
           })
           return
         }
-      } else if (item.component === 'tabs') {
-        let floor = MenuUtils.getFloor(config.parentId)
-        if (floor >= 3 ) {
-          notification.warning({
-            top: 92,
-            message: '鏍囩椤垫渶澶氫负涓夐噸缁撴瀯锛�',
-            duration: 5
-          })
-          return
-        }
       }
 
       let name = ''
@@ -115,6 +97,7 @@
         tree: '鏍戝舰鍒楄〃',
         balcony: '娴姩鍗�',
         timeline: '鏃堕棿杞�',
+        antvG6: '鏍戝浘',
         card: '鍗$墖'
       }
       let i = 1
@@ -129,13 +112,10 @@
       
       let newcard = {
         uuid: Utils.getuuid(),
-        tabId: config.uuid,
-        parentId: config.parentId,
         type: item.component,
         subtype: item.subtype,
         config: item.config,
         width: item.width || 24,
-        dataName: Utils.getdataName(),
         name: name,
         isNew: true                                   // 鏂版坊鍔犳爣蹇楋紝鐢ㄤ簬鍒濆鍖�
       }

--
Gitblit v1.8.0