Auto Submit

dev_local_v9_test6
autosubmit 1 year ago
parent c45341e8d9
commit 5707b0fac4

@ -1298,21 +1298,21 @@ var Join = function Join(_ref) {
className: "pt5 pb5",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_identity) !== '学生' ? Joinmodules.joinCol : Joinmodules.hidden,
children: [((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.hide_course) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.hide_course) && !isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/classrooms/new');
},
children: (_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.main_site ? '新建教学课堂' : '新建课堂'
})
})), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.hide_shixun) && (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.is_shixun_marker) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.hide_shixun) && (user === null || user === void 0 || (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.is_shixun_marker) && !isShixunsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/shixuns/new', VerifyType.Shixuns);
},
children: "\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"
})
})), ((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.hide_subject) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.hide_subject) && !isPathsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleAddVerify('/paths/new');
@ -1327,7 +1327,7 @@ var Join = function Join(_ref) {
},
children: "\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"
})
})), (user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.identity) !== 'student' && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), (user === null || user === void 0 || (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.identity) !== 'student' && !isGraduationsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
@ -1377,7 +1377,7 @@ var Join = function Join(_ref) {
children: "\u65B0\u5EFA\u6BD5\u4E1A\u8BBE\u8BA1"
})
})), !((_user$userInfo10 = user.userInfo) !== null && _user$userInfo10 !== void 0 && _user$userInfo10.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [!isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Classrooms);
@ -1399,7 +1399,7 @@ var Join = function Join(_ref) {
})
}), ((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.main_site) && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: ((_user$userInfo16 = user.userInfo) === null || _user$userInfo16 === void 0 ? void 0 : _user$userInfo16.user_identity) !== '学生' ? Joinmodules.joinCol : Joinmodules.w90,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: [!isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Classrooms);
@ -1413,7 +1413,7 @@ var Join = function Join(_ref) {
},
children: "\u52A0\u5165\u5F00\u53D1\u9879\u76EE"
})
})), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), !isGraduationsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerifyLogin */.o1)(dispatch)) return;
setIsJoinGraduations(true);
@ -1426,19 +1426,18 @@ var Join = function Join(_ref) {
})
});
};
// useEffect(() => {
// if(globalSetting?.setting && user?.userInfo){
// setShowDrop((!isClassroomsHidden || !isShixunsHidden || !isPathsHidden || !isGraduationsHidden || (user.userInfo?.main_site && !globalSetting?.setting?.is_local)))
// }
// }, [globalSetting,user?.userInfo]);
(0,_react_17_0_2_react.useEffect)(function () {
if (globalSetting !== null && globalSetting !== void 0 && globalSetting.setting && user !== null && user !== void 0 && user.userInfo) {
var _user$userInfo19, _globalSetting$settin11;
setShowDrop(!isClassroomsHidden || !isShixunsHidden || !isPathsHidden || !isGraduationsHidden || ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin11 = globalSetting.setting) !== null && _globalSetting$settin11 !== void 0 && _globalSetting$settin11.is_local));
}
}, [globalSetting, user === null || user === void 0 ? void 0 : user.userInfo]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
children: [showdrop && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
dropdownRender: function dropdownRender() {
var _user$userInfo19;
var _user$userInfo20;
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
className: ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.user_identity) !== '学生' ? "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " mt10") : "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " ").concat(Joinmodules.w140, " mt10"),
className: ((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.user_identity) !== '学生' ? "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " mt10") : "".concat(Joinmodules.rightMenu, " ").concat(Joinmodules.joinMenu, " ").concat(Joinmodules.w140, " mt10"),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(JoinOverlay, {})
});
},
@ -1620,17 +1619,17 @@ var User = function User(_ref) {
to: "/users/".concat((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login, "/classrooms"),
children: "\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), !isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.login, "/classrooms"),
children: (_user$userInfo9 = user.userInfo) !== null && _user$userInfo9 !== void 0 && _user$userInfo9.main_site ? '我的教学课堂' : '我的课堂'
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), !isShixunsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat((_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.login, "/shixuns"),
children: "\u6211\u7684\u5B9E\u8DF5\u9879\u76EE"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), !isPathsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat((_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.login, "/paths"),
children: (_user$userInfo12 = user.userInfo) !== null && _user$userInfo12 !== void 0 && _user$userInfo12.main_site ? '我的实践课程' : '我的课程'
@ -1640,7 +1639,7 @@ var User = function User(_ref) {
to: "/users/".concat((_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.login, "/teach-group"),
children: "\u6211\u7684\u6559\u7814\u56E2\u961F"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), !isCompetitionHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/users/".concat((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.login, "/competitions"),
children: "\u6211\u7684\u7ADE\u8D5B\u7BA1\u7406"
@ -1751,7 +1750,7 @@ var User = function User(_ref) {
}
};
if ((0,authority/* isLogin */.bg)()) {
var _user$userInfo19, _user$userInfo21;
var _user$userInfo19, _user$userInfo22;
return /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
className: "".concat(Usermodules.height67),
dropdownRender: DropdownMenu,
@ -1765,12 +1764,12 @@ var User = function User(_ref) {
src: "".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.image_url),
alt: "",
onClick: function onClick() {
var _user$userInfo20;
return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile' : "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/classrooms"));
var _user$userInfo20, _user$userInfo21;
return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile' : !isClassroomsHidden ? "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/classrooms") : "/users/".concat((_user$userInfo21 = user.userInfo) === null || _user$userInfo21 === void 0 ? void 0 : _user$userInfo21.login, "/otherResources"));
}
}), (0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 font16",
children: (_user$userInfo21 = user.userInfo) === null || _user$userInfo21 === void 0 ? void 0 : _user$userInfo21.username
children: (_user$userInfo22 = user.userInfo) === null || _user$userInfo22 === void 0 ? void 0 : _user$userInfo22.username
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-zhankai4 ".concat(Usermodules.icon)
})]
@ -2542,19 +2541,6 @@ var HeaderComponents = function HeaderComponents(_ref) {
}
return _context.abrupt("return");
case 9:
// if (v?.name === '项目协同管理平台') {
// if (!isLogins()) {
// dispatch({
// type: 'user/showPopLogin',
// payload: {
// showPopLogin: true,
// showClosable: true
// },
// })
// }
// return
// }
// if (!v.link || v?.subitem?.length) return
if (v !== null && v !== void 0 && (_v$link = v.link) !== null && _v$link !== void 0 && _v$link.includes("http")) {
(0,util/* openNewWindow */.xg)(v === null || v === void 0 ? void 0 : v.link);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[83695],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25343],{
/***/ 88544:
/*!********************************************************************************************************!*\
@ -1024,6 +1024,598 @@ const genWireframeStyle = token => {
/***/ }),
/***/ 39978:
/*!********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/rate/index.js + 8 modules ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ rate; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// 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.4.2@@ant-design/icons-svg/es/asn/StarFilled.js
// This icon file is generated automatically.
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
/* harmony default export */ var asn_StarFilled = (StarFilled);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(88853);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/StarFilled.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var StarFilled_StarFilled = function StarFilled(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_StarFilled
}));
};
/**![star](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOC4xIDM1My4xbC0yNTMuOS0zNi45TDU0MC43IDg2LjFjLTMuMS02LjMtOC4yLTExLjQtMTQuNS0xNC41LTE1LjgtNy44LTM1LTEuMy00Mi45IDE0LjVMMzY5LjggMzE2LjJsLTI1My45IDM2LjljLTcgMS0xMy40IDQuMy0xOC4zIDkuM2EzMi4wNSAzMi4wNSAwIDAwLjYgNDUuM2wxODMuNyAxNzkuMS00My40IDI1Mi45YTMxLjk1IDMxLjk1IDAgMDA0Ni40IDMzLjdMNTEyIDc1NGwyMjcuMSAxMTkuNGM2LjIgMy4zIDEzLjQgNC40IDIwLjMgMy4yIDE3LjQtMyAyOS4xLTE5LjUgMjYuMS0zNi45bC00My40LTI1Mi45IDE4My43LTE3OS4xYzUtNC45IDguMy0xMS4zIDkuMy0xOC4zIDIuNy0xNy41LTkuNS0zMy43LTI3LTM2LjN6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(StarFilled_StarFilled);
if (false) {}
/* harmony default export */ var icons_StarFilled = (RefIcon);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(80962);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(29043);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(19149);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(35788);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(85108);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(36994);
;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/Star.js
function Star(props, ref) {
var disabled = props.disabled,
prefixCls = props.prefixCls,
character = props.character,
characterRender = props.characterRender,
index = props.index,
count = props.count,
value = props.value,
allowHalf = props.allowHalf,
focused = props.focused,
onHover = props.onHover,
onClick = props.onClick;
// =========================== Events ===========================
var onInternalHover = function onInternalHover(e) {
onHover(e, index);
};
var onInternalClick = function onInternalClick(e) {
onClick(e, index);
};
var onInternalKeyDown = function onInternalKeyDown(e) {
if (e.keyCode === KeyCode/* default */.Z.ENTER) {
onClick(e, index);
}
};
// =========================== Render ===========================
// >>>>> ClassName
var starValue = index + 1;
var classNameList = new Set([prefixCls]);
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
if (value === 0 && index === 0 && focused) {
classNameList.add("".concat(prefixCls, "-focused"));
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
classNameList.add("".concat(prefixCls, "-half"));
classNameList.add("".concat(prefixCls, "-active"));
if (focused) {
classNameList.add("".concat(prefixCls, "-focused"));
}
} else {
if (starValue <= value) {
classNameList.add("".concat(prefixCls, "-full"));
} else {
classNameList.add("".concat(prefixCls, "-zero"));
}
if (starValue === value && focused) {
classNameList.add("".concat(prefixCls, "-focused"));
}
}
// >>>>> Node
var characterNode = typeof character === 'function' ? character(props) : character;
var start = /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: _classnames_2_5_1_classnames_default()(Array.from(classNameList)),
ref: ref
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
onClick: disabled ? null : onInternalClick,
onKeyDown: disabled ? null : onInternalKeyDown,
onMouseMove: disabled ? null : onInternalHover,
role: "radio",
"aria-checked": value > index ? 'true' : 'false',
"aria-posinset": index + 1,
"aria-setsize": count,
tabIndex: disabled ? -1 : 0
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: "".concat(prefixCls, "-first")
}, characterNode), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: "".concat(prefixCls, "-second")
}, characterNode)));
if (characterRender) {
start = characterRender(start, props);
}
return start;
}
/* harmony default export */ var es_Star = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Star));
;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/useRefs.js
function useRefs() {
var nodeRef = _react_17_0_2_react.useRef({});
function getRef(index) {
return nodeRef.current[index];
}
function setRef(index) {
return function (node) {
nodeRef.current[index] = node;
};
}
return [getRef, setRef];
}
;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/util.js
function getScroll(w) {
var ret = w.pageXOffset;
var method = 'scrollLeft';
if (typeof ret !== 'number') {
var d = w.document;
// ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getClientPosition(elem) {
var x;
var y;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement;
var box = elem.getBoundingClientRect();
x = box.left;
y = box.top;
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getOffsetLeft(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument;
// Only IE use `parentWindow`
var w = doc.defaultView || doc.parentWindow;
pos.left += getScroll(w);
return pos.left;
}
;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/Rate.js
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
function Rate(props, ref) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
className = props.className,
defaultValue = props.defaultValue,
propValue = props.value,
_props$count = props.count,
count = _props$count === void 0 ? 5 : _props$count,
_props$allowHalf = props.allowHalf,
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
_props$allowClear = props.allowClear,
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
_props$character = props.character,
character = _props$character === void 0 ? '★' : _props$character,
characterRender = props.characterRender,
disabled = props.disabled,
_props$direction = props.direction,
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
_props$tabIndex = props.tabIndex,
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
autoFocus = props.autoFocus,
onHoverChange = props.onHoverChange,
onChange = props.onChange,
onFocus = props.onFocus,
onBlur = props.onBlur,
onKeyDown = props.onKeyDown,
onMouseLeave = props.onMouseLeave,
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
var _useRefs = useRefs(),
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
getStarRef = _useRefs2[0],
setStarRef = _useRefs2[1];
var rateRef = _react_17_0_2_react.useRef(null);
// ============================ Ref =============================
var triggerFocus = function triggerFocus() {
if (!disabled) {
var _rateRef$current;
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
}
};
_react_17_0_2_react.useImperativeHandle(ref, function () {
return {
focus: triggerFocus,
blur: function blur() {
if (!disabled) {
var _rateRef$current2;
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
}
}
};
});
// =========================== Value ============================
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
value: propValue
}),
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
value = _useMergedState2[0],
setValue = _useMergedState2[1];
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
cleanedValue = _useMergedState4[0],
setCleanedValue = _useMergedState4[1];
var getStarValue = function getStarValue(index, x) {
var reverse = direction === 'rtl';
var starValue = index + 1;
if (allowHalf) {
var starEle = getStarRef(index);
var leftDis = getOffsetLeft(starEle);
var width = starEle.clientWidth;
if (reverse && x - leftDis > width / 2) {
starValue -= 0.5;
} else if (!reverse && x - leftDis < width / 2) {
starValue -= 0.5;
}
}
return starValue;
};
// >>>>> Change
var changeValue = function changeValue(nextValue) {
setValue(nextValue);
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
};
// =========================== Focus ============================
var _React$useState = _react_17_0_2_react.useState(false),
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
focused = _React$useState2[0],
setFocused = _React$useState2[1];
var onInternalFocus = function onInternalFocus() {
setFocused(true);
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
};
var onInternalBlur = function onInternalBlur() {
setFocused(false);
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
};
// =========================== Hover ============================
var _React$useState3 = _react_17_0_2_react.useState(null),
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
hoverValue = _React$useState4[0],
setHoverValue = _React$useState4[1];
var onHover = function onHover(event, index) {
var nextHoverValue = getStarValue(index, event.pageX);
if (nextHoverValue !== cleanedValue) {
setHoverValue(nextHoverValue);
setCleanedValue(null);
}
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
};
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
if (!disabled) {
setHoverValue(null);
setCleanedValue(null);
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
}
if (event) {
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
}
};
// =========================== Click ============================
var onClick = function onClick(event, index) {
var newValue = getStarValue(index, event.pageX);
var isReset = false;
if (allowClear) {
isReset = newValue === value;
}
onMouseLeaveCallback();
changeValue(isReset ? 0 : newValue);
setCleanedValue(isReset ? newValue : null);
};
var onInternalKeyDown = function onInternalKeyDown(event) {
var keyCode = event.keyCode;
var reverse = direction === 'rtl';
var nextValue = value;
if (keyCode === KeyCode/* default */.Z.RIGHT && nextValue < count && !reverse) {
if (allowHalf) {
nextValue += 0.5;
} else {
nextValue += 1;
}
changeValue(nextValue);
event.preventDefault();
} else if (keyCode === KeyCode/* default */.Z.LEFT && nextValue > 0 && !reverse) {
if (allowHalf) {
nextValue -= 0.5;
} else {
nextValue -= 1;
}
changeValue(nextValue);
event.preventDefault();
} else if (keyCode === KeyCode/* default */.Z.RIGHT && nextValue > 0 && reverse) {
if (allowHalf) {
nextValue -= 0.5;
} else {
nextValue -= 1;
}
changeValue(nextValue);
event.preventDefault();
} else if (keyCode === KeyCode/* default */.Z.LEFT && nextValue < count && reverse) {
if (allowHalf) {
nextValue += 0.5;
} else {
nextValue += 1;
}
changeValue(nextValue);
event.preventDefault();
}
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
};
// =========================== Effect ===========================
_react_17_0_2_react.useEffect(function () {
if (autoFocus && !disabled) {
triggerFocus();
}
}, []);
// =========================== Render ===========================
// >>> Star
var starNodes = new Array(count).fill(0).map(function (item, index) {
return /*#__PURE__*/_react_17_0_2_react.createElement(es_Star, {
ref: setStarRef(index),
index: index,
count: count,
disabled: disabled,
prefixCls: "".concat(prefixCls, "-star"),
allowHalf: allowHalf,
value: hoverValue === null ? value : hoverValue,
onClick: onClick,
onHover: onHover,
key: item || index,
character: character,
characterRender: characterRender,
focused: focused
});
});
var classString = _classnames_2_5_1_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
// >>> Node
return /*#__PURE__*/_react_17_0_2_react.createElement("ul", (0,esm_extends/* default */.Z)({
className: classString,
onMouseLeave: onMouseLeaveCallback,
tabIndex: disabled ? -1 : tabIndex,
onFocus: disabled ? null : onInternalFocus,
onBlur: disabled ? null : onInternalBlur,
onKeyDown: disabled ? null : onInternalKeyDown,
ref: rateRef,
role: "radiogroup"
}, (0,pickAttrs/* default */.Z)(restProps, {
aria: true,
data: true,
attr: true
})), starNodes);
}
/* harmony default export */ var es_Rate = (/*#__PURE__*/_react_17_0_2_react.forwardRef(Rate));
;// CONCATENATED MODULE: ./node_modules/_rc-rate@2.12.0@rc-rate/es/index.js
/* harmony default export */ var es = (es_Rate);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/rate/style/index.js
"use client";
const genRateStarStyle = token => {
const {
componentCls
} = token;
return {
[`${componentCls}-star`]: {
position: 'relative',
display: 'inline-block',
color: 'inherit',
cursor: 'pointer',
'&:not(:last-child)': {
marginInlineEnd: token.marginXS
},
'> div': {
transition: `all ${token.motionDurationMid}, outline 0s`,
'&:hover': {
transform: token.starHoverScale
},
'&:focus': {
outline: 0
},
'&:focus-visible': {
outline: `${token.lineWidth}px dashed ${token.starColor}`,
transform: token.starHoverScale
}
},
'&-first, &-second': {
color: token.starBg,
transition: `all ${token.motionDurationMid}`,
userSelect: 'none',
[token.iconCls]: {
verticalAlign: 'middle'
}
},
'&-first': {
position: 'absolute',
top: 0,
insetInlineStart: 0,
width: '50%',
height: '100%',
overflow: 'hidden',
opacity: 0
},
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
opacity: 1
},
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
color: 'inherit'
}
}
};
};
const genRateRtlStyle = token => ({
[`&-rtl${token.componentCls}`]: {
direction: 'rtl'
}
});
const genRateStyle = token => {
const {
componentCls
} = token;
return {
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
display: 'inline-block',
margin: 0,
padding: 0,
color: token.starColor,
fontSize: token.starSize,
lineHeight: 'unset',
listStyle: 'none',
outline: 'none',
// disable styles
[`&-disabled${componentCls} ${componentCls}-star`]: {
cursor: 'default',
'> div:hover': {
transform: 'scale(1)'
}
}
}), genRateStarStyle(token)), {
// text styles
[`+ ${componentCls}-text`]: {
display: 'inline-block',
marginInlineStart: token.marginXS,
fontSize: token.fontSize
}
}), genRateRtlStyle(token))
};
};
// ============================== Export ==============================
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
const rateToken = (0,statistic/* merge */.TS)(token, {});
return [genRateStyle(rateToken)];
}, token => ({
starColor: token.yellow6,
starSize: token.controlHeightLG * 0.5,
starHoverScale: 'scale(1.1)',
starBg: token.colorFillContent
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/rate/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const rate_Rate = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls,
className,
rootClassName,
style,
tooltips,
character = /*#__PURE__*/_react_17_0_2_react.createElement(icons_StarFilled, null)
} = props,
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
const characterRender = (node, _ref) => {
let {
index
} = _ref;
if (!tooltips) {
return node;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(tooltip/* default */.Z, {
title: tooltips[index]
}, node);
};
const {
getPrefixCls,
direction,
rate
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const ratePrefixCls = getPrefixCls('rate', prefixCls);
// Style
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({
ref: ref,
character: character,
characterRender: characterRender
}, rest, {
className: _classnames_2_5_1_classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
style: mergedStyle,
prefixCls: ratePrefixCls,
direction: direction
})));
});
if (false) {}
/* harmony default export */ var rate = (rate_Rate);
/***/ }),
/***/ 65615:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/tour/index.js + 12 modules ***!

