@bit-sun/business-component 2.3.23-beta01 → 2.3.23-beta03

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.
@@ -34,6 +34,7 @@ export declare const choiceType: Readonly<{
34
34
  340: "规则模板选择器";
35
35
  350: "营销区域选择器";
36
36
  360: "角色选择器";
37
+ 370: "销售渠道选择器";
37
38
  }>;
38
39
  export declare const inputType: any;
39
40
  export declare const valueType: any;
package/dist/index.esm.js CHANGED
@@ -1279,9 +1279,13 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1279
1279
  });
1280
1280
  };
1281
1281
  var memoizeOneFormatter = index$1(formatter, isEqual);
1282
- var go2BackAndClose = function go2BackAndClose() {
1282
+ var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1283
1283
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1284
- history.goBack();
1284
+ if (backHistoryPath) {
1285
+ history.push(backHistoryPath);
1286
+ } else {
1287
+ history.goBack();
1288
+ }
1285
1289
  };
1286
1290
  /**
1287
1291
  * 处理bssulaTable的公共回显样式
@@ -11976,7 +11980,8 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
11976
11980
  _ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
11977
11981
  donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
11978
11982
  title = _ref.title,
11979
- pathToRegexp = _ref.pathToRegexp;
11983
+ pathToRegexp = _ref.pathToRegexp,
11984
+ backHistoryPath = _ref.backHistoryPath;
11980
11985
  var _useState3 = useState(false),
11981
11986
  _useState4 = _slicedToArray(_useState3, 2),
11982
11987
  isFullScreen = _useState4[0],
@@ -12100,7 +12105,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
12100
12105
  }, /*#__PURE__*/React.createElement("div", {
12101
12106
  className: 'back_home_img_content',
12102
12107
  onClick: function onClick() {
12103
- go2BackAndClose();
12108
+ go2BackAndClose(backHistoryPath);
12104
12109
  // history.goBack();
12105
12110
  }
12106
12111
  }, /*#__PURE__*/React.createElement(ArrowLeftOutlined, null)), /*#__PURE__*/React.createElement("div", {
@@ -24642,6 +24647,19 @@ var inputTypes = {
24642
24647
  filter: 'qp-name,code-orGroup-in'
24643
24648
  }
24644
24649
  })
24650
+ },
24651
+ 370: {
24652
+ type: 'bs-marketChannelSelect',
24653
+ props: _objectSpread2({
24654
+ treeCheckable: false,
24655
+ requestConfig: {
24656
+ treeChildrenRoom: 'channelInfoSon',
24657
+ initialParams: {
24658
+ 'qp-isMain-eq': 1,
24659
+ 'qp-type-eq': 1
24660
+ }
24661
+ }
24662
+ }, normalSingleSelectProps)
24645
24663
  }
24646
24664
  },
24647
24665
  30: {
@@ -24807,6 +24825,20 @@ var inputTypes = {
24807
24825
  filter: 'qp-name,code-orGroup-in'
24808
24826
  }
24809
24827
  })
24828
+ },
24829
+ 370: {
24830
+ type: 'bs-marketChannelSelect',
24831
+ props: _objectSpread2({
24832
+ treeCheckable: true,
24833
+ treeCheckStrictly: true,
24834
+ requestConfig: {
24835
+ treeChildrenRoom: 'channelInfoSon',
24836
+ initialParams: {
24837
+ 'qp-isMain-eq': 1,
24838
+ 'qp-type-eq': 1
24839
+ }
24840
+ }
24841
+ }, normalSingleSelectProps)
24810
24842
  }
24811
24843
  }
24812
24844
  };
@@ -24839,7 +24871,8 @@ var choiceType = Object.freeze({
24839
24871
  330: '变量',
24840
24872
  340: '规则模板选择器',
24841
24873
  350: '营销区域选择器',
24842
- 360: '角色选择器'
24874
+ 360: '角色选择器',
24875
+ 370: '销售渠道选择器'
24843
24876
  });
24844
24877
  var inputType = {
24845
24878
  10: '输入',
@@ -29828,9 +29861,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29828
29861
  };
29829
29862
  }) || undefined;
29830
29863
  _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
29831
- } else {
29832
- _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29833
- }
29864
+ } else ;
29834
29865
  var child = {
29835
29866
  title: "".concat(item.name, "-").concat(element.name),
29836
29867
  key: element.id,
@@ -29872,9 +29903,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29872
29903
  };
29873
29904
  }) || undefined;
29874
29905
  _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
29875
- } else {
29876
- _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29877
- }
29906
+ } else ;
29878
29907
  var child = {
29879
29908
  title: "".concat(parentTitle, "-").concat(element.name),
29880
29909
  key: "".concat(parentKey, ".").concat(element.id),
package/dist/index.js CHANGED
@@ -1299,9 +1299,13 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1299
1299
  });
