Commit 965269395db09730567cda8cd400bfcb3968e821

Authored by ww
1 parent e8769d0d

fix: DEFECT-1170 任务中心模糊查询重置未清空查询参数

@@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
28 showAdvancedButton: true, 28 showAdvancedButton: true,
29 labelWidth: 100, 29 labelWidth: 100,
30 submitFunc: async () => { 30 submitFunc: async () => {
31 - pagination.params = getFieldsValue();  
32 getDataSource(); 31 getDataSource();
33 }, 32 },
34 }); 33 });
@@ -39,7 +38,6 @@ @@ -39,7 +38,6 @@
39 showQuickJumper: true, 38 showQuickJumper: true,
40 size: 'small', 39 size: 'small',
41 showTotal: (total: number) => `共 ${total} 条数据`, 40 showTotal: (total: number) => `共 ${total} 条数据`,
42 - params: {} as Recordable,  
43 }); 41 });
44 42
45 const dataSource = ref<TaskRecordType[]>([]); 43 const dataSource = ref<TaskRecordType[]>([]);
@@ -47,7 +45,8 @@ @@ -47,7 +45,8 @@
47 const getDataSource = async () => { 45 const getDataSource = async () => {
48 try { 46 try {
49 loading.value = true; 47 loading.value = true;
50 - const { items } = await getTaskCenterList({ page: 1, pageSize: 10, ...pagination.params }); 48 + const params = getFieldsValue();
  49 + const { items } = await getTaskCenterList({ page: 1, pageSize: 10, ...params });
51 dataSource.value = items; 50 dataSource.value = items;
52 } catch (error) { 51 } catch (error) {
53 throw error; 52 throw error;