@bit-sun/business-component 2.1.0 → 2.1.1-alpha.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import './utils/requestUtils';
1
+ import './utils/index';
2
2
  export { default as DataValidation } from './components/Functional/DataValidation';
3
3
  export { default as DataImport } from './components/Functional/DataImport';
4
4
  export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
package/dist/index.esm.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import axios from 'axios';
2
- import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
3
2
  import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover, Typography, Alert, Anchor, Breadcrumb, Image, Card, Avatar, Drawer, List, Tree, Row, Col, Tabs } from 'antd';
3
+ import _, { omit, debounce, cloneDeep as cloneDeep$1 } from 'lodash';
4
+ import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
4
5
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
5
6
  import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined } from '@ant-design/icons';
6
- import _, { omit, debounce, cloneDeep as cloneDeep$1 } from 'lodash';
7
7
  import { useDebounceFn } from 'ahooks';
8
+ import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
9
+ import isEqual$1 from 'lodash/isEqual';
8
10
  import { stringify } from 'querystring';
9
11
  import { Resizable } from 'react-resizable';
10
12
  import { Table as Table$1, request, QueryTable } from 'bssula';
11
13
  import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
12
14
  import { arrayMoveImmutable } from 'array-move';
13
- import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
14
- import isEqual$1 from 'lodash/isEqual';
15
15
  import ProLayout from '@ant-design/pro-layout';
16
16
  import cloneDeep from 'lodash/cloneDeep';
17
17
  import classNames from 'classnames';
@@ -25,7 +25,8 @@ var ENUM = {
25
25
  MAIN_AUTH_CODES: 'menuAuth_mainProject',
26
26
  LIMIT_MENU_DATA: 'limitedMenuData',
27
27
  USER_INFO: 'userInfo',
28
- DICT_CODES: 'dicData' //数据字典数据
28
+ DICT_CODES: 'dicData',
29
+ CHILD_APP_BACK: 'child_app_back' //标记子应用goback事件
29
30
 
30
31
  }
31
32
  };
@@ -723,6 +724,52 @@ function _nonIterableRest() {
723
724
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
724
725
  }
725
726
 
