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