@bit-sun/business-component 2.0.1 → 2.0.4
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/dist/components/Business/AddSelectBusiness/index.d.ts +1 -0
- package/dist/components/Functional/AddSelect/index.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1596 -217
- package/dist/index.js +1596 -215
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.md +41 -0
- package/src/components/Business/AddSelectBusiness/index.tsx +297 -0
- package/src/components/Business/CommodityEntry/index.tsx +5 -2
- package/src/components/Functional/AddSelect/index.less +284 -0
- package/src/components/Functional/AddSelect/index.md +118 -0
- package/src/components/Functional/AddSelect/index.tsx +896 -0
- package/src/components/Functional/DataImport/index.tsx +0 -1
- package/src/components/Functional/DataValidation/index.tsx +8 -1
- package/src/index.ts +2 -0
|
@@ -400,13 +400,20 @@ class DataValidation extends React.Component {
|
|
|
400
400
|
};
|
|
401
401
|
|
|
402
402
|
resetData = () => {
|
|
403
|
-
const { validDataUrl, updateData, columns } = this.props;
|
|
403
|
+
const { validDataUrl, updateData, columns, isBrandAuth } = this.props;
|
|
404
404
|
const resultData = this.getData().filter(d => {
|
|
405
405
|
return _.compact(Object.values(d)).length
|
|
406
406
|
})
|
|
407
407
|
|
|
408
|
+
// 处理业务参数
|
|
409
|
+
let otherParams={}
|
|
410
|
+
if(isBrandAuth){
|
|
411
|
+
otherParams = { brandAuth: 'ctl-withAuth' }
|
|
412
|
+
}
|
|
413
|
+
|
|
408
414
|
axios
|
|
409
415
|
.post(validDataUrl, {
|
|
416
|
+
...otherParams,
|
|
410
417
|
columns: columns,
|
|
411
418
|
data: resultData,
|
|
412
419
|
})
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,9 @@ export { default as DataValidation } from './components/Functional/DataValidatio
|
|
|
22
22
|
export { default as DataImport } from './components/Functional/DataImport';
|
|
23
23
|
export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
|
|
24
24
|
export { default as SearchSelect } from './components/Functional/SearchSelect';
|
|
25
|
+
export { default as AddSelect } from './components/Functional/AddSelect';
|
|
25
26
|
export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
|
|
27
|
+
export * from './components/Business/AddSelectBusiness';
|
|
26
28
|
export { default as CommodityEntry } from './components/Business/CommodityEntry';
|
|
27
29
|
export { default as CheckOneUser } from './utils/CheckOneUser';
|
|
28
30
|
export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
|