@bit-sun/business-component 2.2.0-alpha.1 → 2.2.0-alpha.2

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/index.esm.js CHANGED
@@ -32,8 +32,7 @@ var ENUM = {
32
32
  LIMIT_MENU_DATA: 'limitedMenuData',
33
33
  USER_INFO: 'userInfo',
34
34
  DICT_CODES: 'dicData',
35
- CHILD_APP_BACK: 'child_app_back',
36
- SEARCH_FIELDS_CONDITION: 'searchFieldsCondition' //表格搜索项信息缓存
35
+ CHILD_APP_BACK: 'child_app_back' //标记子应用goback事件
37
36
  }
38
37
  };
39
38
 
@@ -15988,43 +15987,36 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
15988
15987
  var pageTitle = useMemo(function () {
15989
15988
  return getPageTitle(pathname);
15990
15989
  }, [pathname, title]);
15991
- // const breadcrumbArr = `${basePath}${pathname}`
15992
- // .split('/')
15993
- // .slice(1)
15994
- // .map((_item, index, arr) =>
15995
- // matchParamsPath(
15996
- // `/${arr.slice(0, index + 1).join('/')}`,
15997
- // breadcrumbNameMap,
15998
- // ),
15999
- // )
16000
- // .filter((item) => item);
16001
15990
  useEffect(function () {}, []);
16002
15991
  var ShowFullScreen = function ShowFullScreen() {
16003
- if (window.top != window) {
16004
- window.parent.postMessage({
16005
- type: 'screenChange',
16006
- id: itemPath
16007
- }, '*');
16008
- setIsFnllScreen(!isFullScreen);
16009
- } else {
16010
- var _isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
16011
- var contentEle = document.querySelector("body");
16012
- // addTabsNavStyle(isFullScreen);
16013
- if (contentEle && !_isFullScreen) {
16014
- var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
16015
- if (fullScreenEle) {
16016
- fullScreenEle.call(contentEle);
16017
- setIsFnllScreen(true);
16018
- return;
16019
- }
15992
+ // if (window.top != window) {
15993
+ // window.parent.postMessage(
15994
+ // {
15995
+ // type: 'screenChange',
15996
+ // id: itemPath,
15997
+ // },
15998
+ // '*',
15999
+ // );
16000
+ // setIsFnllScreen(!isFullScreen);
16001
+ // } else {
16002
+ // }
16003
+ var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
16004
+ var contentEle = document.querySelector("body");
16005
+ // addTabsNavStyle(isFullScreen);
16006
+ if (contentEle && !isFullScreen) {
16007
+ var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
16008
+ if (fullScreenEle) {
16009
+ fullScreenEle.call(contentEle);
16010
+ setIsFnllScreen(true);
16011
+ return;
16020
16012
  }
16021
- if (document && _isFullScreen) {
16022
- var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
16023
- if (exitFullScreen) {
16024
- exitFullScreen.call(document);
16025
- setIsFnllScreen(false);
16026
- return;
16027
- }
16013
+ }
16014
+ if (document && isFullScreen) {
16015
+ var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
16016
+ if (exitFullScreen) {
16017
+ exitFullScreen.call(document);
16018
+ setIsFnllScreen(false);
16019
+ return;
16028
16020
  }
16029
16021
  }
16030
16022
  };
@@ -16947,494 +16939,22 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
16947
16939
  row: this.DraggableBodyRow
16948
16940
  }
16949
16941
  }
16950
- }))))), /*#__PURE__*/React.createElement("div", {
16942
+ }))))), /*#__PURE__*/React.createElement("img", {
16943
+ width: 32,
16951
16944
  onClick: this.showModal,
16952
- style: {
16953
- fontSize: 14
16954
- }
16955
- }, "\u5217\u8BBE\u7F6E"));
16945
+ src: shezhi
16946
+ }));
16956
16947
  }
16957
16948
  }]);
16958
16949
  return SortableTable;
16959
16950
  }(React.Component);
16960
16951
 
