From 25b1262a25df82f32296afe3802836e768f2143f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 15 五月 2020 14:15:30 +0800
Subject: [PATCH] 2020-05-15

---
 src/tabviews/zshare/normalTable/index.jsx |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx
index 8816a34..b74047b 100644
--- a/src/tabviews/zshare/normalTable/index.jsx
+++ b/src/tabviews/zshare/normalTable/index.jsx
@@ -17,6 +17,7 @@
   static propTpyes = {
     menuType: PropTypes.any,       // 涓夌骇鑿滃崟绫诲瀷锛孒S闇�鐗规畩澶勭悊
     tableId: PropTypes.string,     // 鍒楄〃Id
+    pageSize: PropTypes.any,       // 姣忛〉鏁版嵁
     dict: PropTypes.object,        // 瀛楀吀椤�
     config: PropTypes.object,      // 椤甸潰閰嶇疆
     MenuID: PropTypes.string,      // 鑿滃崟Id
@@ -46,7 +47,7 @@
   }
 
   UNSAFE_componentWillMount () {
-    const { menuType, config, memberLevel } = this.props
+    const { menuType, config, memberLevel, pageSize } = this.props
     let columns = JSON.parse(JSON.stringify(this.props.columns))
     let lineMarks = []
     let _columns = []
@@ -74,7 +75,7 @@
       if (item.hidden === true || item.Hide === 'true') return
 
       if (_format && !Math.floor(Math.random() * radio)) {
-        item.format = true
+        item.blur = true
       }
 
       if (item.marks) {
@@ -130,6 +131,7 @@
 
     this.setState({
       columns: _columns,
+      pageSize: pageSize ? pageSize : 10,
       lineMarks: lineMarks,
       colMap: colMap
     })
@@ -259,7 +261,7 @@
         }
       }
 
-      if (item.format) {
+      if (item.blur) {
         className = ''
         content = md5(content)
       }
@@ -326,7 +328,7 @@
         }
       }
 
-      if (item.format) {
+      if (item.blur) {
         className = ''
         content = md5(content)
       }
@@ -379,7 +381,7 @@
 
       content = content ? (item.prefix || '') + content + (item.postfix || '') : ''
 
-      if (item.format) {
+      if (item.blur) {
         content = md5(content)
       }
 
@@ -452,7 +454,7 @@
             }
           }
 
-          if (item.format) {
+          if (item.blur) {
             content = md5(content)
           }
 
@@ -489,7 +491,7 @@
             }
           }
 
-          if (item.format) {
+          if (item.blur) {
             content = md5(content)
           }
 
@@ -501,7 +503,7 @@
             content = (col.prefix || '') + record[col.field] + (col.postfix || '')
           }
 
-          if (item.format) {
+          if (item.blur) {
             content = md5(content)
           }
 

--
Gitblit v1.8.0