1300
1300
  };
1301
1301
  var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
1302
- var go2BackAndClose = function go2BackAndClose() {
1302
+ var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1303
1303
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1304
- umi.history.goBack();
1304
+ if (backHistoryPath) {
1305
+ umi.history.push(backHistoryPath);
1306
+ } else {
1307
+ umi.history.goBack();
1308
+ }
1305
1309
  };
1306
1310
  /**
1307
1311
  * 处理bssulaTable的公共回显样式
@@ -11996,7 +12000,8 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
11996
12000
  _ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
11997
12001
  donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
11998
12002
  title = _ref.title,
11999
- pathToRegexp = _ref.pathToRegexp;
12003
+ pathToRegexp = _ref.pathToRegexp,
12004
+ backHistoryPath = _ref.backHistoryPath;
12000
12005
  var _useState3 = React.useState(false),
12001
12006
  _useState4 = _slicedToArray(_useState3, 2),
12002
12007
  isFullScreen = _useState4[0],
@@ -12120,7 +12125,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
12120
12125
  }, /*#__PURE__*/React__default['default'].createElement("div", {
12121
12126
  className: 'back_home_img_content',
12122
12127
  onClick: function onClick() {
12123
- go2BackAndClose();
12128
+ go2BackAndClose(backHistoryPath);
12124
12129
  // history.goBack();
12125
12130
  }
12126
12131
  }, /*#__PURE__*/React__default['default'].createElement(icons.ArrowLeftOutlined, null)), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -24662,6 +24667,19 @@ var inputTypes = {
24662
24667
  filter: 'qp-name,code-orGroup-in'
24663
24668
  }
24664
24669
  })
24670
+ },
24671
+ 370: {
24672
+ type: 'bs-marketChannelSelect',
24673
+ props: _objectSpread2({
24674
+ treeCheckable: false,
24675
+ requestConfig: {
24676
+ treeChildrenRoom: 'channelInfoSon',
24677
+ initialParams: {
24678
+ 'qp-isMain-eq': 1,
24679
+ 'qp-type-eq': 1
24680
+ }
24681
+ }
24682
+ }, normalSingleSelectProps)
24665
24683
  }
24666
24684
  },
24667
24685
  30: {
@@ -24827,6 +24845,20 @@ var inputTypes = {
24827
24845
  filter: 'qp-name,code-orGroup-in'
24828
24846
  }
24829
24847
  })
24848
+ },
24849
+ 370: {
24850
+ type: 'bs-marketChannelSelect',
24851
+ props: _objectSpread2({
24852
+ treeCheckable: true,
24853
+ treeCheckStrictly: true,
24854
+ requestConfig: {
24855
+ treeChildrenRoom: 'channelInfoSon',
24856
+ initialParams: {
24857
+ 'qp-isMain-eq': 1,
24858
+ 'qp-type-eq': 1
24859
+ }
24860
+ }
24861
+ }, normalSingleSelectProps)
24830
24862
  }
24831
24863
  }
24832
24864
  };
@@ -24859,7 +24891,8 @@ var choiceType = Object.freeze({
24859
24891
  330: '变量',
24860
24892
  340: '规则模板选择器',
24861
24893
  350: '营销区域选择器',
24862
- 360: '角色选择器'
24894
+ 360: '角色选择器',
24895
+ 370: '销售渠道选择器'
24863
24896
  });
24864
24897
  var inputType = {
24865
24898
  10: '输入',
@@ -29848,9 +29881,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29848
29881
  };
29849
29882
  }) || undefined;
29850
29883
  _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
29851
- } else {
29852
- _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29853
- }
29884
+ } else ;
29854
29885
  var child = {
29855
29886
  title: "".concat(item.name, "-").concat(element.name),
29856
29887
  key: element.id,
@@ -29892,9 +29923,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29892
29923
  };
29893
29924
  }) || undefined;
29894
29925
  _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
