@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.
- package/.umirc.ts +31 -0
- package/dist/components/Functional/DataValidation/DataImport.d.ts +144 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +901 -36
- package/dist/index.js +901 -35
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.ts +249 -33
- package/src/components/Business/SearchSelect/index.md +52 -6
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/DataValidation/DataImport.tsx +690 -0
- package/src/components/Functional/DataValidation/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +3 -2
- package/src/index.ts +1 -0
|
@@ -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';
|