@ -31,22 +31,19 @@ var _react_17_0_2_react = __webpack_require__(59301);
var es_select = __webpack_require__(57809);
// 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/input/index.js + 5 modules
var input = __webpack_require__(36920);
// 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/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/input/index.js + 5 modules
var input = __webpack_require__(36920);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(36057);
;// CONCATENATED MODULE: ./src/components/Knowledge/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Knowledgemodules = ({"wrap":"wrap___F7E3F","selectWrapper":"selectWrapper____kESB","tips":"tips___aHjQY","linkBtn":"linkBtn___uggVr","mainText":"mainText____S1I0","public_tips":"public_tips___sZVWd","inputCss":"inputCss___t66EO","bt":"bt___lXptu","add_style":"add_style___knrMF"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
/* harmony default export */ var Knowledgemodules = ({"wrap":"wrap___F7E3F","selectWrapper":"selectWrapper____kESB","tips":"tips___aHjQY","linkBtn":"linkBtn___uggVr","mainText":"mainText____S1I0"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(80205);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
@ -63,7 +60,6 @@ var jsx_runtime = __webpack_require__(37712);
var Option = es_select["default"].Option;
var Knowledge = function Knowledge(_ref) {
var subId = _ref.subId,
@ -72,8 +68,6 @@ var Knowledge = function Knowledge(_ref) {
disabled = _ref.disabled,
_ref$knowledgeOptions = _ref.knowledgeOptions,
knowledgeOptions = _ref$knowledgeOptions === void 0 ? [] : _ref$knowledgeOptions,
className = _ref.className,
height = _ref.height,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
_ref$onAddKnowledgeFi = _ref.onAddKnowledgeFinish,
@ -99,9 +93,6 @@ var Knowledge = function Knowledge(_ref) {
if ((selectvalues === null || selectvalues === void 0 ? void 0 : selectvalues.length) > 0) {
setValues(toConsumableArray_default()(selectvalues));
onChange(toConsumableArray_default()(selectvalues));
} else {
setValues([]);
onChange([]);
}
}, [knowledgeOptions]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -115,7 +106,7 @@ var Knowledge = function Knowledge(_ref) {
addValue.current = '';
modal/* default */.Z.confirm({
centered: true,
width: 585,
width: 640,
okText: '确定',
cancelText: '取消',
icon: null,
@ -123,42 +114,27 @@ var Knowledge = function Knowledge(_ref) {
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Knowledgemodules.public_tips,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
color: '#FF8C29',
marginRight: 10,
paddingTop: 5
}
}), "\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
width: '95px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Knowledgemodules.bt,
children: "*"
}), "\u77E5\u8BC6\u70B9\u540D\u79F0"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: Knowledgemodules.inputCss,
style: {
width: 'calc(100% - 95px)'
},
maxLength: 20,
size: 'middle',
showCount: true,
placeholder: "\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",
defaultValue: addValue.current,
onChange: function onChange(e) {
addValue.current = e.target.value;
}
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
color: '#FF8C29'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "ml10 ".concat(Knowledgemodules.mainText),
children: ["\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 20,
size: 'middle',
showCount: true,
placeholder: "\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",
defaultValue: addValue.current,
onChange: function onChange(e) {
addValue.current = e.target.value;
}
})]
}),
onOk: function onOk() {
@ -200,7 +176,7 @@ var Knowledge = function Knowledge(_ref) {
});
// values.push(res.tag_discipline_id)
// value.push(res.tag_discipline_id)
_value2 = selectvalues || [];
_value2 = selectvalues;
_value2.push(res.tag_discipline_id);
onChange(toConsumableArray_default()(_value2));
setValues(toConsumableArray_default()(_value2));
@ -223,7 +199,7 @@ var Knowledge = function Knowledge(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
align: "middle",
className: _classnames_2_5_1_classnames_default()(Knowledgemodules.wrap, className),
className: Knowledgemodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
mode: "multiple",
@ -232,20 +208,16 @@ var Knowledge = function Knowledge(_ref) {
placeholder: "\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",
onChange: handleChange,
style: {
width: height || 490
width: 490
},
showSearch: true,
allowClear: true,
value: values,
filterOption: function filterOption(input, option) {
return option.label.indexOf(input.toLowerCase()) >= 0;
}
value: values
// value={knowledgeOptions?.filter(item => values?.includes(item?.id) || values?.includes(item?.id + '')).map((item) => item.name)}
,
children: knowledgeOptions === null || knowledgeOptions === void 0 ? void 0 : knowledgeOptions.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: item.id,
label: item.name,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
@ -276,7 +248,7 @@ var Knowledge = function Knowledge(_ref) {
})
})
}), subId && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "ml20 ".concat(height && Knowledgemodules.add_style),
className: "ml20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Knowledgemodules.tips,
children: "\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"

@ -1238,7 +1238,7 @@ module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
"use strict";
var ENVIRONMENT = __webpack_require__(/*! ../internals/environment */ 59732);
var ENVIRONMENT = __webpack_require__(/*! ../internals/environment */ 28367);
module.exports = ENVIRONMENT === 'NODE';
@ -1317,7 +1317,7 @@ module.exports = version;
/***/ }),
/***/ 59732:
/***/ 28367:
/*!***********************************************************************!*\
!*** ./node_modules/_core-js@3.39.0@core-js/internals/environment.js ***!
\***********************************************************************/
@ -3464,7 +3464,7 @@ var isCallable = __webpack_require__(/*! ../internals/is-callable */ 66638);
var isForced = __webpack_require__(/*! ../internals/is-forced */ 36610);
var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ 60776);
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ 69393);
var ENVIRONMENT = __webpack_require__(/*! ../internals/environment */ 59732);
var ENVIRONMENT = __webpack_require__(/*! ../internals/environment */ 28367);
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ 24478);
var V8_VERSION = __webpack_require__(/*! ../internals/environment-v8-version */ 53368);

