xujing пре 5 година
родитељ
комит
cc32705bd9
2 измењених фајлова са 9 додато и 7 уклоњено
  1. 7
    6
      src/global.less
  2. 2
    1
      src/pages/statistical/consultant/index.jsx

+ 7
- 6
src/global.less Прегледај датотеку

@@ -10,12 +10,6 @@ body,
10 10
   filter: invert(80%);
11 11
 }
12 12
 
13
-.ant-layout {
14
-  min-height: 100vh;
15
-  background-color: #f8f8f8;
16
-  height: fit-content;
17
-}
18
-
19 13
 canvas {
20 14
   display: block;
21 15
 }
@@ -191,3 +185,10 @@ ol {
191 185
     border-top:none;
192 186
   }
193 187
 }
188
+:global {
189
+  .ant-layout {
190
+    min-height: 100vh;
191
+    background-color: #f8f8f8;
192
+    height: fit-content;
193
+  }  
194
+}

+ 2
- 1
src/pages/statistical/consultant/index.jsx Прегледај датотеку

@@ -400,6 +400,7 @@ function record(props) {
400 400
     ]
401 401
     const list = data.records
402 402
     const _list = list && list.length > 0 ? [totalRow, ...list] : [];
403
+    let row = 0
403 404
     return (
404 405
 
405 406
         <>
@@ -454,7 +455,7 @@ function record(props) {
454 455
                     导出
455 456
                 </Button>
456 457
             </AuthButton>
457
-            <Table rowKey={(index => { index })}
458
+            <Table rowKey={record => data.current * data.size + (row++)}
458 459
                 style={{ marginTop: '30px' }}
459 460
                 dataSource={_list}
460 461
                 // dataSource={data.records}