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/table/normal-table/index.jsx |   54 ------------------------------------------------------
 1 files changed, 0 insertions(+), 54 deletions(-)

diff --git a/src/menu/components/table/normal-table/index.jsx b/src/menu/components/table/normal-table/index.jsx
index a2448ee..d7377cd 100644
--- a/src/menu/components/table/normal-table/index.jsx
+++ b/src/menu/components/table/normal-table/index.jsx
@@ -22,7 +22,6 @@
 const UserComponent = asyncIconComponent(() => import('@/menu/components/share/usercomponent'))
 const PasteComponent = asyncIconComponent(() => import('@/menu/components/share/pastecomponent'))
 const ClockComponent = asyncIconComponent(() => import('@/menu/components/share/clockcomponent'))
-// const LogComponent = asyncIconComponent(() => import('@/menu/components/share/logcomponent'))
 const ColumnComponent = asyncComponent(() => import('./columns'))
 
 class TableCardEditComponent extends Component {
@@ -75,7 +74,6 @@
           { origin: true, uuid: Utils.getuuid(), Align: 'left', label: 'label3', field: '', Hide: 'false', IsSort: 'true', type: 'text', Width: 120 },
         ],
         scripts: [],
-        btnlog: [],
         isNew: true
       }
 
@@ -145,7 +143,6 @@
 
   componentDidMount () {
     MKEmitter.addListener('submitModal', this.handleSave)
-    // MKEmitter.addListener('logButton', this.logButton)
     MKEmitter.addListener('completeSave', this.completeSave)
   }
 
@@ -161,7 +158,6 @@
       return
     }
     MKEmitter.removeListener('submitModal', this.handleSave)
-    // MKEmitter.removeListener('logButton', this.logButton)
     MKEmitter.removeListener('completeSave', this.completeSave)
   }
 
@@ -299,17 +295,6 @@
     this.props.updateConfig(_card)
   }
 
-  // logButton = (id, item) => {
-  //   const { card } = this.state
-
-  //   if (id !== card.uuid) return
-
-  //   let btnlog = card.btnlog || []
-  //   btnlog.push(item)
-
-  //   this.updateComponent({...card, btnlog})
-  // }
-
   changeStyle = () => {
     const { card } = this.state
 
@@ -424,44 +409,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.cols.forEach(col => {
-  //         if (col.type !== 'action') return
-  //         if (item.$parentId === col.uuid) {
-  //           col.elements = col.elements ? [...col.elements, 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
-  //     })
-  //   }
-  // }
-
   getWrapForms = () => {
     const { wrap, action, columns, cols } = this.state.card
 
@@ -522,7 +469,6 @@
             <CopyComponent type="normaltable" card={card}/>
             <PasteComponent config={card} options={options} updateConfig={this.updateComponent} />
             <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