@ -5503,7 +5503,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sub_discipline_id = subId || '';
params.tag_discipline_id = '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setKnowledgeValue(-1);
// setKnowledgeValue(id === null ? -1 : null)
@ -5527,7 +5527,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleTypeChange = function handleTypeChange(value) {
params.item_type = value || '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
setParams(params);
getItemBanks(params);
if (activeTabsKey === "3" || activeTabsKey === "0") {
@ -5540,7 +5540,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleDifficultyChange = function handleDifficultyChange(value) {
params.difficulty = value || '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setParams(params);
getItemBanks(params);
@ -5554,7 +5554,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleKnowledgeChange = function handleKnowledgeChange(value) {
params.tag_discipline_id = value;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
if (value === -1) {
params.discipline_id = '';
@ -5612,7 +5612,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
setShowTeachGroup(false);
}
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setKnowledgeValue(-1);
setActiveTabsKey(activeKey);
@ -5639,7 +5639,6 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
// }
// params.sort_by = sort_direction ? field : null;
// params.sort_direction = sort_direction;
debugger;
params.page = page;
params.per_page = pagesize;
setParams(params);
@ -5674,7 +5673,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
// 加入试题蓝触发的回调
var handleReloadData = function handleReloadData() {
// params.per_page = 20;
params.per_page = 20;
setParams(params);
getItemBanks(params);
setIsPiliangRevoke(false);
@ -5683,7 +5682,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleDeleteData = function handleDeleteData(deleteId) {
var page = deleteId.length === problemsetList.length && params.page > 1 ? params.page - 1 : params.page;
params.page = page;
// params.per_page = 20;
params.per_page = 20;
getBasketList();
setParams(params);
getItemBanks(params);
@ -6089,7 +6088,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sub_discipline_id = '';
params.tag_discipline_id = '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
params.group_id = Math.abs(id);
setKnowledgeValue(-1);
setParams(params);
@ -6122,7 +6121,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
}
});
getItemBanks(params);
case 13:
case 14:
case "end":
return _context13.stop();
}
@ -7436,7 +7435,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sort_by = item.type;
params.sort_direction = item.direction;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
setSortMenuName(item.name);
setParams(params);
getItemBanks(params);
@ -7477,7 +7476,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.item_type = null;
params.difficulty = null;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
params.group_id = id;
setKnowledgeValue(-1);
setParams(params);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93477],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88218],{
/***/ 77352:
/*!******************************************!*\
@ -339,9 +339,9 @@ var Dialog = /*#__PURE__*/function (_React$Component) {
/***/ }),
/***/ 7970:
/***/ 406:
/*!**********************************************************!*\
!*** ./src/components/vnc-setting/index.tsx + 4 modules ***!
!*** ./src/components/vnc-setting/index.tsx + 1 modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -357,9 +357,6 @@ var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorR
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/components/tpi-code-setting/index.less
@ -368,6 +365,8 @@ var tpi_code_setting = __webpack_require__(49924);
var modal = __webpack_require__(43418);
// 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/input/index.js + 5 modules
var input = __webpack_require__(36920);
// 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
@ -384,6 +383,9 @@ var MultiUpload = __webpack_require__(78500);
var env = __webpack_require__(97940);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(36057);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(64606);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
@ -512,357 +514,6 @@ var lodash = __webpack_require__(89392);
var MarkdownModal = __webpack_require__(17082);
// EXTERNAL MODULE: ./src/components/ui-customization/reset.less?modules
var resetmodules = __webpack_require__(88600);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(36920);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(2595);
;// CONCATENATED MODULE: ./src/components/vnc-setting/ServicePreview/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ServicePreviewmodules = ({"tip":"tip___G7f9K","title":"title___IQM0U","primary":"primary___GvQEk","del":"del___VIxYG"});
;// CONCATENATED MODULE: ./src/components/vnc-setting/ServicePreview/icon.png
var icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjJJREFUWEftlz9oE3EUx7+/+9veeWmatAlNvBqsWl0UizgpKKWCQwcnly4O3RwEHQWRUpysCFIsDoLgYjcDouDg4CKi1UFbXCJNDKklzR+TNMnd/X6So1fBtEnReEW42969d7/3eV/ee9yPROaYggoOE4oexoGHCw8HmIwi59exSPQZdsIEAi7kbUohAt9I9C4bpZY7lf9OQAjKZGCGnduN6hs5BQ7VJoAozVwUqXHQgZo85ddjQVH9mjXKD17nk2cOqb1jR5Rww3/96epSn8aLV84Ghhr2k3c/Uh9T1dK1seD+XoWTPiRr+fn3xYxzVp3Ib9N86IVjbwkQM5NTPMyTTtDN8TCODypYWK7gRnwF40d9mDwdtN0XZhMI+QTMTei2Pf1sBW8SFdyf2ItIj4jnn4qYfZXdFLhOpHiSj97zAP4vBQYDIlSJQ7lOsbxmIKDyCGuCXcRipgaJJxjql2w7mTdQqlLbbrzPrVvIFMy/64FOjugfNaHrAAPricscs2KdTOycZfHyQkbWH7dswlDh8xShxuYe6CSIKXTFs9pw6z3gAXgKeAoEC0tXeWocaxo/Apkw6t/ZWHJZBvzawRsfWUL3y6x24FHLPbBdAq2SHlFqq7d2ApDX9l2qCf50u9gtf0g8AE8BT4HtFJDNfGRP9fv5dqPV8Bdlfd4Qu4vtYu0xjN5mo5Ts0tWMR4lE7rARxtDXjvZf+EWKFIk9ZF3GGoY5Ah9zSQmLwBQpcv0qvvwEnl+9DjPi88gAAAAASUVORK5CYII=";
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(86250);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(69718);
;// CONCATENATED MODULE: ./src/components/vnc-setting/ServicePreview/index.tsx
var ServicePreview = function ServicePreview(_ref) {
var _data$2;
var taskId = _ref.taskId,
_ref$gather = _ref.gather,
gather = _ref$gather === void 0 ? {} : _ref$gather,
visible = _ref.visible,
setVisible = _ref.setVisible;
var _useState = (0,_react_17_0_2_react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
loading = _useState2[0],
setLoading = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
data = _useState4[0],
setData = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
value = _useState6[0],
setValue = _useState6[1];
var inputRef = (0,_react_17_0_2_react.useRef)(null);
(0,_react_17_0_2_react.useEffect)(function () {
if (visible) {
getData();
}
}, [visible]);
(0,_react_17_0_2_react.useEffect)(function () {
var _data$;
if (!!(data !== null && data !== void 0 && (_data$ = data[0]) !== null && _data$ !== void 0 && _data$.add) && inputRef.current) {
inputRef.current.focus();
}
}, [!!(data !== null && data !== void 0 && (_data$2 = data[0]) !== null && _data$2 !== void 0 && _data$2.add)]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/tasks/".concat(taskId, "/proxy_list"), {
method: "post",
body: gather
});
case 3:
res = _context.sent;
if (res.status === 0) {
setData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
}
setLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var handleSave = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _data$map;
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (value) {
_context2.next = 3;
break;
}
message/* default */.ZP.warning('端口号不能为空');
return _context2.abrupt("return");
case 3:
if (!value.includes(" ")) {
_context2.next = 6;
break;
}
message/* default */.ZP.warning('端口号不能有空格');
return _context2.abrupt("return");
case 6:
if (!(value && (value.includes('.') || isNaN(Number(value)) || Number(value) > 65535 || Number(value) <= 0 || value.length > 1 && value[0] === "0"))) {
_context2.next = 9;
break;
}
message/* default */.ZP.warning('请输入正确的端口号');
return _context2.abrupt("return");
case 9:
if (!(data !== null && data !== void 0 && (_data$map = data.map(function (e) {
return e.port;
})) !== null && _data$map !== void 0 && _data$map.includes(value))) {
_context2.next = 12;
break;
}
message/* default */.ZP.warning('端口号不允许重复');
return _context2.abrupt("return");
case 12:
setLoading(true);
_context2.next = 15;
return (0,fetch/* default */.ZP)("/api/tasks/".concat(taskId, "/port_proxy"), {
method: "post",
body: objectSpread2_default()({
port: Number(value)
}, gather)
});
case 15:
res = _context2.sent;
if (!(res.status === 0)) {
_context2.next = 19;
break;
}
getData();
return _context2.abrupt("return");
case 19:
setLoading(false);
case 20:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function handleSave() {
return _ref3.apply(this, arguments);
};
}();
var handleDel = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(port) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
modal/* default */.Z.confirm({
title: "提示",
centered: true,
icon: null,
content: '确认删除吗',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/tasks/".concat(taskId, "/proxy_del"), {
method: "delete",
body: objectSpread2_default()({
port: port
}, gather)
});
case 2:
res = _context3.sent;
if (!(res.status === 0)) {
_context3.next = 7;
break;
}
message/* default */.ZP.success('删除成功');
getData();
return _context3.abrupt("return");
case 7:
case "end":
return _context3.stop();
}
}, _callee3);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function handleDel(_x) {
return _ref4.apply(this, arguments);
};
}();
var handleAdd = function handleAdd() {
var _data$3;
if (data !== null && data !== void 0 && (_data$3 = data[0]) !== null && _data$3 !== void 0 && _data$3.add) {
message/* default */.ZP.warning('只能添加一行');
return;
}
setValue('');
var item = {
port: '',
proxyUrl: '',
add: true
};
setData([item].concat(toConsumableArray_default()(data)));
};
var columns = [{
title: '内部端口',
dataIndex: 'port',
render: function render(v, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: record.add ? /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
ref: inputRef,
maxLength: 5,
placeholder: "\u8BF7\u8F93\u5165",
value: value,
onChange: function onChange(e) {
return setValue(e.target.value);
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v
})
});
}
}, {
title: '外部访问',
dataIndex: 'proxyUrl',
render: function render(v) {
var _v$split;
return (v === null || v === void 0 || (_v$split = v.split('//')) === null || _v$split === void 0 ? void 0 : _v$split[1]) || '- -';
}
}, {
title: '操作',
dataIndex: 'action',
align: 'right',
render: function render(_, record, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: record.add ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleSave,
className: ServicePreviewmodules.primary,
children: "\u4FDD\u5B58"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
return setData(function (p) {
return p.filter(function (e, i) {
return index !== i;
});
});
},
style: {
marginLeft: 48
},
className: ServicePreviewmodules.primary,
children: "\u53D6\u6D88"
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)(record === null || record === void 0 ? void 0 : record.proxyUrl);
},
className: ServicePreviewmodules.primary,
children: "\u6253\u5F00Web\u9884\u89C8"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
return handleDel(record === null || record === void 0 ? void 0 : record.port);
},
className: "".concat(ServicePreviewmodules.del, " ml20"),
children: "\u5220\u9664\u7AEF\u53E3"
})]
})
});
}
}];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
centered: true,
open: visible,
title: "\u670D\u52A1\u9884\u89C8",
width: 930,
afterClose: function afterClose() {
setData([]);
},
onCancel: function onCancel() {
return setVisible(false);
},
footer: null,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ServicePreviewmodules.tip,
children: "\u670D\u52A1\u9884\u89C8\u5C06\u4E3A\u5B9E\u9A8C\u73AF\u5883\u5185\u90E8\u670D\u52A1\u6620\u5C04\u5230\u4E34\u65F6\u57DF\u540D\uFF0C\u4EC5\u4F9B\u9884\u89C8\u6D4B\u8BD5\u4F7F\u7528\u3002\u8BF7\u586B\u5199\u5185\u90E8\u670D\u52A1\u7AEF\u53E3\uFF0C\u5E76\u786E\u8BA4\u670D\u52A1\u6B63\u5E38\u542F\u52A8\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: ServicePreviewmodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), "\u7AEF\u53E3\u5217\u8868"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: data.length > 4 ? '最多只能添加5个端口号' : '',
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
disabled: data.length > 4,
onClick: handleAdd,
shape: "default",
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: icon_namespaceObject,
width: 16
}),
children: "\u6DFB\u52A0\u7AEF\u53E3"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
style: {
marginBottom: 15
},
dataSource: data,
columns: columns,
locale: {
emptyText: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
styles: {
margin: '40px auto'
}
})
},
loading: loading,
pagination: false
})]
});
};
/* harmony default export */ var vnc_setting_ServicePreview = (ServicePreview);
;// CONCATENATED MODULE: ./src/components/vnc-setting/index.tsx
@ -883,7 +534,6 @@ var ServicePreview = function ServicePreview(_ref) {
var difficultyDesc = {
1: '简单',
2: '中等',
@ -917,10 +567,6 @@ var difficultyDesc = {
port = _ref.port;
var params = (0,_umi_production_exports.useParams)();
var recordRef = (0,_react_17_0_2_react.useRef)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
servicePreviewVisible = _useState2[0],
setServicePreviewVisible = _useState2[1];
//params.taskId 普通实训 params.identifier jupyter实训
@ -1009,85 +655,129 @@ var difficultyDesc = {
(_recordRef$current = recordRef.current) === null || _recordRef$current === void 0 || (_recordRef$current$st = _recordRef$current.startScreenRecord) === null || _recordRef$current$st === void 0 || _recordRef$current$st.call(_recordRef$current);
};
var serverPreview = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var value, domId;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
onHideToolBar();
setServicePreviewVisible(true);
// let value: any = '';
// const domId: string = String(Math.random());
// Modal.confirm({
// icon: null,
// className: reset.CustomTipsModalCss,
// okButtonProps: {
// type: 'primary'
// },
// centered: true,
// width: 460,
// okText: '预览',
// cancelText: '取消',
// title: '服务预览',
// content: <div style={{ height: 95 }}>
// <div className='mb5 c-grey-333 font14 mb10'>服务预览将为实验环境内部服务映射到临时域名,仅供预览测试使用。请填写内部服务端口,并确认服务正常启动。</div>
// <div>
// <span className='c-grey-999 font14 mr10'>端口号</span>
// <Input
// defaultValue={value}
// onChange={(e) => {
// const dom = document.getElementById(domId)
// dom.style.display = 'none'
// value = e.target.value
// }}
// maxLength={5}
// style={{ width: 326 }}
// />
// </div>
// <div style={{ display: 'none', marginTop: 4, marginLeft: 52 }} id={domId} className='c-red' />
// </div>,
// onOk: async () => {
// const dom = document.getElementById(domId)
// if (!value) {
// dom.style.display = 'block'
// dom.innerText = '端口号不能为空'
// return Promise.reject()
// }
// if (value.includes(" ")) {
// dom.style.display = 'block'
// dom.innerText = '端口号不能有空格'
// return Promise.reject()
// }
// if (value && (value.includes('.') || isNaN(Number(value)) || Number(value) > 65535 || Number(value) <= 0 || (value.length > 1 && value[0] === "0"))) {
// dom.style.display = 'block'
// dom.innerText = '请输入正确的端口号'
// return Promise.reject()
// }
// const res = await Fetch(`/api/tasks/${params.taskId || params.identifier}/port_proxy`, {
// method: "post",
// body: {
// port: Number(value),
// shixun_environment_id: shixun_environment_id || null,
// tab_type: tab_type || null,
// is_jupyter: is_jupyter || false
// }
// })
// await new Promise(function (resolve, reject) {
// setTimeout(() => {
// resolve('');
// }, 1000);
// });
// if (res?.data?.url) {
// openNewWindow(res?.data?.url);
// }
// },
// })
case 2:
value = '';
domId = String(Math.random());
modal/* default */.Z.confirm({
icon: null,
className: resetmodules/* default */.Z.CustomTipsModalCss,
okButtonProps: {
type: 'primary'
},
centered: true,
width: 460,
okText: '预览',
cancelText: '取消',
title: '服务预览',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
height: 95
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mb5 c-grey-333 font14 mb10",
children: "\u670D\u52A1\u9884\u89C8\u5C06\u4E3A\u5B9E\u9A8C\u73AF\u5883\u5185\u90E8\u670D\u52A1\u6620\u5C04\u5230\u4E34\u65F6\u57DF\u540D\uFF0C\u4EC5\u4F9B\u9884\u89C8\u6D4B\u8BD5\u4F7F\u7528\u3002\u8BF7\u586B\u5199\u5185\u90E8\u670D\u52A1\u7AEF\u53E3\uFF0C\u5E76\u786E\u8BA4\u670D\u52A1\u6B63\u5E38\u542F\u52A8\u3002"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-999 font14 mr10",
children: "\u7AEF\u53E3\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
defaultValue: value,
onChange: function onChange(e) {
var dom = document.getElementById(domId);
dom.style.display = 'none';
value = e.target.value;
},
maxLength: 5,
style: {
width: 326
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: 'none',
marginTop: 4,
marginLeft: 52
},
id: domId,
className: "c-red"
})]
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _res$data;
var dom, res, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
dom = document.getElementById(domId);
if (value) {
_context2.next = 5;
break;
}
dom.style.display = 'block';
dom.innerText = '端口号不能为空';
return _context2.abrupt("return", Promise.reject());
case 5:
if (!value.includes(" ")) {
_context2.next = 9;
break;
}
dom.style.display = 'block';
dom.innerText = '端口号不能有空格';
return _context2.abrupt("return", Promise.reject());
case 9:
if (!(value && (value.includes('.') || isNaN(Number(value)) || Number(value) > 65535 || Number(value) <= 0 || value.length > 1 && value[0] === "0"))) {
_context2.next = 13;
break;
}
dom.style.display = 'block';
dom.innerText = '请输入正确的端口号';
return _context2.abrupt("return", Promise.reject());
case 13:
_context2.next = 15;
return (0,fetch/* default */.ZP)("/api/tasks/".concat(params.taskId || params.identifier, "/port_proxy"), {
method: "post",
body: {
port: Number(value),
shixun_environment_id: shixun_environment_id || null,
tab_type: tab_type || null,
is_jupyter: is_jupyter || false
}
});
case 15:
res = _context2.sent;
_context2.next = 18;
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve('');
}, 1000);
});
case 18:
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.url) {
(0,util/* openNewWindow */.xg)(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.url);
}
case 19:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
});
case 4:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function serverPreview() {
return _ref2.apply(this, arguments);
@ -1377,15 +1067,6 @@ var difficultyDesc = {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(record, {
ref: recordRef
}), /*#__PURE__*/(0,jsx_runtime.jsx)(vnc_setting_ServicePreview, {
visible: servicePreviewVisible,
setVisible: setServicePreviewVisible,
taskId: params.taskId || params.identifier,
gather: {
shixun_environment_id: shixun_environment_id || null,
tab_type: tab_type || null,
is_jupyter: is_jupyter || false
}
})]
});
});

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30795],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98050],{
/***/ 80205:
/*!*******************************************************************************************************************!*\
@ -138,6 +138,323 @@ if (false) {}
/***/ }),
/***/ 31797:
/*!*************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/statistic/index.js + 5 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_statistic; }
});
// 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/_util/hooks/useForceUpdate.js
var useForceUpdate = __webpack_require__(56762);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(78485);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Number.js
"use client";
const StatisticNumber = props => {
const {
value,
formatter,
precision,
decimalSeparator,
groupSeparator = '',
prefixCls
} = props;
let valueNode;
if (typeof formatter === 'function') {
// Customize formatter
valueNode = formatter(value);
} else {
// Internal formatter
const val = String(value);
const cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
// Process if illegal number
if (!cells || val === '-') {
valueNode = val;
} else {
const negative = cells[1];
let int = cells[2] || '0';
let decimal = cells[4] || '';
int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
if (typeof precision === 'number') {
decimal = decimal.padEnd(precision, '0').slice(0, precision > 0 ? precision : 0);
}
if (decimal) {
decimal = `${decimalSeparator}${decimal}`;
}
valueNode = [/*#__PURE__*/_react_17_0_2_react.createElement("span", {
key: "int",
className: `${prefixCls}-content-value-int`
}, negative, int), decimal && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
key: "decimal",
className: `${prefixCls}-content-value-decimal`
}, decimal)];
}
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-value`
}, valueNode);
};
/* harmony default export */ var statistic_Number = (StatisticNumber);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/style/index.js
"use client";
const genStatisticStyle = token => {
const {
componentCls,
marginXXS,
padding,
colorTextDescription,
titleFontSize,
colorTextHeading,
contentFontSize,
fontFamily
} = token;
return {
[`${componentCls}`]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
[`${componentCls}-title`]: {
marginBottom: marginXXS,
color: colorTextDescription,
fontSize: titleFontSize
},
[`${componentCls}-skeleton`]: {
paddingTop: padding
},
[`${componentCls}-content`]: {
color: colorTextHeading,
fontSize: contentFontSize,
fontFamily,
[`${componentCls}-content-value`]: {
display: 'inline-block',
direction: 'ltr'
},
[`${componentCls}-content-prefix, ${componentCls}-content-suffix`]: {
display: 'inline-block'
},
[`${componentCls}-content-prefix`]: {
marginInlineEnd: marginXXS
},
[`${componentCls}-content-suffix`]: {
marginInlineStart: marginXXS
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var statistic_style = ((0,genComponentStyleHook/* default */.Z)('Statistic', token => {
const statisticToken = (0,statistic/* merge */.TS)(token, {});
return [genStatisticStyle(statisticToken)];
}, token => {
const {
fontSizeHeading3,
fontSize
} = token;
return {
titleFontSize: fontSize,
contentFontSize: fontSizeHeading3
};
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Statistic.js
"use client";
const Statistic = props => {
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
valueStyle,
value = 0,
title,
valueRender,
prefix,
suffix,
loading = false,
onMouseEnter,
onMouseLeave,
decimalSeparator = '.',
groupSeparator = ','
} = props;
const {
getPrefixCls,
direction,
statistic
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('statistic', customizePrefixCls);
const [wrapSSR, hashId] = statistic_style(prefixCls);
const valueNode = /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Number, Object.assign({
decimalSeparator: decimalSeparator,
groupSeparator: groupSeparator,
prefixCls: prefixCls
}, props, {
value: value
}));
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, statistic === null || statistic === void 0 ? void 0 : statistic.className, className, rootClassName, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: cls,
style: Object.assign(Object.assign({}, statistic === null || statistic === void 0 ? void 0 : statistic.style), style),
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave
}, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: `${prefixCls}-title`
}, title), /*#__PURE__*/_react_17_0_2_react.createElement(skeleton/* default */.Z, {
paragraph: false,
loading: loading,
className: `${prefixCls}-skeleton`
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
style: valueStyle,
className: `${prefixCls}-content`
}, prefix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-prefix`
}, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-content-suffix`
}, suffix)))));
};
if (false) {}
/* harmony default export */ var statistic_Statistic = (Statistic);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/utils.js
// Countdown
const timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], ['M', 1000 * 60 * 60 * 24 * 30], ['D', 1000 * 60 * 60 * 24], ['H', 1000 * 60 * 60], ['m', 1000 * 60], ['s', 1000], ['S', 1] // million seconds
];
function formatTimeStr(duration, format) {
let leftDuration = duration;
const escapeRegex = /\[[^\]]*]/g;
const keepList = (format.match(escapeRegex) || []).map(str => str.slice(1, -1));
const templateText = format.replace(escapeRegex, '[]');
const replacedText = timeUnits.reduce((current, _ref) => {
let [name, unit] = _ref;
if (current.includes(name)) {
const value = Math.floor(leftDuration / unit);
leftDuration -= value * unit;
return current.replace(new RegExp(`${name}+`, 'g'), match => {
const len = match.length;
return value.toString().padStart(len, '0');
});
}
return current;
}, templateText);
let index = 0;
return replacedText.replace(escapeRegex, () => {
const match = keepList[index];
index += 1;
return match;
});
}
function formatCountdown(value, config) {
const {
format = ''
} = config;
const target = new Date(value).getTime();
const current = Date.now();
const diff = Math.max(target - current, 0);
return formatTimeStr(diff, format);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Countdown.js
"use client";
const REFRESH_INTERVAL = 1000 / 30;
function getTime(value) {
return new Date(value).getTime();
}
const Countdown = props => {
const {
value,
format = 'HH:mm:ss',
onChange,
onFinish
} = props;
const forceUpdate = (0,useForceUpdate/* default */.Z)();
const countdown = _react_17_0_2_react.useRef(null);
const stopTimer = () => {
onFinish === null || onFinish === void 0 ? void 0 : onFinish();
if (countdown.current) {
clearInterval(countdown.current);
countdown.current = null;
}
};
const syncTimer = () => {
const timestamp = getTime(value);
if (timestamp >= Date.now()) {
countdown.current = setInterval(() => {
forceUpdate();
onChange === null || onChange === void 0 ? void 0 : onChange(timestamp - Date.now());
if (timestamp < Date.now()) {
stopTimer();
}
}, REFRESH_INTERVAL);
}
};
_react_17_0_2_react.useEffect(() => {
syncTimer();
return () => {
if (countdown.current) {
clearInterval(countdown.current);
countdown.current = null;
}
};
}, [value]);
const formatter = (formatValue, config) => formatCountdown(formatValue, Object.assign(Object.assign({}, config), {
format
}));
const valueRender = node => (0,reactNode/* cloneElement */.Tm)(node, {
title: undefined
});
return /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Statistic, Object.assign({}, props, {
valueRender: valueRender,
formatter: formatter
}));
};
/* harmony default export */ var statistic_Countdown = (/*#__PURE__*/_react_17_0_2_react.memo(Countdown));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/index.js
"use client";
statistic_Statistic.Countdown = statistic_Countdown;
/* harmony default export */ var es_statistic = (statistic_Statistic);
/***/ }),
/***/ 25769:
/*!**************************************************************************!*\
!*** ./node_modules/_copy-to-clipboard@3.3.3@copy-to-clipboard/index.js ***!

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.9f653031.js"></script>
<script src="/react/build/umi.1b73f4b7.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -455,7 +455,7 @@ var LoginForm_inputStyle = {
borderRadius: 4
};
var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
var _globalSetting$settin3;
var _globalSetting$settin;
var dispatch = _ref.dispatch,
setType = _ref.setType,
user = _ref.user,
@ -615,41 +615,6 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
}
});
};
// 校验登录前是否需要确认承诺书
var commitmentLetter = function commitmentLetter(values) {
var _globalSetting$settin;
if (globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.open_secrecy_promise) {
var _globalSetting$settin2;
modal/* default */.Z.confirm({
width: 500,
title: null,
centered: true,
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
style: {
textAlign: 'center',
marginTop: 10,
fontSize: '18px'
},
children: "\u4FDD\u5BC6\u627F\u8BFA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
dangerouslySetInnerHTML: {
__html: globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.secrecy_promise
}
})]
}),
okText: '我承诺',
cancelText: '退出',
onOk: function onOk() {
return onFinish(values);
}
});
} else {
onFinish(values);
}
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
@ -658,7 +623,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
autologin: true,
login: user.actionTabs.phone
},
onFinish: commitmentLetter,
onFinish: onFinish,
onValuesChange: function onValuesChange(changedValues) {
setErrorValue('');
var chineseRegex = /[\u4e00-\u9fa5]/g; // 中文字符的正则表达式
@ -723,7 +688,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
children: "\u4E0B\u6B21\u81EA\u52A8\u767B\u5F55"
})
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.enable_forgot_password) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.enable_forgot_password) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "current font14 c-blue",
onClick: function onClick() {
@ -2336,7 +2301,6 @@ var LoginPanel = function LoginPanel(_ref) {
var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
var _globalSetting$settin, _globalSetting$settin2;
var user = _ref.user,
@ -2354,32 +2318,6 @@ var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
};
var is_main_site = (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.main_site;
var is_local = (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.is_local;
var _useState = (0,_react_17_0_2_react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
ishidden = _useState2[0],
setIsHidden = _useState2[1];
(0,_react_17_0_2_react.useEffect)(function () {
console.log(globalSetting.setting);
console.log(user.showPopLogin);
if (globalSetting.setting) {
var _globalSetting$settin3;
// window.location.href = globalSetting?.setting?.sso_login_url
if ((_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.hide_account_login) {
if (user.showPopLogin) {
var _globalSetting$settin4;
_umi_production_exports.history.push(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.sso_login_url);
dispatch({
type: 'user/showPopLogin',
payload: {
showPopLogin: false
}
});
}
} else {
setIsHidden(false);
}
}
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting, user.showPopLogin]);
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true
// title={<div>
@ -2387,7 +2325,7 @@ var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
// <span className="ml50">验证码登录</span>
// </div>}
,
visible: user.showPopLogin && !ishidden,
visible: user.showPopLogin,
footer: null,
width: !is_local ? 765 : 460,
keyboard: false,
@ -3120,9 +3058,6 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var location = (0,_umi_production_exports.useLocation)();
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
var payload = (0,Header/* getCourseParam */.g)();
var globalLoading = globalSetting.globalLoading;
var _useState = (0,_react_17_0_2_react.useState)(false),
@ -3279,13 +3214,9 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
window.location.href = "https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";
return;
}
console.log(location.pathname);
console.log(searchParams.get('admin_login'));
dispatch({
type: 'globalSetting/query',
payload: {
admin_login: searchParams.get('admin_login') ? searchParams.get('admin_login') : null
}
payload: {}
});
dispatch({
type: "globalSetting/setGlobalLoading",

@ -147,7 +147,7 @@ var DataType = /*#__PURE__*/function (DataType) {
return DataType;
}(DataType || {});
var Secure = function Secure(_ref) {
var _account$basicInfo4, _account$basicInfo5, _account$basicInfo6, _account$basicInfo7, _account$basicInfo9, _account$basicInfo10, _account$basicInfo11, _globalSetting$settin, _globalSetting$settin2, _account$basicInfo12, _account$basicInfo13, _globalSetting$settin3, _account$basicInfo14, _account$basicInfo15, _account$basicInfo16, _globalSetting$settin4, _globalSetting$settin5, _account$basicInfo17, _account$basicInfo18;
var _account$basicInfo4, _account$basicInfo5, _account$basicInfo6, _account$basicInfo7, _account$basicInfo9, _account$basicInfo10, _account$basicInfo11, _globalSetting$settin, _account$basicInfo12, _account$basicInfo13, _globalSetting$settin2, _account$basicInfo14, _account$basicInfo15, _account$basicInfo16, _globalSetting$settin3, _account$basicInfo17, _account$basicInfo18;
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
@ -571,7 +571,7 @@ var Secure = function Secure(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8981".concat((_account$basicInfo11 = account.basicInfo) !== null && _account$basicInfo11 !== void 0 && _account$basicInfo11.phone ? '更换' : '绑定', "\u7684\u624B\u673A\u53F7\u7801")
})
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.is_local) && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.is_need_code) == 'true' && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.is_local) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
label: "\u624B\u673A\u9A8C\u8BC1\u7801",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "phoneValidateCode",
@ -625,7 +625,7 @@ var Secure = function Secure(_ref) {
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Securemodules.status, " ").concat(Securemodules.colorRed, " mr20"),
children: "\u672A\u7ED1\u5B9A"
}), "\u90AE\u7BB1\u8D26\u53F7\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u4E8E\u90AE\u7BB1\u8D26\u53F7\u767B\u5F55", !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.is_local) && 'EduCoder']
}), "\u90AE\u7BB1\u8D26\u53F7\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u4E8E\u90AE\u7BB1\u8D26\u53F7\u767B\u5F55", !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin2 = globalSetting.setting) !== null && _globalSetting$settin2 !== void 0 && _globalSetting$settin2.is_local) && 'EduCoder']
}), active !== ActiveType.Email && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Securemodules.active,
onClick: function onClick() {
@ -644,7 +644,7 @@ var Secure = function Secure(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: (_account$basicInfo16 = account.basicInfo) !== null && _account$basicInfo16 !== void 0 && _account$basicInfo16.mail ? '请输入要更换的新邮箱地址' : '请输入邮箱地址'
})
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.is_local) && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.is_need_code) == 'true' && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.is_local) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
label: "\u90AE\u7BB1\u9A8C\u8BC1\u7801",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "emailValidateCode",

@ -443,13 +443,11 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
var PublishShixun = function PublishShixun(_ref) {
var _actionTabs$selectArr, _actionTabs$selectArr2;
var classroomList = _ref.classroomList,
loading = _ref.loading,
dispatch = _ref.dispatch,
user = _ref.user;
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var actionTabs = classroomList.actionTabs;
@ -460,15 +458,13 @@ var PublishShixun = function PublishShixun(_ref) {
return current && current < dayjs_min_default()().startOf('day');
};
(0,_react_17_0_2_react.useEffect)(function () {
if ((0,authority/* isAdminOrTeacher */.G5)()) {
dispatch({
type: 'classroomList/getCourseGroups',
payload: {
id: params.id
}
});
}
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
dispatch({
type: 'classroomList/getCourseGroups',
payload: {
id: params.id
}
});
}, [classroomList.name]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
centered: true,
title: "\u65B0\u5EFA\u5B50\u76EE\u5F55",
@ -550,12 +546,10 @@ var PublishShixun = function PublishShixun(_ref) {
};
/* harmony default export */ var AddCategory = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
loading = _ref4.loading,
user = _ref4.user;
loading = _ref4.loading;
return {
classroomList: classroomList,
loading: loading,
user: user
loading: loading
};
})(PublishShixun));
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Attachment/components/CategoryRename.tsx

@ -643,12 +643,6 @@
color: #000000;
font-weight: 400;
}
.scoremodal___CDA7w .items___YkyQL span[class~='ant-input-number-handler-up-inner'] {
flex: 0 1;
}
.scoremodal___CDA7w .items___YkyQL span[class~='ant-input-number-handler-down-inner'] {
flex: 0 1;
}
.scoremodal___CDA7w .items___YkyQL span:nth-child(4) {
display: flex;
min-width: 160px;

@ -5494,7 +5494,6 @@ var SetScore = function SetScore(_ref) {
children: item === null || item === void 0 ? void 0 : item.score
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u6BCF\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
precision: 1,
max: 100,
min: 0.1,
onChange: function onChange(e) {
@ -7314,7 +7313,7 @@ var questionType = [{
nameType: "BPROGRAM"
}];
var AddNewPaper = function AddNewPaper(_ref) {
var _exerciseitem$exercis, _exerciseitem$exercis2, _exerciseitem$exercis3, _exerciseitem$exercis4, _exerciseitem$exercis5, _exerciseitem$exercis6, _exerciseitem$exercis7, _user$userInfo, _exerciseitem$exercis8, _user$userInfo2, _exerciseitem$exercis9, _user$userInfo3, _qitem$program_attr, _exerciseitem$exercis10, _exerciseitem$exercis12;
var _exerciseitem$exercis, _exerciseitem$exercis2, _exerciseitem$exercis3, _exerciseitem$exercis4, _exerciseitem$exercis5, _exerciseitem$exercis6, _exerciseitem$exercis7, _user$userInfo, _exerciseitem$exercis8, _user$userInfo2, _exerciseitem$exercis9, _user$userInfo3, _qitem$program_attr, _exerciseitem$exercis10, _exerciseitem$exercis14;
var user = _ref.user,
dispatch = _ref.dispatch,
itemid = _ref.itemid,
@ -7528,7 +7527,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
function _seveeditor() {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(params) {
var _exerciseitem$exercis14;
var _exerciseitem$exercis16;
var datas, url, res;
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
@ -7537,7 +7536,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
repeat_answer: !params.repeat_answer,
difficulty: (params === null || params === void 0 ? void 0 : params.difficulty) || 2,
item_type: params.question_type,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis14 = exerciseitem.exercise) === null || _exerciseitem$exercis14 === void 0 ? void 0 : _exerciseitem$exercis14.sub_discipline_id,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis16 = exerciseitem.exercise) === null || _exerciseitem$exercis16 === void 0 ? void 0 : _exerciseitem$exercis16.sub_discipline_id,
tag_discipline_ids: [],
hack: objectSpread2_default()(objectSpread2_default()({}, params === null || params === void 0 ? void 0 : params.hack), {}, {
difficult: (params === null || params === void 0 ? void 0 : params.difficulty) || 2
@ -8272,8 +8271,8 @@ var AddNewPaper = function AddNewPaper(_ref) {
return;
}
if (item.id === 6) {
var _exerciseitem$exercis11;
_umi_production_exports.history.push("/problems/newcreate?express_id=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis11 = exerciseitem.exercise) === null || _exerciseitem$exercis11 === void 0 ? void 0 : _exerciseitem$exercis11.id, "&callback_url=/classrooms/").concat(params.coursesId, "/exercise/add/").concat(itemid, "?type=2"));
var _exerciseitem$exercis11, _exerciseitem$exercis12, _exerciseitem$exercis13;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis11 = exerciseitem.exercise) === null || _exerciseitem$exercis11 === void 0 ? void 0 : _exerciseitem$exercis11.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis12 = exerciseitem.exercise) === null || _exerciseitem$exercis12 === void 0 ? void 0 : _exerciseitem$exercis12.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis13 = exerciseitem.exercise) === null || _exerciseitem$exercis13 === void 0 ? void 0 : _exerciseitem$exercis13.id, "&callback_url=/classrooms/").concat(params.coursesId, "/exercise/add/").concat(itemid, "?type=2"));
return;
}
setisedit(true);
@ -8337,7 +8336,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
children: item.name
}, item.id);
})]
}), (exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis12 = exerciseitem.exercise) === null || _exerciseitem$exercis12 === void 0 ? void 0 : _exerciseitem$exercis12.exercise_status) != 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
}), (exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis14 = exerciseitem.exercise) === null || _exerciseitem$exercis14 === void 0 ? void 0 : _exerciseitem$exercis14.exercise_status) != 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
width: '1022px'
@ -8346,12 +8345,12 @@ var AddNewPaper = function AddNewPaper(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: EditPotinmodules.saveBtn,
onClick: function onClick() {
var _exerciseitem$exercis13;
var _exerciseitem$exercis15;
if (isedit) {
message/* default */.ZP.info('请先保存或取消当前正在编辑试题。');
return;
}
if ((exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis13 = exerciseitem.exercise) === null || _exerciseitem$exercis13 === void 0 ? void 0 : _exerciseitem$exercis13.exercise_status) == 1) {
if ((exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis15 = exerciseitem.exercise) === null || _exerciseitem$exercis15 === void 0 ? void 0 : _exerciseitem$exercis15.exercise_status) == 1) {
setisTips(true);
} else {
_umi_production_exports.history.back();

@ -2183,35 +2183,6 @@ span.CodeMirror-selectedtext {
font-weight: 400;
color: #5F6368;
}
.public_tips___sZVWd {
padding-top: 5px;
font-size: 14px;
font-weight: 400;
line-height: 26px;
color: #9096A3;
margin-bottom: 15px;
display: flex;
align-items: flex-start;
padding: 10px;
background-color: #F6F7F9;
}
.inputCss___t66EO .ant-input {
min-height: 30px;
border-radius: 4px;
}
.bt___lXptu {
display: inline-block;
-webkit-margin-end: 4px;
margin-inline-end: 4px;
color: #ff4d4f;
font-size: 14px;
line-height: 1;
}
.add_style___knrMF {
position: absolute !important;
top: -30px !important;
left: 145px !important;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/DragSubject/index.less?modules ***!

@ -566,22 +566,19 @@ var _react_17_0_2_react = __webpack_require__(59301);
var es_select = __webpack_require__(57809);
// 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/input/index.js + 5 modules
var input = __webpack_require__(36920);
// 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/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/input/index.js + 5 modules
var input = __webpack_require__(36920);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(36057);
;// CONCATENATED MODULE: ./src/components/Knowledge/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Knowledgemodules = ({"wrap":"wrap___F7E3F","selectWrapper":"selectWrapper____kESB","tips":"tips___aHjQY","linkBtn":"linkBtn___uggVr","mainText":"mainText____S1I0","public_tips":"public_tips___sZVWd","inputCss":"inputCss___t66EO","bt":"bt___lXptu","add_style":"add_style___knrMF"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
/* harmony default export */ var Knowledgemodules = ({"wrap":"wrap___F7E3F","selectWrapper":"selectWrapper____kESB","tips":"tips___aHjQY","linkBtn":"linkBtn___uggVr","mainText":"mainText____S1I0"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(80205);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
@ -598,7 +595,6 @@ var jsx_runtime = __webpack_require__(37712);
var Option = es_select["default"].Option;
var Knowledge = function Knowledge(_ref) {
var subId = _ref.subId,
@ -607,8 +603,6 @@ var Knowledge = function Knowledge(_ref) {
disabled = _ref.disabled,
_ref$knowledgeOptions = _ref.knowledgeOptions,
knowledgeOptions = _ref$knowledgeOptions === void 0 ? [] : _ref$knowledgeOptions,
className = _ref.className,
height = _ref.height,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
_ref$onAddKnowledgeFi = _ref.onAddKnowledgeFinish,
@ -634,9 +628,6 @@ var Knowledge = function Knowledge(_ref) {
if ((selectvalues === null || selectvalues === void 0 ? void 0 : selectvalues.length) > 0) {
setValues(toConsumableArray_default()(selectvalues));
onChange(toConsumableArray_default()(selectvalues));
} else {
setValues([]);
onChange([]);
}
}, [knowledgeOptions]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -650,7 +641,7 @@ var Knowledge = function Knowledge(_ref) {
addValue.current = '';
modal/* default */.Z.confirm({
centered: true,
width: 585,
width: 640,
okText: '确定',
cancelText: '取消',
icon: null,
@ -658,42 +649,27 @@ var Knowledge = function Knowledge(_ref) {
className: 'custom-modal-divider',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Knowledgemodules.public_tips,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
color: '#FF8C29',
marginRight: 10,
paddingTop: 5
}
}), "\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
width: '95px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Knowledgemodules.bt,
children: "*"
}), "\u77E5\u8BC6\u70B9\u540D\u79F0"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: Knowledgemodules.inputCss,
style: {
width: 'calc(100% - 95px)'
},
maxLength: 20,
size: 'middle',
showCount: true,
placeholder: "\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",
defaultValue: addValue.current,
onChange: function onChange(e) {
addValue.current = e.target.value;
}
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
color: '#FF8C29'
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "ml10 ".concat(Knowledgemodules.mainText),
children: ["\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 20,
size: 'middle',
showCount: true,
placeholder: "\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",
defaultValue: addValue.current,
onChange: function onChange(e) {
addValue.current = e.target.value;
}
})]
}),
onOk: function onOk() {
@ -735,7 +711,7 @@ var Knowledge = function Knowledge(_ref) {
});
// values.push(res.tag_discipline_id)
// value.push(res.tag_discipline_id)
_value2 = selectvalues || [];
_value2 = selectvalues;
_value2.push(res.tag_discipline_id);
onChange(toConsumableArray_default()(_value2));
setValues(toConsumableArray_default()(_value2));
@ -758,7 +734,7 @@ var Knowledge = function Knowledge(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
align: "middle",
className: _classnames_2_5_1_classnames_default()(Knowledgemodules.wrap, className),
className: Knowledgemodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
mode: "multiple",
@ -767,20 +743,16 @@ var Knowledge = function Knowledge(_ref) {
placeholder: "\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",
onChange: handleChange,
style: {
width: height || 490
width: 490
},
showSearch: true,
allowClear: true,
value: values,
filterOption: function filterOption(input, option) {
return option.label.indexOf(input.toLowerCase()) >= 0;
}
value: values
// value={knowledgeOptions?.filter(item => values?.includes(item?.id) || values?.includes(item?.id + '')).map((item) => item.name)}
,
children: knowledgeOptions === null || knowledgeOptions === void 0 ? void 0 : knowledgeOptions.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
value: item.id,
label: item.name,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
@ -811,7 +783,7 @@ var Knowledge = function Knowledge(_ref) {
})
})
}), subId && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "ml20 ".concat(height && Knowledgemodules.add_style),
className: "ml20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Knowledgemodules.tips,
children: "\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"
@ -18764,7 +18736,6 @@ var PropertySettings_PublishSettings = function PublishSettings(_ref) {
// 查看总成绩
open_score_reviewed: true,
//试卷评阅完成后
open_score_commited: false,
open_score: false,
//查看小题得分
answered_open: false,

@ -467,21 +467,6 @@
background: #3061D0;
color: #fff;
}
.answerSheet___ojXFi .answerSheetItem___coR9L.yes___MQnH6 {
background: #E0F4E4;
color: #028D01;
border: 1px solid #E0F4E4 !important;
}
.answerSheet___ojXFi .answerSheetItem___coR9L.no___kDJu6 {
background: #FFD5D0;
color: #FB3226;
border: 1px solid #FFD5D0 !important;
}
.answerSheet___ojXFi .answerSheetItem___coR9L.bf___iW6rO {
background: #FFE5C4;
color: #E77400;
border: 1px solid #FFE5C4 !important;
}
.answerSheet___ojXFi .answerSheetItem___coR9L.partialActive___UsoA4 {
background: #EEEEEE;
color: #fff;
@ -677,15 +662,6 @@
background-color: #fafafa;
transform: translateX(50%);
}
.analysisWrap___ayc60 {
border-top: 1px dotted #CCCCCC;
padding-top: 20px;
}
.analysisWrap___ayc60 .greyBg___X4mr2 {
background: #F6F7F9;
border-radius: 4px;
padding: 20px 15px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/ImitateAnswer/components/index.less?modules ***!
@ -794,28 +770,6 @@
overflow: auto;
padding: 10px 15px;
}
.analysisWrap___wOsyc {
border-top: 1px dotted #CCCCCC;
padding-top: 20px;
}
.analysisWrap___wOsyc .greyBg___FqXOG {
background: #F6F7F9;
border-radius: 4px;
padding: 20px 15px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/ImitateAnswer/components/UserScore/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.score___xDz0X {
font-weight: 600;
color: #FA6400;
}
.wrap___ODpKq {
font-size: 14px;
font-weight: 400;
color: #6A7283;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/MyProblem/TestCasePanel/index.less ***!

@ -163,6 +163,13 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
} else {
return true;
}
}).filter(function (item) {
var _globalSetting$settin2;
if ((0,util/* isLinkHidden */.Ws)(((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || [], "/graduations")) {
return item.type !== 'graduation';
} else {
return true;
}
});
(0,_react_17_0_2_react.useEffect)(function () {
bodyParams.type = tabsData[Number(searchParams.get("tabsKey")) || 0].type;

@ -2220,7 +2220,7 @@ function MyProblem_reducer(state, action) {
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var response, _res, res, _res2, _res3, _res4;
var response, _res, _res2, res, _res3;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -2289,11 +2289,11 @@ function MyProblem_reducer(state, action) {
case 19:
setExerciseData(objectSpread2_default()({}, res));
// setDownTime(res.exercise?.left_time)
if (typeof ((_res = res) === null || _res === void 0 || (_res = _res.exercise) === null || _res === void 0 ? void 0 : _res.left_time) === 'number') {
setCountDownTime(Date.now() + ((_res2 = res) === null || _res2 === void 0 || (_res2 = _res2.exercise) === null || _res2 === void 0 ? void 0 : _res2.left_time) * 1000);
setTimeout(function () {
setCountDownColor("red");
}, (((_res3 = res) === null || _res3 === void 0 || (_res3 = _res3.exercise) === null || _res3 === void 0 ? void 0 : _res3.left_time) - 300 > 0 ? ((_res4 = res) === null || _res4 === void 0 || (_res4 = _res4.exercise) === null || _res4 === void 0 ? void 0 : _res4.left_time) - 300 : 0) * 1000);
if ((_res = res) !== null && _res !== void 0 && _res.left_banner_id && (_res2 = res) !== null && _res2 !== void 0 && (_res2 = _res2.exercise) !== null && _res2 !== void 0 && _res2.left_time) {
setCountDownTime(Date.now() + ((_res3 = res) === null || _res3 === void 0 || (_res3 = _res3.exercise) === null || _res3 === void 0 ? void 0 : _res3.left_time) * 1000);
// setTimeout(() => {
// setCountDownColor("red")
// }, (res?.exercise?.left_time - 300 > 0 ? res?.exercise?.left_time - 300 : 0) * 1000)
}
case 21:
case "end":

@ -608,12 +608,6 @@
color: #000000;
font-weight: 400;
}
.scoremodal___BdW7P .items___i3TrH span[class~='ant-input-number-handler-up-inner'] {
flex: 0 1;
}
.scoremodal___BdW7P .items___i3TrH span[class~='ant-input-number-handler-down-inner'] {
flex: 0 1;
}
.scoremodal___BdW7P .items___i3TrH span:nth-child(4) {
display: flex;
min-width: 160px;

@ -5510,7 +5510,6 @@ var SetScore = function SetScore(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u6BCF\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 0.1,
precision: 1,
max: 100,
onChange: function onChange(e) {
item.Singlequestion = e;
@ -7214,7 +7213,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
function _seveeditor() {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(params) {
var _exerciseitem$exercis7;
var _exerciseitem$exercis9;
var datas, bdatas, res;
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
@ -7222,7 +7221,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
datas = objectSpread2_default()(objectSpread2_default()({}, params), {}, {
difficulty: (params === null || params === void 0 ? void 0 : params.difficulty) || 2,
item_type: params.question_type,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis7 = exerciseitem.exercise) === null || _exerciseitem$exercis7 === void 0 ? void 0 : _exerciseitem$exercis7.sub_discipline_id,
sub_discipline_id: exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis9 = exerciseitem.exercise) === null || _exerciseitem$exercis9 === void 0 ? void 0 : _exerciseitem$exercis9.sub_discipline_id,
tag_discipline_ids: [],
repeat_answer: !params.repeat_answer
});
@ -7872,8 +7871,8 @@ var AddNewPaper = function AddNewPaper(_ref) {
return;
}
if (item.id === 6) {
var _exerciseitem$exercis5, _exerciseitem$exercis6;
_umi_production_exports.history.push("/problems/newcreate?express_id=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis5 = exerciseitem.exercise) === null || _exerciseitem$exercis5 === void 0 ? void 0 : _exerciseitem$exercis5.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis6 = exerciseitem.exercise) === null || _exerciseitem$exercis6 === void 0 ? void 0 : _exerciseitem$exercis6.id, "?type=2"));
var _exerciseitem$exercis5, _exerciseitem$exercis6, _exerciseitem$exercis7, _exerciseitem$exercis8;
_umi_production_exports.history.push("/problems/newcreate?difficult=".concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis5 = exerciseitem.exercise) === null || _exerciseitem$exercis5 === void 0 ? void 0 : _exerciseitem$exercis5.difficulty, "&sub_discipline_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis6 = exerciseitem.exercise) === null || _exerciseitem$exercis6 === void 0 ? void 0 : _exerciseitem$exercis6.sub_discipline_id, "&express_id=").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis7 = exerciseitem.exercise) === null || _exerciseitem$exercis7 === void 0 ? void 0 : _exerciseitem$exercis7.id, "&callback_url=/paperlibrary/add/").concat(exerciseitem === null || exerciseitem === void 0 || (_exerciseitem$exercis8 = exerciseitem.exercise) === null || _exerciseitem$exercis8 === void 0 ? void 0 : _exerciseitem$exercis8.id, "?type=2"));
return;
}
setisedit(true);

@ -13532,7 +13532,6 @@ var ShixunDetail = function ShixunDetail(_ref) {
disabled: disabled,
max: questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.item_bank_num,
size: "large",
precision: 0,
className: "ml10 mr10",
value: (questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.item_bank_count) || 1,
onChange: function onChange(value) {
@ -13554,7 +13553,6 @@ var ShixunDetail = function ShixunDetail(_ref) {
disabled: disabled,
min: 0,
max: 100,
precision: 1,
size: "large",
className: "ml10 mr10",
value: questionInfo === null || questionInfo === void 0 ? void 0 : questionInfo.score,
@ -14026,7 +14024,7 @@ var QuestionInfo = function QuestionInfo(_ref) {
className: QuestionInfomodules.label,
children: "\u603B\u5206"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (data === null || data === void 0 || (_data$examination_ban8 = data.examination_bank) === null || _data$examination_ban8 === void 0 || (_data$examination_ban8 = _data$examination_ban8.total_score) === null || _data$examination_ban8 === void 0 ? void 0 : _data$examination_ban8.toFixed(1)) || 0
children: (data === null || data === void 0 || (_data$examination_ban8 = data.examination_bank) === null || _data$examination_ban8 === void 0 ? void 0 : _data$examination_ban8.total_score) || 0
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

@ -396,106 +396,6 @@
height: 18px;
margin-right: 5px;
}
.applyPublicContainer___rqkDZ .ant-modal-header___lNIoE {
padding: 30px 20px 20px 40px;
}
.applyPublicContainer___rqkDZ .ant-modal-header___lNIoE .ant-modal-title___dC2Be {
font-size: 16px;
font-weight: 500;
color: #000000;
}
.applyPublicContainer___rqkDZ .ant-modal-body___sdjco {
padding: 0;
}
.applyPublicContainer___rqkDZ .ant-modal-close___gRcvh {
right: 20px;
}
.applyPublicContainer___rqkDZ .ant-modal-close___gRcvh .ant-modal-close-x___yC6AR {
height: 68px;
line-height: 68px;
}
.applyPublicContainer___rqkDZ .ant-modal-footer___BBXL0 {
border-top: none;
margin-top: 0 !important;
}
.applyPublicContainer___rqkDZ .ant-modal-footer___BBXL0 > button {
border-radius: 4px;
height: 40px;
font-size: 16px;
}
.applyPublicContainer___rqkDZ .ant-modal-footer___BBXL0 > button + button {
margin-left: 20px;
}
.applyPublicContainer___rqkDZ .ant-input____QnDa {
min-height: 40px;
border-radius: 4px;
}
.applyPublicContainer___rqkDZ .ant-form-item___tboz_ {
margin-bottom: 20px;
}
.applyPublicContainer___rqkDZ [class~='ant-select-selector'] {
height: 40px !important;
}
.applyPublicContainer___rqkDZ [class~='ant-select-selector'] input[class~='ant-select-selection-search-input'],
.applyPublicContainer___rqkDZ [class~='ant-select-selector'] span[class~='ant-select-selection-placeholder'] {
height: 40px !important;
line-height: 40px !important;
}
.applyPublicContainer___rqkDZ [class~='ant-select-selector'] span[class~='ant-select-selection-item'] {
line-height: 40px !important;
}
.applyPublicContainer___rqkDZ [class~='ant-select-selection-search'] input {
height: 40px !important;
}
.applyPublicContainer___rqkDZ .ant-form-item-label___MlhI0 {
padding-top: 6px;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq {
position: relative;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .spin___BC6EP {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .tips___t89S9 {
padding-top: 5px;
font-size: 14px;
font-weight: 400;
color: #6F7B86;
margin-bottom: 16px;
display: flex;
align-items: center;
line-height: 26px;
padding: 10px;
background: #F6F7F9;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .action___U7a0p {
height: 22px;
padding-left: 20px;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6px;
cursor: pointer;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .action___U7a0p > div:first-child {
color: #0152d9;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .action___U7a0p > div:last-child {
color: #999;
}
.applyPublicContainer___rqkDZ .applyPublicContent___MSHlq .action___U7a0p > div:last-child i {
font-size: 12px;
color: #ccc;
margin-left: 4px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/AuthModal/index.less?modules ***!
@ -845,9 +745,6 @@ span[class~='ant-checkbox-checked'] span[class~='ant-checkbox-inner']::after {
background-color: #fafafa;
border-color: #5784de;
}
.menu___Q2PXr > li {
text-align: center;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paperlibrary/components/SendToClassModal.less?modules ***!

@ -1,6 +1,51 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54862],{
/***/ 24566:
/*!**********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
\**********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_DownloadOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// 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.4.2@@ant-design/icons-svg/es/asn/DownloadOutlined.js
// This icon file is generated automatically.
var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(88853);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/DownloadOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownloadOutlined
}));
};
/**![download](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwNS43IDY2MWE4IDggMCAwMDEyLjYgMGwxMTItMTQxLjdjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc0LjFWMTY4YzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHYzMzguM0g0MDBjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45bDExMiAxNDEuOHpNODc4IDYyNmgtNjBjLTQuNCAwLTggMy42LTggOHYxNTRIMjE0VjYzNGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTk4YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDY4NGMxNy43IDAgMzItMTQuMyAzMi0zMlY2MzRjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownloadOutlined_DownloadOutlined);
if (false) {}
/* harmony default export */ var icons_DownloadOutlined = (RefIcon);
/***/ }),
/***/ 80205:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
@ -199,8 +244,6 @@ var _umi_production_exports = __webpack_require__(4857);
var tabs = __webpack_require__(99313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(36920);
// 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/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
@ -217,17 +260,13 @@ var row = __webpack_require__(95237);
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(25700);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(5112);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/cascader/index.js + 18 modules
var cascader = __webpack_require__(19842);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(69718);
// EXTERNAL MODULE: ./src/components/LanguageSelect/index.tsx + 1 modules
var LanguageSelect = __webpack_require__(5446);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Paperlibrarymodules = ({"flex_box_center":"flex_box_center___bGwPE","flex_space_between":"flex_space_between___S_dVk","flex_box_vertical_center":"flex_box_vertical_center___JyuWa","flex_box_center_end":"flex_box_center_end___OUF0K","flex_box_column":"flex_box_column___rKVBK","page":"page___scdxd","title":"title___VrDp2","wrap":"wrap___YQdqQ","tabsWrap":"tabsWrap___Oc3uk","filterWrap":"filterWrap___E4RIN","batchWrap":"batchWrap___W_nb0","contentWrap":"contentWrap___R4B3o","checkbox":"checkbox____NenD","modal":"modal___vvk_2","list":"list___kvLHG","btns":"btns___mm_gr","confirm":"confirm___mRLCc","cancel":"cancel___K9XSP","batch":"batch___HZ2dp","btn":"btn____Gjoi","languageSelect":"languageSelect___yXzSf","searchWrp":"searchWrp___PkGd5","searchInput":"searchInput___ChO3U","searchIcon":"searchIcon____721G","actionBtn":"actionBtn___gil1d","applyPublicContainer":"applyPublicContainer___rqkDZ","ant-modal-header":"ant-modal-header___lNIoE","ant-modal-title":"ant-modal-title___dC2Be","ant-modal-body":"ant-modal-body___sdjco","ant-modal-close":"ant-modal-close___gRcvh","ant-modal-close-x":"ant-modal-close-x___yC6AR","ant-modal-footer":"ant-modal-footer___BBXL0","ant-input":"ant-input____QnDa","ant-form-item":"ant-form-item___tboz_","ant-form-item-label":"ant-form-item-label___MlhI0","applyPublicContent":"applyPublicContent___MSHlq","spin":"spin___BC6EP","tips":"tips___t89S9","action":"action___U7a0p"});
/* harmony default export */ var Paperlibrarymodules = ({"flex_box_center":"flex_box_center___bGwPE","flex_space_between":"flex_space_between___S_dVk","flex_box_vertical_center":"flex_box_vertical_center___JyuWa","flex_box_center_end":"flex_box_center_end___OUF0K","flex_box_column":"flex_box_column___rKVBK","page":"page___scdxd","title":"title___VrDp2","wrap":"wrap___YQdqQ","tabsWrap":"tabsWrap___Oc3uk","filterWrap":"filterWrap___E4RIN","batchWrap":"batchWrap___W_nb0","contentWrap":"contentWrap___R4B3o","checkbox":"checkbox____NenD","modal":"modal___vvk_2","list":"list___kvLHG","btns":"btns___mm_gr","confirm":"confirm___mRLCc","cancel":"cancel___K9XSP","batch":"batch___HZ2dp","btn":"btn____Gjoi","languageSelect":"languageSelect___yXzSf","searchWrp":"searchWrp___PkGd5","searchInput":"searchInput___ChO3U","searchIcon":"searchIcon____721G","actionBtn":"actionBtn___gil1d"});
;// CONCATENATED MODULE: ./src/assets/images/paper/s.svg
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@ -396,16 +435,12 @@ var RandomPromptModal = function RandomPromptModal(_ref) {
loading: loading.effects
};
})(RandomPromptModal));
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
var es_menu = __webpack_require__(20834);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(38854);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/components/List/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Listmodules = ({"itemWrap":"itemWrap___KEbZ9","checkBoxWrapper":"checkBoxWrapper___Y_kuj","listWrap":"listWrap___VlWgM","list":"list___XIr6d","flexCenter":"flexCenter___eacyI","flexRow":"flexRow___A_mOc","imgWrap":"imgWrap___KI9io","img":"img___vjS11","contentWrap":"contentWrap___NI0Vt","titleWrap":"titleWrap___SlBWX","title":"title___KGh5v","content":"content___B0PxW","bottomWrap":"bottomWrap___WVJb4","updateTime":"updateTime___sxvSt","useCount":"useCount___puqPx","actionBtn":"actionBtn___JUWfj","actionButton":"actionButton___jabv3","actionBar":"actionBar___I1pC8","typeIcon":"typeIcon___bramC","private":"private___sdERX","public":"public___noSmD","random":"random___l2hTA","actionLinkWrapper":"actionLinkWrapper___Him3y","actionLink":"actionLink___rWBLq","actionIcon":"actionIcon___lMmL7","line":"line___HQJlK","b1":"b1___Y4KZd","b2":"b2___QxMOG","actionLeftItem":"actionLeftItem___Fnq4b","export_type_modal":"export_type_modal___ISAzV","export_type_modal_con":"export_type_modal_con___qw5B2","type_item":"type_item___pdMxs","img_warp":"img_warp___cDH7f","img_warp_active":"img_warp_active___rLrYN","menu":"menu___Q2PXr"});
/* harmony default export */ var Listmodules = ({"itemWrap":"itemWrap___KEbZ9","checkBoxWrapper":"checkBoxWrapper___Y_kuj","listWrap":"listWrap___VlWgM","list":"list___XIr6d","flexCenter":"flexCenter___eacyI","flexRow":"flexRow___A_mOc","imgWrap":"imgWrap___KI9io","img":"img___vjS11","contentWrap":"contentWrap___NI0Vt","titleWrap":"titleWrap___SlBWX","title":"title___KGh5v","content":"content___B0PxW","bottomWrap":"bottomWrap___WVJb4","updateTime":"updateTime___sxvSt","useCount":"useCount___puqPx","actionBtn":"actionBtn___JUWfj","actionButton":"actionButton___jabv3","actionBar":"actionBar___I1pC8","typeIcon":"typeIcon___bramC","private":"private___sdERX","public":"public___noSmD","random":"random___l2hTA","actionLinkWrapper":"actionLinkWrapper___Him3y","actionLink":"actionLink___rWBLq","actionIcon":"actionIcon___lMmL7","line":"line___HQJlK","b1":"b1___Y4KZd","b2":"b2___QxMOG","actionLeftItem":"actionLeftItem___Fnq4b","export_type_modal":"export_type_modal___ISAzV","export_type_modal_con":"export_type_modal_con___qw5B2","type_item":"type_item___pdMxs","img_warp":"img_warp___cDH7f","img_warp_active":"img_warp_active___rLrYN"});
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(71763);
// EXTERNAL MODULE: ./src/service/exercise.ts
@ -414,6 +449,8 @@ var exercise = __webpack_require__(87799);
var verifyLogin = __webpack_require__(39562);
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
var DownloadOutlined = __webpack_require__(24566);
// EXTERNAL MODULE: ./src/utils/export.ts
var utils_export = __webpack_require__(92279);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/components/List/index.tsx
@ -433,13 +470,14 @@ var utils_export = __webpack_require__(92279);
var difficultyMapping = {
1: '简单',
2: '适中',
3: '困难'
};
var List = function List(_ref) {
var _data$author, _user$userInfo2, _data$author2, _data$author3, _data$author4, _user$userInfo3;
var _data$author, _data$author2, _data$author3, _user$userInfo2, _data$author4, _user$userInfo3;
var _ref$showCheckbox = _ref.showCheckbox,
showCheckbox = _ref$showCheckbox === void 0 ? false : _ref$showCheckbox,
data = _ref.data,
@ -452,12 +490,8 @@ var List = function List(_ref) {
onSetSelectIds = _ref$onSetSelectIds === void 0 ? function () {} : _ref$onSetSelectIds,
_ref$onPublicReview = _ref.onPublicReview,
onPublicReview = _ref$onPublicReview === void 0 ? function () {} : _ref$onPublicReview,
_ref$onSetPublic = _ref.onSetPublic,
onSetPublic = _ref$onSetPublic === void 0 ? function () {} : _ref$onSetPublic,
_ref$onCancelPublic = _ref.onCancelPublic,
onCancelPublic = _ref$onCancelPublic === void 0 ? function () {} : _ref$onCancelPublic,
_ref$onShare = _ref.onShare,
onShare = _ref$onShare === void 0 ? function () {} : _ref$onShare,
_ref$onCancelShare = _ref.onCancelShare,
onCancelShare = _ref$onCancelShare === void 0 ? function () {} : _ref$onCancelShare,
_ref$onEdit = _ref.onEdit,
@ -522,89 +556,6 @@ var List = function List(_ref) {
return _ref2.apply(this, arguments);
};
}();
var menuItems = [
// {
// label: <a className={styles.actionLink} onClick={() => {onShare(data.id)}}>
// 共享
// </a>,
// key: '1',
// // show: activeTabsKey === "0" && !data?.is_share
// show: !data.is_random && !data.is_share
// },
{
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink,
onClick: function onClick() {
onCancelShare(data.id);
},
children: "\u64A4\u9500\u5171\u4EAB"
}),
key: '2',
// show: activeTabsKey === "0" && !data?.is_share
show: !data.is_random && data.is_share
}, {
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink,
onClick: function onClick() {
return onSetPublic(data);
},
children: "\u516C\u5F00"
}),
key: '3',
show: !data.is_random && !data["public"] && !data.apply
}, {
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink,
onClick: function onClick() {
return onCancelPublic(data.id);
},
children: "\u64A4\u9500\u516C\u5F00"
}),
key: '4',
show: !data.is_random && data["public"]
}, {
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink
// onClick={onPublicReview}
,
children: "\u516C\u5F00\u5BA1\u6838\u4E2D"
}),
key: '5',
show: !data.is_random && !data["public"] && data.apply,
disabled: true
}, {
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink,
onClick: function onClick() {
if (data.is_random) {
setExporRandomModal(true);
} else {
setExportType('');
setExportTypeModal(true);
}
},
children: "\u5BFC\u51FA\u8BD5\u5377"
}),
key: '6',
show: true
}, {
label: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: Listmodules.actionLink,
onClick: function onClick() {
return onDelete(data.id);
},
children: "\u5220\u9664"
}),
key: '7',
show: (activeTabsKey === '0' || activeTabsKey === '2') && !data["public"] || activeTabsKey === '1' && ((_data$author = data.author) === null || _data$author === void 0 ? void 0 : _data$author.login) !== ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) && (0,authority/* isCommonSuperAdmin */.fn)()
}].filter(function (item) {
return item.show;
});
var menu = /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z, {
forceSubMenuRender: true,
className: Listmodules.menu,
items: menuItems
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.itemWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -706,17 +657,98 @@ var List = function List(_ref) {
}), activeTabsKey === '1' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.actionLeftItem,
children: ["\u521B\u5EFA\u8005", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (_data$author2 = data.author) === null || _data$author2 === void 0 ? void 0 : _data$author2.name
children: (_data$author = data.author) === null || _data$author === void 0 ? void 0 : _data$author.name
})]
}), activeTabsKey === '2' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.actionLeftItem,
children: ["\u5206\u4EAB\u4EBA", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: (_data$author3 = data.author) === null || _data$author3 === void 0 ? void 0 : _data$author3.name
children: (_data$author2 = data.author) === null || _data$author2 === void 0 ? void 0 : _data$author2.name
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.flexRow,
children: [((activeTabsKey === '0' || activeTabsKey === '2') && !data["public"] || activeTabsKey === '1' && ((_data$author4 = data.author) === null || _data$author4 === void 0 ? void 0 : _data$author4.login) !== ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login) && (0,authority/* isCommonSuperAdminOrOperation */.ag)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [activeTabsKey === '0' && !data["public"] && !data.is_random && data.apply && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink),
onClick: onPublicReview,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-gongkai ".concat(Listmodules.actionIcon)
}), "\u5BA1\u6838\u4E2D"]
})]
}), activeTabsKey === '0' && data["public"] && !data.is_random && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink, " current"),
onClick: function onClick() {
return onCancelPublic(data.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-gongkai ".concat(Listmodules.actionIcon)
}), "\u64A4\u9500\u516C\u5F00"]
})]
}), activeTabsKey === '0' && (data === null || data === void 0 ? void 0 : data.is_share) && !data.is_random && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink, " current"),
onClick: function onClick() {
return onCancelShare(data.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chexiaogongxiang ".concat(Listmodules.actionIcon, " font16")
}), "\u64A4\u9500\u5171\u4EAB"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink),
onClick: function onClick() {
if (data.is_random) {
setExporRandomModal(true);
} else {
setExportType('');
setExportTypeModal(true);
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {
style: {
marginRight: 5
}
}), "\u5BFC\u51FA\u8BD5\u5377"]
})]
}), ((activeTabsKey === '0' || activeTabsKey === '2') && !data["public"] || activeTabsKey === '1' && ((_data$author3 = data.author) === null || _data$author3 === void 0 ? void 0 : _data$author3.login) !== ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) && (0,authority/* isCommonSuperAdminOrOperation */.ag)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -735,6 +767,25 @@ var List = function List(_ref) {
className: "iconfont icon-bianji10 ".concat(Listmodules.actionIcon)
}), "\u7F16\u8F91"]
})]
}), ((activeTabsKey === '0' || activeTabsKey === '2') && !data["public"] || activeTabsKey === '1' && ((_data$author4 = data.author) === null || _data$author4 === void 0 ? void 0 : _data$author4.login) !== ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login) && (0,authority/* isCommonSuperAdmin */.fn)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink),
onClick: function onClick() {
return onDelete(data.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchu11 ".concat(Listmodules.actionIcon)
}), "\u5220\u9664"]
})]
}), authRole && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
@ -756,27 +807,6 @@ var List = function List(_ref) {
}), "\u6A21\u62DF\u8003\u8BD5"]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
dropdownRender: function dropdownRender() {
return menu;
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: Listmodules.actionLinkWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Listmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Listmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: "".concat(Listmodules.actionLink),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-gengduo5 font14 mr5 ".concat(Listmodules.actionIcon)
}), "\u66F4\u591A"]
})]
})
})]
})]
})]
@ -1071,13 +1101,12 @@ var jiangxu = __webpack_require__(23972);
var TabPane = tabs/* default */.Z.TabPane;
var Search = input/* default */.Z.Search;
var PaperlibraryPage = function PaperlibraryPage(_ref) {
var _paperlibrary$teachGr5, _paperlibrary$discipl, _paperlibrary$teachGr6, _paperlibrary$actionT, _paperlibrary$actionT2;
var _paperlibrary$teachGr3, _paperlibrary$discipl, _paperlibrary$teachGr4, _paperlibrary$actionT, _paperlibrary$actionT2;
var paperlibrary = _ref.paperlibrary,
user = _ref.user,
globalSetting = _ref.globalSetting,
@ -1153,30 +1182,6 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
_useState24 = slicedToArray_default()(_useState23, 2),
SortNumber2 = _useState24[0],
setSortNumber2 = _useState24[1]; //默认为1
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState25 = (0,_react_17_0_2_react.useState)(1),
_useState26 = slicedToArray_default()(_useState25, 2),
subType = _useState26[0],
setSubType = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
options = _useState28[0],
setOptions = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
showPublicModal = _useState30[0],
setShowPublicModal = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(null),
_useState32 = slicedToArray_default()(_useState31, 2),
rowData = _useState32[0],
setRowData = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)(false),
_useState34 = slicedToArray_default()(_useState33, 2),
isBatchPublic = _useState34[0],
setIsBatchPublic = _useState34[1];
var SortMenus = [{
name: '按更新时间升序',
type: 'updated_at',
@ -1665,94 +1670,6 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
}
});
};
var handleShare = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(id) {
var _paperlibrary$teachGr3, _paperlibrary$teachGr4;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if ((_paperlibrary$teachGr3 = paperlibrary.teachGroupData) !== null && _paperlibrary$teachGr3 !== void 0 && (_paperlibrary$teachGr3 = _paperlibrary$teachGr3.groups) !== null && _paperlibrary$teachGr3 !== void 0 && _paperlibrary$teachGr3.length) {
_context7.next = 2;
break;
}
return _context7.abrupt("return", message/* default */.ZP.info('您暂未创建或加入任何教研团队,请前往“账号管理-教研团队”查看'));
case 2:
modal/* default */.Z.confirm({
centered: true,
width: 530,
okText: '确定',
cancelText: '取消',
title: '共享至教研团队',
maskClosable: true,
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font14 ".concat(Paperlibrarymodules.overflow),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
className: Paperlibrarymodules.checkbox,
defaultValue: joinGroupDataRef.current,
onChange: function onChange(value) {
return joinGroupDataRef.current = value;
},
children: (_paperlibrary$teachGr4 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr4 === void 0 || (_paperlibrary$teachGr4 = _paperlibrary$teachGr4.groups) === null || _paperlibrary$teachGr4 === void 0 ? void 0 : _paperlibrary$teachGr4.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
value: item.group_id,
children: item.name
}, item.group_id);
})
})
}),
onOk: function onOk() {
return new Promise( /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(resolve, reject) {
var _joinGroupDataRef$cur2;
var res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if ((_joinGroupDataRef$cur2 = joinGroupDataRef.current) !== null && _joinGroupDataRef$cur2 !== void 0 && _joinGroupDataRef$cur2.length) {
_context6.next = 3;
break;
}
message/* default */.ZP.info('请先选择教研团队');
return _context6.abrupt("return", reject());
case 3:
_context6.next = 5;
return (0,problemset/* batchShare */.GW)({
ids: id,
clazz: 'ExaminationBank',
group_ids: joinGroupDataRef.current
});
case 5:
res = _context6.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info('所选试卷成功分享至教研团队');
joinGroupDataRef.current = [];
handleReloadData();
setSelectIds([]);
resolve();
}
case 7:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return function (_x8, _x9) {
return _ref8.apply(this, arguments);
};
}());
}
});
case 3:
case "end":
return _context7.stop();
}
}, _callee7);
}));
return function handleShare(_x7) {
return _ref7.apply(this, arguments);
};
}();
var handleBatchSetPublic = function handleBatchSetPublic() {
var _paperlibraryList$fil2, _paperlibraryList$fil3;
if (!(selectIds !== null && selectIds !== void 0 && selectIds.length)) {
@ -1772,171 +1689,72 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
})) {
return message/* default */.ZP.info('所选试卷已公开,请重新选择');
}
if (window.localStorage.getItem('paperlibrary-set-public-hint-flag') === "1") {
handleBatchSetPublicRequest();
} else {
var _paperlibraryList$fil4;
if (paperlibraryList !== null && paperlibraryList !== void 0 && (_paperlibraryList$fil4 = paperlibraryList.filter(function (x) {
return selectIds.includes(x.id);
})) !== null && _paperlibraryList$fil4 !== void 0 && _paperlibraryList$fil4.find(function (x) {
return !(x !== null && x !== void 0 && x.sub_discipline_id);
})) {
return message/* default */.ZP.info('部分试卷暂未设置方向课程信息,请先设置方向课程再进行公开');
window.localStorage.getItem('paperlibrary-set-public-hint-flag') === "1" ? handleBatchSetPublicRequest() : modal/* default */.Z.confirm({
centered: true,
width: 530,
okText: '确定',
cancelText: '取消',
title: '公开规则告知',
maskClosable: true,
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font16 c-grey-333",
children: ["\u516C\u5F00\u5E76\u7ECF\u5E73\u53F0\u5BA1\u6838\u540E\uFF0C\u8BE5\u8BD5\u5377\u5C06\u5728\u516C\u5171\u8BD5\u5377\u5E93\u53EF\u89C1\uFF0CEducoder\u6240\u6709\u7528\u6237\u5747\u53EF\u4F7F\u7528\u8BE5\u8BD5\u5377\uFF1B\u4E14\u8BE5\u8BD5\u5377\u4E0B\u6240\u6709\u8BD5\u9898\u4E00\u5E76\u516C\u5F00\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u516C\u5F00\u540E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u4F46\u53EF\u4EE5\u64A4\u9500\uFF1B\u64A4\u9500\u516C\u5F00\u540E\u53EF\u4EE5\u4FEE\u6539\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u7533\u8BF7\u516C\u5F00\uFF1F", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
className: "mt10",
defaultChecked: false,
onChange: function onChange(e) {
return hintFlagRef.current = e.target.checked;
},
children: "\u4E0D\u518D\u63D0\u793A"
})]
}),
onOk: function onOk() {
handleBatchSetPublicRequest();
}
setIsBatchPublic(true);
openPublicModal();
}
};
var handleSetPublic = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(data) {
var _paperlibraryList$fil5;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
if (!(paperlibraryList !== null && paperlibraryList !== void 0 && (_paperlibraryList$fil5 = paperlibraryList.filter(function (x) {
return x.id === (data === null || data === void 0 ? void 0 : data.id);
})) !== null && _paperlibraryList$fil5 !== void 0 && _paperlibraryList$fil5.every(function (x) {
return x["public"];
}))) {
_context8.next = 2;
break;
}
return _context8.abrupt("return", message/* default */.ZP.info('所选试卷已公开,请重新选择'));
case 2:
if (window.localStorage.getItem('paperlibrary-set-public-hint-flag') === "1") {
handleBatchSetPublicRequest();
} else {
setIsBatchPublic(false);
openPublicModal(data);
}
case 3:
case "end":
return _context8.stop();
}
}, _callee8);
}));
return function handleSetPublic(_x10) {
return _ref9.apply(this, arguments);
};
}();
// 打开公开规则告知
var openPublicModal = function openPublicModal(data) {
setShowPublicModal(true);
setSubType(1);
form.setFieldValue('type', 1);
getData(data);
setRowData(data);
});
};
/** * 获取方向课程数据*/
var getData = /*#__PURE__*/function () {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(data) {
var result;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context9.next = 2;
return (0,fetch/* default */.ZP)("/api/disciplines.json", {
method: 'get',
params: {
source: 'subject'
}
});
case 2:
result = _context9.sent;
setOptions(result.disciplines || []);
if (data !== null && data !== void 0 && data.sub_discipline_id) {
form.setFieldValue('sub_discipline_id', [data === null || data === void 0 ? void 0 : data.discipline_id, data === null || data === void 0 ? void 0 : data.sub_discipline_id]);
}
case 5:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return function getData(_x11) {
return _ref10.apply(this, arguments);
};
}();
var handleBatchSetPublicRequest = /*#__PURE__*/function () {
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var source, ids, res, _data$sub_discipline_, data;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var source, res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
source = activeTabsKey === "2" ? 1 : 2; // 试题来源1 教研团队分享的, 2 我创建的
ids = paperlibraryList ? paperlibraryList.filter(function (x) {
return selectIds.includes(x.id) && !(x["public"] || x.apply);
}).map(function (x) {
return x.id;
}) : [];
res = null;
if (!isBatchPublic) {
_context10.next = 9;
break;
}
_context10.next = 6;
_context6.next = 3;
return (0,service_paperlibrary/* batchPublic */.Qp)({
ids: ids,
ids: selectIds,
source: source
});
case 6:
res = _context10.sent;
_context10.next = 13;
break;
case 9:
data = form.getFieldsValue();
_context10.next = 12;
return (0,service_paperlibrary/* singlePublic */.wX)({
id: rowData === null || rowData === void 0 ? void 0 : rowData.id,
source: source,
user_customize: (data === null || data === void 0 ? void 0 : data.type) == 2 ? true : false,
sub_discipline_id: data === null || data === void 0 || (_data$sub_discipline_ = data.sub_discipline_id) === null || _data$sub_discipline_ === void 0 ? void 0 : _data$sub_discipline_[1],
discipline_name: data === null || data === void 0 ? void 0 : data.discipline_name,
sub_discipline_name: data === null || data === void 0 ? void 0 : data.sub_discipline_name
});
case 12:
res = _context10.sent;
case 13:
case 3:
res = _context6.sent;
if (res.status === 0) {
hintFlagRef.current && window.localStorage.setItem('paperlibrary-set-public-hint-flag', '1');
hintFlagRef.current = false;
handleReloadData();
message/* default */.ZP.success('申请成功');
form.resetFields();
setRowData(null);
setShowPublicModal(false);
}
// const res = await batchPublic({ ids: id || selectIds, source });
// if (res.status === 0) {
// hintFlagRef.current && window.localStorage.setItem('paperlibrary-set-public-hint-flag', '1');
// hintFlagRef.current = false;
// handleReloadData();
// }
case 14:
case 5:
case "end":
return _context10.stop();
return _context6.stop();
}
}, _callee10);
}, _callee6);
}));
return function handleBatchSetPublicRequest() {
return _ref11.apply(this, arguments);
return _ref7.apply(this, arguments);
};
}();
var handleCancelShare = /*#__PURE__*/function () {
var _ref12 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(id) {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(id) {
var res, data;
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context13.next = 2;
_context9.next = 2;
return (0,problemset/* getTeachGroupDataById */.hg)({
clazz: 'ExaminationBank',
id: id
});
case 2:
res = _context13.sent;
res = _context9.sent;
data = (res === null || res === void 0 ? void 0 : res.groups) || [];
joinGroupDataRef.current = [];
modal/* default */.Z.confirm({
@ -1967,58 +1785,58 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
})]
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
return _context12.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(resolve, reject) {
return _context8.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(resolve, reject) {
var _data$map;
var group_ids, res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if (joinGroupDataRef.current.length) {
_context11.next = 3;
_context7.next = 3;
break;
}
message/* default */.ZP.warning('请选择需要撤销共享的教研团队');
return _context11.abrupt("return", reject());
return _context7.abrupt("return", reject());
case 3:
group_ids = data === null || data === void 0 || (_data$map = data.map(function (x) {
return x.group_id;
})) === null || _data$map === void 0 ? void 0 : _data$map.filter(function (id) {
return !joinGroupDataRef.current.includes(id);
});
_context11.next = 6;
_context7.next = 6;
return (0,problemset/* batchShare */.GW)({
ids: [id],
clazz: 'ExaminationBank',
group_ids: group_ids
});
case 6:
res = _context11.sent;
res = _context7.sent;
joinGroupDataRef.current = [];
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info('撤销共享成功');
handleReloadData();
}
return _context11.abrupt("return", resolve());
return _context7.abrupt("return", resolve());
case 10:
case "end":
return _context11.stop();
return _context7.stop();
}
}, _callee11);
}, _callee7);
}));
return function (_x13, _x14) {
return _ref13.apply(this, arguments);
return function (_x8, _x9) {
return _ref9.apply(this, arguments);
};
}()));
case 1:
case "end":
return _context12.stop();
return _context8.stop();
}
}, _callee12);
}, _callee8);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -2028,12 +1846,12 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
});
case 6:
case "end":
return _context13.stop();
return _context9.stop();
}
}, _callee13);
}, _callee9);
}));
return function handleCancelShare(_x12) {
return _ref12.apply(this, arguments);
return function handleCancelShare(_x7) {
return _ref8.apply(this, arguments);
};
}();
var handleChangeTeachGroup = function handleChangeTeachGroup(id) {
@ -2042,12 +1860,12 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
setParams(params);
getPaperlibraryList(params);
};
var _ref14 = user.userInfo || {},
admin = _ref14.admin,
business = _ref14.business,
is_shixun_marker = _ref14.is_shixun_marker,
is_teacher = _ref14.is_teacher,
user_identity = _ref14.user_identity;
var _ref10 = user.userInfo || {},
admin = _ref10.admin,
business = _ref10.business,
is_shixun_marker = _ref10.is_shixun_marker,
is_teacher = _ref10.is_teacher,
user_identity = _ref10.user_identity;
var showTestPaper = admin || business || is_shixun_marker || is_teacher || user_identity !== "学生";
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
@ -2107,7 +1925,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
onChange: handleTabsChange,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u516C\u5171"
}, "1"), ((_paperlibrary$teachGr5 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr5 === void 0 || (_paperlibrary$teachGr5 = _paperlibrary$teachGr5.groups) === null || _paperlibrary$teachGr5 === void 0 ? void 0 : _paperlibrary$teachGr5.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
}, "1"), ((_paperlibrary$teachGr3 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr3 === void 0 || (_paperlibrary$teachGr3 = _paperlibrary$teachGr3.groups) === null || _paperlibrary$teachGr3 === void 0 ? void 0 : _paperlibrary$teachGr3.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u56E2\u961F\u5171\u4EAB"
}, "2"), /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u6211\u521B\u5EFA\u7684"
@ -2129,7 +1947,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
onDirectionChange: handleDirectionChange,
onTypeChange: handleTypeChange,
onDifficultyChange: handleDifficultyChange,
teachGroupData: paperlibrary === null || paperlibrary === void 0 || (_paperlibrary$teachGr6 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr6 === void 0 ? void 0 : _paperlibrary$teachGr6.groups,
teachGroupData: paperlibrary === null || paperlibrary === void 0 || (_paperlibrary$teachGr4 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr4 === void 0 ? void 0 : _paperlibrary$teachGr4.groups,
onTeachGroupChange: handleChangeTeachGroup,
teachGroupValue: params.group_id,
showTeachGroup: activeTabsKey === "2"
@ -2220,9 +2038,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
onPublicReview: handlePublicReview,
onEdit: handleEdit,
onDelete: handleDelete,
onSendToClass: handleSendToClass,
onSetPublic: handleSetPublic,
onShare: handleShare
onSendToClass: handleSendToClass
}, item.id);
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
@ -2328,122 +2144,6 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: 640,
className: Paperlibrarymodules.applyPublicContainer,
centered: true,
closable: false,
title: "\u516C\u5F00\u89C4\u5219\u544A\u77E5",
open: showPublicModal,
onCancel: function onCancel() {
setShowPublicModal(false);
form.resetFields();
setRowData(null);
},
onOk: function onOk() {
form.validateFields().then( /*#__PURE__*/function () {
var _ref15 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(values) {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
handleBatchSetPublicRequest();
case 1:
case "end":
return _context14.stop();
}
}, _callee14);
}));
return function (_x15) {
return _ref15.apply(this, arguments);
};
}());
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Paperlibrarymodules.applyPublicContent,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Paperlibrarymodules.tips,
children: ["1.\u516C\u5F00\u7684\u8BD5\u5377\u9700\u8981\u8BBE\u7F6E\u65B9\u5411&\u8BFE\u7A0B\u4FE1\u606F\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "2.\u516C\u5F00\u8BD5\u5377\u7533\u8BF7\u7ECF\u5E73\u53F0\u5BA1\u6838\u540E\uFF0C\u8BE5\u8BD5\u5377\u5C06\u5728\u516C\u5171\u8BD5\u5377\u5E93\u53EF\u89C1\uFF0CEducoder\u7684\u6240\u6709\u7528\u6237\u5747\u53EF\u4F7F\u7528\u8BE5\u8BD5\u5377\uFF0C\u4E14\u8BE5\u8BD5\u5377\u4E0B\u7684\u6240\u6709\u8BD5\u9898\u4E00\u5E76\u516C\u5F00\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "3.\u516C\u5F00\u540E\u7684\u8BD5\u5377\u4E0D\u652F\u6301\u8FDB\u884C\u7F16\u8F91\uFF0C\u53EF\u4EE5\u64A4\u9500\u540E\u518D\u8FDB\u884C\u7F16\u8F91\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {})]
}), !isBatchPublic && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
labelAlign: "left",
size: "large",
form: form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "type",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
onChange: function onChange(e) {
setSubType(e.target.value);
if (e.target.value == 1) {
form.setFieldsValue({
discipline_name: '',
sub_discipline_name: ''
});
} else {
if (rowData !== null && rowData !== void 0 && rowData.sub_discipline_id) {
form.setFieldValue('sub_discipline_id', [rowData === null || rowData === void 0 ? void 0 : rowData.discipline_id, rowData === null || rowData === void 0 ? void 0 : rowData.sub_discipline_id]);
return;
}
form.setFieldsValue({
sub_discipline_id: []
});
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 1,
children: "\u5FEB\u901F\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 2,
style: {
marginLeft: 40
},
children: "\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"
})]
})
}), subType == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u65B9\u5411&\u8BFE\u7A0B",
name: "sub_discipline_id",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(cascader/* default */.Z, {
expandTrigger: "hover",
placeholder: "\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",
options: options,
fieldNames: {
label: 'name',
value: 'id',
children: 'sub_disciplines'
},
onChange: function onChange(data, v) {
return form.setFieldsValue({
sub_discipline_id: data
});
}
})
}), subType == 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u65B9\u5411",
name: "discipline_name",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u65B9\u5411",
autoComplete: "off"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BFE\u7A0B",
name: "sub_discipline_name",
rules: [{
required: true
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B",
autoComplete: "off"
})
})]
})]
})]
})
})]
}), activeTabsKey === "0" && !!(selectIds !== null && selectIds !== void 0 && selectIds.length) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Paperlibrarymodules.batch,
@ -2504,11 +2204,11 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
})]
});
};
/* harmony default export */ var Paperlibrary = ((0,_umi_production_exports.connect)(function (_ref16) {
var paperlibrary = _ref16.paperlibrary,
user = _ref16.user,
loading = _ref16.loading,
globalSetting = _ref16.globalSetting;
/* harmony default export */ var Paperlibrary = ((0,_umi_production_exports.connect)(function (_ref11) {
var paperlibrary = _ref11.paperlibrary,
user = _ref11.user,
loading = _ref11.loading,
globalSetting = _ref11.globalSetting;
return {
paperlibrary: paperlibrary,
user: user,

@ -1,27 +1,21 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34741],{
/***/ 28367:
/*!*****************************************************************!*\
!*** ./src/pages/Problems/OjForm/NewEdit/index.tsx + 4 modules ***!
\*****************************************************************/
/***/ 57277:
/*!*********************************************************!*\
!*** ./src/components/FolderTree/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Types: function() { return /* binding */ Types; },
"default": function() { return /* binding */ NewEdit; }
Z: function() { return /* binding */ FolderTree; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/createForOfIteratorHelper.js
var createForOfIteratorHelper = __webpack_require__(91232);
var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
@ -31,81 +25,8 @@ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerat
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Problems/OjForm/NewEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var NewEditmodules = ({"bg":"bg___HduZ7","header":"header___KbUo2","avatar":"avatar___UDYJ4","title":"title___OP1JL","exitBtn":"exitBtn___E3w1m","contentWrapper":"contentWrapper___IeO8M","tabWrapper":"tabWrapper___qc2MC","buttonFixed":"buttonFixed___jzejH","cancelBtn":"cancelBtn___c5OpP","saveBtn":"saveBtn___UhxvN","challengeBtn":"challengeBtn___h9r2O","baseInfoWrapper":"baseInfoWrapper___jei0F","baseLineHeight":"baseLineHeight___v1JXM","folderLineHeight":"folderLineHeight___tF8xb","uploadBtnWrapper":"uploadBtnWrapper___ICJS3","baseFormItem":"baseFormItem___sca4N","radioBtnWrapper":"radioBtnWrapper___VIxZD","difficultyRadio":"difficultyRadio___isD54","easy":"easy___gparw","medium":"medium___wRzjL","hard":"hard___sWxqC","testCaseTypeRadio":"testCaseTypeRadio___oiSFl","cascaderPopup":"cascaderPopup___OADQu","collapseWrapper":"collapseWrapper___saVIT","panelHeader":"panelHeader___hRptX","rateInput":"rateInput____HzUM","operationWrapper":"operationWrapper___YJRMc","open":"open___zkYQ_","close":"close___q9p81","add":"add___NB0_y","remove":"remove___xa9jD","codePanelWrapper":"codePanelWrapper___oacDD","uploadTableWrapper":"uploadTableWrapper___iMDly","unfold":"unfold___TdtCA"});
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
// 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/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/util.tsx
var util = __webpack_require__(28582);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(4857);
// EXTERNAL MODULE: ./node_modules/_js-base64@2.6.4@js-base64/base64.js
var base64 = __webpack_require__(24334);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/service.ts
var service = __webpack_require__(81630);
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(87799);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/CodePanel/index.tsx + 1 modules
var CodePanel = __webpack_require__(25424);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/CodeProgramPanel/index.tsx + 1 modules
var CodeProgramPanel = __webpack_require__(3853);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(36057);
// EXTERNAL MODULE: ./src/utils/util.tsx
var utils_util = __webpack_require__(64606);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(97940);
// EXTERNAL MODULE: ./src/service/paperlibrary.ts
var paperlibrary = __webpack_require__(35682);
// EXTERNAL MODULE: ./src/utils/enum.ts
var utils_enum = __webpack_require__(43510);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(70236);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(36920);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/collapse/index.js + 8 modules
var collapse = __webpack_require__(36381);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(88897);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/cascader/index.js + 18 modules
var cascader = __webpack_require__(19842);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(5112);
// 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/switch/index.js + 2 modules
var es_switch = __webpack_require__(78673);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/popconfirm/index.js + 2 modules
var popconfirm = __webpack_require__(14478);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules
var PlusCircleOutlined = __webpack_require__(37520);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/MinusCircleOutlined.js + 1 modules
var MinusCircleOutlined = __webpack_require__(89378);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(63726);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules
var tree = __webpack_require__(46819);
;// CONCATENATED MODULE: ./src/components/FolderTree/index.less?modules
@ -247,12 +168,124 @@ var NewFolder = function NewFolder(_ref) {
});
};
/* harmony default export */ var FolderTree = (NewFolder);
/***/ }),
/***/ 62807:
/*!*****************************************************************!*\
!*** ./src/pages/Problems/OjForm/NewEdit/index.tsx + 2 modules ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Types: function() { return /* binding */ Types; },
"default": function() { return /* binding */ NewEdit; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/createForOfIteratorHelper.js
var createForOfIteratorHelper = __webpack_require__(91232);
var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Problems/OjForm/NewEdit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var NewEditmodules = ({"bg":"bg___HduZ7","header":"header___KbUo2","avatar":"avatar___UDYJ4","title":"title___OP1JL","exitBtn":"exitBtn___E3w1m","contentWrapper":"contentWrapper___IeO8M","tabWrapper":"tabWrapper___qc2MC","buttonFixed":"buttonFixed___jzejH","cancelBtn":"cancelBtn___c5OpP","saveBtn":"saveBtn___UhxvN","challengeBtn":"challengeBtn___h9r2O","baseInfoWrapper":"baseInfoWrapper___jei0F","baseLineHeight":"baseLineHeight___v1JXM","folderLineHeight":"folderLineHeight___tF8xb","uploadBtnWrapper":"uploadBtnWrapper___ICJS3","baseFormItem":"baseFormItem___sca4N","radioBtnWrapper":"radioBtnWrapper___VIxZD","difficultyRadio":"difficultyRadio___isD54","easy":"easy___gparw","medium":"medium___wRzjL","hard":"hard___sWxqC","testCaseTypeRadio":"testCaseTypeRadio___oiSFl","cascaderPopup":"cascaderPopup___OADQu","collapseWrapper":"collapseWrapper___saVIT","panelHeader":"panelHeader___hRptX","rateInput":"rateInput____HzUM","operationWrapper":"operationWrapper___YJRMc","open":"open___zkYQ_","close":"close___q9p81","add":"add___NB0_y","remove":"remove___xa9jD","codePanelWrapper":"codePanelWrapper___oacDD","uploadTableWrapper":"uploadTableWrapper___iMDly","unfold":"unfold___TdtCA"});
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
// 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/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
var tabs = __webpack_require__(99313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/util.tsx
var util = __webpack_require__(28582);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(4857);
// EXTERNAL MODULE: ./node_modules/_js-base64@2.6.4@js-base64/base64.js
var base64 = __webpack_require__(24334);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/service.ts
var service = __webpack_require__(81630);
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(87799);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/CodePanel/index.tsx + 1 modules
var CodePanel = __webpack_require__(25424);
// EXTERNAL MODULE: ./src/pages/Problems/OjForm/CodeProgramPanel/index.tsx + 1 modules
var CodeProgramPanel = __webpack_require__(3853);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(36057);
// EXTERNAL MODULE: ./src/utils/util.tsx
var utils_util = __webpack_require__(64606);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(97940);
// EXTERNAL MODULE: ./src/service/paperlibrary.ts
var paperlibrary = __webpack_require__(35682);
// EXTERNAL MODULE: ./src/utils/enum.ts
var utils_enum = __webpack_require__(43510);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(70236);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(36920);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/collapse/index.js + 8 modules
var collapse = __webpack_require__(36381);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(88897);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/cascader/index.js + 18 modules
var cascader = __webpack_require__(19842);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(5112);
// 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/switch/index.js + 2 modules
var es_switch = __webpack_require__(78673);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/popconfirm/index.js + 2 modules
var popconfirm = __webpack_require__(14478);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules
var PlusCircleOutlined = __webpack_require__(37520);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/MinusCircleOutlined.js + 1 modules
var MinusCircleOutlined = __webpack_require__(89378);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(63726);
// EXTERNAL MODULE: ./src/components/FolderTree/index.tsx + 1 modules
var FolderTree = __webpack_require__(57277);
// EXTERNAL MODULE: ./src/components/Knowledge/index.tsx + 1 modules
var Knowledge = __webpack_require__(99975);
// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Level/Challenges/components/UploadFile/index.tsx + 2 modules
var UploadFile = __webpack_require__(16999);
// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
var MdEditorInForm = __webpack_require__(92923);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Problems/OjForm/NewEdit/BaseInfo.tsx
@ -531,16 +564,6 @@ function BaseInfo(_ref) {
className: "ml10 font14",
children: "\u79D2"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u6D4B\u68C0\u9A8C",
name: ['hack', "var_init_check"],
valuePropName: "checked",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
children: ["\u53D8\u91CF\u521D\u59CB\u5316\u68C0\u6D4B", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-999",
children: "\uFF08\u52FE\u9009\u540E\uFF0CC/C++\u8BED\u8A00\u4EE3\u7801\u4E2D\u53D8\u91CF\u672A\u521D\u59CB\u5316\u5F53\u505A\u62A5\u9519\u5904\u7406\uFF09"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",
name: ['hack', 'submit_rule']
@ -934,7 +957,7 @@ function BaseInfo(_ref) {
className: NewEditmodules.folderLineHeight,
label: '放入文件夹',
name: ['hack', 'item_banks_group_ids'],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FolderTree, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FolderTree/* default */.Z, {
scrollId: "item_banks_group_ids"
})
})]
@ -1107,7 +1130,6 @@ function reducer(state, action) {
answer_text,
submit_rule,
show_case,
var_init_check,
_getDisciplineIds,
_getDisciplineIds2,
ids,
@ -1118,21 +1140,19 @@ function reducer(state, action) {
newCodes,
_tagIds$split,
_tagIds$split2,
_ids2,
_ids3,
_yield$getUser,
_user2,
_getJsonFromUrl3,
_difficult,
discipline_id,
_sub_discipline_id,
_tag_discipline_id,
tagIds,
banksIds,
_difficult,
_getDisciplineIds3,
_getDisciplineIds4,
_ids,
_dictData,
bankstime,
_args = arguments;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -1167,7 +1187,7 @@ function reducer(state, action) {
}
} else {
// console.log(res.hack_sets, 'response1')
category = res.category, _user = res.user, code = res.code, language = res.language, _hack_sets = res.hack_sets, description = res.description, difficult = res.difficult, name = res.name, open_or_not = res.open_or_not, sub_discipline_id = res.sub_discipline_id, tag_discipline_id = res.tag_discipline_id, analysis = res.analysis, time_limit = res.time_limit, _test_set_average = res.test_set_average, test_set_score = res.test_set_score, _status = res.status, tag_discipline_ids = res.tag_discipline_ids, item_banks_group_id = res.item_banks_group_id, _res$is_file = res.is_file, is_file = _res$is_file === void 0 ? false : _res$is_file, hide_actual_output = res.hide_actual_output, code_compile_score = res.code_compile_score, languages = res.languages, is_my = res.is_my, codes = res.codes, answer_text = res.answer_text, submit_rule = res.submit_rule, show_case = res.show_case, var_init_check = res.var_init_check; //
category = res.category, _user = res.user, code = res.code, language = res.language, _hack_sets = res.hack_sets, description = res.description, difficult = res.difficult, name = res.name, open_or_not = res.open_or_not, sub_discipline_id = res.sub_discipline_id, tag_discipline_id = res.tag_discipline_id, analysis = res.analysis, time_limit = res.time_limit, _test_set_average = res.test_set_average, test_set_score = res.test_set_score, _status = res.status, tag_discipline_ids = res.tag_discipline_ids, item_banks_group_id = res.item_banks_group_id, _res$is_file = res.is_file, is_file = _res$is_file === void 0 ? false : _res$is_file, hide_actual_output = res.hide_actual_output, code_compile_score = res.code_compile_score, languages = res.languages, is_my = res.is_my, codes = res.codes, answer_text = res.answer_text, submit_rule = res.submit_rule, show_case = res.show_case; //
_getDisciplineIds = (0,util/* getDisciplineIds */.y3)(discips, sub_discipline_id), _getDisciplineIds2 = slicedToArray_default()(_getDisciplineIds, 2), ids = _getDisciplineIds2[0], dictData = _getDisciplineIds2[1]; // console.log('----',hack_sets);
new_hack_sets = is_file ? [{
input: '',
@ -1221,8 +1241,7 @@ function reducer(state, action) {
analysis: analysis,
answer_text: answer_text,
submit_rule: submit_rule,
show_case: show_case,
var_init_check: var_init_check
show_case: show_case
},
hack_sets: new_hack_sets,
tags: tag_discipline_ids,
@ -1258,7 +1277,7 @@ function reducer(state, action) {
});
handleSetKnowledge(ids === null || ids === void 0 ? void 0 : ids[0], ids === null || ids === void 0 ? void 0 : ids[1], discips);
}
_context.next = 27;
_context.next = 26;
break;
case 15:
_context.next = 17;
@ -1266,13 +1285,10 @@ function reducer(state, action) {
case 17:
_yield$getUser = _context.sent;
_user2 = _yield$getUser.user;
_getJsonFromUrl3 = (0,utils_util/* getJsonFromUrl */.oP)(), _difficult = _getJsonFromUrl3.difficult, discipline_id = _getJsonFromUrl3.discipline_id, _sub_discipline_id = _getJsonFromUrl3.sub_discipline_id, _tag_discipline_id = _getJsonFromUrl3.tag_discipline_id, tagIds = _getJsonFromUrl3.tagIds, banksIds = _getJsonFromUrl3.banksIds;
_difficult = Number(_difficult || 2);
banksIds = [Number(banksIds || 0)];
_getJsonFromUrl3 = (0,utils_util/* getJsonFromUrl */.oP)(), _sub_discipline_id = _getJsonFromUrl3.sub_discipline_id, _tag_discipline_id = _getJsonFromUrl3.tag_discipline_id, tagIds = _getJsonFromUrl3.tagIds, banksIds = _getJsonFromUrl3.banksIds;
_difficult = 2; //默认适中难度不再通过url里的difficult参数设置默认值
_getDisciplineIds3 = (0,util/* getDisciplineIds */.y3)(discips, parseInt(_sub_discipline_id, 10)), _getDisciplineIds4 = slicedToArray_default()(_getDisciplineIds3, 2), _ids = _getDisciplineIds4[0], _dictData = _getDisciplineIds4[1];
_ids = discipline_id ? [Number(discipline_id || 0), Number(_sub_discipline_id || 0)].filter(function (e) {
return !!e;
}) : [];
bankstime = [Number(banksIds)];
dispatch({
type: Types.SET_INITAL_DATA,
payload: {
@ -1299,11 +1315,10 @@ function reducer(state, action) {
return Number(x);
})),
name: '',
item_banks_group_ids: banksIds,
item_banks_group_ids: bankstime,
is_file: false,
answer_text: '',
submit_rule: 1,
var_init_check: false
submit_rule: 1
},
tags: _tag_discipline_id ? _tag_discipline_id === null || _tag_discipline_id === void 0 ? void 0 : _tag_discipline_id.split(',').map(function (t) {
return parseInt(t, 10);
@ -1330,13 +1345,13 @@ function reducer(state, action) {
return Number(x);
})),
name: '',
item_banks_group_id: banksIds,
item_banks_group_id: bankstime,
is_file: false,
answer_text: ''
}
});
handleSetKnowledge((_ids2 = _ids) === null || _ids2 === void 0 ? void 0 : _ids2[0], (_ids3 = _ids) === null || _ids3 === void 0 ? void 0 : _ids3[1], discips);
case 27:
handleSetKnowledge(_ids === null || _ids === void 0 ? void 0 : _ids[0], _ids === null || _ids === void 0 ? void 0 : _ids[1], discips);
case 26:
case "end":
return _context.stop();
}

@ -586,35 +586,6 @@ div[class~='ant-collapse-borderless'] {
font-weight: 400;
color: #5F6368;
}
.public_tips___sZVWd {
padding-top: 5px;
font-size: 14px;
font-weight: 400;
line-height: 26px;
color: #9096A3;
margin-bottom: 15px;
display: flex;
align-items: flex-start;
padding: 10px;
background-color: #F6F7F9;
}
.inputCss___t66EO .ant-input {
min-height: 30px;
border-radius: 4px;
}
.bt___lXptu {
display: inline-block;
-webkit-margin-end: 4px;
margin-inline-end: 4px;
color: #ff4d4f;
font-size: 14px;
line-height: 1;
}
.add_style___knrMF {
position: absolute !important;
top: -30px !important;
left: 145px !important;
}
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Shixuns/Edit/body/Level/Challenges/components/UploadFile/index.less?modules ***!

@ -338,35 +338,6 @@
font-weight: 400;
color: #5F6368;
}
.public_tips___sZVWd {
padding-top: 5px;
font-size: 14px;
font-weight: 400;
line-height: 26px;
color: #9096A3;
margin-bottom: 15px;
display: flex;
align-items: flex-start;
padding: 10px;
background-color: #F6F7F9;
}
.inputCss___t66EO .ant-input {
min-height: 30px;
border-radius: 4px;
}
.bt___lXptu {
display: inline-block;
-webkit-margin-end: 4px;
margin-inline-end: 4px;
color: #ff4d4f;
font-size: 14px;
line-height: 1;
}
.add_style___knrMF {
position: absolute !important;
top: -30px !important;
left: 145px !important;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/CustomTree/index.less?modules ***!

@ -20,7 +20,7 @@
color: rgba(0, 0, 0, 0.65);
}
.main___l1oS8 {
padding: 20px 0;
padding: 20px 80px 300px 80px;
background: #fff;
}
.main___l1oS8 .addTypeRadio___eH2zI {
@ -92,24 +92,57 @@
.formWrap___ydPvR .questionTypeRadio___jQze1 label[class~='ant-radio-button-wrapper-checked'] span {
color: #165DFF;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ {
margin-left: 42px;
margin-bottom: 0px;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ div[class~='ant-form-item-label'] {
line-height: 46px;
line-height: 38px;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ div[class~='ant-select-selector'] {
height: 46px !important;
padding: 7px 11px !important;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O {
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper'] {
width: 60px;
height: 38px;
background: #F6F7F9;
box-shadow: inset 0px 1px 3px 0px #D7D8D9;
border-radius: 23px;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 20px;
margin-bottom: 0px;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O div[class~='ant-form-item-label'] label {
text-align: left;
height: 46px !important;
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper']::before {
background-color: transparent;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper'] span {
color: #464F66;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'] {
background-color: #fff;
box-shadow: 0px 2px 4px 0px #E0DFE1;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked']:first-child {
border-right-color: transparent;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked']:focus-within {
box-shadow: 0px 2px 4px 0px #E0DFE1;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].easy___5Owsm {
border: 1px solid #C1E7CB;
background: linear-gradient(180deg, #FFFFFF 0%, #F9FFF4 100%);
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].easy___5Owsm span {
color: #46B70E;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].medium___NeHBc {
border: 1px solid #BACFFE;
background: #D3E0FD linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].medium___NeHBc span {
color: #165DFF;
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].hard___Hrees {
border: 1px solid #F8C8A8;
background: linear-gradient(180deg, #FFFFFF 0%, #FFF7F3 100%);
}
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].hard___Hrees span {
color: #EE6F1A;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O div[class~='ant-form-item-label'] label span {
line-height: 22px;
@ -128,13 +161,15 @@
.formWrap___ydPvR .courseCascader___UEeI3 span[class~='ant-select-arrow'] {
right: 12px;
}
.formWrap___ydPvR .knowledgeWrapper___sIao8 div[class*='add_style'] {
bottom: -24px !important;
left: 44px !important;
top: auto !important;
.formWrap___ydPvR .knowledgeWrapper___sIao8 div[class~='ant-form-item-label'] {
line-height: 46px !important;
}
.treeWrapper___t5heq span[class~='ant-select-tree-node-content-wrapper'] {
outline: 0 !important;
.knowledgeWrap___PX71i {
display: flex;
flex-direction: row;
}
.knowledgeWrap___PX71i div[class~='ant-form-item-control-input'] {
width: 242px;
}
.uploadTips___v_XSU {
font-size: 14px;
@ -175,7 +210,7 @@
}
.buttonFixed___j1UZJ {
position: fixed;
z-index: 900;
z-index: 1000;
bottom: 0;
left: 0;
width: 100%;
@ -637,33 +672,44 @@ ul.s-navs a.active {
font-weight: 400;
color: #5F6368;
}
.public_tips___sZVWd {
padding-top: 5px;
font-size: 14px;
font-weight: 400;
line-height: 26px;
color: #9096A3;
margin-bottom: 15px;
display: flex;
align-items: flex-start;
padding: 10px;
background-color: #F6F7F9;
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FolderTree/index.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.folderWrapper___G__0a span[class~='ant-tree-switcher-line-icon'] svg {
transform: scale(1.2);
color: #d2ddf5;
}
.inputCss___t66EO .ant-input {
min-height: 30px;
border-radius: 4px;
.folderWrapper___G__0a span[class="ant-tree-node-content-wrapper"] {
position: relative;
}
.bt___lXptu {
display: inline-block;
-webkit-margin-end: 4px;
margin-inline-end: 4px;
color: #ff4d4f;
font-size: 14px;
line-height: 1;
.folderWrapper___G__0a div[class~='ant-tree-treenode'] {
padding: 10px 0 10px 0px;
}
.folderWrapper___G__0a span[class~='ant-tree-switcher-leaf-line']::after {
border-bottom: 1px dotted #d9d9d9 !important;
}
.folderWrapper___G__0a span[class~='ant-tree-switcher-leaf-line']::before {
border-left: 1px dotted #d9d9d9 !important;
}
.folderWrapper___G__0a span[class~='ant-tree-indent-unit']::after {
border-right: 1px dotted #d9d9d9 !important;
}
.folderWrapper___G__0a span[class~='ant-tree-indent-unit']::before {
border-right: 1px dotted #d9d9d9 !important;
}
.add_style___knrMF {
position: absolute !important;
top: -30px !important;
left: 145px !important;
.folderWrapper___G__0a span[class~='ant-tree-iconEle'] {
margin-right: 4px;
}
.folderWrapper___G__0a div[class~='ant-tree-treenode-selected'] span[class~='ant-tree-node-selected'] {
background-color: transparent;
}
.folderWrapper___G__0a div[class~='ant-tree-treenode-selected'] span[class~='ant-tree-node-selected'] span[class~='ant-tree-title'] {
color: #3061D0;
background: #F7F8F9;
}
.folderWrapper___G__0a .folderIcon___oTG6c {
height: 20px;
width: 20px;
}

@ -5503,7 +5503,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sub_discipline_id = subId || '';
params.tag_discipline_id = '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setKnowledgeValue(-1);
// setKnowledgeValue(id === null ? -1 : null)
@ -5527,7 +5527,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleTypeChange = function handleTypeChange(value) {
params.item_type = value || '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
setParams(params);
getItemBanks(params);
if (activeTabsKey === "3" || activeTabsKey === "0") {
@ -5540,7 +5540,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleDifficultyChange = function handleDifficultyChange(value) {
params.difficulty = value || '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setParams(params);
getItemBanks(params);
@ -5554,7 +5554,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleKnowledgeChange = function handleKnowledgeChange(value) {
params.tag_discipline_id = value;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
if (value === -1) {
params.discipline_id = '';
@ -5612,7 +5612,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
setShowTeachGroup(false);
}
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
delete params.id;
setKnowledgeValue(-1);
setActiveTabsKey(activeKey);
@ -5639,7 +5639,6 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
// }
// params.sort_by = sort_direction ? field : null;
// params.sort_direction = sort_direction;
debugger;
params.page = page;
params.per_page = pagesize;
setParams(params);
@ -5674,7 +5673,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
// 加入试题蓝触发的回调
var handleReloadData = function handleReloadData() {
// params.per_page = 20;
params.per_page = 20;
setParams(params);
getItemBanks(params);
setIsPiliangRevoke(false);
@ -5683,7 +5682,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var handleDeleteData = function handleDeleteData(deleteId) {
var page = deleteId.length === problemsetList.length && params.page > 1 ? params.page - 1 : params.page;
params.page = page;
// params.per_page = 20;
params.per_page = 20;
getBasketList();
setParams(params);
getItemBanks(params);
@ -6089,7 +6088,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sub_discipline_id = '';
params.tag_discipline_id = '';
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
params.group_id = Math.abs(id);
setKnowledgeValue(-1);
setParams(params);
@ -6122,7 +6121,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
}
});
getItemBanks(params);
case 13:
case 14:
case "end":
return _context13.stop();
}
@ -7436,7 +7435,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.sort_by = item.type;
params.sort_direction = item.direction;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
setSortMenuName(item.name);
setParams(params);
getItemBanks(params);
@ -7477,7 +7476,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
params.item_type = null;
params.difficulty = null;
params.page = 1;
// params.per_page = 20;
params.per_page = 20;
params.group_id = id;
setKnowledgeValue(-1);
setParams(params);

@ -4883,7 +4883,7 @@ function OjProblem_reducer(state, action) {
}
}
/* harmony default export */ var OjProblem = (function (_ref) {
var _data$test_case, _saveData$current3, _window$location;
var _data$test_case, _window$location;
var children = _ref.children;
var _useReducer = (0,_react_17_0_2_react.useReducer)(OjProblem_reducer, initalilState),
_useReducer2 = slicedToArray_default()(_useReducer, 2),
@ -5620,7 +5620,7 @@ function OjProblem_reducer(state, action) {
}
var rightPanelOption = {
input: data === null || data === void 0 || (_data$test_case = data.test_case) === null || _data$test_case === void 0 ? void 0 : _data$test_case.input,
language: ((_saveData$current3 = saveData.current) === null || _saveData$current3 === void 0 ? void 0 : _saveData$current3.language) || (hack === null || hack === void 0 ? void 0 : hack.language),
language: hack === null || hack === void 0 ? void 0 : hack.language,
code: hack === null || hack === void 0 ? void 0 : hack.code,
title: 'main.' + LanguageSuf[hack === null || hack === void 0 ? void 0 : hack.language],
modify_code: hack === null || hack === void 0 ? void 0 : hack.modify_code,

@ -271,6 +271,10 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
shixunsList: shixunsList
};
})(ShixunsListPage));
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(64606);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(69718);
;// CONCATENATED MODULE: ./src/pages/Search/index.tsx
@ -290,19 +294,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
var Search = input/* default */.Z.Search;
var Navs = [{
id: 'subject',
title: '实践课程'
}, {
id: 'shixun',
title: '实践项目'
}, {
id: 'course',
title: '教学课堂'
}
// { id: 'memo', title: '交流问答' },
];
var Types = /*#__PURE__*/function (Types) {
Types[Types["GET_LIST"] = 0] = "GET_LIST";
Types[Types["CHANGE_PAGE"] = 1] = "CHANGE_PAGE";
@ -340,7 +333,10 @@ function reducer(state, action) {
throw new Error();
}
}
/* harmony default export */ var pages_Search = (function () {
var Search = input/* default */.Z.Search;
var SearchTab = function SearchTab(_ref) {
var _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3;
var globalSetting = _ref.globalSetting;
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
@ -378,8 +374,28 @@ function reducer(state, action) {
sort_by = state.sort_by,
can_copy = state.can_copy,
searchIndex = state.searchIndex;
var Navs = [{
id: 'subject',
title: '实践课程',
hidden: (0,util/* isLinkHidden */.Ws)(((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || [], "/paths")
}, {
id: 'shixun',
title: '实践项目',
hidden: (0,util/* isLinkHidden */.Ws)(((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || [], "/shixuns")
}, {
id: 'course',
title: '教学课堂',
hidden: (0,util/* isLinkHidden */.Ws)(((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || [], "/classrooms")
}
// { id: 'memo', title: '交流问答' },
].filter(function (item) {
return !item.hidden;
});
(0,_react_17_0_2_react.useEffect)(function () {
state.type = tabs || 'subject';
var _Navs$find;
state.type = tabs || ((_Navs$find = Navs.find(function (item) {
return !item.hidden;
})) === null || _Navs$find === void 0 ? void 0 : _Navs$find.id);
dispatch({
type: Types.CHANGE_KEYWORD,
payload: {
@ -520,111 +536,115 @@ function reducer(state, action) {
},
onSearch: getData
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["navs-container"],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["navs"],
children: Navs.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
id: item.id,
className: item.id === type ? Searchmodules.active : '',
onClick: onChangeType,
children: item.title
})
}, item.id);
}), Navs.some(function (item) {
return !item.hidden;
}) ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["navs-container"],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["navs"],
children: Navs.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
id: item.id,
className: item.id === type ? Searchmodules.active : '',
onClick: onChangeType,
children: item.title
})
}, item.id);
})
})
})
}), type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsx)(ShixunFilter, {
onChange: function onChange(p) {
onChangeAll({});
setShixunQuery(objectSpread2_default()({}, p));
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["search-result-container"],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules["search-result-body"],
children: [loading && /*#__PURE__*/(0,jsx_runtime.jsx)(Spinner/* default */.Z, {
message: "\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u6570\u636E\u4E2D..."
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "1",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "current ml10",
onClick: function onClick() {
onChangeAll({
sort_by: "myshixuns_count",
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(sort_by === 'myshixuns_count' && !!order_by && 'c-light-primary', " font14"),
children: "\u70ED\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(sort_by === 'myshixuns_count' && order_by),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "current ml40",
onClick: function onClick() {
onChangeAll({
sort_by: "averge_star",
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(sort_by === 'averge_star' && !!order_by && 'c-light-primary', " font14"),
children: "\u8BC4\u5206"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(sort_by === 'averge_star' && order_by),
}), type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsx)(ShixunFilter, {
onChange: function onChange(p) {
onChangeAll({});
setShixunQuery(objectSpread2_default()({}, p));
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["search-result-container"],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules["search-result-body"],
children: [loading && /*#__PURE__*/(0,jsx_runtime.jsx)(Spinner/* default */.Z, {
message: "\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u6570\u636E\u4E2D..."
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [type === 'shixun' && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "1",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "current ml10",
onClick: function onClick() {
onChangeAll({
sort_by: "myshixuns_count",
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
className: "".concat(sort_by === 'myshixuns_count' && !!order_by && 'c-light-primary', " font14"),
children: "\u70ED\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(sort_by === 'myshixuns_count' && order_by),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml100",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
onClick: function onClick(e) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "current ml40",
onClick: function onClick() {
onChangeAll({
can_copy: e.target.checked ? true : null
sort_by: "averge_star",
order_by: order_by === null ? "desc" : order_by === 'asc' ? null : "asc"
});
},
children: "\u5141\u8BB8\u590D\u5236"
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(sort_by === 'averge_star' && !!order_by && 'c-light-primary', " font14"),
children: "\u8BC4\u5206"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "edu-sorter current ".concat(sort_by === 'averge_star' && order_by),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-up"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-sanjiaoxing-down"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml100",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
onClick: function onClick(e) {
onChangeAll({
can_copy: e.target.checked ? true : null
});
},
children: "\u5141\u8BB8\u590D\u5236"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Searchmodules.tip,
children: ["\u5171\u627E\u5230\u76F8\u5173\u7ED3\u679C", /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [" ", count, " "]
}), "\u4E2A"]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Searchmodules.tip,
children: ["\u5171\u627E\u5230\u76F8\u5173\u7ED3\u679C", /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [" ", count, " "]
}), "\u4E2A"]
})
})]
}), childPanel[type]]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["search-footer"],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showQuickJumper: true,
current: page,
onChange: onPageChange,
pageSize: 20,
showSizeChanger: false,
hideOnSinglePage: true,
total: count
})
})]
}), childPanel[type]]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules["search-footer"],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showQuickJumper: true,
current: page,
onChange: onPageChange,
pageSize: 20,
showSizeChanger: false,
hideOnSinglePage: true,
total: count
})
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})]
});
});
function Desc(_ref) {
var data = _ref.data;
};
function Desc(_ref2) {
var data = _ref2.data;
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: data ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules.desc,
@ -640,8 +660,8 @@ function Desc(_ref) {
})
});
}
function MemoPanel(_ref2) {
var data = _ref2.data;
function MemoPanel(_ref3) {
var data = _ref3.data;
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
@ -677,8 +697,8 @@ function MemoPanel(_ref2) {
})
});
}
function CoursePanel(_ref3) {
var data = _ref3.data;
function CoursePanel(_ref4) {
var data = _ref4.data;
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
@ -762,8 +782,8 @@ function CoursePanel(_ref3) {
})
});
}
function SubjectPanel(_ref4) {
var data = _ref4.data;
function SubjectPanel(_ref5) {
var data = _ref5.data;
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
@ -852,8 +872,8 @@ function SubjectPanel(_ref4) {
})
});
}
function ShiXunPanel(_ref5) {
var data = _ref5.data;
function ShiXunPanel(_ref6) {
var data = _ref6.data;
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
@ -987,6 +1007,12 @@ function ShiXunPanel(_ref5) {
})
});
}
/* harmony default export */ var pages_Search = ((0,_umi_production_exports.connect)(function (_ref7) {
var globalSetting = _ref7.globalSetting;
return {
globalSetting: globalSetting
};
})(SearchTab));
/***/ }),

@ -1187,10 +1187,10 @@ function reducer(state, action) {
break;
}
setTimeout(function () {
var _res$data9, _res$data10, _res$data11, _taskData$myshixun2;
var _res$data9, _res$data10, _taskData$myshixun2;
onLayout();
iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
iframeRef.current.src = "/react/build/rdp.html?".concat(res !== null && res !== void 0 && (_res$data9 = res.data) !== null && _res$data9 !== void 0 && _res$data9.gpPort ? "gpPort=" + (res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.gpPort) + '&' + 'password=' + (res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.password) + '&' : '', "tpiId=").concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
iframeRef.current.src = "/react/build/rdp.html?".concat(res !== null && res !== void 0 && (_res$data9 = res.data) !== null && _res$data9 !== void 0 && _res$data9.gpPort ? "gpPort=" + (res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.gpPort) + '&' : '', "tpiId=").concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
dispatch({
type: Types.SET_LOADING,
payload: false

@ -340,7 +340,7 @@ var Banner = function Banner(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Menusmodules.nav,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
children: [!isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
className: activeKey === NavType.Classrooms ? Menusmodules.active : '',
to: "/users/".concat(username.current, "/classrooms"),
onClick: function onClick() {
@ -349,7 +349,7 @@ var Banner = function Banner(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-jiaoxueketang1 "
}), "\u6559\u5B66\u8BFE\u5802"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
}), !isShixunsHidden && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
className: activeKey === NavType.Shixuns ? Menusmodules.active : '',
to: "/users/".concat(username.current, "/shixuns"),
onClick: function onClick() {
@ -358,7 +358,7 @@ var Banner = function Banner(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shijianxiangmu "
}), "\u5B9E\u8DF5\u9879\u76EE"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
}), !isPathsHidden && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
className: activeKey === NavType.Paths ? Menusmodules.active : '',
to: "/users/".concat(username.current, "/paths"),
onClick: function onClick() {
@ -379,7 +379,7 @@ var Banner = function Banner(_ref) {
className: "iconfont icon-kaifaxiangmu "
}), "\u5F00\u53D1\u9879\u76EE"]
})
}), ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login) === (params === null || params === void 0 ? void 0 : params.username) && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
}), ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login) === (params === null || params === void 0 ? void 0 : params.username) && !isCompetitionHidden && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(username.current, "/competitions"),
onClick: function onClick() {
return setActiveKey(NavType.Teach);
@ -442,7 +442,7 @@ var Banner = function Banner(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tuandui "
}), "\u6559\u7814\u56E2\u961F"]
}), ((0,authority/* isSuperAdmins */.Ny)() || ((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.login) === username.current) && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
}), ((0,authority/* isSuperAdmins */.Ny)() || ((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.login) === username.current) && !isDatasetHidden && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(username.current, "/dataSet"),
onClick: function onClick() {
return setActiveKey(NavType.DataSet);

@ -309,7 +309,7 @@ function reducer(state, action) {
}
}
var RegisterComponent = function RegisterComponent(_ref) {
var _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4, _globalSetting$settin5, _globalSetting$settin6;
var _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4;
var validateName = _ref.validateName,
getCode = _ref.getCode,
register = _ref.register,
@ -566,7 +566,7 @@ var RegisterComponent = function RegisterComponent(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(unlock/* default */.Z, {
onValidate: onValidateName
})
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.is_local) && (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.is_need_code) == 'true' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin3 = globalSetting.setting) !== null && _globalSetting$settin3 !== void 0 && _globalSetting$settin3.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "code",
rules: [{
required: true,
@ -587,7 +587,7 @@ var RegisterComponent = function RegisterComponent(_ref) {
placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",
size: "large"
})
}), (globalSetting === null || globalSetting === void 0 || (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.is_need_code) !== 'true' && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "code",
rules: [{
required: true,
@ -631,7 +631,7 @@ var RegisterComponent = function RegisterComponent(_ref) {
placeholder: "\u8F93\u51658\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199",
visibilityToggle: false
})
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.is_local) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
}), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin4 = globalSetting.setting) !== null && _globalSetting$settin4 !== void 0 && _globalSetting$settin4.is_local) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
className: "service-terms",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,

File diff suppressed because one or more lines are too long

@ -1140,45 +1140,3 @@
padding: 10px 24px;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.2@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/vnc-setting/ServicePreview/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.tip___G7f9K {
padding: 20px;
font-size: 14px;
color: #CA7720;
background: #F6F7F9;
}
.title___IQM0U {
display: flex;
align-items: center;
margin-top: 22px;
margin-bottom: 11px;
font-weight: 600;
color: #333333;
}
.title___IQM0U b {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #333333;
margin-right: 6px;
}
.primary___GvQEk {
font-size: 14px;
color: #3061D0;
cursor: pointer;
}
.primary___GvQEk:hover {
color: #145DFF;
}
.del___VIxYG {
font-size: 14px;
color: #3061D0;
cursor: pointer;
}
.del___VIxYG:hover {
color: #E30000;
}

@ -1046,8 +1046,8 @@ var fetch = __webpack_require__(36057);
var tool_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII=";
// EXTERNAL MODULE: ./src/components/modal.tsx
var components_modal = __webpack_require__(80238);
// EXTERNAL MODULE: ./src/components/vnc-setting/index.tsx + 4 modules
var vnc_setting = __webpack_require__(7970);
// EXTERNAL MODULE: ./src/components/vnc-setting/index.tsx + 1 modules
var vnc_setting = __webpack_require__(406);
// EXTERNAL MODULE: ./src/utils/fullscreen.ts
var fullscreen = __webpack_require__(96480);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules

File diff suppressed because one or more lines are too long

@ -65,7 +65,7 @@
// Connect
guac.connect(`${parames.gpPort ? ('gpPort=' + parames.gpPort + '&' + 'password=' + parames.password + '&') : ''}` + "tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
guac.connect(`${parames.gpPort ? ('gpPort=' + parames.gpPort + '&') : ''}` + "tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
// Disconnect on close
window.onunload = function () {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save