xujing 5 年之前
父節點
當前提交
1bd27973c2

+ 1
- 1
src/pages/statistical/activity/detail.jsx 查看文件

@@ -37,7 +37,7 @@ function record(props) {
37 37
     // 查询列表
38 38
     const getList = (params) => {
39 39
         request({ ...apis.stats.activityDetail, params: { ...params }, }).then((data) => {
40
-            setData(data)
40
+            setData((data || []).reverse())
41 41
             setChartsData(data)
42 42
             updataLoading(false)
43 43
         }).catch(err => {

+ 2
- 1
src/pages/statistical/consultant/homePagePersons.jsx 查看文件

@@ -115,7 +115,8 @@ function record(props) {
115 115
 
116 116
         <>
117 117
             <Button type="danger" style={{ marginLeft: '18px' }} onClick={() => router.go(-1)}>返回</Button>
118
-            <Table rowKey={record => (record.phone + record.buildingId || '')}
118
+            <Table rowKey={(index => { index })}
119
+                // <Table rowKey={record => (record.phone + record.buildingId || '')}
119 120
                 style={{ marginTop: '30px' }}
120 121
                 dataSource={data.records}
121 122
                 columns={columns}

+ 2
- 1
src/pages/statistical/consultant/index.jsx 查看文件

@@ -436,7 +436,8 @@ function record(props) {
436 436
                     导出
437 437
                 </Button>
438 438
             </AuthButton>
439
-            <Table rowKey={record => (record.userId + record.buildingId || '')}
439
+            <Table rowKey={(index => { index })}
440
+            {/* <Table rowKey={record => (record.userId + record.buildingId || '')} */}
440 441
                 style={{ marginTop: '30px' }}
441 442
                 dataSource={_list}
442 443
                 // dataSource={data.records}

+ 2
- 1
src/pages/statistical/consultant/sharetable.jsx 查看文件

@@ -175,7 +175,8 @@ function record(props) {
175 175
                     </Form.Item>
176 176
                 </div>
177 177
             </Form>
178
-            <Table rowKey={record => (record.personId + record.buildingId || '')}
178
+            <Table rowKey={(index => { index })}
179
+            // <Table rowKey={record => (record.personId + record.buildingId || '')}
179 180
                 style={{ marginTop: '30px' }}
180 181
                 dataSource={data.records}
181 182
                 columns={columns}

+ 2
- 1
src/pages/statistical/consultant/visitPersons.jsx 查看文件

@@ -107,7 +107,8 @@ function record(props) {
107 107
 
108 108
         <>
109 109
             <Button type="danger" style={{ marginLeft: '18px' }} onClick={() => router.go(-1)}>返回</Button>
110
-            <Table rowKey={record => (record.personId + record.buildingId || '')}
110
+            <Table rowKey={(index => { index })}
111
+            // <Table rowKey={record => (record.personId + record.buildingId || '')}
111 112
                 style={{ marginTop: '30px' }}
112 113
                 dataSource={data.records}
113 114
                 columns={columns}