727
+ var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
728
+ var errorMessage = _objectSpread2({
729
+ showTips: true,
730
+ tipsMessage: null
731
+ }, errorInfo);
732
+
733
+ if (_.trim(value)) {
734
+ var target = "".concat(value);
735
+
736
+ if (target.includes(".")) {
737
+ if (target.split(".")[1].length > accuracy) {
738
+ if (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.showTips) {
739
+ message.warning((errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.tipsMessage) || "\u7CFB\u7EDF\u8BBE\u7F6E\u6570\u91CF\u6700\u5927\u7CBE\u5EA6\u4E3A".concat(accuracy, "\u4F4D"));
740
+ }
741
+
742
+ return false;
743
+ }
744
+ }
745
+ }
746
+
747
+ return true;
748
+ };
749
+
750
+ var precisionQuantity = function precisionQuantity(num, accuracy) {
751
+ if (_.trim(num)) {
752
+ var target = "".concat(num);
753
+
754
+ if (target.includes(".")) {
755
+ if (target.split(".")[1].length > accuracy) {
756
+ var _target$split$;
757
+
758
+ var beforeDot = target.split(".")[0];
759
+ var afterDot = (_target$split$ = target.split(".")[1]) === null || _target$split$ === void 0 ? void 0 : _target$split$.slice(0, accuracy);
760
+ var result = accuracy == 0 ? Number("".concat(beforeDot)) : Number("".concat(beforeDot, ".").concat(afterDot));
761
+ return result;
762
+ } else if (target.split(".")[1].length < accuracy) {
763
+ return Number(Number(num).toFixed(Math.abs(accuracy)));
764
+ } else {
765
+ return Number(num);
766
+ }
767
+ }
768
+ }
769
+
770
+ return '';
771
+ };
772
+
726
773
  function styleInject(css, ref) {
727
774
  if ( ref === void 0 ) ref = {};
728
775
  var insertAt = ref.insertAt;
@@ -2014,6 +2061,108 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
2014
2061
  var css_248z$2 = ".query_input_show {\n display: flex;\n}\n.query_input_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.query_input_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.query_input_wrapper {\n display: flex;\n}\n.query_input_wrapper_left {\n width: 100px;\n}\n.query_input_wrapper_right {\n color: #9e9e9e;\n}\n.query_input_textArea {\n margin-top: 15px;\n}\n";
2015
2062
  styleInject(css_248z$2);
2016
2063
 
2064
+ var safeIsNaN = Number.isNaN ||
2065
+ function ponyfill(value) {
2066
+ return typeof value === 'number' && value !== value;
2067
+ };
2068
+ function isEqual(first, second) {
2069
+ if (first === second) {
2070
+ return true;
2071
+ }
2072
+ if (safeIsNaN(first) && safeIsNaN(second)) {
2073
+ return true;
2074
+ }
2075
+ return false;
2076
+ }
2077
+ function areInputsEqual(newInputs, lastInputs) {
2078
+ if (newInputs.length !== lastInputs.length) {
2079
+ return false;
2080
+ }
2081
+ for (var i = 0; i < newInputs.length; i++) {
2082
+ if (!isEqual(newInputs[i], lastInputs[i])) {
2083
+ return false;
2084
+ }
2085
+ }
2086
+ return true;
2087
+ }
2088
+
2089
+ function memoizeOne(resultFn, isEqual) {
2090
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
2091
+ var cache = null;
2092
+ function memoized() {
2093
+ var newArgs = [];
2094
+ for (var _i = 0; _i < arguments.length; _i++) {
2095
+ newArgs[_i] = arguments[_i];
2096
+ }
2097
+ if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {
2098
+ return cache.lastResult;
2099
+ }
2100
+ var lastResult = resultFn.apply(this, newArgs);
2101
+ cache = {
2102
+ lastResult: lastResult,
2103
+ lastArgs: newArgs,
2104
+ lastThis: this,
2105
+ };
2106
+ return lastResult;
2107
+ }
2108
+ memoized.clear = function clear() {
2109
+ cache = null;
2110
+ };
2111
+ return memoized;
2112
+ }
2113
+
2114
+ var formatter = function formatter(data, parentAuthority, parentName) {
2115
+ return data.map(function (item) {
2116
+ if (!item.name || !item.path) {
2117
+ return null;
2118
+ }
2119
+
2120
+ var locale = 'menu';
2121
+
2122
+ if (parentName) {
2123
+ locale = "".concat(parentName, ".").concat(item.name);
2124
+ } else {
2125
+ locale = "menu.".concat(item.name);
2126
+ }
2127
+
2128
+ var result = _objectSpread2(_objectSpread2({}, item), {}, {
2129
+ name: formatMessage && formatMessage({
2130
+ id: locale,
2131
+ defaultMessage: item.name
2132
+ }) || item.name,
2133
+ locale: locale,
2134
+ authority: item.authority || parentAuthority
2135
+ });
2136
+
2137
+ if (item.routes) {
2138
+ var children = formatter(item.routes, item.authority, locale); // Reduce memory usage
2139
+
2140
+ result.children = children;
2141
+ }
2142
+
2143
+ delete result.routes;
2144
+ return result;
2145
+ }).filter(function (item) {
2146
+ return item;
2147
+ });
2148
+ };
2149
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
2150
+ var go2BackAndClose = function go2BackAndClose() {
2151
+ localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
2152
+ history.goBack();
2153
+ };
2154
+ var getModalContainer = function getModalContainer() {
2155
+ try {
2156
+ if (window.top != window && window.parent.document) {
2157
+ return window.parent.document.body;
2158
+ }
2159
+ } catch (error) {
2160
+ console.log(error);
2161
+ }
2162
+
2163
+ return document.body;
2164
+ };
2165
+
2017
2166
  var QueryMutipleInput = function QueryMutipleInput(_ref) {
2018
2167
  var onValueChange = _ref.onValueChange;
2019
2168
 
@@ -2101,6 +2250,7 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
2101
2250
  type: "primary"
2102
2251
  }, "...")), /*#__PURE__*/React.createElement(Modal, {
2103
2252
  width: 600,
2253
+ getContainer: getModalContainer,
2104
2254
  title: "\u591A\u503C\u5F55\u5165",
2105
2255
  visible: isModalVisible,
2106
2256
  onOk: handleOk,
@@ -3117,6 +3267,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3117
3267
  }, /*#__PURE__*/React.createElement(SearchOutlined, null))), needModalTable && isModalVisible && /*#__PURE__*/React.createElement(Modal, {
3118
3268
  width: '80%',
3119
3269
  title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
3270
+ getContainer: getModalContainer,
3120
3271
  visible: isModalVisible,
3121
3272
  onOk: handleOk,
3122
3273
  onCancel: handleCancel,
@@ -4020,16 +4171,52 @@ var AddSelect = function AddSelect(props) {
4020
4171
  inputIndex++;
4021
4172
  return _objectSpread2(_objectSpread2({}, item), {}, {
4022
4173
  render: function render(text, record, index) {
4174
+ var _record$packingUnitLi, _record$packingUnitLi2;
4175
+
4023
4176
  // let
4024
4177
  if (record.needFocus === true && currentIndex === 0) ;
4025
4178
 
4026
- return /*#__PURE__*/React.createElement(InputNumber, {
4027
- defaultValue: text || '',
4179
+ var precisionObj = {};
4180
+ var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
4181
+ var isCountUnitAccuracyCheck = item.dataIndex == 'count' && unitAccuracy !== undefined;
4182
+
4183
+ if (isCountUnitAccuracyCheck) {
4184
+ precisionObj = {
4185
+ onBlur: function onBlur(e) {
4186
+ var value = e.target.value;
4187
+
4188
+ if (!checkQuantityAccuracy(value, Number(unitAccuracy))) {
4189
+ record[item.dataIndex] = precisionQuantity(value, Number(unitAccuracy));
4190
+ var newPopValue = popvalue.map(function (i, innerIndex) {
4191
+ if (innerIndex == index) {
4192
+ i[item.dataIndex] = record[item.dataIndex];
4193
+ }
4194
+
4195
+ return i;
4196
+ });
4197
+ setPopValue(newPopValue);
4198
+ }
4199
+ } // precision: unitAccuracy
4200
+
4201
+ };
4202
+ }
4203
+
4204
+ return /*#__PURE__*/React.createElement(InputNumber, _objectSpread2(_objectSpread2({
4205
+ value: text || '',
4028
4206
  min: 0,
4029
4207
  autoFocus: record.needFocus,
4030
- keyboard: false,
4208
+ keyboard: false
4209
+ }, precisionObj), {}, {
4031
4210
  onChange: function onChange(value) {
4032
4211
  record[item.dataIndex] = value;
4212
+ var newPopValue = popvalue.map(function (i, innerIndex) {
4213
+ if (innerIndex == index) {
4214
+ i[item.dataIndex] = record[item.dataIndex];
4215
+ }
4216
+
4217
+ return i;
4218
+ });
4219
+ setPopValue(newPopValue);
4033
4220
  },
4034
4221
  // onFocus={(e)=> {
4035
4222
  // let dom1 = e.currentTarget;
@@ -4140,7 +4327,7 @@ var AddSelect = function AddSelect(props) {
4140
4327
  e.preventDefault();
4141
4328
  }
4142
4329
  }
4143
- });
4330
+ }));
4144
4331
  }
4145
4332
  });
4146
4333
  }
@@ -4196,6 +4383,7 @@ var AddSelect = function AddSelect(props) {
4196
4383
  },
4197
4384
  // title={modalTableProps?.modalTableTitle}
4198
4385
  visible: isModalVisible,
4386
+ getContainer: getModalContainer,
4199
4387
  closable: false,
4200
4388
  onCancel: handleCancel,
4201
4389
  footer: selectMode ? [/*#__PURE__*/React.createElement(Button, {
@@ -4329,6 +4517,8 @@ styleInject(css_248z$5);
4329
4517
  var _this = undefined;
4330
4518
 
4331
4519
  var InputElement = function InputElement(_ref) {
4520
+ var _record$packingUnitLi, _record$packingUnitLi2;
4521
+
4332
4522
  var record = _ref.record,
4333
4523
  text = _ref.text,
4334
4524
  currentIndex = _ref.currentIndex,
@@ -4596,6 +4786,31 @@ var InputElement = function InputElement(_ref) {
4596
4786
  }));
4597
4787
  };
4598
4788
 
4789
+ var precisionObj = {};
4790
+ var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
4791
+ var isCountUnitAccuracyCheck = item.dataIndex == 'count' && unitAccuracy !== undefined;
4792
+
4793
+ if (isCountUnitAccuracyCheck) {
4794
+ precisionObj = {
4795
+ onBlur: function onBlur(e) {
4796
+ var value = e.target.value;
4797
+
4798
+ if (!checkQuantityAccuracy(value, Number(unitAccuracy))) {
4799
+ record[item.dataIndex] = precisionQuantity(value, Number(unitAccuracy));
4800
+ var newData = data.map(function (i, innerIndex) {
4801
+ if (innerIndex == index) {
4802
+ i[item.dataIndex] = record[item.dataIndex];
4803
+ }
4804
+
4805
+ return i;
4806
+ });
4807
+ setData(newData);
4808
+ }
4809
+ } // precision: unitAccuracy
4810
+
4811
+ };
4812
+ }
4813
+
4599
4814
  return /*#__PURE__*/React.createElement(Popover, {
4600
4815
  placement: "bottomLeft",
4601
4816
  destroyTooltipOnHide: {
@@ -4739,13 +4954,22 @@ var InputElement = function InputElement(_ref) {
4739
4954
  }
4740
4955
  }
4741
4956
  }) : /*#__PURE__*/React.createElement(InputNumber // onBlur={() => {updateHoverVisibled(false)}}
4742
- , {
4957
+ , _objectSpread2(_objectSpread2({
4743
4958
  // onBlur={() => {updateHoverVisibled(false)}}
4744
- defaultValue: text || '',
4959
+ value: text || '',
4745
4960
  min: 0,
4746
- keyboard: false,
4961
+ keyboard: false
4962
+ }, precisionObj), {}, {
4747
4963
  onChange: function onChange(value) {
4748
4964
  record[item.dataIndex] = value;
4965
+ var newData = data.map(function (i, innerIndex) {
4966
+ if (innerIndex == index) {
4967
+ i[item.dataIndex] = record[item.dataIndex];
4968
+ }
4969
+
4970
+ return i;
4971
+ });
4972
+ setData(newData);
4749
4973
  },
4750
4974
  onKeyDown: function onKeyDown(e) {
4751
4975
  // if (e.keyCode === 13 && e.ctrlKey) {
@@ -4855,7 +5079,7 @@ var InputElement = function InputElement(_ref) {
4855
5079
  }]));
4856
5080
  }
4857
5081
  }
4858
- }));
5082
+ })));
4859
5083
  };
