@deepinnet-components/pc 0.0.63 → 0.0.65
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.
|
@@ -77,7 +77,8 @@ var memberMap = _defineProperty(_defineProperty({}, MEMBER_TYPE_ENUM.NORMAL, {
|
|
|
77
77
|
// 组织管理
|
|
78
78
|
var OrgList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
79
79
|
var _orgList$;
|
|
80
|
-
var hideTopBtn = _ref.hideTopBtn
|
|
80
|
+
var hideTopBtn = _ref.hideTopBtn,
|
|
81
|
+
onOrgIdChange = _ref.onOrgIdChange;
|
|
81
82
|
var contextValue = useContext(ValueContext);
|
|
82
83
|
var ApiService = contextValue.ApiService,
|
|
83
84
|
Components = contextValue.Components,
|
|
@@ -181,6 +182,7 @@ var OrgList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
181
182
|
}, [window.location]);
|
|
182
183
|
var tableRef = useRef(null);
|
|
183
184
|
function handleClickBreadcrumb(item) {
|
|
185
|
+
onOrgIdChange === null || onOrgIdChange === void 0 || onOrgIdChange(item.id);
|
|
184
186
|
var newUrl = '';
|
|
185
187
|
var url = new URL(window.location.href);
|
|
186
188
|
var searchParams = url.searchParams;
|
|
@@ -433,7 +435,7 @@ var OrgList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
433
435
|
paddingLeft: 12,
|
|
434
436
|
paddingRight: 12
|
|
435
437
|
}
|
|
436
|
-
}, "\u6DFB\u52A0\u7EC4\u7EC7")), !!id &&
|
|
438
|
+
}, "\u6DFB\u52A0\u7EC4\u7EC7")), !!id && /*#__PURE__*/React.createElement("div", {
|
|
437
439
|
className: "flex justify-between items-center",
|
|
438
440
|
style: {
|
|
439
441
|
display: 'flex',
|
|
@@ -442,7 +444,7 @@ var OrgList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
442
444
|
}
|
|
443
445
|
}, /*#__PURE__*/React.createElement(Breadcrumb, {
|
|
444
446
|
items: breadcrumbItems
|
|
445
|
-
}), /*#__PURE__*/React.createElement(Space, {
|
|
447
|
+
}), !hideTopBtn && /*#__PURE__*/React.createElement(Space, {
|
|
446
448
|
size: 16
|
|
447
449
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
448
450
|
type: "primary",
|