@bit-sun/business-component 2.0.2 → 2.0.5

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.
@@ -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
@@ -24,6 +24,7 @@ export { default as QueryMutipleInput } from './components/Functional/QueryMutip
24
24
  export { default as SearchSelect } from './components/Functional/SearchSelect';
25
25
  export { default as AddSelect } from './components/Functional/AddSelect';
26
26
  export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
27
+ export * from './components/Business/AddSelectBusiness';
27
28
  export { default as CommodityEntry } from './components/Business/CommodityEntry';
28
29
  export { default as CheckOneUser } from './utils/CheckOneUser';
29
30
  export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';