From 145a6eb83133497b3863add21610ac6015e6533e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 13 五月 2021 18:33:34 +0800
Subject: [PATCH] 2021-05-13

---
 src/tabviews/custom/components/card/data-card/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/card/data-card/index.jsx b/src/tabviews/custom/components/card/data-card/index.jsx
index 9d2542e..1c56228 100644
--- a/src/tabviews/custom/components/card/data-card/index.jsx
+++ b/src/tabviews/custom/components/card/data-card/index.jsx
@@ -65,6 +65,7 @@
         item.key = index
         item.$$uuid = item[_config.setting.primaryKey] || ''
         item.$$BID = BID || ''
+        item.$Index = index + 1
         return item
       })
     }
@@ -125,6 +126,7 @@
         item.key = index
         item.$$uuid = item[config.setting.primaryKey] || ''
         item.$$BID = BID || ''
+        item.$Index = index + 1
         return item
       })
 
@@ -268,6 +270,11 @@
 
     let result = await Api.genericInterface(param)
     if (result.status) {
+      let start = 1
+      if (config.setting.laypage) {
+        start = config.setting.pageSize * (pageIndex - 1) + 1
+      }
+
       this.setState({
         activeKey: '',
         selectKeys: [],
@@ -276,6 +283,7 @@
           item.key = index
           item.$$uuid = item[config.setting.primaryKey] || ''
           item.$$BID = BID || ''
+          item.$Index = index + start
           return item
         }),
         total: result.total,
@@ -333,6 +341,7 @@
               _data.key = item.key
               _data.$$uuid = _data[config.setting.primaryKey] || ''
               _data.$$BID = BID || ''
+              _data.$Index = item.$Index
               return _data
             } else {
               return item
@@ -557,7 +566,6 @@
             actions={config.action}
             columns={config.columns}
             selectedData={selectedData}
-            refreshdata={this.refreshbyaction}
           /> : null
         }
         <div className={`data-zoom ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}>

--
Gitblit v1.8.0