Commit 9083a7ebeed03019a44a9a8be737218540d85659

Authored by ww
1 parent 0044234c

fix: data board list not request on reset

@@ -40,6 +40,12 @@ @@ -40,6 +40,12 @@
40 }, 40 },
41 submitFunc: async () => { 41 submitFunc: async () => {
42 try { 42 try {
  43 + const params = searchFormMethod.getFieldsValue();
  44 + await getDatasource(params);
  45 + } catch (error) {}
  46 + },
  47 + resetFunc: async () => {
  48 + try {
43 await getDatasource(); 49 await getDatasource();
44 } catch (error) {} 50 } catch (error) {}
45 }, 51 },
@@ -101,10 +107,9 @@ @@ -101,10 +107,9 @@
101 return basicMenu; 107 return basicMenu;
102 }); 108 });
103 109
104 - const getDatasource = async () => { 110 + const getDatasource = async (params: Recordable = {}) => {
105 try { 111 try {
106 loading.value = true; 112 loading.value = true;
107 - const params = searchFormMethod.getFieldsValue() || {};  
108 const { total, items } = await getDataBoardList({ 113 const { total, items } = await getDataBoardList({
109 page: unref(paginationProp).current, 114 page: unref(paginationProp).current,
110 pageSize: unref(paginationProp).pageSize, 115 pageSize: unref(paginationProp).pageSize,