@bit-sun/business-component 2.4.10 → 2.4.12

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的公共回显样式
@@ -10173,9 +10177,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10173
10177
  _remoteSource$resKeyV = remoteSource.resKeyValue,
10174
10178
  resKeyValue = _remoteSource$resKeyV === void 0 ? ['id', 'name'] : _remoteSource$resKeyV,
10175
10179
  _remoteSource$initial = remoteSource.initialParams,
10176
- initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial;
10180
+ initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial,
10181
+ _remoteSource$treeChi = remoteSource.treeChildrenRoom,
10182
+ treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi;
10177
10183
  var mapSearchTree = function mapSearchTree(treeDataItem) {
10178
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0; // 盘算是否为父节点
10184
+ var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
10179
10185
  var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
10180
10186
  return {
10181
10187
  title: treeDataItem[resKeyValue[1]],
@@ -10185,7 +10191,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10185
10191
  data: _objectSpread2({}, treeDataItem),
10186
10192
  isLeaf: !haveChildren,
10187
10193
  disabled: isDisabled(haveChildren, isRoot),
10188
- children: haveChildren ? treeDataItem.children.map(function (i) {
10194
+ children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
10189
10195
  return mapSearchTree(i);
10190
10196
  }) : []
10191
10197
  };
@@ -10273,8 +10279,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10273
10279
  var parallelData = function parallelData(data, result) {
10274
10280
  data.forEach(function (i) {
10275
10281
  result.push(i);
10276
- if (i.children) {
10277
- parallelData(i.children, result);
10282
+ if (i[treeChildrenRoom]) {
10283
+ parallelData(i[treeChildrenRoom], result);
10278
10284
  }
10279
10285
  });
10280
10286
  return result;
@@ -10468,6 +10474,16 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10468
10474
  }, otherRequestConfig)
10469
10475
  };
10470
10476
  break;
10477
+ case 'market-channel':
10478
+ result = {
10479
+ isChoose: true,
10480
+ remoteSource: _objectSpread2({
10481
+ url: "/channel-manage/channelInfo/tree",
10482
+ headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10483
+ resKeyValue: ['code', 'name']
10484
+ }, otherRequestConfig)
10485
+ };
10486
+ break;
10471
10487
  default:
10472
10488
  result = {
10473
10489
  treeCheckable: true,
@@ -11964,7 +11980,8 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
11964
11980
  _ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
11965
11981
  donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
11966
11982
  title = _ref.title,
11967
- pathToRegexp = _ref.pathToRegexp;
11983
+ pathToRegexp = _ref.pathToRegexp,
11984
+ backHistoryPath = _ref.backHistoryPath;
11968
11985
  var _useState3 = useState(false),
11969
11986
  _useState4 = _slicedToArray(_useState3, 2),
11970
11987
  isFullScreen = _useState4[0],
@@ -12088,7 +12105,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
12088
12105
  }, /*#__PURE__*/React.createElement("div", {
12089
12106
  className: 'back_home_img_content',
12090
12107
  onClick: function onClick() {
12091
- go2BackAndClose();
12108
+ go2BackAndClose(backHistoryPath);
12092
12109
  // history.goBack();
12093
12110
  }
12094
12111
  }, /*#__PURE__*/React.createElement(ArrowLeftOutlined, null)), /*#__PURE__*/React.createElement("div", {
@@ -24630,6 +24647,19 @@ var inputTypes = {
24630
24647
  filter: 'qp-name,code-orGroup-in'
24631
24648
  }
24632
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)
24633
24663
  }
24634
24664
  },
24635
24665
  30: {
@@ -24795,6 +24825,20 @@ var inputTypes = {
24795
24825
  filter: 'qp-name,code-orGroup-in'
24796
24826
  }
24797
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)
24798
24842
  }
24799
24843
  }
24800
24844
  };
@@ -24827,7 +24871,8 @@ var choiceType = Object.freeze({
24827
24871
  330: '变量',
24828
24872
  340: '规则模板选择器',
24829
24873
  350: '营销区域选择器',
24830
- 360: '角色选择器'
24874
+ 360: '角色选择器',
24875
+ 370: '销售渠道选择器'
24831
24876
  });
