Commit a573101ee824d1c88a5f9ae1d4300bd107428c41

Authored by ww
1 parent b65b995b

fix: 修复任务中心重置按钮未重新提交表单

@@ -33,6 +33,9 @@ @@ -33,6 +33,9 @@
33 submitFunc: async () => { 33 submitFunc: async () => {
34 getDataSource(); 34 getDataSource();
35 }, 35 },
  36 + resetFunc: async () => {
  37 + getDataSource({});
  38 + },
36 }); 39 });
37 40
38 const paginationChange = (page: number, pageSize: number) => { 41 const paginationChange = (page: number, pageSize: number) => {
@@ -54,10 +57,10 @@ @@ -54,10 +57,10 @@
54 57
55 const dataSource = ref<TaskRecordType[]>([]); 58 const dataSource = ref<TaskRecordType[]>([]);
56 const loading = ref(false); 59 const loading = ref(false);
57 - const getDataSource = async () => { 60 + const getDataSource = async (params?: Recordable) => {
58 try { 61 try {
59 loading.value = true; 62 loading.value = true;
60 - const params = getFieldsValue(); 63 + params = params || getFieldsValue();
61 const { items, total } = await getTaskCenterList({ 64 const { items, total } = await getTaskCenterList({
62 page: pagination.current, 65 page: pagination.current,
63 pageSize: pagination.pageSize, 66 pageSize: pagination.pageSize,