From d7336f63fed8af93eec43243db8c0607781b3d5d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 10 十月 2021 14:13:35 +0800
Subject: [PATCH] 2021-10-10

---
 src/tabviews/custom/components/table/edit-table/normalTable/index.jsx |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
index 0881563..58d0e67 100644
--- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -924,9 +924,19 @@
   }
 
   pickupChange = () => {
+    const { submit } = this.props
     const { data } = this.state
 
     let pickup = !this.state.pickup
+
+    if (!submit.sheet) {
+      notification.warning({
+        top: 92,
+        message: '鎻愪氦鎸夐挳灏氭湭璁剧疆锛屼笉鍙紪杈戯紒',
+        duration: 5
+      })
+      return
+    }
 
     if (!pickup && !is(fromJS(data), fromJS(this.state.edData))) {
       const _this = this
@@ -1025,7 +1035,7 @@
           pagination={_pagination}
         />
         {_footer ? <div className={'normal-table-footer ' + (_pagination ? 'pagination' : '')}>{_footer}</div> : null}
-        {pickup && setting.addable === 'true' ? <Button onClick={this.addLine} style={{display: 'block', width: '100%', color: '#26C281'}} icon="plus" type="link"></Button> : null}
+        {pickup && setting.addable === 'true' ? <Button onClick={this.addLine} style={{display: 'block', width: '100%', color: '#26C281', border: '1px solid #dddddd', borderRadius: 0}} icon="plus" type="link"></Button> : null}
       </div>
     )
   }

--
Gitblit v1.8.0