You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1095 lines
42 KiB
1095 lines
42 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96300],{
|
|
|
|
/***/ 75769:
|
|
/*!*******************************************************************************************************!*\
|
|
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
|
|
\*******************************************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ icons_CheckOutlined; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(61796);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js
|
|
// This icon file is generated automatically.
|
|
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
|
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
var AntdIcon = __webpack_require__(91851);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
ref: ref,
|
|
icon: asn_CheckOutlined
|
|
}));
|
|
};
|
|
if (false) {}
|
|
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 73208:
|
|
/*!*****************************************!*\
|
|
!*** ./src/components/NoData/index.tsx ***!
|
|
\*****************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var noData = function noData(_ref) {
|
|
var img = _ref.img,
|
|
_ref$buttonProps = _ref.buttonProps,
|
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
_ref$styles = _ref.styles,
|
|
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
|
customText = _ref.customText,
|
|
ButtonText = _ref.ButtonText,
|
|
ButtonClick = _ref.ButtonClick,
|
|
Buttonclass = _ref.Buttonclass,
|
|
ButtonTwo = _ref.ButtonTwo,
|
|
imgStyles = _ref.imgStyles,
|
|
_ref$loading = _ref.loading,
|
|
loading = _ref$loading === void 0 ? false : _ref$loading;
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
|
className: "tc animated fadeIn",
|
|
style: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
|
color: '#999',
|
|
margin: '100px auto',
|
|
visibility: loading ? 'hidden' : 'visible'
|
|
}), styles),
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
|
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
|
style: _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
|
className: "mt20 font14",
|
|
children: customText || '暂时还没有相关数据哦!'
|
|
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
className: Buttonclass,
|
|
onClick: ButtonClick
|
|
}, buttonProps), {}, {
|
|
children: ButtonText
|
|
})), ButtonTwo && ButtonTwo]
|
|
});
|
|
};
|
|
/* harmony default export */ __webpack_exports__.Z = (noData);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4980:
|
|
/*!******************************************************!*\
|
|
!*** ./src/layouts/CoreDetail/index.tsx + 4 modules ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ CoreDetail; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectDestructuringEmpty.js
|
|
var objectDestructuringEmpty = __webpack_require__(27223);
|
|
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(45295);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/index.js
|
|
var layout = __webpack_require__(44000);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(10574);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(39343);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(26801);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(11006);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var es_modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopBanner/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var TopBannermodules = ({"Bg":"Bg___y3IeD","TitleStyle":"TitleStyle___n0xLC"});
|
|
// EXTERNAL MODULE: ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx + 1 modules
|
|
var AddOrEditCore = __webpack_require__(24649);
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
var authority = __webpack_require__(13186);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopBanner/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TopBanner = function TopBanner(_ref) {
|
|
var coreCurriculum = _ref.coreCurriculum,
|
|
loading = _ref.loading,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch;
|
|
var CoreDetail = coreCurriculum.CoreDetail;
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
isAddCore = _useState2[0],
|
|
setIsAddCore = _useState2[1];
|
|
var getCoreSubjectDetail = function getCoreSubjectDetail() {
|
|
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : params === null || params === void 0 ? void 0 : params.coreId;
|
|
dispatch({
|
|
type: "coreCurriculum/getCoreSubjectDetail",
|
|
payload: {
|
|
id: id
|
|
}
|
|
});
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
(params === null || params === void 0 ? void 0 : params.coreId) && getCoreSubjectDetail();
|
|
}, [params === null || params === void 0 ? void 0 : params.coreId]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
console.log("CoreDetail", CoreDetail);
|
|
form.setFieldsValue(objectSpread2_default()({}, CoreDetail));
|
|
}, [isAddCore]);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "".concat(TopBannermodules.Bg),
|
|
style: {
|
|
backgroundImage: "url(".concat(__webpack_require__(/*! ./b.png */ 20098), ")")
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
style: {
|
|
width: 1200,
|
|
height: "100%",
|
|
margin: "0 auto",
|
|
position: "relative",
|
|
color: "#fff"
|
|
},
|
|
align: "middle",
|
|
justify: "center",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: TopBannermodules.TitleStyle,
|
|
children: CoreDetail === null || CoreDetail === void 0 ? void 0 : CoreDetail.name
|
|
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
style: {
|
|
position: "absolute",
|
|
top: "10px",
|
|
right: "0px"
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "current primary-hover",
|
|
onClick: function onClick() {
|
|
return setIsAddCore(true);
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-bianji-moren mr5"
|
|
}), "\u7F16\u8F91"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "current delete-hover ml20",
|
|
onClick: function onClick() {
|
|
var modal = es_modal/* default */.Z.confirm({
|
|
icon: null,
|
|
title: '提示',
|
|
content: "\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u300A".concat(CoreDetail === null || CoreDetail === void 0 ? void 0 : CoreDetail.name, "\u300B\u6838\u5FC3\u8BFE\u7A0B\uFF1F"),
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
onOk: function () {
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: 'coreCurriculum/delCoreSubjects',
|
|
payload: {
|
|
id: params === null || params === void 0 ? void 0 : params.coreId
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
message/* default */.ZP.success("删除成功");
|
|
modal.destroy();
|
|
_umi_production_exports.history.push("/core");
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function onOk() {
|
|
return _onOk.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}(),
|
|
onCancel: function onCancel() {
|
|
modal.destroy();
|
|
}
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-shanchutimu mr5"
|
|
}), "\u5220\u9664"]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEditCore/* default */.Z, {
|
|
title: "编辑核心课程",
|
|
form: form,
|
|
open: isAddCore,
|
|
dispatch: true,
|
|
onCancel: function onCancel() {
|
|
form.resetFields();
|
|
setIsAddCore(false);
|
|
},
|
|
confirmLoading: !!loading['coreCurriculum/putCoreSubjects'],
|
|
onOk: function onOk() {
|
|
return form.submit();
|
|
},
|
|
handleFinish: /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(ValueAll) {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return dispatch({
|
|
type: 'coreCurriculum/putCoreSubjects',
|
|
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), {}, {
|
|
id: params === null || params === void 0 ? void 0 : params.coreId
|
|
})
|
|
});
|
|
case 2:
|
|
res = _context2.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
message/* default */.ZP.success("更新成功");
|
|
setIsAddCore(false);
|
|
getCoreSubjectDetail();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function (_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}()
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var CoreDetail_TopBanner = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user,
|
|
loading = _ref3.loading,
|
|
coreCurriculum = _ref3.coreCurriculum;
|
|
return {
|
|
user: user,
|
|
coreCurriculum: coreCurriculum,
|
|
loading: loading
|
|
};
|
|
})(TopBanner));
|
|
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopMenus/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var TopMenusmodules = ({"TopMenusDiv":"TopMenusDiv___rkFru","SrollStage":"SrollStage___jjMvw","StageItem":"StageItem___P6AAb","StageItemActive":"StageItemActive___juQir"});
|
|
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
|
var ui_customization = __webpack_require__(89200);
|
|
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopMenus/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Page = function Page(_ref) {
|
|
var _TopMenus$find2;
|
|
var coreCurriculum = _ref.coreCurriculum,
|
|
dispatch = _ref.dispatch;
|
|
var coreCE = coreCurriculum.coreCE;
|
|
var _useState = (0,_react_17_0_2_react.useState)("overview"),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
id = _useState2[0],
|
|
setId = _useState2[1];
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _TopMenus$find;
|
|
setId(TopMenus === null || TopMenus === void 0 || (_TopMenus$find = TopMenus.find(function (e) {
|
|
return location.pathname.indexOf("/core/".concat(params === null || params === void 0 ? void 0 : params.coreId, "/").concat(e.type)) > -1;
|
|
})) === null || _TopMenus$find === void 0 ? void 0 : _TopMenus$find.type);
|
|
}, [location.pathname]);
|
|
var tabsMenu = [{
|
|
id: 'CN',
|
|
name: '中文'
|
|
}, {
|
|
id: 'EN',
|
|
name: 'English'
|
|
}];
|
|
var TopMenus = [{
|
|
name: "课程概览",
|
|
type: "overview",
|
|
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* SuperiorTabs */.tp, {
|
|
className: "ml20",
|
|
dataSource: tabsMenu,
|
|
value: coreCE,
|
|
onChange: function onChange(id) {
|
|
dispatch({
|
|
type: 'coreCurriculum/save',
|
|
payload: {
|
|
coreCE: id
|
|
}
|
|
});
|
|
}
|
|
})
|
|
}, {
|
|
name: "知识图谱",
|
|
type: "knowledge",
|
|
topUseEidt: (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "ml20",
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["新建模块"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u65B0\u5EFA\u6A21\u5757"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
className: "ml20",
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["新增知识点"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u65B0\u589E\u77E5\u8BC6\u70B9"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
className: "ml20",
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["批量导入"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u6279\u91CF\u5BFC\u5165"
|
|
})]
|
|
})
|
|
}, {
|
|
name: "课程教案",
|
|
type: "plan",
|
|
topUseEidt: (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["新建文件夹"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u65B0\u5EFA\u6587\u4EF6\u5939"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
className: "ml20",
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["上传教案"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u4E0A\u4F20\u6559\u6848"
|
|
})]
|
|
})
|
|
}, {
|
|
name: "虚拟教研室",
|
|
type: "virtroom",
|
|
topUseEidt: (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
style: {
|
|
borderRadius: "4px"
|
|
},
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: "coreCurriculum/save",
|
|
payload: {
|
|
isShowModalName: ["编辑虚拟教研室"]
|
|
}
|
|
});
|
|
},
|
|
children: "\u7F16\u8F91\u865A\u62DF\u6559\u7814\u5BA4"
|
|
})
|
|
}, {
|
|
name: "交流问答",
|
|
type: "answers",
|
|
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {})
|
|
}];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: TopMenusmodules.TopMenusDiv,
|
|
align: "middle",
|
|
justify: "space-between",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
className: TopMenusmodules.SrollStage,
|
|
children: TopMenus === null || TopMenus === void 0 ? void 0 : TopMenus.map(function (item, index) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
className: "".concat(id === (item === null || item === void 0 ? void 0 : item.type) && TopMenusmodules.StageItemActive, " ").concat(TopMenusmodules.StageItem),
|
|
to: "/core/".concat(params === null || params === void 0 ? void 0 : params.coreId, "/").concat(item.type),
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
}, index);
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: TopMenus === null || TopMenus === void 0 || (_TopMenus$find2 = TopMenus.find(function (item) {
|
|
return item.type === id;
|
|
})) === null || _TopMenus$find2 === void 0 ? void 0 : _TopMenus$find2.topUseEidt
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var TopMenus = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var coreCurriculum = _ref2.coreCurriculum;
|
|
return {
|
|
coreCurriculum: coreCurriculum
|
|
};
|
|
})(Page));
|
|
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var CoreDetail_Page = function Page(_ref) {
|
|
objectDestructuringEmpty_default()(_ref);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
background: "#fff"
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CoreDetail_TopBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(TopMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(layout/* default */.Z.Content, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var CoreDetail = (CoreDetail_Page);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 24649:
|
|
/*!*********************************************************************************!*\
|
|
!*** ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx + 1 modules ***!
|
|
\*********************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ AddOrEditCore; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(26801);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(11006);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(27161);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
var input = __webpack_require__(1056);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(10574);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(39343);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
|
|
var upload = __webpack_require__(6557);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(78130);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
|
var CloseCircleFilled = __webpack_require__(48796);
|
|
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
|
var ui_customization = __webpack_require__(89200);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/components/ImgUploadForm/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["ButtonText", "ButtonOptions"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var AddOrEdit = function AddOrEdit(_ref) {
|
|
var _file$response2;
|
|
var ButtonText = _ref.ButtonText,
|
|
ButtonOptions = _ref.ButtonOptions,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _useState = (0,_react_17_0_2_react.useState)(null),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
file = _useState2[0],
|
|
setFile = _useState2[1];
|
|
var uploadProps = {
|
|
maxCount: 1,
|
|
accept: "image/*",
|
|
withCredentials: true,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var fileSize = file.size / 1024 / 1024;
|
|
if (fileSize == 0) {
|
|
message/* default */.ZP.error("".concat(file.name, " \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
|
return upload/* default */.Z.LIST_IGNORE;
|
|
}
|
|
return true;
|
|
},
|
|
onChange: function onChange(info) {
|
|
var statusList = ["uploading", "done", "removed"];
|
|
if (statusList.includes(info.file.status)) {
|
|
setFile(info.file);
|
|
}
|
|
if (info.file.status == "done") {
|
|
var _info$file;
|
|
props === null || props === void 0 || props.onChange((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.id);
|
|
}
|
|
},
|
|
onRemove: function () {
|
|
var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(file) {
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
close();
|
|
case 1:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function onRemove(_x) {
|
|
return _onRemove.apply(this, arguments);
|
|
}
|
|
return onRemove;
|
|
}(),
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json")
|
|
};
|
|
var renderImg = function renderImg() {
|
|
var _file$response;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
justify: "center",
|
|
style: {
|
|
position: "relative",
|
|
width: 400,
|
|
backgroundColor: "#f4f3f4"
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + "/api/attachments/" + (file === null || file === void 0 || (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.id),
|
|
alt: "avatar",
|
|
style: {
|
|
width: '100%'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
position: "absolute",
|
|
right: "-6px",
|
|
top: "-6px",
|
|
cursor: "pointer",
|
|
width: 16,
|
|
height: 16,
|
|
borderRadius: "50%",
|
|
backgroundColor: "#fff"
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, {
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
close();
|
|
case 1:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
style: {
|
|
fontSize: '16px',
|
|
color: 'red'
|
|
}
|
|
})
|
|
})]
|
|
});
|
|
};
|
|
var close = function close() {
|
|
setFile(null);
|
|
props === null || props === void 0 || props.onChange();
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
(props === null || props === void 0 ? void 0 : props.value) && setFile({
|
|
response: {
|
|
id: props === null || props === void 0 ? void 0 : props.value
|
|
}
|
|
});
|
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
id: (props === null || props === void 0 ? void 0 : props.scrollId) || '',
|
|
children: file !== null && file !== void 0 && (_file$response2 = file.response) !== null && _file$response2 !== void 0 && _file$response2.id ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, objectSpread2_default()(objectSpread2_default()({
|
|
style: objectSpread2_default()({
|
|
borderRadius: "2px"
|
|
}, ButtonOptions === null || ButtonOptions === void 0 ? void 0 : ButtonOptions.style)
|
|
}, ButtonOptions), {}, {
|
|
children: ButtonText
|
|
}))
|
|
}))
|
|
});
|
|
};
|
|
/* harmony default export */ var ImgUploadForm = (AddOrEdit);
|
|
;// CONCATENATED MODULE: ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx
|
|
|
|
|
|
|
|
var AddOrEditCore_excluded = ["handleFinish", "form", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
var AddOrEditCore_AddOrEdit = function AddOrEdit(_ref) {
|
|
var _fileList$2;
|
|
var handleFinish = _ref.handleFinish,
|
|
form = _ref.form,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, AddOrEditCore_excluded);
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
fileList = _useState2[0],
|
|
setFileList = _useState2[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (props.open) {
|
|
var _fileList$;
|
|
!(fileList !== null && fileList !== void 0 && (_fileList$ = fileList[0]) !== null && _fileList$ !== void 0 && (_fileList$ = _fileList$.response) !== null && _fileList$ !== void 0 && _fileList$.id) && setFileList([{
|
|
response: form.getFieldValue("cover") || {
|
|
id: form.getFieldValue("cover_id")
|
|
}
|
|
}]);
|
|
} else {
|
|
setFileList([]);
|
|
}
|
|
}, [props.open, fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id]);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
destroyOnClose: true,
|
|
centered: true,
|
|
width: 1200,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
form: form,
|
|
size: "large",
|
|
initialValues: {},
|
|
layout: "vertical",
|
|
onValuesChange: function onValuesChange(changedValues) {},
|
|
onFinish: handleFinish,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "name",
|
|
label: "\u8BFE\u7A0B\u540D\u79F0",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入课程名称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0",
|
|
maxLength: 50,
|
|
showCount: true
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "name_en",
|
|
label: "\u8BFE\u7A0B\u82F1\u6587\u540D\u79F0",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入课程英文名称'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u82F1\u6587\u540D\u79F0",
|
|
maxLength: 50,
|
|
showCount: true
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: 20,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "adminer",
|
|
label: "\u8D1F\u8D23\u4EBA(\u4E2D\u6587)",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入负责人'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",
|
|
maxLength: 10,
|
|
showCount: true
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "adminer_en",
|
|
label: "\u8D1F\u8D23\u4EBA(\u82F1\u6587)",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入负责人'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",
|
|
maxLength: 100,
|
|
showCount: true
|
|
})
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: 20,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "leading_unit",
|
|
label: "\u7275\u5934\u5355\u4F4D(\u4E2D\u6587)",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入牵头单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u7275\u5934\u5355\u4F4D",
|
|
maxLength: 20,
|
|
showCount: true
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
htmlFor: null,
|
|
name: "leading_unit_en",
|
|
label: "\u7275\u5934\u5355\u4F4D(\u82F1\u6587)",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入牵头单位'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u7275\u5934\u5355\u4F4D",
|
|
maxLength: 500,
|
|
showCount: true
|
|
})
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
name: "cover_id",
|
|
label: "\u5217\u8868\u5C01\u9762\u56FE",
|
|
rules: [{
|
|
required: true,
|
|
message: '请上传列表封面图'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ImgUploadForm, {
|
|
ButtonText: "上传图片"
|
|
})
|
|
})]
|
|
})
|
|
}));
|
|
};
|
|
/* harmony default export */ var AddOrEditCore = (AddOrEditCore_AddOrEdit);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 56762:
|
|
/*!************************************************************************!*\
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
|
\************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
function useForceUpdate() {
|
|
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
|
return forceUpdate;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 44000:
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
|
|
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 37534);
|
|
"use client";
|
|
|
|
|
|
|
|
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
|
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
|
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
|
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
|
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
|
/* harmony default export */ __webpack_exports__.Z = (Layout);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 92899:
|
|
/*!***************************************************************!*\
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
|
\***************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
|
/* harmony export */ });
|
|
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
|
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 36646);
|
|
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
|
|
|
|
|
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
|
'0%': {
|
|
transform: 'translate3d(0, 100%, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
}
|
|
});
|
|
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
|
'0%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, 100%, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
}
|
|
});
|
|
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
|
'0%': {
|
|
transform: 'translate3d(-100%, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
}
|
|
});
|
|
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
|
'0%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(-100%, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
}
|
|
});
|
|
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
|
'0%': {
|
|
transform: 'translate3d(100%, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
}
|
|
});
|
|
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
|
'0%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(100%, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
}
|
|
});
|
|
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
|
'0%': {
|
|
transform: 'translate3d(0, -100%, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
}
|
|
});
|
|
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
|
'0%': {
|
|
transform: 'translate3d(0, 0, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 1
|
|
},
|
|
'100%': {
|
|
transform: 'translate3d(0, -100%, 0)',
|
|
transformOrigin: '0 0',
|
|
opacity: 0
|
|
}
|
|
});
|
|
const moveMotion = {
|
|
'move-up': {
|
|
inKeyframes: moveUpIn,
|
|
outKeyframes: moveUpOut
|
|
},
|
|
'move-down': {
|
|
inKeyframes: moveDownIn,
|
|
outKeyframes: moveDownOut
|
|
},
|
|
'move-left': {
|
|
inKeyframes: moveLeftIn,
|
|
outKeyframes: moveLeftOut
|
|
},
|
|
'move-right': {
|
|
inKeyframes: moveRightIn,
|
|
outKeyframes: moveRightOut
|
|
}
|
|
};
|
|
const initMoveMotion = (token, motionName) => {
|
|
const {
|
|
antCls
|
|
} = token;
|
|
const motionCls = `${antCls}-${motionName}`;
|
|
const {
|
|
inKeyframes,
|
|
outKeyframes
|
|
} = moveMotion[motionName];
|
|
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
|
[`
|
|
${motionCls}-enter,
|
|
${motionCls}-appear
|
|
`]: {
|
|
opacity: 0,
|
|
animationTimingFunction: token.motionEaseOutCirc
|
|
},
|
|
[`${motionCls}-leave`]: {
|
|
animationTimingFunction: token.motionEaseInOutCirc
|
|
}
|
|
}];
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 20098:
|
|
/*!************************************************!*\
|
|
!*** ./src/layouts/CoreDetail/TopBanner/b.png ***!
|
|
\************************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__.p + "static/b.70f32195.png";
|
|
|
|
/***/ })
|
|
|
|
}]); |