From d1cd5af5adb53e91efdd278328e1b6f8ad834fb5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 二月 2025 21:11:56 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/mob/components/menubar/normal-menubar/index.jsx | 22 +++------------------- 1 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/mob/components/menubar/normal-menubar/index.jsx b/src/mob/components/menubar/normal-menubar/index.jsx index df95f23..596f800 100644 --- a/src/mob/components/menubar/normal-menubar/index.jsx +++ b/src/mob/components/menubar/normal-menubar/index.jsx @@ -16,7 +16,6 @@ const MenuComponent = asyncComponent(() => import('./menucomponent')) const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent')) const PasteComponent = asyncIconComponent(() => import('@/menu/components/share/pastecomponent')) -const UserComponent = asyncIconComponent(() => import('@/menu/components/share/usercomponent')) const NormalHeader = asyncComponent(() => import('@/menu/components/share/normalheader')) const SettingComponent = asyncIconComponent(() => import('@/menu/datasource')) @@ -60,20 +59,6 @@ }] } - if (card.config) { - let config = fromJS(card.config).toJS() - - _card.wrap = config.wrap - _card.wrap.name = card.name - _card.style = config.style - _card.headerStyle = config.headerStyle - - _card.subMenus = config.subMenus.map(item => { - item.uuid = Utils.getuuid() - - return item - }) - } this.setState({ card: _card }) @@ -138,7 +123,7 @@ */ deleteCard = (cell, type) => { let card = fromJS(this.state.card).toJS() - let _this = this + let that = this if (type !== 'direct') { confirm({ @@ -146,8 +131,8 @@ onOk() { card.subMenus = card.subMenus.filter(item => item.uuid !== cell.uuid) - _this.setState({card}) - _this.props.updateConfig(card) + that.setState({card}) + that.props.updateConfig(card) }, onCancel() {} }) @@ -298,7 +283,6 @@ <CopyComponent type="menubar" card={card}/> <PasteComponent config={card} options={['menucell']} updateConfig={this.filterComponent} /> <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} /> - <UserComponent config={card}/> <DeleteOutlined className="close" title="鍒犻櫎缁勪欢" onClick={() => this.props.deletecomponent(card.uuid)} /> {card.wrap.datatype === 'dynamic' ? <SettingComponent config={card} updateConfig={this.updateComponent} /> : null} {card.wrap.datatype !== 'dynamic' ? <SettingOutlined style={{color: '#eeeeee', cursor: 'not-allowed'}}/> : null} -- Gitblit v1.8.0