Commit 43386bdd0b21f5e0b9cff34fbc680037d9896cde
1 parent
c94fc2a1
fix: DEFECT-1196 设备管理任务中心重置查询条件不生效
Showing
1 changed file
with
2 additions
and
3 deletions
... | ... | @@ -24,7 +24,6 @@ |
24 | 24 | showAdvancedButton: true, |
25 | 25 | labelWidth: 100, |
26 | 26 | submitFunc: async () => { |
27 | - pagination.params = getFieldsValue(); | |
28 | 27 | getDataSource(); |
29 | 28 | }, |
30 | 29 | }); |
... | ... | @@ -36,7 +35,6 @@ |
36 | 35 | showQuickJumper: true, |
37 | 36 | size: 'small', |
38 | 37 | showTotal: (total: number) => `共 ${total} 条数据`, |
39 | - params: {} as Recordable, | |
40 | 38 | }); |
41 | 39 | |
42 | 40 | const dataSource = ref<TaskRecordType[]>([]); |
... | ... | @@ -45,11 +43,12 @@ |
45 | 43 | const getDataSource = async () => { |
46 | 44 | try { |
47 | 45 | loading.value = true; |
46 | + const params = getFieldsValue() || {}; | |
48 | 47 | const { items } = await getTaskCenterList({ |
49 | 48 | page: pagination.current, |
50 | 49 | pageSize: pagination.pageSize, |
51 | 50 | tbDeviceId: props.tbDeviceId, |
52 | - ...pagination.params, | |
51 | + ...params, | |
53 | 52 | }); |
54 | 53 | dataSource.value = items; |
55 | 54 | } catch (error) { | ... | ... |