4860
5084
 
4861
5085
  var BillEntry = function BillEntry(_ref3) {
@@ -4890,9 +5114,9 @@ var BillEntry = function BillEntry(_ref3) {
4890
5114
  dataIndex: 'selectUnitCode',
4891
5115
  width: 100,
4892
5116
  render: function render(text, record) {
4893
- var _record$packingUnitLi;
5117
+ var _record$packingUnitLi3;
4894
5118
 
4895
- if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
5119
+ if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi3 = record.packingUnitList) === null || _record$packingUnitLi3 === void 0 ? void 0 : _record$packingUnitLi3.length) {
4896
5120
  var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
4897
5121
  record.selectUnitCode = basePackUnit.unitCode;
4898
5122
  return basePackUnit.name || basePackUnit.unitCode;
@@ -7352,7 +7576,8 @@ var CommodityEntry = function CommodityEntry(props) {
7352
7576
  onOk: handleOk,
7353
7577
  onCancel: handleCancel,
7354
7578
  destroyOnClose: true,
7355
- zIndex: 15
7579
+ zIndex: 15,
7580
+ getContainer: getModalContainer
7356
7581
  }), /*#__PURE__*/React.createElement(DataValidation, {
7357
7582
  onRef: function onRef(ref) {
7358
7583
  dataValidationRef = ref;
@@ -8509,6 +8734,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
8509
8734
  }, /*#__PURE__*/React.createElement(Modal, {
8510
8735
  title: "\u8BBE\u7F6E\u8868\u5934\u5185\u5BB9",
8511
8736
  wrapClassName: 'sort_table_wrapper',
8737
+ getContainer: getModalContainer,
8512
8738
  width: 820,
8513
8739
  visible: visible,
8514
8740
  onOk: this.handleOk,
@@ -9325,6 +9551,7 @@ var doDetailPageAction = function doDetailPageAction(config) {
9325
9551
  confirm({
9326
9552
  title: config.title,
9327
9553
  icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
9554
+ getContainer: getModalContainer,
9328
9555
  content: config.content,
9329
9556
  okText: '确定',
9330
9557
  okType: 'danger',
@@ -9367,93 +9594,6 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
9367
9594
  return routerMap;
9368
9595
  };
9369
9596
 
9370
- var safeIsNaN = Number.isNaN ||
9371
- function ponyfill(value) {
9372
- return typeof value === 'number' && value !== value;
9373
- };
9374
- function isEqual(first, second) {
9375
- if (first === second) {
9376
- return true;
9377
- }
9378
- if (safeIsNaN(first) && safeIsNaN(second)) {
9379
- return true;
9380
- }
9381
- return false;
9382
- }
9383
- function areInputsEqual(newInputs, lastInputs) {
9384
- if (newInputs.length !== lastInputs.length) {
9385
- return false;
9386
- }
9387
- for (var i = 0; i < newInputs.length; i++) {
9388
- if (!isEqual(newInputs[i], lastInputs[i])) {
9389
- return false;
9390
- }
9391
- }
9392
- return true;
9393
- }
9394
-
9395
- function memoizeOne(resultFn, isEqual) {
9396
- if (isEqual === void 0) { isEqual = areInputsEqual; }
9397
- var cache = null;
9398
- function memoized() {
9399
- var newArgs = [];
9400
- for (var _i = 0; _i < arguments.length; _i++) {
9401
- newArgs[_i] = arguments[_i];
9402
- }
9403
- if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {
9404
- return cache.lastResult;
9405
- }
9406
- var lastResult = resultFn.apply(this, newArgs);
9407
- cache = {
9408
- lastResult: lastResult,
9409
- lastArgs: newArgs,
9410
- lastThis: this,
9411
- };
9412
- return lastResult;
9413
- }
9414
- memoized.clear = function clear() {
9415
- cache = null;
9416
- };
9417
- return memoized;
9418
- }
9419
-
9420
- var formatter = function formatter(data, parentAuthority, parentName) {
9421
- return data.map(function (item) {
9422
- if (!item.name || !item.path) {
9423
- return null;
9424
- }
9425
-
9426
- var locale = 'menu';
9427
-
9428
- if (parentName) {
9429
- locale = "".concat(parentName, ".").concat(item.name);
9430
- } else {
9431
- locale = "menu.".concat(item.name);
9432
- }
9433
-
9434
- var result = _objectSpread2(_objectSpread2({}, item), {}, {
9435
- name: formatMessage && formatMessage({
9436
- id: locale,
9437
- defaultMessage: item.name
9438
- }) || item.name,
9439
- locale: locale,
9440
- authority: item.authority || parentAuthority
9441
- });
9442
-
9443
- if (item.routes) {
9444
- var children = formatter(item.routes, item.authority, locale); // Reduce memory usage
9445
-
9446
- result.children = children;
9447
- }
9448
-
9449
- delete result.routes;
9450
- return result;
9451
- }).filter(function (item) {
9452
- return item;
9453
- });
9454
- };
9455
- var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
9456
-
9457
9597
  var css_248z$9 = ".detail_page_head {\n height: 54px;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.back_home_img_content {\n display: inline-block;\n height: 28px;\n width: 28px;\n border: 1px solid #BABABA;\n margin: 0 12px 0 20px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005CFF;\n border: 1px solid #005CFF;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 16px;\n margin-top: 2px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 32px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
9458
9598
  styleInject(css_248z$9);
9459
9599
 
@@ -9707,7 +9847,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
9707
9847
  }, /*#__PURE__*/React.createElement("div", {
9708
9848
  className: 'back_home_img_content',
9709
9849
  onClick: function onClick() {
9710
- history.goBack();
9850
+ go2BackAndClose(); // history.goBack();
9711
9851
  }
9712
9852
  }, /*#__PURE__*/React.createElement(ArrowLeftOutlined, null)), /*#__PURE__*/React.createElement("div", {
9713
9853
  className: 'detail_page_title_box'
@@ -16444,6 +16584,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
16444
16584
  visible: visible,
16445
16585
  onOk: this.handleOk,
16446
16586
  onCancel: this.handleCancel,
16587
+ getContainer: getModalContainer,
16447
16588
  footer: [/*#__PURE__*/React.createElement(Button, {
16448
16589
  key: "back",
16449
16590
  onClick: this.handleReset
@@ -20069,7 +20210,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
20069
20210
  var self = this;
20070
20211
  window.top != window && window.addEventListener('message', function (e) {
20071
20212
  istParent = 1;
20072
- localStorage.setItem('isTabChange', true);
20213
+
20214
+ if (localStorage.getItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK)) {
20215
+ localStorage.removeItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK);
20216
+ } else {
20217
+ localStorage.setItem('isTabChange', true);
20218
+ }
20073
20219
 
20074
20220
  if (typeof e.data === 'string') {
20075
20221
  history.push(e.data.replace(/^\/\w+\//, '/'));