@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.
@@ -401,7 +401,6 @@ class DataImport extends React.Component {
401
401
  let sheetData = luckysheet.getSheetData();
402
402
  let data = JSON.parse(JSON.stringify(sheetData))
403
403
  .filter((item) => {
404
- debugger
405
404
  return item[0]
406
405
  })
407
406
  .map((item) => {
@@ -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';