@bit-sun/business-component 2.3.23-beta02 → 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.
- package/dist/index.esm.js +11 -10
- package/dist/index.js +11 -10
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +3 -2
- package/src/components/Solution/RuleComponent/index.js +6 -6
- package/src/utils/utils.ts +6 -2
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +0 -4
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +0 -4
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +0 -3
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
|
-
|
|
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", {
|
|
@@ -29856,9 +29861,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29856
29861
|
};
|
|
29857
29862
|
}) || undefined;
|
|
29858
29863
|
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
|
|
29859
|
-
} else
|
|
29860
|
-
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29861
|
-
}
|
|
29864
|
+
} else ;
|
|
29862
29865
|
var child = {
|
|
29863
29866
|
title: "".concat(item.name, "-").concat(element.name),
|
|
29864
29867
|
key: element.id,
|
|
@@ -29900,9 +29903,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29900
29903
|
};
|
|
29901
29904
|
}) || undefined;
|
|
29902
29905
|
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
|
|
29903
|
-
} else
|
|
29904
|
-
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29905
|
-
}
|
|
29906
|
+
} else ;
|
|
29906
29907
|
var child = {
|
|
29907
29908
|
title: "".concat(parentTitle, "-").concat(element.name),
|
|
29908
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
|
-
|
|
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", {
|
|
@@ -29876,9 +29881,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29876
29881
|
};
|
|
29877
29882
|
}) || undefined;
|
|
29878
29883
|
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
|
|
29879
|
-
} else
|
|
29880
|
-
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29881
|
-
}
|
|
29884
|
+
} else ;
|
|
29882
29885
|
var child = {
|
|
29883
29886
|
title: "".concat(item.name, "-").concat(element.name),
|
|
29884
29887
|
key: element.id,
|
|
@@ -29920,9 +29923,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29920
29923
|
};
|
|
29921
29924
|
}) || undefined;
|
|
29922
29925
|
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
|
|
29923
|
-
} else
|
|
29924
|
-
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29925
|
-
}
|
|
29926
|
+
} else ;
|
|
29926
29927
|
var child = {
|
|
29927
29928
|
title: "".concat(parentTitle, "-").concat(element.name),
|
|
29928
29929
|
key: "".concat(parentKey, ".").concat(element.id),
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -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
|
@@ -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
|
+
);
|
|
@@ -138,9 +138,9 @@ class RuleObjectComponent extends Component {
|
|
|
138
138
|
`${item.code}.${element.code}`
|
|
139
139
|
] = list;
|
|
140
140
|
} else {
|
|
141
|
-
this.propertyCodeToRangeIdMap[
|
|
142
|
-
|
|
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
|
-
|
|
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}`,
|
package/src/utils/utils.ts
CHANGED
|
@@ -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
|
-
|
|
65
|
+
if(backHistoryPath){
|
|
66
|
+
history.push(backHistoryPath)
|
|
67
|
+
} else {
|
|
68
|
+
history.goBack();
|
|
69
|
+
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
/**
|