|
@@ -19,6 +19,7 @@ const UserBehavior = (props) => {
|
19
|
19
|
...apis.indexEcharts.intentionUsers,
|
20
|
20
|
params: { ...params }
|
21
|
21
|
}).then((data) => {
|
|
22
|
+ console.log(data,"datadata")
|
22
|
23
|
setData(data)
|
23
|
24
|
})
|
24
|
25
|
}
|
|
@@ -26,7 +27,7 @@ const UserBehavior = (props) => {
|
26
|
27
|
// 分页
|
27
|
28
|
function onChange(pageNum) {
|
28
|
29
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
29
|
|
- IntentionUsers({ pageNum: pageNum, pageSize: 5 })
|
|
30
|
+ IntentionUsers({ pageNum: pageNum, pageSize: 5, buildingId })
|
30
|
31
|
}
|
31
|
32
|
|
32
|
33
|
// getIntentionUsers({ commit }, payload) {
|
|
@@ -84,7 +85,7 @@ const UserBehavior = (props) => {
|
84
|
85
|
];
|
85
|
86
|
|
86
|
87
|
function handleBuildingChange (e) {
|
87
|
|
- IntentionUsers({ buildingId: e })
|
|
88
|
+ IntentionUsers({ pageNum: 1, pageSize: 5, buildingId: e })
|
88
|
89
|
setBuildingId(e)
|
89
|
90
|
}
|
90
|
91
|
return (
|
|
@@ -94,7 +95,7 @@ const UserBehavior = (props) => {
|
94
|
95
|
|
95
|
96
|
<BuildSelect slot='action' onChange={(e => handleBuildingChange(e))} value={buildingId}></BuildSelect>
|
96
|
97
|
|
97
|
|
- <Table rowKey="IntentionalCustomers" dataSource={data.records} columns={columns} style={{marginTop:'15px'}} pagination={{ total: data.total, onChange: e => onChange(e) }} scroll={{ y: 500 }} />
|
|
98
|
+ <Table rowKey="IntentionalCustomers" dataSource={data.records} columns={columns} style={{marginTop:'15px'}} pagination={{ total: data.total, defaultPageSize: 5, onChange: e => onChange(e) }} scroll={{ y: 500 }} />
|
98
|
99
|
|
99
|
100
|
</div>
|
100
|
101
|
|