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
   filter: invert(80%);
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
 canvas {
13
 canvas {
20
   display: block;
14
   display: block;
21
 }
15
 }
191
     border-top:none;
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
     ]
400
     ]
401
     const list = data.records
401
     const list = data.records
402
     const _list = list && list.length > 0 ? [totalRow, ...list] : [];
402
     const _list = list && list.length > 0 ? [totalRow, ...list] : [];
403
+    let row = 0
403
     return (
404
     return (
404
 
405
 
405
         <>
406
         <>
454
                     导出
455
                     导出
455
                 </Button>
456
                 </Button>
456
             </AuthButton>
457
             </AuthButton>
457
-            <Table rowKey={(index => { index })}
458
+            <Table rowKey={record => data.current * data.size + (row++)}
458
                 style={{ marginTop: '30px' }}
459
                 style={{ marginTop: '30px' }}
459
                 dataSource={_list}
460
                 dataSource={_list}
460
                 // dataSource={data.records}
461
                 // dataSource={data.records}