16961
- var _excluded$d = ["className", "style"];
16962
- var DragHandle$3 = SortableHandle(function () {
16963
- return /*#__PURE__*/React.createElement("img", {
16964
- src: drag
16965
- });
16966
- });
16967
- var SortableItem$3 = SortableElement(function (props) {
16968
- return /*#__PURE__*/React.createElement("tr", _objectSpread2({}, props));
16969
- });
16970
- var SortableBody$3 = SortableContainer(function (props) {
16971
- return /*#__PURE__*/React.createElement("tbody", _objectSpread2({}, props));
16972
- });
16973
- var SearchItemTable = /*#__PURE__*/function (_React$Component) {
16974
- _inherits(SearchItemTable, _React$Component);
16975
- var _super = _createSuper(SearchItemTable);
16976
- function SearchItemTable() {
16977
- var _this;
16978
- _classCallCheck(this, SearchItemTable);
16979
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16980
- args[_key] = arguments[_key];
16981
- }
16982
- _this = _super.call.apply(_super, [this].concat(args));
16983
- _this.state = {
16984
- dataSource: [],
16985
- columns: [],
16986
- sortDataSource: [],
16987
- setVisible: false,
16988
- searchDataSource: false,
16989
- onSearchSort: false,
16990
- isDefaultValue: false,
16991
- defaultValue: [],
16992
- bsTableCode: '' //设置table 列的标识
16993
- };
16994
- _this.patchUserSearchFieldsConfig = function (config) {
16995
- var that = _assertThisInitialized(_this);
16996
- var configvalue = config ? config.map(function (item) {
16997
- return {
16998
- name: item.name,
16999
- hidden: item.hidden
17000
- };
17001
- }) : '';
17002
- axios({
17003
- url: '/user/appConfig/saveQueryCriteria',
17004
- method: 'POST',
17005
- data: {
17006
- code: that.state.bsTableCode,
17007
- detail: configvalue ? JSON.stringify(configvalue) : ''
17008
- }
17009
- }).then(function (res) {
17010
- var _res$data;
17011
- if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
17012
- _this.patchConfigToLocalstorage(configvalue);
17013
- } else {
17014
- message.error('保存搜索项自定义失败,请稍后尝试');
17015
- }
17016
- });
17017
- };
17018
- _this.getConfigFromlocalstorage = function () {
17019
- var config = localStorage.getItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION) || '[]';
17020
- var configArray = JSON.parse(config);
17021
- var configSetting = configArray.filter(function (item) {
17022
- return item.code === _this.state.bsTableCode;
17023
- });
17024
- if (configSetting.length && configSetting[0].detail) {
17025
- return JSON.parse(configSetting[0].detail);
17026
- }
17027
- return [];
17028
- };
17029
- _this.patchConfigToLocalstorage = function (configvalue) {
17030
- var setShowSearchFields = _this.props.setShowSearchFields;
17031
- var _this$state = _this.state,
17032
- sortDataSource = _this$state.sortDataSource,
17033
- bsTableCode = _this$state.bsTableCode;
17034
- var config = localStorage.getItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION) || '[]';
17035
- var configArray = JSON.parse(config);
17036
- var currentSetting = configArray.filter(function (item) {
17037
- return item.code === bsTableCode;
17038
- });
17039
- if (currentSetting.length) {
17040
- currentSetting[0].detail = JSON.stringify(configvalue);
17041
- } else {
17042
- configArray.push({
17043
- "code": bsTableCode,
17044
- "detail": JSON.stringify(configvalue)
17045
- });
17046
- }
17047
- localStorage.setItem(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION, JSON.stringify(configArray));
17048
- _this.setState({
17049
- visible: false
17050
- });
17051
- setShowSearchFields(_toConsumableArray(sortDataSource));
17052
- };
17053
- _this.setInitValue = function () {
17054
- var _this$props = _this.props,
17055
- datasource = _this$props.datasource,
17056
- showSearchFields = _this$props.showSearchFields;
17057
- var config = _this.getConfigFromlocalstorage();
17058
- _this.setState({
17059
- isDefaultValue: true,
17060
- dataSource: datasource.map(function (item) {
17061
- var innerItem = config.filter(function (inneritem) {
17062
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
17063
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
17064
- return innerKey && innerKey === itemKey;
17065
- });
17066
- return _objectSpread2(_objectSpread2({}, item), {}, {
17067
- hidden: config.length && !innerItem.length
17068
- });
17069
- }),
17070
- defaultValue: datasource.map(function (item) {
17071
- var innerItem = config.filter(function (inneritem) {
17072
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
17073
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
17074
- return innerKey && innerKey === itemKey;
17075
- });
17076
- return _objectSpread2(_objectSpread2({}, item), {}, {
17077
- hidden: config.length && !innerItem.length
17078
- });
17079
- }),
17080
- sortDataSource: _toConsumableArray(showSearchFields)
17081
- });
17082
- };
17083
- _this.columns = [{
17084
- title: '搜索字段名称',
17085
- dataIndex: 'label',
17086
- className: 'drag-visible',
17087
- width: 100
17088
- }, {
17089
- title: '删除',
17090
- dataIndex: 'title1',
17091
- render: function render(text, record) {
17092
- return /*#__PURE__*/React.createElement("span", {
17093
- onClick: function onClick() {
17094
- _this.setState({
17095
- sortDataSource: _this.state.sortDataSource.filter(function (item) {
17096
- return item.label !== record.label;
17097
- }),
17098
- isDefaultValue: false,
17099
- dataSource: _toConsumableArray(_this.state.dataSource.map(function (item) {
17100
- if (item.label === record.label) {
17101
- return _objectSpread2(_objectSpread2({}, item), {}, {
17102
- hidden: true
17103
- });
17104
- }
17105
- return item;
17106
- }))
17107
- });
17108
- }
17109
- }, /*#__PURE__*/React.createElement("img", {
17110
- src: close
17111
- }));
17112
- }
17113
- }, {
17114
- title: 'Sort',
17115
- dataIndex: 'sort',
17116
- className: 'drag-visible',
17117
- render: function render() {
17118
- return /*#__PURE__*/React.createElement(DragHandle$3, null);
17119
- }
17120
- }];
17121
- _this.showModal = function () {
17122
- _this.setState({
17123
- visible: true
17124
- });
17125
- _this.setInitValue();
17126
- };
17127
- _this.handleOk = function (e) {
17128
- var _this$state2 = _this.state,
17129
- sortDataSource = _this$state2.sortDataSource,
17130
- isDefaultValue = _this$state2.isDefaultValue,
17131
- defaultValue = _this$state2.defaultValue;
17132
- if (!sortDataSource.length) {
17133
- message.warning('至少选择一个搜索项!');
17134
- return;
17135
- }
17136
- _this.patchUserSearchFieldsConfig(sortDataSource);
17137
- };
17138
- _this.handleCancel = function (e) {
17139
- console.log(e);
17140
- _this.setState({
17141
- visible: false
17142
- });
17143
- };
17144
- _this.handleTableHeadHidden = function (title) {
17145
- var _this$state3 = _this.state,
17146
- sortDataSource = _this$state3.sortDataSource,
17147
- dataSource = _this$state3.dataSource;
17148
- _this.setState({
17149
- sortDataSource: sortDataSource.filter(function (item) {
17150
- return item.title !== title;
17151
- }),
17152
- dataSource: _toConsumableArray(dataSource.map(function (item) {
17153
- if (item.title === title) {
17154
- return _objectSpread2(_objectSpread2({}, item), {}, {
17155
- hidden: true
17156
- });
17157
- }
17158
- return item;
17159
- }))
17160
- }, function () {
17161
- _this.handleOk();
17162
- });
17163
- };
17164
- _this.onSortEnd = function (_ref) {
17165
- var oldIndex = _ref.oldIndex,
17166
- newIndex = _ref.newIndex;
17167
- var sortDataSource = _this.state.sortDataSource;
17168
- if (oldIndex !== newIndex) {
17169
- var newData = arrayMoveImmutable([].concat(sortDataSource), oldIndex, newIndex).filter(function (el) {
17170
- return !!el;
17171
- });
17172
- _this.setState({
17173
- sortDataSource: _toConsumableArray(newData),
17174
- isDefaultValue: false
17175
- });
17176
- }
17177
- };
17178
- _this.DraggableContainer = function (props) {
17179
- return /*#__PURE__*/React.createElement(SortableBody$3, _objectSpread2({
17180
- useDragHandle: true,
17181
- disableAutoscroll: true,
17182
- helperClass: "row-dragging",
17183
- onSortEnd: _this.onSortEnd
17184
- }, props));
17185
- };
17186
- _this.DraggableBodyRow = function (_ref2) {
17187
- var className = _ref2.className,
17188
- style = _ref2.style,
17189
- restProps = _objectWithoutProperties(_ref2, _excluded$d);
17190
- var sortDataSource = _this.state.sortDataSource;
17191
- var index = sortDataSource.findIndex(function (x) {
17192
- return x.name === restProps['data-row-key'];
17193
- });
17194
- return /*#__PURE__*/React.createElement(SortableItem$3, _objectSpread2({
17195
- index: index
17196
- }, restProps));
17197
- };
17198
- _this.onChange = function (e, label) {
17199
- var _this$state4 = _this.state,
17200
- sortDataSource = _this$state4.sortDataSource,
17201
- dataSource = _this$state4.dataSource;
17202
- if (!e.target.checked) {
17203
- _this.setState({
17204
- sortDataSource: sortDataSource.filter(function (item) {
17205
- return item.label !== label;
17206
- }),
17207
- isDefaultValue: false,
17208
- dataSource: _toConsumableArray(dataSource.map(function (item) {
17209
- if (item.label === label) {
17210
- return _objectSpread2(_objectSpread2({}, item), {}, {
17211
- hidden: true
17212
- });
17213
- }
17214
- return item;
17215
- }))
17216
- });
17217
- } else {
17218
- var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
17219
- return item.label === label;
17220
- }).map(function (source) {
17221
- return _objectSpread2(_objectSpread2({}, source), {}, {
17222
- hidden: false
17223
- });
17224
- })));
17225
- _this.setState({
17226
- sortDataSource: _toConsumableArray(newSortData),
17227
- isDefaultValue: false,
17228
- dataSource: _toConsumableArray(dataSource.map(function (item) {
17229
- if (item.label === label) {
17230
- return _objectSpread2(_objectSpread2({}, item), {}, {
17231
- hidden: false
17232
- });
17233
- }
17234
- return item;
17235
- }))
17236
- });
17237
- }
17238
- };
17239
- _this.handleReset = function () {
17240
- _this.setInitValue(true);
17241
- };
17242
- _this.onSearch = function (e) {
17243
- _this.setState({
17244
- searchDataSource: e.target.value
17245
- });
17246
- };
17247
- _this.onSearchSort = function (e) {
17248
- _this.setState({
17249
- onSearchSort: e.target.value
17250
- });
17251
- };
17252
- return _this;
17253
- }
17254
- _createClass(SearchItemTable, [{
17255
- key: "componentDidMount",
17256
- value: function componentDidMount() {
17257
- var _this$props2 = this.props,
17258
- datasource = _this$props2.datasource,
17259
- showSearchFields = _this$props2.showSearchFields,
17260
- bsTableCode = _this$props2.bsTableCode;
17261
- var config = this.getConfigFromlocalstorage();
17262
- this.setState({
17263
- dataSource: datasource.map(function (item) {
17264
- var innerItem = config.filter(function (inneritem) {
17265
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
17266
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
17267
- return innerKey && innerKey === itemKey;
17268
- });
17269
- return _objectSpread2(_objectSpread2({}, item), {}, {
17270
- hidden: config.length && !innerItem.length
17271
- });
17272
- }),
17273
- defaultValue: datasource.map(function (item) {
17274
- var innerItem = config.filter(function (inneritem) {
17275
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
17276
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
17277
- return innerKey && innerKey === itemKey;
17278
- });
17279
- return _objectSpread2(_objectSpread2({}, item), {}, {
17280
- hidden: config.length && !innerItem.length
17281
- });
17282
- }),
17283
- sortDataSource: datasource.filter(function (item) {
17284
- return !item.hidden;
17285
- }).map(function (item) {
17286
- return _objectSpread2({}, item);
17287
- }),
17288
- bsTableCode: bsTableCode
17289
- });
17290
- }
17291
- }, {
17292
- key: "render",
17293
- value: function render() {
17294
- var _this2 = this;
17295
- var _this$state5 = this.state,
17296
- _this$state5$dataSour = _this$state5.dataSource,
17297
- dataSource = _this$state5$dataSour === void 0 ? [] : _this$state5$dataSour,
17298
- searchDataSource = _this$state5.searchDataSource,
17299
- sortDataSource = _this$state5.sortDataSource,
17300
- visible = _this$state5.visible,
17301
- onSearchSort = _this$state5.onSearchSort;
17302
- var newSearchSource = dataSource.filter(function (item) {
17303
- var _item$label;
17304
- return (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf(searchDataSource || '')) > -1;
17305
- });
17306
- return /*#__PURE__*/React.createElement("div", {
17307
- className: 'sort_table_wrapper'
17308
- }, visible && /*#__PURE__*/React.createElement(Modal, {
17309
- title: "\u8BBE\u7F6E\u641C\u7D22\u9879\u5185\u5BB9",
17310
- wrapClassName: 'sort_table_wrapper',
17311
- width: 820,
17312
- visible: visible,
17313
- onOk: this.handleOk,
17314
- onCancel: this.handleCancel,
17315
- footer: [/*#__PURE__*/React.createElement(Button, {
17316
- key: "back",
17317
- onClick: this.handleReset
17318
- }, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React.createElement(Button, {
17319
- key: "submit",
17320
- onClick: this.handleCancel
17321
- }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
17322
- key: "submit",
17323
- type: "primary",
17324
- onClick: this.handleOk
17325
- }, "\u786E\u8BA4")]
17326
- }, /*#__PURE__*/React.createElement("div", {
17327
- className: 'sort_table'
17328
- }, /*#__PURE__*/React.createElement("div", {
17329
- className: 'sort_table_column_wrapper'
17330
- }, /*#__PURE__*/React.createElement("span", {
17331
- className: 'sort_table_column_count'
17332
- }, "\u53EF\u9009\u5B57\u6BB5 ", /*#__PURE__*/React.createElement("span", null, "\uFF08\u5171", dataSource.length, "\u4E2A\uFF09")), /*#__PURE__*/React.createElement("div", {
17333
- className: 'sort_table_column'
17334
- }, /*#__PURE__*/React.createElement(Input, {
17335
- prefix: /*#__PURE__*/React.createElement(SearchOutlined, {
17336
- className: "site-form-item-icon"
17337
- }),
17338
- placeholder: "\u641C\u7D22",
17339
- allowClear: true,
17340
- onChange: this.onSearch,
17341
- style: {
17342
- width: 540
17343
- }
17344
- }), /*#__PURE__*/React.createElement("div", null, !searchDataSource && /*#__PURE__*/React.createElement(Checkbox, {
17345
- checked: !dataSource.some(function (item) {
17346
- if (item.hidden) return true;
17347
- return false;
17348
- }),
17349
- onClick: function onClick(e) {
17350
- _this2.setState({
17351
- isDefaultValue: false,
17352
- dataSource: _toConsumableArray(dataSource.map(function (item) {
17353
- return _objectSpread2(_objectSpread2({}, item), {}, {
17354
- hidden: !e.target.checked
17355
- });
17356
- })),
17357
- sortDataSource: e.target.checked ? _toConsumableArray(dataSource.map(function (item) {
17358
- return _objectSpread2(_objectSpread2({}, item), {}, {
17359
- hidden: false
17360
- });
17361
- })) : []
17362
- });
17363
- }
17364
- }, "\u5168\u9009")), /*#__PURE__*/React.createElement("div", {
17365
- className: 'sort_table_column_all'
17366
- }, searchDataSource ? newSearchSource.map(function (item) {
17367
- return /*#__PURE__*/React.createElement(Checkbox, {
17368
- checked: !item.hidden,
17369
- onChange: function onChange(e) {
17370
- _this2.onChange(e, item.label);
17371
- }
17372
- }, item.label);
17373
- }) : dataSource.map(function (item) {
17374
- return /*#__PURE__*/React.createElement(Checkbox, {
17375
- checked: !item.hidden,
17376
- onChange: function onChange(e) {
17377
- _this2.onChange(e, item.label);
17378
- }
17379
- }, item.label);
17380
- }), !!newSearchSource.length && /*#__PURE__*/React.createElement("span", {
17381
- style: {
17382
- width: '144px'
17383
- }
17384
- }), !newSearchSource.length && /*#__PURE__*/React.createElement("div", {
17385
- className: 'sort_table_column_all_empty'
17386
- }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C")))), /*#__PURE__*/React.createElement("div", {
17387
- className: 'sort_table_content_wrapper'
17388
- }, /*#__PURE__*/React.createElement("span", {
17389
- className: 'sort_table_content_count'
17390
- }, "\u5DF2\u9009\u5B57\u6BB5 ", /*#__PURE__*/React.createElement("span", null, "\uFF08\u5171", sortDataSource.length, "\u4E2A\uFF09")), /*#__PURE__*/React.createElement("div", {
17391
- className: 'sort_table_content'
17392
- }, /*#__PURE__*/React.createElement("span", {
17393
- style: {
17394
- paddingLeft: '10px'
17395
- }
17396
- }, /*#__PURE__*/React.createElement(Input, {
17397
- prefix: /*#__PURE__*/React.createElement(SearchOutlined, {
17398
- className: "site-form-item-icon"
17399
- }),
17400
- placeholder: "\u641C\u7D22",
17401
- allowClear: true,
17402
- onChange: this.onSearchSort,
17403
- style: {
17404
- width: 190
17405
- }
17406
- })), /*#__PURE__*/React.createElement(Table, {
17407
- pagination: false,
17408
- showHeader: false,
17409
- dataSource: onSearchSort ? sortDataSource.filter(function (item) {
17410
- var _item$label2;
17411
- return (item === null || item === void 0 ? void 0 : (_item$label2 = item.label) === null || _item$label2 === void 0 ? void 0 : _item$label2.indexOf(onSearchSort)) > -1;
17412
- }) : sortDataSource,
17413
- columns: this.columns,
17414
- rowKey: "name",
17415
- components: {
17416
- body: {
17417
- wrapper: this.DraggableContainer,
17418
- row: this.DraggableBodyRow
17419
- }
17420
- }
17421
- }))))), /*#__PURE__*/React.createElement("div", {
17422
- onClick: this.showModal,
17423
- style: {
17424
- fontSize: 14
17425
- }
17426
- }, "\u641C\u7D22\u9879\u8BBE\u7F6E"));
17427
- }
17428
- }]);
17429
- return SearchItemTable;
17430
- }(React.Component);
17431
-
17432
- var _excluded$e = ["onResize", "width"];
16952
+ var _excluded$d = ["onResize", "width"];
17433
16953
  var MemoQueryTable = /*#__PURE__*/React.memo(QueryTable);
17434
16954
  var ResizeableTitle$2 = function ResizeableTitle(props) {
17435
16955
  var onResize = props.onResize,
17436
16956
  width = props.width,
17437
- restProps = _objectWithoutProperties(props, _excluded$e);
16957
+ restProps = _objectWithoutProperties(props, _excluded$d);
17438
16958
  if (!width) {
17439
16959
  return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
17440
16960
  }
@@ -17479,18 +16999,14 @@ var BsSulaQueryTable = (function (props) {
17479
16999
  var _useState11 = useState([]),
17480
17000
  _useState12 = _slicedToArray(_useState11, 2),
17481
17001
  showColumn = _useState12[0],
17482
- setShowColumns = _useState12[1]; // 列字段
17483
- var _useState13 = useState([]),
17484
- _useState14 = _slicedToArray(_useState13, 2),
17485
- showSearchFields = _useState14[0],
17486
- setShowSearchFields = _useState14[1]; //搜索项字段
17002
+ setShowColumns = _useState12[1];
17487
17003
  var _props$isPage = props.isPage,
17488
17004
  pagination = props.pagination,
17489
17005
  tableCode = props.tableCode;
17490
- var _useState15 = useState('100vh'),
17491
- _useState16 = _slicedToArray(_useState15, 2),
17492
- height = _useState16[0],
17493
- setHeight = _useState16[1];
17006
+ var _useState13 = useState('100vh'),
17007
+ _useState14 = _slicedToArray(_useState13, 2),
17008
+ height = _useState14[0],
17009
+ setHeight = _useState14[1];
17494
17010
  var sortTableRef = useRef(null);
17495
17011
  var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
17496
17012
  // 获取table高度
@@ -17510,8 +17026,8 @@ var BsSulaQueryTable = (function (props) {
17510
17026
  if (isFull == undefined) isFull = false;
17511
17027
  return isFull;
17512
17028
  }
17513
- var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
17514
- var config = localStorage.getItem(type) || '[]';
17029
+ var getConfigFromlocalstorage = function getConfigFromlocalstorage() {
17030
+ var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
17515
17031
  var configArray = JSON.parse(config);
17516
17032
  var configSetting = configArray.filter(function (item) {
17517
17033
  return item.code === bsTableCode;
@@ -17567,7 +17083,7 @@ var BsSulaQueryTable = (function (props) {
17567
17083
  columns: _toConsumableArray(props.columns)
17568
17084
  }));
17569
17085
  var columns = props.columns;
17570
- var columnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION);
17086
+ var columnConfig = getConfigFromlocalstorage();
17571
17087
  var showColumns = columnConfig.length ? columnConfig.map(function (item) {
17572
17088
  var inner = columns.filter(function (inneritem) {
17573
17089
  var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
@@ -17591,25 +17107,10 @@ var BsSulaQueryTable = (function (props) {
17591
17107
  });
17592
17108
  setShowColumns(_toConsumableArray(showColumns));
17593
17109
  };
17594
- var setInitialSearchFieldsInfo = function setInitialSearchFieldsInfo() {
17595
- //获取搜索字段的缓存配置
17596
- var fields = props.fields;
17597
- var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
17598
- var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
17599
- var inner = fields.filter(function (inneritem) {
17600
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
17601
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
17602
- return innerKey && innerKey === itemKey;
17603
- })[0];
17604
- return _objectSpread2(_objectSpread2({}, inner), item);
17605
- }) : fields;
17606
- setShowSearchFields(_toConsumableArray(showSearchFields));
17607
- };
17608
17110
  //组件初始挂载
17609
17111
  useEffect(function () {
17610
17112
  getTableHeight();
17611
17113
  setInitialTableInfo();
17612
- setInitialSearchFieldsInfo();
17613
17114
  window.addEventListener('resize', function (e) {
17614
17115
  watchWinResize();
17615
17116
  });
@@ -17626,17 +17127,6 @@ var BsSulaQueryTable = (function (props) {
17626
17127
  JSON.stringify(newKeys) !== JSON.stringify(oldKeys) && setInitialTableInfo();
17627
17128
  }
17628
17129
  }, [props === null || props === void 0 ? void 0 : props.columns]);
17629
- useEffect(function () {
17630
- if ((props === null || props === void 0 ? void 0 : props.fields) && (value === null || value === void 0 ? void 0 : value.fields)) {
17631
- var newKeys = props.fields.map(function (d) {
17632
- return Array.isArray(d.name) ? JSON.stringify(d.name) : d.name;
17633
- });
17634
- var oldKeys = value.fields.map(function (d) {
17635
- return Array.isArray(d.name) ? JSON.stringify(d.name) : d.name;
17636
- });
17637
- JSON.stringify(newKeys) !== JSON.stringify(oldKeys) && setInitialSearchFieldsInfo();
17638
- }
17639
- }, [props === null || props === void 0 ? void 0 : props.fields]);
17640
17130
  useEffect(function () {
17641
17131
  setInitialTableInfo();
17642
17132
  }, [props === null || props === void 0 ? void 0 : props.refreshColumns]);
@@ -17712,33 +17202,39 @@ var BsSulaQueryTable = (function (props) {
17712
17202
  };
17713
17203
  var ShowFullScreen = function ShowFullScreen() {
17714
17204
  var itemPath = props.itemPath;
17715
- if (window.top != window) {
17716
- window.parent.postMessage({
17717
- type: 'screenChange',
17718
- id: itemPath
17719
- }, '*');
17720
- setIsFnllScreen(!isFullScreen);
17721
- } else {
17722
- var _isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
17723
- var contentEle = document.querySelector("body");
17724
- // addTabsNavStyle(isFullScreen);
17725
- if (contentEle && !_isFullScreen) {
17726
- var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
17727
- if (fullScreenEle) {
17728
- fullScreenEle.call(contentEle);
17729
- setIsFnllScreen(true);
17730
- // getTableHeight(true);
17731
- return;
17732
- }
17205
+ // if (window.__POWERED_BY_WUJIE__) {
17206
+ // window.parent.postMessage(
17207
+ // {
17208
+ // type: 'screenChange',
17209
+ // id: itemPath,
17210
+ // },
17211
+ // '*',
17212
+ // );
17213
+ // window.$wujie?.props.screenChange({
17214
+ // id: itemPath
17215
+ // });
17216
+ // setIsFnllScreen(!isFullScreen);
17217
+ // } else {
17218
+ // }
17219
+ var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
17220
+ var contentEle = document.querySelector("body");
17221
+ // addTabsNavStyle(isFullScreen);
17222
+ if (contentEle && !isFullScreen) {
17223
+ var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
17224
+ if (fullScreenEle) {
17225
+ fullScreenEle.call(contentEle);
17226
+ setIsFnllScreen(true);
17227
+ // getTableHeight(true);
17228
+ return;
17733
17229
  }
17734
- if (document && _isFullScreen) {
17735
- var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
17736
- if (exitFullScreen) {
17737
- exitFullScreen.call(document);
17738
- setIsFnllScreen(false);
17739
- // getTableHeight();
17740
- return;
17741
- }
17230
+ }
17231
+ if (document && isFullScreen) {
17232
+ var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
17233
+ if (exitFullScreen) {
17234
+ exitFullScreen.call(document);
17235
+ setIsFnllScreen(false);
17236
+ // getTableHeight();
17237
+ return;
17742
17238
  }
17743
17239
  }
17744
17240
  };
@@ -17748,28 +17244,16 @@ var BsSulaQueryTable = (function (props) {
17748
17244
  actionsRender = [].concat(_toConsumableArray(actionsRender), [{
17749
17245
  type: 'text',
17750
17246
  props: {
17751
- children: /*#__PURE__*/React.createElement("span", {
17752
- className: "ant-dropdown-link"
17753
- }, /*#__PURE__*/React.createElement(Dropdown, {
17754
- overlay: /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement(SortableTable$1, {
17755
- ref: sortTableRef,
17756
- setShowColumns: setShowColumns,
17757
- showColumn: showColumn,
17758
- datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
17759
- bsTableCode: bsTableCode
17760
- })), /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement(SearchItemTable, {
17761
- ref: sortTableRef,
17762
- setShowSearchFields: setShowSearchFields,
17763
- showSearchFields: showSearchFields,
17764
- datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
17765
- bsTableCode: bsTableCode
17766
- }))),
17767
- placement: "bottom"
17247
+ children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
17248
+ title: "\u5217\u8BBE\u7F6E"
17768
17249
  }, /*#__PURE__*/React.createElement("span", {
17769
17250
  className: "ant-dropdown-link"
17770
- }, /*#__PURE__*/React.createElement("img", {
17771
- width: 32,
17772
- src: shezhi
17251
+ }, /*#__PURE__*/React.createElement(SortableTable$1, {
17252
+ ref: sortTableRef,
17253
+ setShowColumns: setShowColumns,
17254
+ showColumn: showColumn,
17255
+ datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
17256
+ bsTableCode: bsTableCode
17773
17257
  }))))
17774
17258
  }
17775
17259
  }, {
@@ -17853,7 +17337,6 @@ var BsSulaQueryTable = (function (props) {
17853
17337
  }, handleTimeValue()), {}, {
17854
17338
  tableProps: setTableProps(),
17855
17339
  columns: _toConsumableArray(showColumn),
17856
- fields: _toConsumableArray(showSearchFields),
17857
17340
  ref: props.forwardedRef || refs,
17858
17341
  isFullScreen: isFullScreen
17859
17342
  });
@@ -17876,7 +17359,7 @@ var BsSulaQueryTable = (function (props) {
17876
17359
  summary: props.summary,
17877
17360
  statusMapping: props.statusMapping
17878
17361
  });
17879
- }, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
17362
+ }, [value, checkedList, showColumn, props.statusMapping]);
17880
17363
  return /*#__PURE__*/React.createElement(MemoQueryTable, _objectSpread2({}, memoConfig));
17881
17364
  });
17882
17365
 
@@ -18024,14 +17507,13 @@ function handleUserPhone() {
18024
17507
  return enStr;
18025
17508
  }
18026
17509
  var setLoginOutPath = function setLoginOutPath() {
18027
- if (window.top == window) {
17510
+ if (window.__POWERED_BY_WUJIE__) {
17511
+ var _window$$wujie;
17512
+ (_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 ? void 0 : _window$$wujie.props.goToLogin();
17513
+ } else {
18028
17514
  history.push({
18029
17515
  pathname: '/user/login'
18030
17516
  });
18031
- } else {
18032
- window.parent.postMessage({
18033
- type: 'go2Login'
18034
- }, '*');
18035
17517
  }
18036
17518
  };
18037
17519
  var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
@@ -19949,7 +19431,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
19949
19431
  var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
19950
19432
  styleInject(css_248z$m);
19951
19433
 
19952
- var _excluded$f = ["route"];
19434
+ var _excluded$e = ["route"];
19953
19435
  var TabPane = Tabs.TabPane;
19954
19436
  var UN_LISTTEN_DRP;
19955
19437
  var routerArray = [];
@@ -20563,8 +20045,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20563
20045
  _createClass(BasicLayout, [{
20564
20046
  key: "componentDidMount",
20565
20047
  value: function componentDidMount() {
20566
- var _this2 = this,
20567
- _localStorage$getItem;
20048
+ var _window$$wujie,
20049
+ _this2 = this;
20568
20050
  var _this$props = this.props,
20569
20051
  history = _this$props.history,
20570
20052
  location = _this$props.location,
@@ -20572,27 +20054,42 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20572
20054
  pathToRegexp = _this$props.pathToRegexp;
20573
20055
  var istParent = 0;
20574
20056
  var self = this;
20575
- window.top != window && window.addEventListener('message', function (e) {
20576
- istParent = 1;
20577
- if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
20578
- localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
20579
- } else {
20580
- localStorage.setItem('isTabChange', true);
20581
- }
20582
- if (typeof e.data === 'string') {
20583
- var newKey = encodeUrlQuery(e.data.replace(/^\/\w+\//, '/'));
20584
- history.push(newKey);
20585
- } else {
20586
- var info = e.data;
20057
+ // window.top != window &&
20058
+ // window.addEventListener('message', function (e) {
20059
+ // istParent = 1;
20060
+ // if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
20061
+ // localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
20062
+ // } else {
20063
+ // localStorage.setItem('isTabChange', true);
20064
+ // }
20065
+ // if (typeof e.data === 'string') {
20066
+ // let newKey = encodeUrlQuery(e.data.replace(/^\/\w+\//, '/'));
20067
+ // history.push(newKey);
20068
+ // } else {
20069
+ // const info = e.data;
20070
+ // if (info.type === 'remove') {
20071
+ // self.tabActions['remove'](info.key.replace(/^\/\w+\//, '/'));
20072
+ // }
20073
+ // }
20074
+ // });
20075
+ (_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 ? void 0 : _window$$wujie.bus.$on("main-route-change", function (appname, info) {
20076
+ console.log('$on main route change ----------------------------', appname, info);
20077
+ if (appname === itemPath) {
20078
+ istParent = 1;
20079
+ if (info.type === 'main') {
20080
+ var newPath = encodeUrlQuery(info.path);
20081
+ history.push(newPath);
20082
+ }
20587
20083
  if (info.type === 'remove') {
20588
- self.tabActions['remove'](info.key.replace(/^\/\w+\//, '/'));
20084
+ self.tabActions['remove'](info.path);
20589
20085
  }
20590
20086
  }
20591
20087
  });
20592
20088
  UN_LISTTEN_DRP = history.listen(function (route) {
20593
- if (window.__POWERED_BY_QIANKUN__) {
20594
- if (window.location.href.indexOf("/".concat(itemPath)) === -1) return;
20595
- }
20089
+ // if ((window as any).__POWERED_BY_QIANKUN__) {
20090
+ // if (window.location.href.indexOf(`/${itemPath}`) === -1) return;
20091
+ // }
20092
+ if (route.pathname.startsWith("/".concat(itemPath, "/"))) return;
20596
20093
  var _this2$state = _this2.state,
20597
20094
  listenRouterState = _this2$state.listenRouterState,
20598
20095
  listenRouterKey = _this2$state.listenRouterKey,
@@ -20611,8 +20108,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20611
20108
  currentKey = decodeURIComponent(route.pathname + _this2.parseQueryString(route.search));
20612
20109
  }
20613
20110
  if (!istParent) {
20111
+ var _window$$wujie2;
20614
20112
  if (route.pathname === '/') return;
20615
- window.parent.postMessage("/parent/".concat(itemPath).concat(currentKey), '*');
20113
+ (_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey);
20114
+ // window.parent.postMessage(`/parent/${itemPath}${currentKey}`, '*');
20616
20115
  }
20617
20116
  // 防止出错
20618
20117
  if (listenRouterKey.length !== listenRouterState.length) {
@@ -20654,28 +20153,24 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20654
20153
  lastTwoRouterArray.shift();
20655
20154
  if (!localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick')) {
20656
20155
  if (lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string') {
20156
+ var _route$state;
20657
20157
  var needRemoveKeyArray = hideMenuArray.filter(function (itemRoute) {
20658
20158
  return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
20659
20159
  });
20660
20160
  // lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
20661
- if (needRemoveKeyArray.length && lastTwoRouterArray[0] != lastTwoRouterArray[1]) {
20662
- if ((!(lastTwoRouterArray[0].indexOf('/order/mainOrder/supplement') >= 0) || !pathToRegexp('/order/mainOrder/:parmode/separateOrder/:id').test(lastTwoRouterArray[1])) && (!pathToRegexp('/order/mainOrder/:parmode/separateOrder/:id').test(lastTwoRouterArray[0]) || !(lastTwoRouterArray[1].indexOf('order/mainOrder/separateOrder/') >= 0))) {
20663
- var _route$state;
20664
- if (!((_route$state = route.state) === null || _route$state === void 0 ? void 0 : _route$state.thisHideInMenuDoNotClose)) {
20665
- newListenRouterState = newListenRouterState.filter(function (item) {
20666
- var _ref3 = item.key ? item.key.split('?') : [],
20667
- _ref4 = _slicedToArray(_ref3, 1),
20668
- pathname = _ref4[0];
20669
- return pathname && pathname !== lastTwoRouterArray[0];
20670
- });
20671
- newListenRouterKey = newListenRouterKey.filter(function (item) {
20672
- var _ref5 = item ? item.split('?') : [],
20673
- _ref6 = _slicedToArray(_ref5, 1),
20674
- pathname = _ref6[0];
20675
- return pathname && pathname !== lastTwoRouterArray[0];
20676
- });
20677
- }
20678
- }
20161
+ if (needRemoveKeyArray.length && lastTwoRouterArray[0] != lastTwoRouterArray[1] && !((_route$state = route.state) === null || _route$state === void 0 ? void 0 : _route$state.thisHideInMenuDoNotClose)) {
20162
+ newListenRouterState = newListenRouterState.filter(function (item) {
20163
+ var _ref3 = item.key ? item.key.split('?') : [],
20164
+ _ref4 = _slicedToArray(_ref3, 1),
20165
+ pathname = _ref4[0];
20166
+ return pathname && pathname !== lastTwoRouterArray[0];
20167
+ });
20168
+ newListenRouterKey = newListenRouterKey.filter(function (item) {
20169
+ var _ref5 = item ? item.split('?') : [],
20170
+ _ref6 = _slicedToArray(_ref5, 1),
20171
+ pathname = _ref6[0];
20172
+ return pathname && pathname !== lastTwoRouterArray[0];
20173
+ });
20679
20174
  }
20680
20175
  }
20681
20176
  // refs?.tableRef?.current?.refreshTable();
@@ -20696,13 +20191,20 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20696
20191
  });
20697
20192
  istParent = 0;
20698
20193
  });
20699
- if (localStorage.getItem('firstPage') && ((_localStorage$getItem = localStorage.getItem('firstPage')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.startsWith("#/".concat(itemPath, "/")))) {
20700
- var _localStorage$getItem2;
20701
- istParent = 1;
20702
- history.push((_localStorage$getItem2 = localStorage.getItem('firstPage')) === null || _localStorage$getItem2 === void 0 ? void 0 : _localStorage$getItem2.slice(1).replace(/^\/\w+\//, '/'));
20703
- } else {
20704
- history.push(location);
20705
- }
20194
+ // if (
20195
+ // localStorage.getItem('firstPage') &&
20196
+ // localStorage.getItem('firstPage')?.startsWith(`#/${itemPath}/`)
20197
+ // ) {
20198
+ // istParent = 1;
20199
+ // history.push(
20200
+ // localStorage
20201
+ // .getItem('firstPage')
20202
+ // ?.slice(1)
20203
+ // .replace(/^\/\w+\//, '/'),
20204
+ // );
20205
+ // } else {
20206
+ // }
20207
+ history.push(location);
20706
20208
  }
20707
20209
  }, {
20708
20210
  key: "componentWillUnmount",
@@ -20747,7 +20249,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20747
20249
  }); // 添加数据大屏
20748
20250
  var _this$props3 = this.props,
20749
20251
  route = _this$props3.route,
20750
- restPrpos = _objectWithoutProperties(_this$props3, _excluded$f);
20252
+ restPrpos = _objectWithoutProperties(_this$props3, _excluded$e);
20751
20253
  var exist = route.routes.find(function (route) {
20752
20254
  return route.path === '/homePage/data-show';
20753
20255
  });
@@ -21152,6 +20654,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
21152
20654
  getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
21153
20655
  timeFormat = _this$props4.timeFormat,
21154
20656
  transparentProps = _this$props4.transparentProps;
20657
+ console.log('child wrapper conpent', this.props);
21155
20658
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
21156
20659
  getDictionarySource: getDictionarySource,
21157
20660
  getDictionaryTextByValue: getDictionaryTextByValue,
@@ -21543,10 +21046,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
21543
21046
  }))))));
21544
21047
  });
21545
21048
 
21546
- var _excluded$g = ["children"];
21049
+ var _excluded$f = ["children"];
21547
21050
  var Drawer = (function (props) {
21548
21051
  var children = props.children,
21549
- restProps = _objectWithoutProperties(props, _excluded$g);
21052
+ restProps = _objectWithoutProperties(props, _excluded$f);
21550
21053
  return /*#__PURE__*/React.createElement(Drawer$1, _objectSpread2({
21551
21054
  mask: true,
21552
21055
  closable: false,