From b883ae5d7d46fc7a3503236f16a250c2264ea7c7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 29 九月 2022 17:45:25 +0800 Subject: [PATCH] 2022-09-29 --- src/menu/components/card/data-card/index.jsx | 62 ------------------------------- 1 files changed, 0 insertions(+), 62 deletions(-) diff --git a/src/menu/components/card/data-card/index.jsx b/src/menu/components/card/data-card/index.jsx index 09d308d..4526506 100644 --- a/src/menu/components/card/data-card/index.jsx +++ b/src/menu/components/card/data-card/index.jsx @@ -16,7 +16,6 @@ const NormalForm = asyncIconComponent(() => import('@/components/normalform')) const CardComponent = asyncComponent(() => import('../cardcomponent')) const MobPagination = asyncIconComponent(() => import('@/menu/components/share/mobPagination')) -// const LogComponent = asyncIconComponent(() => import('@/menu/components/share/logcomponent')) const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent')) const UserComponent = asyncIconComponent(() => import('@/menu/components/share/usercomponent')) const PasteComponent = asyncIconComponent(() => import('@/components/paste')) @@ -64,7 +63,6 @@ scripts: [], action: [], search: [], - btnlog: [], subcards: [{ uuid: Utils.getuuid(), setting: { width: appType === 'mob' ? 24 : 6, type: 'simple'}, @@ -147,7 +145,6 @@ componentDidMount () { MKEmitter.addListener('submitModal', this.handleSave) - // MKEmitter.addListener('logButton', this.logButton) } shouldComponentUpdate (nextProps, nextState) { @@ -162,20 +159,8 @@ return } MKEmitter.removeListener('submitModal', this.handleSave) - // MKEmitter.removeListener('logButton', this.logButton) } - // logButton = (id, item) => { - // const { card } = this.state - - // if (id !== card.uuid) return - - // let btnlog = card.btnlog || [] - // btnlog.push(item) - - // this.updateComponent({...card, btnlog}) - // } - /** * @description 鍗$墖琛屽灞備俊鎭洿鏂帮紙鏁版嵁婧愶紝鏍峰紡绛夛級 */ @@ -184,7 +169,6 @@ card.width = card.wrap.width card.name = card.wrap.name - card.btnlog = [] if (window.GLOB.styling && card.errors) { // 鏍峰紡淇敼鏃朵笉鍋氱瓫鏌� this.setState({ @@ -342,10 +326,6 @@ onOk() { card.subcards = card.subcards.filter(item => item.uuid !== cell.uuid) - // if (card.btnlog) { - // card.btnlog = card.btnlog.filter(c => c.$parentId !== cell.uuid) - // } - _this.updateComponent(card) if (appType === 'mob') return @@ -478,47 +458,6 @@ this.updateComponent(card) } - - // handleLog = (type, logs, item) => { - // let card = fromJS(this.state.card).toJS() - - // if (type === 'revert') { - // let done = false - // if (item.$parentId) { - // card.subcards.forEach(col => { - // if (item.$parentId === col.uuid) { - // if (item.$side !== 'back') { - // col.elements = col.elements ? [...col.elements, item] : [item] - // } else { - // col.backElements = col.backElements ? [...col.backElements, item] : [item] - // } - // done = true - // } - // }) - // } - - // if (!done) { - // card.action = card.action ? [...card.action, item] : [item] - // } - - // card.btnlog = logs - - // this.updateComponent(card) - // notification.success({ - // top: 92, - // message: '鎭㈠鎴愬姛锛�', - // duration: 2 - // }) - // } else { - // card.btnlog = logs - // this.updateComponent(card) - // notification.success({ - // top: 92, - // message: '娓呴櫎鎴愬姛锛�', - // duration: 2 - // }) - // } - // } addCard = (copy) => { let card = fromJS(this.state.card).toJS() @@ -779,7 +718,6 @@ <CopyComponent type="datacard" card={card}/> <PasteComponent options={['action', 'search', 'form', 'cardcell']} updateConfig={this.pasteComponent} /> <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle}/> - {/* <LogComponent btnlog={card.btnlog || []} handlelog={this.handleLog} /> */} <ClockComponent config={card} updateConfig={this.updateComponent}/> <UserComponent config={card}/> <DeleteOutlined className="close" title="鍒犻櫎缁勪欢" onClick={() => this.props.deletecomponent(card.uuid)} /> -- Gitblit v1.8.0