24832
24877
  var inputType = {
24833
24878
  10: '输入',
@@ -29816,9 +29861,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29816
29861
  };
29817
29862
  }) || undefined;
29818
29863
  _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
29819
- } else {
29820
- _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29821
- }
29864
+ } else ;
29822
29865
  var child = {
29823
29866
  title: "".concat(item.name, "-").concat(element.name),
29824
29867
  key: element.id,
@@ -29860,9 +29903,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29860
29903
  };
29861
29904
  }) || undefined;
29862
29905
  _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
29863
- } else {
29864
- _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29865
- }
29906
+ } else ;
29866
29907
  var child = {
29867
29908
  title: "".concat(parentTitle, "-").concat(element.name),
29868
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的公共回显样式
@@ -10193,9 +10197,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10193
10197
  _remoteSource$resKeyV = remoteSource.resKeyValue,
10194
10198
  resKeyValue = _remoteSource$resKeyV === void 0 ? ['id', 'name'] : _remoteSource$resKeyV,
10195
10199
  _remoteSource$initial = remoteSource.initialParams,
10196
- initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial;
10200
+ initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial,
10201
+ _remoteSource$treeChi = remoteSource.treeChildrenRoom,
10202
+ treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi;
10197
10203
  var mapSearchTree = function mapSearchTree(treeDataItem) {
10198
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0; // 盘算是否为父节点
10204
+ var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
10199
10205
  var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
10200
10206
  return {
10201
10207
  title: treeDataItem[resKeyValue[1]],
@@ -10205,7 +10211,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10205
10211
  data: _objectSpread2({}, treeDataItem),
10206
10212
  isLeaf: !haveChildren,
10207
10213
  disabled: isDisabled(haveChildren, isRoot),
10208
- children: haveChildren ? treeDataItem.children.map(function (i) {
10214
+ children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
10209
10215
  return mapSearchTree(i);
10210
10216
  }) : []
10211
10217
  };
@@ -10293,8 +10299,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10293
10299
  var parallelData = function parallelData(data, result) {
10294
10300
  data.forEach(function (i) {
10295
10301
  result.push(i);
10296
- if (i.children) {
10297
- parallelData(i.children, result);
10302
+ if (i[treeChildrenRoom]) {
10303
+ parallelData(i[treeChildrenRoom], result);
10298
10304
  }
10299
10305
  });
10300
10306
  return result;
@@ -10488,6 +10494,16 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10488
10494
  }, otherRequestConfig)
10489
10495
  };
10490
10496
  break;
10497
+ case 'market-channel':
10498
+ result = {
10499
+ isChoose: true,
10500
+ remoteSource: _objectSpread2({
10501
+ url: "/channel-manage/channelInfo/tree",
10502
+ headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10503
+ resKeyValue: ['code', 'name']
10504
+ }, otherRequestConfig)
10505
+ };
10506
+ break;
10491
10507
  default:
10492
10508
  result = {
10493
10509
  treeCheckable: true,
@@ -11984,7 +12000,8 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
11984
12000
  _ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
11985
12001
  donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
11986
12002
  title = _ref.title,
11987
- pathToRegexp = _ref.pathToRegexp;
12003
+ pathToRegexp = _ref.pathToRegexp,
12004
+ backHistoryPath = _ref.backHistoryPath;
11988
12005
  var _useState3 = React.useState(false),
11989
12006
  _useState4 = _slicedToArray(_useState3, 2),
11990
12007
  isFullScreen = _useState4[0],
@@ -12108,7 +12125,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
12108
12125
  }, /*#__PURE__*/React__default['default'].createElement("div", {
12109
12126
  className: 'back_home_img_content',
12110
12127
  onClick: function onClick() {
12111
- go2BackAndClose();
12128
+ go2BackAndClose(backHistoryPath);
12112
12129
  // history.goBack();
12113
12130
  }
12114
12131
  }, /*#__PURE__*/React__default['default'].createElement(icons.ArrowLeftOutlined, null)), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -24650,6 +24667,19 @@ var inputTypes = {
24650
24667
  filter: 'qp-name,code-orGroup-in'
24651
24668
  }
24652
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)
24653
24683
  }
