@bit-sun/business-component 1.1.39 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,6 +96,7 @@ const SearchSelect = (props: any) => {
96
96
  const fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
97
97
  if (fixedParamVal) {
98
98
  fixedParam[item] = fixedParamVal;
99
+ form.setFieldsValue({ ...form?.getFieldsValue(), [item]: fixedParamVal })
99
100
  }
100
101
  });
101
102
  }
@@ -268,10 +269,10 @@ const SearchSelect = (props: any) => {
268
269
  if(type === 1) {
269
270
  ctx?.form?.setFieldSource(resultSourceKey, source)
270
271
  setItems(source)
271
- setItemsTotal(Number(res?.total))
272
+ setItemsTotal(Number(res?.total || res?.totalCount || source.length))
272
273
  } else {
273
274
  setTableData(source)
274
- setTablePagination({...tablePagination, total: Number(res?.total), pageSize: Number(res?.size), current: Number(res?.page)})
275
+ setTablePagination({...tablePagination, total: Number(res?.total || res?.totalCount || source.length), pageSize: Number(res?.size || res?.pageSize || (params?.pageSize || pageSize)), current: Number(res?.page || res?.currentPage || (params?.currentPage || currentPage))})
275
276
  }
276
277
  })
277
278
  .catch((err) => { setFetching(false) });
package/src/index.ts CHANGED
@@ -14,6 +14,7 @@ const resposne = JSON.parse(localStorage.getItem('userInfo') || '{}');
14
14
  axios.defaults.headers.common['sso-sessionid'] = resposne?.sessionId || '';
15
15
 
16
16
  export { default as DataValidation } from './components/Functional/DataValidation';
17
+ export { default as DataImport } from './components/Functional/DataValidation/DataImport';
17
18
  export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
18
19
  export { default as SearchSelect } from './components/Functional/SearchSelect';
19
20
  export { default as BusinessSearchSelect } from './components/Business/SearchSelect';