|
|
|
|
@ -18,14 +18,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 48938);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 10249);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 44000);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 49127);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 10249);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 44000);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 49127);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 20834);
|
|
|
|
|
/* harmony import */ var _components_Header_components_Join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/Header/components/Join */ 59873);
|
|
|
|
|
/* harmony import */ var _components_Header_components_User__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/Header/components/User */ 72670);
|
|
|
|
|
/* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/Header */ 94758);
|
|
|
|
|
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/authority */ 65241);
|
|
|
|
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ 38819);
|
|
|
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/util */ 82338);
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
@ -55,8 +55,8 @@ var NavBarItemDom = function NavBarItemDom(_ref) {
|
|
|
|
|
setSelectKey = _ref.setSelectKey,
|
|
|
|
|
index = _ref.index;
|
|
|
|
|
var children = (DataProps === null || DataProps === void 0 ? void 0 : DataProps.subitem) || [];
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
|
|
|
className: "flex item-center pl-20px-rem current relative",
|
|
|
|
|
style: {
|
|
|
|
|
height: "48rem",
|
|
|
|
|
@ -68,21 +68,21 @@ var NavBarItemDom = function NavBarItemDom(_ref) {
|
|
|
|
|
setActiveKey(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
setSelectKey(selectKey.includes(key) ? selectKey.filter(function (item) {
|
|
|
|
|
return item !== key;
|
|
|
|
|
}) : [].concat(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_3___default()(selectKey), [key]));
|
|
|
|
|
}) : [].concat(_toConsumableArray(selectKey), [key]));
|
|
|
|
|
if (DataProps !== null && DataProps !== void 0 && (_DataProps$link = DataProps.link) !== null && _DataProps$link !== void 0 && _DataProps$link.includes("http")) {
|
|
|
|
|
(0,_utils_util__WEBPACK_IMPORTED_MODULE_10__/* .openNewWindow */ .xg)(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
openNewWindow(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
} else {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
history.push(DataProps === null || DataProps === void 0 ? void 0 : DataProps.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/_jsx("div", {
|
|
|
|
|
className: "multi_ellipsis1",
|
|
|
|
|
children: DataProps === null || DataProps === void 0 ? void 0 : DataProps.name
|
|
|
|
|
}), (children === null || children === void 0 ? void 0 : children.length) > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
|
|
|
|
|
}), (children === null || children === void 0 ? void 0 : children.length) > 0 && /*#__PURE__*/_jsx(RightOutlined, {
|
|
|
|
|
className: "ml-auto",
|
|
|
|
|
rotate: selectKey.includes(key) ? 90 : 0,
|
|
|
|
|
rev: undefined
|
|
|
|
|
}), activeKey == (DataProps === null || DataProps === void 0 ? void 0 : DataProps.link) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
|
|
|
|
}), activeKey == (DataProps === null || DataProps === void 0 ? void 0 : DataProps.link) && /*#__PURE__*/_jsx("div", {
|
|
|
|
|
className: "absolute h-full w-2px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
background: "#3061D0",
|
|
|
|
|
@ -91,7 +91,7 @@ var NavBarItemDom = function NavBarItemDom(_ref) {
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), (children === null || children === void 0 ? void 0 : children.length) > 0 && selectKey.includes(key) && (children === null || children === void 0 ? void 0 : children.map(function (item, i) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(NavBarItemDom, {
|
|
|
|
|
return /*#__PURE__*/_jsx(NavBarItemDom, {
|
|
|
|
|
DataProps: item,
|
|
|
|
|
index: "".concat(key || index, "-").concat(i),
|
|
|
|
|
activeKey: activeKey,
|
|
|
|
|
@ -114,7 +114,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
|
|
|
|
|
openSearch = _useState2[0],
|
|
|
|
|
setOpenSearch = _useState2[1];
|
|
|
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(""),
|
|
|
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),
|
|
|
|
|
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
|
|
|
|
|
activeKey = _useState4[0],
|
|
|
|
|
setActiveKey = _useState4[1];
|
|
|
|
|
@ -145,7 +145,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
} finally {
|
|
|
|
|
_iterator.f();
|
|
|
|
|
}
|
|
|
|
|
setActiveKey('/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1]));
|
|
|
|
|
setActiveKey(['/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1])]);
|
|
|
|
|
return list;
|
|
|
|
|
}, [globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar]);
|
|
|
|
|
var SearchInput = function SearchInput() {
|
|
|
|
|
@ -159,7 +159,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
setOpenSearch(false);
|
|
|
|
|
}, 300);
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Search, {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Search, {
|
|
|
|
|
placeholder: "\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",
|
|
|
|
|
className: "search-input mr20",
|
|
|
|
|
onSearch: onGlobalSearch,
|
|
|
|
|
@ -188,12 +188,12 @@ var Page = function Page(_ref2) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
|
|
|
|
className: "text-14px-rem",
|
|
|
|
|
style: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, commonStyle), {}, {
|
|
|
|
|
minHeight: "100vh"
|
|
|
|
|
}),
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.Header, {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Header, {
|
|
|
|
|
className: "px-20px-rem flex item-center gap-20px-rem",
|
|
|
|
|
style: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, commonStyle), {}, {
|
|
|
|
|
height: "70rem"
|
|
|
|
|
@ -213,7 +213,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
})
|
|
|
|
|
}), !!(user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(umi__WEBPACK_IMPORTED_MODULE_5__.Link, {
|
|
|
|
|
to: "/messages/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/user_tidings"),
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
|
|
|
dot: user === null || user === void 0 || (_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.new_message,
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-xiaoxilingdang font18"
|
|
|
|
|
@ -222,22 +222,45 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Header_components_User__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
|
|
|
|
|
payload: (0,_components_Header__WEBPACK_IMPORTED_MODULE_8__/* .getCourseParam */ .g)()
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
|
|
|
|
style: commonStyle,
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.Sider, {
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Sider, {
|
|
|
|
|
className: "flex flex-col",
|
|
|
|
|
width: "212rem",
|
|
|
|
|
style: commonStyle,
|
|
|
|
|
children: NavBarList === null || NavBarList === void 0 ? void 0 : NavBarList.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(NavBarItemDom, {
|
|
|
|
|
DataProps: item,
|
|
|
|
|
setActiveKey: setActiveKey,
|
|
|
|
|
activeKey: activeKey,
|
|
|
|
|
selectKey: selectKey,
|
|
|
|
|
setSelectKey: setSelectKey
|
|
|
|
|
}, index);
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
|
|
|
|
className: "w-full",
|
|
|
|
|
mode: "inline",
|
|
|
|
|
defaultSelectedKeys: activeKey,
|
|
|
|
|
items: NavBarList === null || NavBarList === void 0 ? void 0 : NavBarList.map(function (item, index) {
|
|
|
|
|
var _item$subitem, _item$subitem2;
|
|
|
|
|
return {
|
|
|
|
|
key: (item === null || item === void 0 ? void 0 : item.link) || index,
|
|
|
|
|
label: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (item !== null && item !== void 0 && item.link) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push(item === null || item === void 0 ? void 0 : item.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
|
|
}),
|
|
|
|
|
children: (item === null || item === void 0 || (_item$subitem = item.subitem) === null || _item$subitem === void 0 ? void 0 : _item$subitem.length) > 0 ? item === null || item === void 0 || (_item$subitem2 = item.subitem) === null || _item$subitem2 === void 0 ? void 0 : _item$subitem2.map(function (v, i) {
|
|
|
|
|
return {
|
|
|
|
|
key: (v === null || v === void 0 ? void 0 : v.link) || "".concat(index, "-").concat(i),
|
|
|
|
|
label: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (v !== null && v !== void 0 && v.link) {
|
|
|
|
|
umi__WEBPACK_IMPORTED_MODULE_5__.history.push(v === null || v === void 0 ? void 0 : v.link);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: v === null || v === void 0 ? void 0 : v.name
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
}) : null
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.Content, {
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Content, {
|
|
|
|
|
style: {
|
|
|
|
|
backgroundColor: "#EEF5FE"
|
|
|
|
|
},
|