24654
24684
  },
24655
24685
  30: {
@@ -24815,6 +24845,20 @@ var inputTypes = {
24815
24845
  filter: 'qp-name,code-orGroup-in'
24816
24846
  }
24817
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)
24818
24862
  }
24819
24863
  }
24820
24864
  };
@@ -24847,7 +24891,8 @@ var choiceType = Object.freeze({
24847
24891
  330: '变量',
24848
24892
  340: '规则模板选择器',
24849
24893
  350: '营销区域选择器',
24850
- 360: '角色选择器'
24894
+ 360: '角色选择器',
24895
+ 370: '销售渠道选择器'
24851
24896
  });
24852
24897
  var inputType = {
24853
24898
  10: '输入',
@@ -29836,9 +29881,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29836
29881
  };
29837
29882
  }) || undefined;
29838
29883
  _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
29839
- } else {
29840
- _this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29841
- }
29884
+ } else ;
29842
29885
  var child = {
29843
29886
  title: "".concat(item.name, "-").concat(element.name),
29844
29887
  key: element.id,
@@ -29880,9 +29923,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29880
29923
  };
29881
29924
  }) || undefined;
29882
29925
  _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
29883
- } else {
29884
- _this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
29885
- }
29926
+ } else ;
29886
29927
  var child = {
29887
29928
  title: "".concat(parentTitle, "-").concat(element.name),
29888
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.4.10",
3
+ "version": "2.4.12",
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: '输入',
@@ -73,6 +73,17 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
73
73
  },
74
74
  };
75
75
  break;
76
+ case 'market-channel':
77
+ result = {
78
+ isChoose: true,
79
+ remoteSource: {
80
+ url: `/channel-manage/channelInfo/tree`,
81
+ headers: otherRequestConfig?.extralHeaders,
82
+ resKeyValue: ['code', 'name'],
83
+ ...otherRequestConfig,
84
+ },
85
+ };
86
+ break;
76
87
  default:
77
88
  result = {
78
89
  treeCheckable: true,
@@ -40,10 +40,11 @@ const TreeSearchSelect = (props: any) => {
40
40
  paramsKey = 'qp-name-like',
41
41
  resKeyValue = ['id', 'name'],
42
42
  initialParams = {},
43
+ treeChildrenRoom = 'children',// 树状结构的子集容器 默认为 'children'
43
44
  } = remoteSource;
44
45
 
45
46
  const mapSearchTree = (treeDataItem: any) => {
46
- const haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0; // 盘算是否为父节点
47
+ const haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
47
48
  const isRoot = treeDataItem?.id == '0'; // 判断是否为根节点
48
49
  return {
49
50
  title: treeDataItem[resKeyValue[1]],
@@ -53,7 +54,7 @@ const TreeSearchSelect = (props: any) => {
53
54
  data: { ...treeDataItem },
54
55
  isLeaf: !haveChildren,
55
56
  disabled: isDisabled(haveChildren,isRoot),
56
- children: haveChildren ? treeDataItem.children.map((i: any) => mapSearchTree(i)) : [],
57
+ children: haveChildren ? treeDataItem[treeChildrenRoom].map((i: any) => mapSearchTree(i)) : [],
57
58
  };
58
59
  };
59
60
 
@@ -106,8 +107,8 @@ const TreeSearchSelect = (props: any) => {
106
107
  const parallelData = (data: any,result: any) => {
107
108
  data.forEach((i: any) => {
108
109
  result.push(i);
109
- if (i.children) {
110
- parallelData(i.children, result);
110
+ if (i[treeChildrenRoom]) {
111
+ parallelData(i[treeChildrenRoom], result);
111
112
  }
112
113
  });
113
114
  return result;
@@ -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;