29895
- } else {
29896
- _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29897
- }
29926
+ } else ;
29898
29927
  var child = {
29899
29928
  title: "".concat(parentTitle, "-").concat(element.name),
29900
29929
  key: "".concat(parentKey, ".").concat(element.id),
@@ -1,7 +1,7 @@
1
1
  export declare function downloadExcel(data: any, fileName?: any, isResUrl?: boolean): void;
2
2
  export declare const formatter: (data: any, parentAuthority: any, parentName: any) => any;
3
3
  export declare const memoizeOneFormatter: any;
4
- export declare const go2BackAndClose: () => void;
4
+ export declare const go2BackAndClose: (backHistoryPath: any) => void;
5
5
  /**
6
6
  * 处理bssulaTable的公共回显样式
7
7
  * @param col 每一具体行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.3.23-beta01",
3
+ "version": "2.3.23-beta03",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -63,6 +63,7 @@ const DetailWrapper = React.memo(
63
63
  donotNeedShowScreenIcon=false,
64
64
  title,
65
65
  pathToRegexp,
66
+ backHistoryPath,
66
67
  }: any) => {
67
68
  const [isFullScreen, setIsFnllScreen]: any = useState(false);
68
69
  const [breadcrumbArr, setBreadCrumbArr]: any = useState([]);
@@ -218,7 +219,7 @@ const DetailWrapper = React.memo(
218
219
  <div
219
220
  className={'back_home_img_content'}
220
221
  onClick={() => {
221
- go2BackAndClose();
222
+ go2BackAndClose(backHistoryPath);
222
223
  // history.goBack();
223
224
  }}
224
225
  >
@@ -311,4 +312,4 @@ const DetailWrapper = React.memo(
311
312
  }
312
313
  return true;
313
314
  },
314
- );
315
+ );
@@ -178,6 +178,17 @@ export const inputTypes:any = {
178
178
  },
179
179
  },
180
180
  },
181
+ 370: {
182
+ type: 'bs-marketChannelSelect',
183
+ props: {
184
+ treeCheckable: false,
185
+ requestConfig: {
186
+ treeChildrenRoom: 'channelInfoSon',
187
+ initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 },
188
+ },
189
+ ...normalSingleSelectProps,
190
+ },
191
+ },
181
192
  },
182
193
  30: {
183
194
  10: {
@@ -361,6 +372,18 @@ export const inputTypes:any = {
361
372
  },
362
373
  },
363
374
  },
375
+ 370: {
376
+ type: 'bs-marketChannelSelect',
377
+ props: {
378
+ treeCheckable: true,
379
+ treeCheckStrictly: true,
380
+ requestConfig: {
381
+ treeChildrenRoom: 'channelInfoSon',
382
+ initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 }
383
+ },
384
+ ...normalSingleSelectProps,
385
+ },
386
+ },
364
387
  },
365
388
  };
366
389
 
@@ -403,6 +426,7 @@ export const choiceType = Object.freeze({
403
426
  340: '规则模板选择器',
404
427
  350: '营销区域选择器',
405
428
  360: '角色选择器',
429
+ 370: '销售渠道选择器',
406
430
  });
407
431
  export const inputType:any ={
408
432
  10: '输入',
@@ -138,9 +138,9 @@ class RuleObjectComponent extends Component {
138
138
  `${item.code}.${element.code}`
139
139
  ] = list;
140
140
  } else {
141
- this.propertyCodeToRangeIdMap[
142
- `${item.code}.${element.code}`
143
- ] = Object.keys(infoVo).length ? infoVo : undefined;
141
+ // this.propertyCodeToRangeIdMap[
142
+ // `${item.code}.${element.code}`
143
+ // ] = Object.keys(infoVo).length ? infoVo : undefined;
144
144
  }
145
145
  let child = {
146
146
  title: `${item.name}-${element.name}`,
@@ -200,9 +200,9 @@ class RuleObjectComponent extends Component {
200
200
  `${rootObjCode}.${parentKey}.${element.code}`
201
201
  ] = list;
202
202
  } else {
203
- this.propertyCodeToRangeIdMap[
204
- `${rootObjCode}.${parentKey}.${element.code}`
205
- ] = Object.keys(infoVo).length ? infoVo : undefined;
203
+ // this.propertyCodeToRangeIdMap[
204
+ // `${rootObjCode}.${parentKey}.${element.code}`
205
+ // ] = Object.keys(infoVo).length ? infoVo : undefined;
206
206
  }
207
207
  let child = {
208
208
  title: `${parentTitle}-${element.name}`,
@@ -60,9 +60,13 @@ export const formatter = (data, parentAuthority, parentName) => {
60
60
 
61
61
  export const memoizeOneFormatter = memoizeOne(formatter, isEqual);
62
62
 
63
- export const go2BackAndClose = () => {
63
+ export const go2BackAndClose = (backHistoryPath) => {
64
64
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
65
- history.goBack();
65
+ if(backHistoryPath){
66
+ history.push(backHistoryPath)
67
+ } else {
68
+ history.goBack();
69
+ }
66
70
  }
67
71
 
68
72
  /**
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import './index.less';
3
- declare const MenuSetting: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
- export default MenuSetting;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './drawContent.less';
3
- declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
4
- export default DrawContent;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
3
- export default CustomerMenuHeader;