Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent 0dce2e7017
commit d7cec2ffbf

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5670],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17781],{
/***/ 78405:
/*!********************************************************************************************************!*\
@ -46,55 +46,28 @@ if (false) {}
/***/ }),
/***/ 94422:
/*!******************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Collection/index.tsx + 3 modules ***!
\******************************************************************************/
/***/ 57966:
/*!************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Collection/Topic/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__, {
"default": function() { return /* binding */ Exercise_Collection; }
Z: function() { return /* binding */ Topic; }
});
// 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/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/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// UNUSED EXPORTS: MenuMore
// 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/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/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// 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/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Collectionmodules = ({"contentListWrap":"contentListWrap___Ddghn","li":"li___wvr6Y","bottom":"bottom___OePHJ","actionLeftItem":"actionLeftItem___Hv4KU","tipLabel":"tipLabel___t7Ubm","tipVal":"tipVal___wipZz","questionTypeName":"questionTypeName___uMnDn","more":"more___GKswk","textBtn":"textBtn___zsrM5","line":"line___g8Y3f","b1":"b1___Hkokb","b2":"b2___bklGC"});
// 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: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(18747);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
@ -329,20 +302,31 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
className: "mr10",
onChange: handleSelectCheck,
checked: selectIds.includes(data.id)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
return setVisible(!visible);
if (data.is_wrong_exercise) {
return;
}
setVisible(!visible);
},
className: Topicmodules.title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
children: [data.is_wrong_exercise && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
marginRight: 8
},
className: "iconfont icon-tishi7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showLines: 1,
showTextOnly: true,
className: Topicmodules.topicTitleContent,
value: (data === null || data === void 0 ? void 0 : data.item_type) === "BPROGRAM" ? data === null || data === void 0 || (_data$program_attr3 = data.program_attr) === null || _data$program_attr3 === void 0 ? void 0 : _data$program_attr3.description : data.question_title
}, 1)
}, 1)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
return setVisible(!visible);
if (data.is_wrong_exercise) {
return;
}
setVisible(!visible);
},
className: Topicmodules.tr,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
@ -725,372 +709,6 @@ var MenuMore = function MenuMore(_ref2) {
});
};
/* harmony default export */ var Topic = (List);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(50883);
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(33571);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var Collection = function Collection(_ref) {
var _user$userInfo, _user$userInfo2;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
cancleCollectVis = _useState2[0],
setCancleCollectVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var childRefs = (0,_react_17_0_2_react.useRef)({});
var course_id = user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_id;
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
cancleId = _useState6[0],
setCancleId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
course_id: course_id || params.coursesId,
page: 1,
limit: 10
}),
_useState8 = slicedToArray_default()(_useState7, 2),
routeParams = _useState8[0],
setRouteParams = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
spinLoading = _useState10[0],
setSpinLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(20),
_useState12 = slicedToArray_default()(_useState11, 2),
problemsetCount = _useState12[0],
setProblemsetCount = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
problemsetList = _useState14[0],
setProblemsetList = _useState14[1];
var questionType = [{
type: 'SINGLE',
name: '单选题',
question_type: 0
}, {
type: 'MULTIPLE',
name: '多选题',
question_type: 1
}, {
type: 'JUDGMENT',
name: '判断题',
question_type: 2
}, {
type: 'PROGRAM',
name: '编程题',
question_type: 6
}, {
type: 'SUBJECTIVE',
name: '简答题',
question_type: 4
}, {
type: 'COMPLETION',
name: '填空题',
question_type: 3
}, {
type: 'COMBINATION',
name: '组合题',
question_type: 7
}, {
type: 'BPROGRAM',
name: '程序填空题',
question_type: 8
}];
var difficultyMapping = {
1: "简单",
2: "适中",
3: "困难"
};
var handleDetailClick = function handleDetailClick(id) {
if (childRefs.current[id]) {
childRefs.current[id].expandDetail();
}
};
var getCollectionList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setSpinLoading(true);
_context.next = 3;
return (0,service_exercise/* getCollectQuestions */.BV)(objectSpread2_default()({}, routeParams));
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setProblemsetCount((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count) || 0);
setProblemsetList((res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list) || []);
}
setSpinLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getCollectionList() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getCollectionList();
}, [course_id]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Collectionmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 || (_user$userInfo2 = _user$userInfo2.course) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u6536\u85CF\u5939"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12 current",
onClick: function onClick() {
_umi_production_exports.history.back();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u6536\u85CF\u5939"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Collectionmodules.contentListWrap,
children: problemsetCount !== 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: [problemsetList.map(function (v, index) {
var _questionType$find;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Collectionmodules.top,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Topic, {
data: v,
selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false,
ref: function ref(el) {
return childRefs.current[v.question_id] = el;
}
}, v.question_id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(Collectionmodules.actionLeftItem, " ").concat(Collectionmodules.questionTypeName),
children: ["No.", index + 1]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(Collectionmodules.actionLeftItem, " ").concat(Collectionmodules.questionTypeName),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Collectionmodules.tipLabel, " mr5"),
children: "\u9898\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Collectionmodules.tipVal,
children: (_questionType$find = questionType.find(function (item) {
return item.question_type === v.question_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Collectionmodules.actionLeftItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Collectionmodules.tipLabel, " mr5"),
children: "\u96BE\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Collectionmodules.tipVal,
children: difficultyMapping[v.difficulty]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.more,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Collectionmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
setCancleCollectVis(true);
setCancleId(v.question_id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E53333'
},
children: "\u53D6\u6D88\u6536\u85CF"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b2
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Collectionmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
handleDetailClick(v.question_id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5",
style: {
color: '#3061D0'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0'
},
children: "\u8BE6\u60C5"
})]
})]
})]
})]
}, index);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
defaultPageSize: 10,
current: (routeParams === null || routeParams === void 0 ? void 0 : routeParams.page) || 1,
showSizeChanger: false,
showQuickJumper: true
// hideOnSinglePage
,
total: problemsetCount,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
className: "mb20",
onChange: function onChange(current) {
params.page = current;
setRouteParams(objectSpread2_default()({}, params));
getCollectionList();
}
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u63D0\u793A",
open: cancleCollectVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setCancleCollectVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var bodyParams, res, updatedRefs;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setBtnLoading(true);
bodyParams = {
container_id: cancleId,
container_type: 'ExerciseQuestion',
course_id: course_id
};
_context2.next = 4;
return (0,service_exercise/* cancleCollectQuestion */._o)(objectSpread2_default()({}, bodyParams));
case 4:
res = _context2.sent;
if (res.status === 0) {
message/* default */.ZP.success('取消成功!');
updatedRefs = objectSpread2_default()({}, childRefs.current);
delete updatedRefs[cancleId]; // 清除已删除项的引用
childRefs.current = updatedRefs; // 更新引用对象
getCollectionList();
}
setBtnLoading(false);
setCancleCollectVis(false);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u786E\u8BA4\u8981\u5C06\u8BE5\u8BD5\u9898\u53D6\u6D88\u6536\u85CF\u5417\uFF1F"
})
})]
});
};
/* harmony default export */ var Exercise_Collection = ((0,_umi_production_exports.connect)(function (_ref4) {
var exercise = _ref4.exercise,
loading = _ref4.loading,
user = _ref4.user,
globalSetting = _ref4.globalSetting,
classroomList = _ref4.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(Collection));
/***/ }),

File diff suppressed because one or more lines are too long

@ -4472,7 +4472,7 @@ module.exports = function (argument) {
/***/ }),
/***/ 95005:
/***/ 3527:
/*!************************************************************************!*\
!*** ./node_modules/_core-js@3.38.1@core-js/internals/to-primitive.js ***!
\************************************************************************/
@ -4517,7 +4517,7 @@ module.exports = function (input, pref) {
"use strict";
var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ 95005);
var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ 3527);
var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ 23862);
// `ToPropertyKey` abstract operation

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

@ -3838,8 +3838,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -3864,6 +3862,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -3931,13 +3931,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -3950,9 +3950,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -1936,8 +1936,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -1962,6 +1960,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -2029,13 +2029,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -2048,9 +2048,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -1804,8 +1804,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -1830,6 +1828,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -1897,13 +1897,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -1916,9 +1916,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -1032,8 +1032,8 @@ var EditAttendance = function EditAttendance(_ref) {
placeholder: "\u8BF7\u9009\u62E9\u6240\u5C5E\u4E13\u4E1A",
showSearch: true,
filterOption: function filterOption(input, option) {
var _option$label;
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
var _option$name;
return ((_option$name = option === null || option === void 0 ? void 0 : option.name) !== null && _option$name !== void 0 ? _option$name : '').toLowerCase().includes(input.toLowerCase());
},
fieldNames: {
label: 'name',
@ -1952,8 +1952,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -1978,6 +1976,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -2045,13 +2045,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -2064,9 +2064,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -1316,8 +1316,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -1342,6 +1340,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -1409,13 +1409,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -1428,9 +1428,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -0,0 +1,423 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5670],{
/***/ 87734:
/*!******************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Collection/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__, {
"default": function() { return /* binding */ Exercise_Collection; }
});
// 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/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/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/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// 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/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Collectionmodules = ({"contentListWrap":"contentListWrap___Ddghn","li":"li___wvr6Y","bottom":"bottom___OePHJ","actionLeftItem":"actionLeftItem___Hv4KU","tipLabel":"tipLabel___t7Ubm","tipVal":"tipVal___wipZz","questionTypeName":"questionTypeName___uMnDn","more":"more___GKswk","textBtn":"textBtn___zsrM5","line":"line___g8Y3f","b1":"b1___Hkokb","b2":"b2___bklGC"});
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/Topic/index.tsx + 1 modules
var Topic = __webpack_require__(57966);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(50883);
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(33571);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var Collection = function Collection(_ref) {
var _user$userInfo, _user$userInfo2;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
cancleCollectVis = _useState2[0],
setCancleCollectVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var childRefs = (0,_react_17_0_2_react.useRef)({});
var course_id = user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_id;
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
cancleId = _useState6[0],
setCancleId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
course_id: course_id || params.classId,
page: 1,
limit: 10
}),
_useState8 = slicedToArray_default()(_useState7, 2),
routeParams = _useState8[0],
setRouteParams = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
spinLoading = _useState10[0],
setSpinLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(20),
_useState12 = slicedToArray_default()(_useState11, 2),
problemsetCount = _useState12[0],
setProblemsetCount = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
problemsetList = _useState14[0],
setProblemsetList = _useState14[1];
var questionType = [{
type: 'SINGLE',
name: '单选题',
question_type: 0
}, {
type: 'MULTIPLE',
name: '多选题',
question_type: 1
}, {
type: 'JUDGMENT',
name: '判断题',
question_type: 2
}, {
type: 'PROGRAM',
name: '编程题',
question_type: 6
}, {
type: 'SUBJECTIVE',
name: '简答题',
question_type: 4
}, {
type: 'COMPLETION',
name: '填空题',
question_type: 3
}, {
type: 'COMBINATION',
name: '组合题',
question_type: 7
}, {
type: 'BPROGRAM',
name: '程序填空题',
question_type: 8
}];
var difficultyMapping = {
1: "简单",
2: "适中",
3: "困难"
};
var handleDetailClick = function handleDetailClick(id) {
if (childRefs.current[id]) {
childRefs.current[id].expandDetail();
}
};
var getCollectionList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setSpinLoading(true);
_context.next = 3;
return (0,service_exercise/* getCollectQuestions */.BV)(objectSpread2_default()({}, routeParams));
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setProblemsetCount((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count) || 0);
setProblemsetList((res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list) || []);
}
setSpinLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getCollectionList() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getCollectionList();
}, [course_id]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Collectionmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 || (_user$userInfo2 = _user$userInfo2.course) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u6536\u85CF\u5939"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12 current",
onClick: function onClick() {
_umi_production_exports.history.back();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u6536\u85CF\u5939"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Collectionmodules.contentListWrap,
children: problemsetCount !== 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: [problemsetList.map(function (v, index) {
var _questionType$find;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Collectionmodules.top,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Topic/* default */.Z, {
data: v,
selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false,
ref: function ref(el) {
return childRefs.current[v.question_id] = el;
}
}, v.question_id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(Collectionmodules.actionLeftItem, " ").concat(Collectionmodules.questionTypeName),
children: ["No.", index + 1]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(Collectionmodules.actionLeftItem, " ").concat(Collectionmodules.questionTypeName),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Collectionmodules.tipLabel, " mr5"),
children: "\u9898\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Collectionmodules.tipVal,
children: (_questionType$find = questionType.find(function (item) {
return item.question_type === v.question_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: Collectionmodules.actionLeftItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Collectionmodules.tipLabel, " mr5"),
children: "\u96BE\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Collectionmodules.tipVal,
children: difficultyMapping[v.difficulty]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.more,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Collectionmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
setCancleCollectVis(true);
setCancleId(v.question_id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E53333'
},
children: "\u53D6\u6D88\u6536\u85CF"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Collectionmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: Collectionmodules.b2
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Collectionmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
handleDetailClick(v.question_id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5",
style: {
color: '#3061D0'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0'
},
children: "\u8BE6\u60C5"
})]
})]
})]
})]
}, index);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
defaultPageSize: 10,
current: (routeParams === null || routeParams === void 0 ? void 0 : routeParams.page) || 1,
showSizeChanger: false,
showQuickJumper: true
// hideOnSinglePage
,
total: problemsetCount,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
className: "mb20",
onChange: function onChange(current) {
params.page = current;
setRouteParams(objectSpread2_default()({}, params));
getCollectionList();
}
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u63D0\u793A",
open: cancleCollectVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setCancleCollectVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var bodyParams, res, updatedRefs;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setBtnLoading(true);
bodyParams = {
container_id: cancleId,
container_type: 'ExerciseQuestion',
course_id: course_id
};
_context2.next = 4;
return (0,service_exercise/* cancleCollectQuestion */._o)(objectSpread2_default()({}, bodyParams));
case 4:
res = _context2.sent;
if (res.status === 0) {
message/* default */.ZP.success('取消成功!');
updatedRefs = objectSpread2_default()({}, childRefs.current);
delete updatedRefs[cancleId]; // 清除已删除项的引用
childRefs.current = updatedRefs; // 更新引用对象
getCollectionList();
}
setBtnLoading(false);
setCancleCollectVis(false);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u786E\u8BA4\u8981\u5C06\u8BE5\u8BD5\u9898\u53D6\u6D88\u6536\u85CF\u5417\uFF1F"
})
})]
});
};
/* harmony default export */ var Exercise_Collection = ((0,_umi_production_exports.connect)(function (_ref4) {
var exercise = _ref4.exercise,
loading = _ref4.loading,
user = _ref4.user,
globalSetting = _ref4.globalSetting,
classroomList = _ref4.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(Collection));
/***/ })
}]);

@ -81,24 +81,24 @@
cursor: pointer;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Problemset/components/Topic/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___K3pXk {
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Collection/Topic/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___I6OPm {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___JNXiy {
.flex_space_between___iLJrg {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___lX_K7 {
.flex_box_vertical_center___LNFah {
align-items: center;
box-align: center;
}
.flex_box_center_end___ESJAL {
.flex_box_center_end___nRzsw {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
@ -108,31 +108,31 @@
box-align: center;
box-pack: end;
}
.flex_box_column___nMTYm {
.flex_box_column___pGG6K {
flex-direction: column;
box-orient: block-axis;
}
.line___cNtUM {
.line___IxgoQ {
display: inline-flex;
align-items: center;
margin-right: 20px;
margin-left: 20px;
}
.line___cNtUM .b1___xIRxk {
.line___IxgoQ .b1___BIlYm {
display: inline-block;
width: 1px;
height: 38px;
margin-right: 0px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 50%, rgba(255, 255, 255, 0) 100%);
}
.line___cNtUM .b2___N5uit {
.line___IxgoQ .b2___eH_TL {
display: inline-block;
width: 1px;
height: 38px;
margin-left: 0px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #e2e2e2 50%, rgba(255, 255, 255, 0) 100%);
}
.list___SBMGo {
.list___LRzHD {
display: flex;
align-items: center;
justify-content: flex-start;
@ -140,7 +140,7 @@
background-color: #fff;
padding: 0 13px 0 20px;
}
.list___SBMGo .title___zQP91 {
.list___LRzHD .title___NqL77 {
display: flex;
flex: 1 1;
cursor: pointer;
@ -148,66 +148,66 @@
width: 100%;
white-space: nowrap;
}
.list___SBMGo .title___zQP91 > div {
.list___LRzHD .title___NqL77 > div {
overflow: hidden;
text-overflow: ellipsis;
}
.list___SBMGo .tr___uaxLL {
.list___LRzHD .tr___oh4ZQ {
color: #000;
cursor: pointer;
font-size: 14px;
}
.list___SBMGo .tr___uaxLL i {
.list___LRzHD .tr___oh4ZQ i {
font-size: 12px;
transition: 0.5s;
display: inline-block;
margin-left: 6px;
}
.itemDetail___Ye51x {
.itemDetail___x4wVe {
padding: 30px 44px;
background-color: #f6f7f9;
}
.answerWrapper___WJAPa {
.answerWrapper___WmRX8 {
background-color: #fff;
border-radius: 6px;
padding: 40px 15px 30px;
position: relative;
}
.answerWrapper___WJAPa .decoration___fOLFB {
.answerWrapper___WmRX8 .decoration___NSAA8 {
height: 28px;
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
}
.row___FvSRM {
.row___GvJZr {
display: box;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 0px;
}
.typeRow___qpDsw {
.typeRow___GCorV {
display: box;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.type___a8Bs6 {
.type___sdOEF {
display: box;
display: flex;
color: #000;
font-size: 14px;
line-height: 17px;
}
.typeName___EfvMr {
.typeName___cP0Fk {
color: #0152d9;
cursor: default;
height: 26px;
line-height: 26px;
}
.typeIcon___XnhBc {
.typeIcon___gM3oq {
min-width: 50px;
line-height: 20px;
height: 20px;
@ -218,19 +218,19 @@
text-align: center;
padding: 0 3px;
}
.unpublished___h3A34 {
.unpublished___umjDt {
color: #999999;
border: 1px solid #999999;
}
.private___Ok_kP {
.private___Lrkar {
color: #fa6400;
border: 1px solid #fa6400;
}
.public___V5_HF {
.public___Q9iOp {
color: #44d7b6;
border: 1px solid #44d7b6;
}
.reviewFlag___MWDMc {
.reviewFlag___nDcw9 {
border: 1px solid #44d7b6;
background-color: rgba(68, 215, 182, 0.2);
color: #44d7b6;
@ -238,25 +238,25 @@
padding: 1px 5px;
border-radius: 5px;
}
.reviewFlag___MWDMc:hover {
.reviewFlag___nDcw9:hover {
color: #44d7b6;
}
.typeRightAction___zwJ4e {
.typeRightAction___Ma2oC {
display: box;
display: flex;
}
.actionLink___XxdsL {
.actionLink___ZfgTJ {
color: #333;
padding: 10px 0;
}
.actionIcon___YoZs8 {
.actionIcon___dDZzY {
line-height: 26px;
color: #0152d9;
margin-left: 5px;
margin-right: 4px;
font-size: 14px;
}
.topicTitle___TXfB_ {
.topicTitle___BjW69 {
font-weight: bold;
font-size: 16px;
cursor: default;
@ -264,16 +264,16 @@
line-height: 28px;
padding-right: 5px;
}
.topicTitleContent___MceUW {
.topicTitleContent___qPqdD {
font-size: 14px;
color: #000;
line-height: 24px;
font-family: auto;
}
.topicTitleContent___MceUW p {
.topicTitleContent___qPqdD p {
line-height: 28px;
}
.judgmentContent___Adte7 {
.judgmentContent___mpe1a {
display: box;
display: flex;
flex-direction: row;
@ -282,15 +282,15 @@
color: #000;
margin-top: 10px;
}
.judgmentContent___Adte7 span {
.judgmentContent___mpe1a span {
font-size: 14px;
}
.programContent___R8AFa {
.programContent___WdTpf {
color: #000;
line-height: 28px;
font-size: 14px;
}
.otherContent___CNAVC {
.otherContent___BrbWb {
display: box;
display: flex;
flex-direction: column;
@ -298,14 +298,14 @@
font-size: 14px;
line-height: 19px;
}
.combinationContent___NWKpD {
.combinationContent___JjbG6 {
display: flex;
flex-direction: column;
color: #000;
width: 100%;
font-size: 14px;
}
.combinationContent___NWKpD .con___MJkTE {
.combinationContent___JjbG6 .con___T_fCV {
width: calc(100% + 40px);
background: #f1f1f1;
padding: 10px 20px;
@ -313,43 +313,43 @@
margin-left: -20px;
z-index: 10px;
}
.combinationContent___NWKpD .con___MJkTE > div {
.combinationContent___JjbG6 .con___T_fCV > div {
display: flex;
margin-top: 7px;
}
.combinationContent___NWKpD .con___MJkTE > div > span {
.combinationContent___JjbG6 .con___T_fCV > div > span {
line-height: 27px;
flex-shrink: 0;
}
.otherContentItem___sXGMT {
.otherContentItem___tdZtY {
display: box;
display: flex;
flex-direction: row;
}
.otherContentItem___sXGMT p {
.otherContentItem___tdZtY p {
line-height: 28px;
font-size: 14px;
flex-shrink: 0;
}
.otehrContentHtml___MKkjT {
.otehrContentHtml___lpuQj {
font-size: 16px;
color: #000;
line-height: 28px;
}
.difficultyRow___E6YVK {
.difficultyRow___s1lWQ {
height: 28px;
line-height: 28px;
font-size: 14px;
color: #888888;
}
.updateTimeRow___MPFJY {
.updateTimeRow___wi_9t {
display: box;
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
}
.updateTimeWrap___iIz5W {
.updateTimeWrap___eUId1 {
display: box;
display: flex;
flex-direction: row;
@ -358,12 +358,12 @@
font-size: 14px;
line-height: 28px;
}
.updateTimeContent___CpqJg {
.updateTimeContent___lyAj1 {
line-height: 28px;
font-size: 14px;
color: #bbbbbb;
}
.programLanguage___lku0d {
.programLanguage___qdCQr {
line-height: 28px;
font-size: 14px;
max-width: 120px;
@ -372,12 +372,12 @@
white-space: nowrap;
color: #000;
}
.updateTimeRowAction___Y6grB {
.updateTimeRowAction___LXNUz {
display: box;
display: flex;
flex-direction: row;
}
.bottomAction___sQwM3 {
.bottomAction___Q99Jr {
border-radius: 5px;
text-align: center;
font-size: 12px;
@ -388,42 +388,42 @@
display: inline-block;
margin-left: 10px;
}
.borderColorBlue___vZe0j {
.borderColorBlue___Rm9D6 {
border: 1px solid #0152d9;
background: #0152d9;
color: #fff;
line-height: 30px;
}
.borderColorBlue___vZe0j:hover {
.borderColorBlue___Rm9D6:hover {
color: #fff;
}
.borderColorRed___GPm9E {
.borderColorRed___gQ2ZA {
border: 1px solid red;
color: red;
line-height: 30px;
}
.borderColorRed___GPm9E:hover {
.borderColorRed___gQ2ZA:hover {
color: red;
}
.borderColorFFF___izaeA {
.borderColorFFF___GpuFz {
border: 1px solid #0152d9;
background: #f5f5f5;
color: #0152d9;
border-radius: 5px;
}
.borderColorFFF___izaeA:hover {
.borderColorFFF___GpuFz:hover {
color: #0152d9;
}
.borderColorGray___WdIyN {
.borderColorGray___XH9MF {
border: 1px solid #cccccc;
background: #cccccc;
color: #ffffff;
line-height: 30px;
}
.borderColorGray___WdIyN:hover {
.borderColorGray___XH9MF:hover {
color: #ffffff;
}
.selectIcon___I35Ch {
.selectIcon____TZUs {
color: #ffffff;
height: 20px;
line-height: 20px;
@ -432,14 +432,14 @@
margin-right: 5px;
font-size: 12px;
}
.colorGreen___yFw84 {
.colorGreen___N0QId {
color: #32bd8c;
}
.parseAnswerBorder___tmhXi {
.parseAnswerBorder___ZKaAI {
border-top: 1px solid #eeeeee;
margin-top: 23px;
}
.answer___c9YYj {
.answer___lgjDy {
display: box;
display: flex;
flex-direction: row;
@ -447,11 +447,11 @@
font-size: 14px;
margin-top: 15px;
}
.answerHtml___sp4Xx {
.answerHtml___XoyIa {
color: #000;
font-size: 14px;
}
.parse___Lif5r {
.parse___V1s_V {
display: box;
display: flex;
flex-direction: row;
@ -459,25 +459,25 @@
font-size: 14px;
margin-top: 5px;
}
.parseText___KMhnK {
.parseText___tGhVa {
line-height: 28px;
font-size: 14px;
word-break: break-word;
color: #000;
flex-shrink: 0;
}
.parseAnswer___aFs0o {
.parseAnswer___U3QWo {
word-break: break-word;
line-height: 28px;
font-size: 14px;
color: #000;
}
.parseAnswerHtml___AfP6o {
.parseAnswerHtml___NTCF6 {
font-size: 14px;
color: #000;
line-height: 28px;
}
.actionBar___Q6e1E {
.actionBar___nC_Ze {
display: flex;
flex-direction: row;
justify-content: space-between;
@ -488,7 +488,7 @@
padding: 0 10px;
border-radius: 5px;
}
.know___EtJbV {
.know___Ph9fk {
display: inline-block;
max-width: 58px;
overflow: hidden;
@ -497,16 +497,16 @@
color: #111111;
vertical-align: bottom;
}
.menu___ODbWA > li {
.menu___efhHE > li {
text-align: center;
}
.bottom___yLg8j {
.bottom___leXTS {
text-align: end;
font-size: 14px;
margin-bottom: 10px;
background-color: #f6f7f9;
}
.bottom___yLg8j span {
.bottom___leXTS span {
margin-left: 20px;
cursor: pointer;
display: inline-block;
@ -519,16 +519,16 @@
border: 1px solid #999999;
color: #666666;
}
.bottom___yLg8j span i {
.bottom___leXTS span i {
display: inline-block;
transform: rotate(180deg) scale(0.7) translate(-4px, 2px);
font-size: 12px;
}
.bottom___yLg8j span:hover {
.bottom___leXTS span:hover {
color: #0152d9;
border: 1px solid #0152d9;
}
.textBtn___p8TrW {
.textBtn___IOE8E {
font-size: 14px;
font-weight: 400;
color: #5f6368;

@ -0,0 +1,427 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[76737],{
/***/ 70505:
/*!************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/MisCollection/CollectionList/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__, {
"default": function() { return /* binding */ CollectionList; }
});
// 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/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/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/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// 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/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/CollectionList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CollectionListmodules = ({"contentListWrap":"contentListWrap___i61gD","li":"li___gxMyq","bottom":"bottom___Dd6Ho","actionLeftItem":"actionLeftItem___fPOL6","questionTypeName":"questionTypeName___PLOrd","more":"more___cxQWQ","textBtn":"textBtn___RJoUd","line":"line___cIykK","b1":"b1___Ia8NJ","b2":"b2___auPd6","btn":"btn___zsCi9"});
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Collection/Topic/index.tsx + 1 modules
var Topic = __webpack_require__(57966);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(50883);
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(33571);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/CollectionList/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var MisCollection = function MisCollection(_ref) {
var _user$userInfo, _user$userInfo2;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
cancleCollectVis = _useState2[0],
setCancleCollectVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var childRefs = (0,_react_17_0_2_react.useRef)({});
var course_id = user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_id;
var _useState5 = (0,_react_17_0_2_react.useState)(''),
_useState6 = slicedToArray_default()(_useState5, 2),
cancleId = _useState6[0],
setCancleId = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
course_id: course_id || params.classId,
page: 1,
limit: 10
}),
_useState8 = slicedToArray_default()(_useState7, 2),
routeParams = _useState8[0],
setRouteParams = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
spinLoading = _useState10[0],
setSpinLoading = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(20),
_useState12 = slicedToArray_default()(_useState11, 2),
problemsetCount = _useState12[0],
setProblemsetCount = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
problemsetList = _useState14[0],
setProblemsetList = _useState14[1];
var questionType = [{
type: 'SINGLE',
name: '单选题',
question_type: 0
}, {
type: 'MULTIPLE',
name: '多选题',
question_type: 1
}, {
type: 'JUDGMENT',
name: '判断题',
question_type: 2
}, {
type: 'PROGRAM',
name: '编程题',
question_type: 6
}, {
type: 'SUBJECTIVE',
name: '简答题',
question_type: 4
}, {
type: 'COMPLETION',
name: '填空题',
question_type: 3
}, {
type: 'COMBINATION',
name: '组合题',
question_type: 7
}, {
type: 'BPROGRAM',
name: '程序填空题',
question_type: 8
}];
var difficultyMapping = {
1: "简单",
2: "适中",
3: "困难"
};
var handleDetailClick = function handleDetailClick(id, isWrongQuestion) {
if (isWrongQuestion) {
return;
}
if (childRefs.current[id]) {
childRefs.current[id].expandDetail();
}
};
var getCollectionList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, _res$data2;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setSpinLoading(true);
_context.next = 3;
return (0,service_exercise/* collectExerciseQuestion */.Kw)(objectSpread2_default()({}, routeParams));
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setProblemsetCount((res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count) || 0);
setProblemsetList((res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list) || []);
}
setSpinLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getCollectionList() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getCollectionList();
}, [course_id]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: CollectionListmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 || (_user$userInfo2 = _user$userInfo2.course) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/misCollection"),
children: "\u9519\u9898\u96C6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u9519\u9898\u5217\u8868"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12 current",
onClick: function onClick() {
_umi_production_exports.history.back();
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u9519\u9898\u5217\u8868"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CollectionListmodules.contentListWrap,
children: problemsetCount !== 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: [problemsetList.map(function (v, index) {
var _questionType$find;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: CollectionListmodules.top,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Topic/* default */.Z, {
data: v,
selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false,
ref: function ref(el) {
return childRefs.current[v.question_id] = el;
}
}, v.question_id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(CollectionListmodules.actionLeftItem, " ").concat(CollectionListmodules.questionTypeName),
children: ["No.", index + 1]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "".concat(CollectionListmodules.actionLeftItem, " ").concat(CollectionListmodules.questionTypeName),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(CollectionListmodules.tipLabel, " mr5"),
children: "\u9898\u578B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CollectionListmodules.tipVal,
children: (_questionType$find = questionType.find(function (item) {
return item.question_type === v.question_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: CollectionListmodules.actionLeftItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(CollectionListmodules.tipLabel, " mr5"),
children: "\u96BE\u5EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CollectionListmodules.tipVal,
children: difficultyMapping[v.difficulty]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.more,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: CollectionListmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
setCancleCollectVis(true);
setCancleId(v.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b2
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E53333'
},
children: "\u79FB\u9664"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CollectionListmodules.line,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b1
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
className: CollectionListmodules.b2
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: CollectionListmodules.textBtn,
style: {
cursor: 'pointer'
},
onClick: function onClick() {
handleDetailClick(v.question_id, v.is_wrong_exercise);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5",
style: {
color: '#3061D0'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0'
},
children: "\u8BE6\u60C5"
})]
})]
})]
})]
}, index);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
defaultCurrent: 1,
defaultPageSize: 10,
current: (routeParams === null || routeParams === void 0 ? void 0 : routeParams.page) || 1,
showSizeChanger: false,
showQuickJumper: true
// hideOnSinglePage
,
total: problemsetCount,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr10",
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-orange",
children: total
}), "\u6761\u6570\u636E"]
});
},
className: "mb20",
onChange: function onChange(current) {
params.page = current;
setRouteParams(objectSpread2_default()({}, params));
getCollectionList();
}
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: spinLoading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u63D0\u793A",
open: cancleCollectVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setCancleCollectVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var bodyParams, res, updatedRefs;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setBtnLoading(true);
bodyParams = {
course_wrong_question_id: cancleId
};
_context2.next = 4;
return (0,service_exercise/* removeWrongQuestion */.g8)(objectSpread2_default()({}, bodyParams));
case 4:
res = _context2.sent;
if (res.status === 0) {
message/* default */.ZP.success('操作成功!');
updatedRefs = objectSpread2_default()({}, childRefs.current);
delete updatedRefs[cancleId]; // 清除已删除项的引用
childRefs.current = updatedRefs; // 更新引用对象
getCollectionList();
}
setBtnLoading(false);
setCancleCollectVis(false);
case 8:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u786E\u8BA4\u8981\u5C06\u8BE5\u8BD5\u9898\u4ECE\u9519\u9898\u96C6\u4E2D\u79FB\u9664\u5417\uFF1F"
})
})]
});
};
/* harmony default export */ var CollectionList = ((0,_umi_production_exports.connect)(function (_ref4) {
var exercise = _ref4.exercise,
loading = _ref4.loading,
user = _ref4.user,
globalSetting = _ref4.globalSetting,
classroomList = _ref4.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(MisCollection));
/***/ })
}]);

@ -0,0 +1,961 @@
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Exercise/index.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.exitFullScreenModalWrapper___aNB9Q div[class~='ant-modal-confirm-btns'] {
float: none;
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.exitFullScreenModalWrapper___aNB9Q div[class~='ant-modal-confirm-btns'] button {
width: 120px;
height: 38px;
background: #f6f7f9 #3061d0;
border-radius: 2px;
}
.exitFullScreenModal___HIMyY {
text-align: center;
font-size: 30px;
font-weight: 400;
}
.exitFullScreenModal___HIMyY .warningIcon___xEURa {
height: 88px;
margin-bottom: 20px;
}
.exitFullScreenModal___HIMyY .warningText___W6NPJ {
color: #e30000;
}
.exitFullScreenModal___HIMyY .countdownWrapper___n8g1M {
display: inline-block;
}
.forcedModalWrapper___JPMQ2 .forcedModalContent___uY5FV {
text-align: center;
}
.forcedModalWrapper___JPMQ2 .forcedModalContent___uY5FV .forcedText___C3CrF {
font-size: 30px;
font-weight: 500;
color: #E30000;
margin-bottom: 10px;
}
.forcedModalWrapper___JPMQ2 .forcedModalContent___uY5FV .screenNumText___oljHN {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-bottom: 20px;
}
.forcedModalWrapper___JPMQ2 .forcedModalContent___uY5FV img {
height: 85px;
margin-bottom: 20px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/MisCollection/Practice/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___K2JI9 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___w5O1p {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___eGNQ2 {
align-items: center;
box-align: center;
}
.flex_box_center_end___hFOhY {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___XRYN1 {
flex-direction: column;
box-orient: block-axis;
}
.baseMargin___Dq6JI {
margin-left: 62px;
}
.noWrap___k1EYX {
white-space: nowrap;
}
.singleItem___tm6VW {
border-radius: 2px;
border: 1px solid #CCCCCC;
padding: 20px 15px 0 15px;
}
.questionIcons___wZ79_ [class~='ant-anchor-link'] {
display: inline;
}
.questionIcons___wZ79_ [class~='ant-anchor-wrapper'] {
margin: 0;
overflow: hidden;
}
.questionIcons___wZ79_ span,
.questionIcons___wZ79_ a {
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
color: #fff;
background: #fb3226;
display: inline-block;
margin-right: 8px;
margin-bottom: 20px;
border-radius: 40px;
font-weight: bold;
cursor: pointer;
}
.questionIcons___wZ79_ span:hover,
.questionIcons___wZ79_ a:hover {
background-color: #ec7d72;
}
.questionIcons___wZ79_ span:nth-child(5n),
.questionIcons___wZ79_ a:nth-child(5n) {
margin-right: 25px;
}
.questionIcons___wZ79_ .green___ONMBt {
background-color: #2abd8c;
}
.questionIcons___wZ79_ .green___ONMBt:hover {
background-color: #88d19e;
}
.questionIcons___wZ79_ .orange___bKAu6 {
background-color: #fd8001;
}
.questionIcons___wZ79_ .orange___bKAu6:hover {
background-color: #fb9f42;
}
.greenTip___d1u7X {
color: #2abd8c;
margin-left: 15px;
}
.greenTip___d1u7X:before {
content: '';
width: 12px;
height: 12px;
background: #2abd8c;
border-radius: 12px;
display: inline-block;
margin-right: 4px;
position: relative;
top: 1px;
}
.redTip___okMsH {
color: #fb3226;
margin-left: 15px;
}
.redTip___okMsH:before {
content: '';
width: 12px;
height: 12px;
background: #fb3226;
border-radius: 12px;
display: inline-block;
margin-right: 4px;
position: relative;
top: 1px;
}
.orangeTip___qe089 {
color: #fd8001;
margin-left: 15px;
}
.orangeTip___qe089:before {
content: '';
width: 12px;
height: 12px;
background: #fd8001;
border-radius: 12px;
display: inline-block;
margin-right: 4px;
position: relative;
top: 1px;
}
.pollDesc___kssKp {
color: #333;
background-color: #ffffff;
padding: 15px;
box-sizing: border-box;
margin-top: 30px;
margin-bottom: 0px;
}
.answered___RNHOJ {
position: relative;
}
.answered___RNHOJ::after {
position: absolute;
right: 35px;
top: 4px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #cbcbcb;
content: '';
}
.unanswer___VvFpU {
position: relative;
}
.unanswer___VvFpU::after {
position: absolute;
right: 35px;
top: 4px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #fff;
content: '';
border: 1px solid #cbcbcb;
}
.anchor___WAvSp {
display: flex;
flex-direction: row;
}
.anchor___WAvSp [class~='ant-anchor-link'] {
padding: 0px;
}
.answerFlag___HU2mZ {
display: block;
float: left;
margin-right: 10px;
border-radius: 50%;
height: 40px;
line-height: 40px;
width: 40px;
text-align: center;
cursor: pointer;
margin-bottom: 5px;
background: #ff3756;
color: #fff;
border: 1px solid #ff3756;
}
.answerFlag___HU2mZ [class~='ant-anchor-link-title'] {
color: #fff;
}
.flagActive___gL9Vs {
background-color: #29bd8b;
color: #fff;
border: 1px solid #29bd8b;
}
.flagHalf___h3ZMY {
background-color: #ff6800;
color: #fff;
border: 1px solid #ff6800;
}
.answerStudentFlag___iw9Zu {
display: block;
float: left;
margin-right: 10px;
border-radius: 50%;
border: 1px solid #cbcbcb;
height: 40px;
line-height: 40px;
width: 40px;
text-align: center;
color: #999999;
cursor: pointer;
margin-bottom: 5px;
}
.answerStudentActive___S_ALO {
background: #cbcbcb;
color: #fff;
}
.questionItem___yWvmw [class~='ant-checkbox-group'] {
width: 100%;
}
.questionItem___yWvmw [class~='ant-radio-group'] {
width: 100%;
}
.questionItem___yWvmw [class~='ant-checkbox-wrapper'] {
margin-right: 5px;
display: flex;
align-items: baseline;
}
.questionItem___yWvmw [class~='ant-checkbox'] + span {
display: inline-flex;
}
.questionItem___yWvmw [class~='ant-checkbox'] + span [class~='mr3'] {
flex-shrink: 0;
}
.questionItem___yWvmw [class~='ant-checkbox'] + span [class~='markdown-body'] {
position: relative;
}
.questionItem___yWvmw .questionScore___X5DIq {
background: rgba(236, 236, 236, 0.6);
border-radius: 2px;
width: 52px;
height: 25px;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.itemFlag___Q2MCu {
padding: 0px 10px;
border-radius: 15px;
height: 22px;
line-height: 22px;
background: #eaeaea;
color: #999;
font-size: 14px;
}
.answerWrap___fG0AS {
margin-bottom: 40px;
width: 100%;
}
.answerSubjective___snzhU {
width: 100%;
height: 130px;
padding: 5px;
overflow: auto;
resize: vertical;
outline: none;
}
.otherInput___Iog54 {
border: none;
border-bottom: 1px solid #eee;
background: transparent;
flex: 1 1;
height: 20px;
line-height: 20px;
}
.otherInput___Iog54 [class~='ant-input']:hover,
.otherInput___Iog54 [class~='ant-input']:focus {
border: none !important;
border-bottom: 1px solid #eee !important;
background: #f8f8f8 !important;
}
.randomFlag___ln2e_ {
width: 68px;
height: 24px;
line-height: 24px;
text-align: center;
background: #84b6eb;
color: #fff;
border-radius: 20px;
font-size: 12px;
margin-left: 24px;
display: inline-block;
}
.answerTrue___IvfDz {
position: relative;
margin-right: 40px;
cursor: default;
}
.answerTrue___IvfDz::after {
position: absolute;
right: 35px;
top: 4px;
width: 20px;
height: 10px;
border-radius: 5px;
background: #29bd8b;
content: '';
}
.answerFalse___GG4QG {
position: relative;
margin-right: 40px;
cursor: default;
}
.answerFalse___GG4QG::after {
position: absolute;
right: 35px;
top: 4px;
width: 20px;
height: 10px;
border-radius: 5px;
background: #ff3756;
content: '';
}
.answerHalf___MHVXE {
position: relative;
margin-right: 40px;
cursor: default;
}
.answerHalf___MHVXE::after {
position: absolute;
left: -25px;
top: 4px;
width: 20px;
height: 10px;
border-radius: 5px;
background: #ff6800;
content: '';
}
.renderHtml___eK3e_ {
display: inline-flex;
align-items: baseline;
}
.simpleText___AIzXA {
background: #f5f5f5;
border-radius: 4px;
border: 1px solid #eaeaea;
padding: 5px;
min-height: 35px;
box-sizing: border-box;
}
.answerYes___PHMOC {
width: 12px;
height: 12px;
background: #0152d9;
color: #fff;
display: inline-block;
margin-right: 4px;
}
.answerNo___jHE2I {
width: 13px;
height: 13px;
border: 1px solid rgba(0, 0, 0, 0.15);
color: #fff;
display: flex;
flex-direction: column-reverse;
margin-right: 4px;
}
.answerInfo___Nxpng {
font-size: 12px;
margin-bottom: 10px;
padding: 20px 20px 0 20px;
}
.answerInfo___Nxpng .answerProgress___flGSi {
font-weight: 500;
}
.answerSheetWrap___GAeZB {
margin-bottom: 25px;
}
.answerSheetQuestionTitle___BTMSd {
margin-bottom: 15px;
font-size: 14px;
font-weight: 500;
color: #666666;
cursor: pointer;
}
.answerSheet___CbypW {
font-size: 0;
vertical-align: top;
margin-top: 8px;
margin-bottom: 25px;
width: 100%;
}
.answerSheet___CbypW .answerSheetItem___nUSbl {
width: 26px;
height: 26px;
color: #666666;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 2px;
display: inline-block;
font-size: 14px;
line-height: 26px;
text-align: center;
position: relative;
cursor: pointer;
}
.answerSheet___CbypW .answerSheetItem___nUSbl .qindex___Xlxm0 {
position: relative;
z-index: 1;
}
.answerSheet___CbypW .answerSheetItem___nUSbl:hover {
border-color: #0152d9;
color: #0152d9;
}
.answerSheet___CbypW .answerSheetItem___nUSbl.active___Xy8W_ {
background: #3061D0;
color: #fff;
}
.answerSheet___CbypW .answerSheetItem___nUSbl.partialActive___JZ1MH {
background: #EEEEEE;
color: #fff;
}
.answerSheet___CbypW .answerSheetItem___nUSbl.selected___xHSiK {
border: 1px solid #18D6FF;
}
.answerSheetBottom___jtRrv {
background: #FFFFFF;
box-shadow: 0px -2px 4px 0px #EAEEF4;
height: 40px;
display: flex;
position: absolute;
bottom: 0;
width: 100%;
align-items: center;
z-index: 5;
}
.countDown___kTHAZ {
color: #37AD83;
text-align: center;
font-size: 14px;
display: flex;
align-items: center;
}
.countDown___kTHAZ [class~='ant-statistic'] {
margin-left: 10px;
}
.countDown___kTHAZ [class~='ant-statistic-content'] {
color: #37AD83;
font-size: 20px;
font-weight: 500;
}
.countDown___kTHAZ.red____6qKO {
color: red;
border-color: red;
}
.countDown___kTHAZ.red____6qKO [class~='ant-statistic-content'] {
color: red;
}
.fold___jaHsN {
background: #fff;
width: 16px;
height: 66px;
position: absolute;
top: 50%;
margin-top: -33px;
right: -16px;
z-index: 3;
cursor: pointer;
display: box;
display: flex;
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.fold___jaHsN::before {
content: '';
width: 0;
height: 0;
position: absolute;
right: 0;
top: 0;
border-right: 15px solid #fafafa;
border-bottom: 10px solid #fff;
}
.fold___jaHsN::after {
content: '';
width: 0;
height: 0;
position: absolute;
right: 0;
bottom: 0;
border-right: 15px solid #fafafa;
border-top: 10px solid #fff;
}
.cardList___ao2G8 {
height: calc(88vh - 120px);
padding: 10px 20px 160px 20px;
overflow: auto;
}
.iframe___PMixZ {
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index: 99999;
width: 100%;
height: 100%;
border: none;
display: none;
background: #fff;
}
.mainPart___WviJY {
margin-top: 84px;
}
.mainPart___WviJY .tooltipWrap___GmBFg {
display: flex;
align-items: center;
}
.mainPart___WviJY .leftPart___XB0_Y {
height: 88vh;
overflow: hidden;
position: relative;
}
.mainPart___WviJY .rightPart___pvjKn {
height: 88vh;
background-color: #fff;
overflow: hidden;
position: relative;
}
.mainPart___WviJY .rightPart___pvjKn .questionPart___D4xIS {
overflow: auto;
height: inherit;
padding-bottom: 78px;
}
.mainPart___WviJY .rightPart___pvjKn .questionPart___D4xIS .questionTypeTitle___eHbVa {
font-size: 16px;
font-weight: 600;
color: #000000;
}
.mainPart___WviJY .rightPart___pvjKn .questionPart___D4xIS .questionTypeInfo___ZVVje {
font-size: 16px;
font-weight: 400;
color: #464F66;
}
.mainPart___WviJY .rightPart___pvjKn .questionPart___D4xIS .toIframeBtn___PNJqP {
width: 92px;
height: 36px;
}
.mainPart___WviJY .rightPart___pvjKn .bottom___s3Ed7 {
height: 64px;
width: 100%;
position: absolute;
bottom: 0;
box-shadow: 0px -2px 8px 0px #F1F1F1;
padding: 0 30px;
background-color: #fff;
z-index: 100;
}
.mainPart___WviJY .rightPart___pvjKn .changeButton___sOQWw {
width: 118px;
height: 38px;
border-radius: 2px;
}
.mainPart___WviJY .rightPart___pvjKn .changeButton___sOQWw.prevBtn___RFRY0 {
color: #666666;
}
.mainPart___WviJY .rightPart___pvjKn .changeButton___sOQWw.prevBtn___RFRY0:hover {
color: #3061D0;
}
.fixHeader___Lc70j {
position: fixed;
top: 0;
width: 100%;
min-width: 1200px;
height: 64px;
background: #FFFFFF;
box-shadow: 0px 2px 4px 0px #EAEEF4;
display: flex;
align-items: stretch;
}
.fixHeader___Lc70j .title___yVlta {
font-size: 18px;
font-weight: 600;
color: #333333;
max-width: 500px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fixHeader___Lc70j .submitButton___T30jx {
width: 88px;
height: 38px;
border-radius: 4px;
}
.dottedLineWrapper___z_0qT .leftHalfCircle___P9J9_ {
border-radius: 50%;
width: 20px;
height: 20px;
background-color: #fafafa;
transform: translateX(-50%);
}
.dottedLineWrapper___z_0qT .dottedLine___jjDRS {
border-bottom: 1px dotted #CCCCCC;
}
.dottedLineWrapper___z_0qT .rightHalfCircle___KldRp {
border-radius: 50%;
width: 20px;
height: 20px;
background-color: #fafafa;
transform: translateX(50%);
}
.analysisWrap___ESfNU {
border-top: 1px solid #F6F7F9;
padding-top: 20px;
}
.analysisWrap___ESfNU .greyBg___MmmXm {
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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/MisCollection/Practice/components/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___YZgA8 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___y_yQQ {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___x6kKD {
align-items: center;
box-align: center;
}
.flex_box_center_end___SUaAb {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___d9xOC {
flex-direction: column;
box-orient: block-axis;
}
.shixunWrp___Dwyh4 {
border: 1px solid #eee;
margin-top: 20px;
}
.shixunWrp___Dwyh4 [class~='monaco-editor'] {
width: 100% !important;
}
.shixunWrp___Dwyh4 [class~='monaco-editor'] > div {
width: 100% !important;
}
.shixunWrp___Dwyh4 [class~='monaco-editor'] > div [class~='monaco-scrollable-element'],
.shixunWrp___Dwyh4 [class~='monaco-editor'] > div [class~='overlayWidgets'],
.shixunWrp___Dwyh4 [class~='monaco-editor'] > div div:empty {
width: 100% !important;
}
.shixunWrp___Dwyh4 h2 {
font-size: 14px;
font-weight: normal;
padding: 6px 20px;
border-bottom: 1px solid #eee;
margin: 0;
position: relative;
}
.shixunWrp___Dwyh4 h2 span {
position: absolute;
right: 10px;
top: 6px;
}
.fill___Q0enF {
margin-bottom: 40px;
}
.fill___Q0enF .index___GmCwl {
font-size: 14px;
color: #666666;
}
.fill___Q0enF .success___ZMZ3Z {
color: #00C21E;
}
.fill___Q0enF .fail___bBT84 {
color: #FA6400;
}
.fill___Q0enF .fillInput___wfcRy {
height: 46px;
}
.shixunWrapper___lPyRH {
border-radius: 2px;
border: 1px solid #CCCCCC;
padding: 10px 20px 90px 15px;
max-height: 380px;
overflow: auto;
margin-left: 62px;
}
.shixunWrapper___lPyRH .score___rww4Y {
font-size: 14px;
color: #999999;
}
.shixunWrapper___lPyRH .name___wkhzh {
font-size: 14px;
color: #333333;
margin-left: 6px;
}
.programWrapper___SEO7i {
margin-left: 62px;
}
.programWrapper___SEO7i .desc___RqdJ_ {
font-size: 14px;
color: #666666;
margin-bottom: 14px;
}
.programWrapper___SEO7i .content___vkDN5 {
border-radius: 2px;
border: 1px solid #CCCCCC;
max-height: 300px;
overflow: auto;
padding: 10px 15px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/MyProblem/TestCasePanel/index.less ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.footer {
display: flex;
flex-flow: row nowrap;
align-items: center;
height: 56px;
background: #121c24;
color: #fff;
padding: 0 20px;
justify-content: space-between;
}
.test-case-panel {
position: relative;
}
.test-case-panel .error {
font-size: 12px;
color: #fb3226;
}
.test-case-panel .test-case-panel-body {
position: absolute;
will-change: transform;
width: 100%;
transition: all 0.2s linear;
bottom: 0;
transform: translate3d(0, 350px, 0);
opacity: 0.1;
}
.test-case-panel .test-case-panel-body pre {
max-height: 150px;
overflow: auto;
}
.test-case-panel .test-case-panel-body.active {
transform: translate3d(0, -56px, 0);
opacity: 1;
}
.test-case-panel .tab-panel-body {
padding: 20px 10px;
height: 240px;
background-color: #070f19;
display: flex;
flex-flow: column nowrap;
justify-content: center;
color: #ddd;
}
.test-case-panel .tab-panel-body .tip {
text-align: center;
}
.test-case-panel .tab-panel-body textarea {
background: #070f19 !important;
color: #fff;
font-size: 14px;
border: 0 solid transparent !important;
height: 200px;
outline: none;
}
.test-case-panel .btn-green {
margin-right: 10px;
color: #28bd8b;
border-color: #28bd8b;
}
.test-case-panel .btn-blue {
margin-right: 10px;
color: #0152d9;
border-color: #0152d9;
}
.test-case-panel .btn-blue span {
pointer-events: none;
}
.test-case-panel .btn-collapse {
position: absolute;
top: 0;
width: 54px;
height: 27px;
left: 50%;
margin-left: -27px;
background: #2a3a4f;
z-index: 8;
border-bottom-left-radius: 100px;
border-bottom-right-radius: 100px;
color: #fff;
text-align: center;
cursor: pointer;
opacity: 0.4;
transition: all 0.3s;
}
.test-case-panel .btn-collapse.up {
top: -294px;
}
ul.s-navs {
list-style: none;
margin: 0;
padding: 0 17px;
height: 54px;
display: flex;
flex-flow: row nowrap;
align-items: center;
background: #0f1e31;
font-size: 14px;
color: #ddd;
}
ul.s-navs.bg-white {
background: #fff;
color: #888;
}
ul.s-navs.bg-white a {
color: #888;
}
ul.s-navs a {
color: #ddd;
display: block;
margin-right: 20px;
height: 54px;
line-height: 54px;
border-bottom: 2px solid transparent;
}
ul.s-navs a.active {
color: #5091ff;
border-bottom: 2px solid #5091ff;
}
#educoder .custom-ant-disabled:disabled {
color: inherit;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.3.20@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.20@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Spinner/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.ldsRing___mpBZC {
position: relative;
width: 40px;
height: 40px;
margin: 0 auto;
}
.idsRingWrapper___Of9_n {
position: absolute;
z-index: 1000;
width: 100%;
height: 100%;
left: 0;
top: 0;
display: flex;
flex-flow: column nowrap;
justify-content: center;
}
.idsRingWrapper___Of9_n p {
text-align: center;
margin-top: 12px;
}
.ldsRing___mpBZC div {
box-sizing: border-box;
display: block;
position: absolute;
width: 32px;
height: 32px;
margin: 4px;
border: 4px solid #1976d2;
border-radius: 50%;
animation: ldsring___o0w2t 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #1976d2 transparent transparent transparent;
}
.ldsRing___mpBZC div:nth-child(1) {
animation-delay: -0.45s;
}
.ldsRing___mpBZC div:nth-child(2) {
animation-delay: -0.3s;
}
.ldsRing___mpBZC div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes ldsring___o0w2t {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

@ -1,13 +0,0 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99118],{
/***/ 3527:
/*!******************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/MisCollection/Practice/index.tsx ***!
\******************************************************************************/
/***/ (function() {
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12309],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97941],{
/***/ 46952:
/*!******************************************************************************************************!*\
@ -46,6 +46,344 @@ if (false) {}
/***/ }),
/***/ 65638:
/*!*********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/MisCollection/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__, {
"default": function() { return /* binding */ Exercise_MisCollection; }
});
// 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/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/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/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// 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/button/index.js
var es_button = __webpack_require__(3113);
// 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-number/index.js + 14 modules
var input_number = __webpack_require__(94001);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var MisCollectionmodules = ({"contentListWrap":"contentListWrap___j_ce4","collection":"collection___p4VQ2","btn1":"btn1___wy1qR","btn2":"btn2___JEUgr"});
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(33571);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var MisCollection = function MisCollection(_ref) {
var _user$userInfo;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
practiceVis = _useState2[0],
setPracticeVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(0),
_useState6 = slicedToArray_default()(_useState5, 2),
wrongCount = _useState6[0],
setWrongCount = _useState6[1];
// const [moveOpen,setMoveOpen] = useState(false);
var _useState7 = (0,_react_17_0_2_react.useState)({
wrong_question_setting_id: '',
// 后端要用的id值也由后端返回
question_number: 10 //随机抽取题目数
}),
_useState8 = slicedToArray_default()(_useState7, 2),
problemParams = _useState8[0],
setProblemParams = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
btn2Loading = _useState10[0],
setBtn2Loading = _useState10[1];
var getQuestionSetting = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, _res$data2, _res$data3;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,service_exercise/* getWrongQuestionSetting */.jC)({
coursesId: params.coursesId
});
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
problemParams.wrong_question_setting_id = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.id) || '';
problemParams.question_number = (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.question_number) || 10;
setProblemParams(objectSpread2_default()({}, problemParams));
setWrongCount(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.wrong_question_count);
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getQuestionSetting() {
return _ref2.apply(this, arguments);
};
}();
var startWrongQuestion = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setBtn2Loading(true);
_context2.next = 3;
return (0,service_exercise/* exerciseQuestion */.zE)({
id: params.coursesId
});
case 3:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0 && res !== null && res !== void 0 && res.exercise_id) {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/").concat(res === null || res === void 0 ? void 0 : res.exercise_id, "/misCollection/practice"));
}
setBtn2Loading(false);
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function startWrongQuestion() {
return _ref3.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getQuestionSetting();
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: MisCollectionmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u9519\u9898\u96C6"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u9519\u9898\u96C6"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "current",
onClick: function onClick() {
getQuestionSetting();
setPracticeVis(true);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shezhi2 mr5 font16"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#666666",
fontSize: '14px'
},
children: "\u7B54\u9898\u8BBE\u7F6E"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MisCollectionmodules.contentListWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MisCollectionmodules.collection,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#5F6368',
fontSize: '16px',
marginRight: '10px'
},
children: "\u9519\u9898\u6570"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#000000',
fontSize: '16px'
},
children: [wrongCount, "\u9053"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(MisCollectionmodules.btn1, " mr20"),
onClick: function onClick() {
if (wrongCount > 0) {
var _user$userInfo2;
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/misCollection/").concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 || (_user$userInfo2 = _user$userInfo2.course) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.course_id, "/list"));
} else {
message/* default */.ZP.info('暂无错题~');
}
},
children: "\u67E5\u770B\u5168\u90E8\u9519\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: MisCollectionmodules.btn2,
loading: btn2Loading,
onClick: function onClick() {
if (wrongCount > 0) {
startWrongQuestion();
} else {
message/* default */.ZP.info('暂无错题~');
}
},
children: "\u5F00\u59CB\u7EC3\u4E60"
})]
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u7B54\u9898\u8BBE\u7F6E",
width: 420,
open: practiceVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setPracticeVis(false);
},
onOk: /*#__PURE__*/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:
setBtnLoading(true);
_context3.next = 3;
return (0,service_exercise/* setWrongQuestion */.FF)(objectSpread2_default()({
coursesId: params.coursesId
}, problemParams));
case 3:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('设置成功!');
}
setBtnLoading(false);
setPracticeVis(false);
case 7:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6BCF\u6B21\u7EC3\u4E60\u968F\u673A\u62BD\u53D6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
defaultValue: 10,
min: 1,
value: Number(problemParams.question_number),
onChange: function onChange(value) {
problemParams.question_number = value;
setProblemParams(objectSpread2_default()({}, problemParams));
},
style: {
width: '118px',
marginLeft: '5px',
marginRight: '5px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9053\u8BD5\u9898"
})]
})
})
})]
});
};
/* harmony default export */ var Exercise_MisCollection = ((0,_umi_production_exports.connect)(function (_ref5) {
var exercise = _ref5.exercise,
loading = _ref5.loading,
user = _ref5.user,
globalSetting = _ref5.globalSetting,
classroomList = _ref5.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(MisCollection));
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
@ -539,524 +877,6 @@ if (false) {}
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_checkbox; }
});
// 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/_rc-checkbox@3.1.0@rc-checkbox/es/index.js
var es = __webpack_require__(5630);
// 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/config-provider/context.js
var config_provider_context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var context = __webpack_require__(32441);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js
const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
/* harmony default export */ var checkbox_GroupContext = (GroupContext);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js
var checkbox_style = __webpack_require__(98447);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules
var wave = __webpack_require__(14088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js
var wave_interface = __webpack_require__(4572);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.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 InternalCheckbox = (props, ref) => {
var _a;
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
children,
indeterminate = false,
style,
onMouseEnter,
onMouseLeave,
skipGroup = false,
disabled
} = props,
restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
const {
getPrefixCls,
direction,
checkbox
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext);
const {
isFormItemInput
} = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM);
const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled;
const prevValue = _react_17_0_2_react.useRef(restProps.value);
_react_17_0_2_react.useEffect(() => {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
false ? 0 : void 0;
}, []);
_react_17_0_2_react.useEffect(() => {
if (skipGroup) {
return;
}
if (restProps.value !== prevValue.current) {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
prevValue.current = restProps.value;
}
return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
}, [restProps.value]);
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const checkboxProps = Object.assign({}, restProps);
if (checkboxGroup && !skipGroup) {
checkboxProps.onChange = function () {
if (restProps.onChange) {
restProps.onChange.apply(restProps, arguments);
}
if (checkboxGroup.toggleOption) {
checkboxGroup.toggleOption({
label: children,
value: restProps.value
});
}
};
checkboxProps.name = checkboxGroup.name;
checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
}
const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
[`${prefixCls}-wrapper-disabled`]: mergedDisabled,
[`${prefixCls}-wrapper-in-form-item`]: isFormItemInput
}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId);
const checkboxClass = _classnames_2_5_1_classnames_default()({
[`${prefixCls}-indeterminate`]: indeterminate
}, wave_interface/* TARGET_CLS */.A, hashId);
const ariaChecked = indeterminate ? 'mixed' : undefined;
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Checkbox",
disabled: mergedDisabled
}, /*#__PURE__*/_react_17_0_2_react.createElement("label", {
className: classString,
style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave
}, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
"aria-checked": ariaChecked
}, checkboxProps, {
prefixCls: prefixCls,
className: checkboxClass,
disabled: mergedDisabled,
ref: ref
})), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children))));
};
const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox);
if (false) {}
/* harmony default export */ var checkbox_Checkbox = (Checkbox);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(61414);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js
"use client";
var Group_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 InternalGroup = (props, ref) => {
const {
defaultValue,
children,
options = [],
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
onChange
} = props,
restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []);
const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]);
_react_17_0_2_react.useEffect(() => {
if ('value' in restProps) {
setValue(restProps.value || []);
}
}, [restProps.value]);
const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => {
if (typeof option === 'string' || typeof option === 'number') {
return {
label: option,
value: option
};
}
return option;
}), [options]);
const cancelValue = val => {
setRegisteredValues(prevValues => prevValues.filter(v => v !== val));
};
const registerValue = val => {
setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]));
};
const toggleOption = option => {
const optionIndex = value.indexOf(option.value);
const newValue = (0,toConsumableArray/* default */.Z)(value);
if (optionIndex === -1) {
newValue.push(option.value);
} else {
newValue.splice(optionIndex, 1);
}
if (!('value' in restProps)) {
setValue(newValue);
}
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => {
const indexA = memoOptions.findIndex(opt => opt.value === a);
const indexB = memoOptions.findIndex(opt => opt.value === b);
return indexA - indexB;
}));
};
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const groupPrefixCls = `${prefixCls}-group`;
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, {
prefixCls: prefixCls,
key: option.value.toString(),
disabled: 'disabled' in option ? option.disabled : restProps.disabled,
value: option.value,
checked: value.includes(option.value),
onChange: option.onChange,
className: `${groupPrefixCls}-item`,
style: option.style,
title: option.title
}, option.label)) : children;
// eslint-disable-next-line react/jsx-no-constructed-context-values
const context = {
toggleOption,
value,
disabled: restProps.disabled,
name: restProps.name,
// https://github.com/ant-design/ant-design/issues/16376
registerValue,
cancelValue
};
const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, {
[`${groupPrefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: style
}, domProps, {
ref: ref
}), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, {
value: context
}, childrenNode)));
};
const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup);
/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js
"use client";
const es_checkbox_Checkbox = checkbox_Checkbox;
es_checkbox_Checkbox.Group = Group;
es_checkbox_Checkbox.__ANT_CHECKBOX = true;
if (false) {}
/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
/***/ }),
/***/ 98447:
/*!******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ C2: function() { return /* binding */ getStyle; }
/* harmony export */ });
/* unused harmony export genCheckboxStyle */
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613);
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116);
// ============================== Styles ==============================
const genCheckboxStyle = token => {
const {
checkboxCls
} = token;
const wrapperCls = `${checkboxCls}-wrapper`;
return [
// ===================== Basic =====================
{
// Group
[`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
display: 'inline-flex',
flexWrap: 'wrap',
columnGap: token.marginXS,
// Group > Grid
[`> ${token.antCls}-row`]: {
flex: 1
}
}),
// Wrapper
[wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
display: 'inline-flex',
alignItems: 'baseline',
cursor: 'pointer',
// Fix checkbox & radio in flex align #30260
'&:after': {
display: 'inline-block',
width: 0,
overflow: 'hidden',
content: "'\\a0'"
},
// Checkbox near checkbox
[`& + ${wrapperCls}`]: {
marginInlineStart: 0
},
[`&${wrapperCls}-in-form-item`]: {
'input[type="checkbox"]': {
width: 14,
height: 14 // FIXME: magic
}
}
}),
// Wrapper > Checkbox
[checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
position: 'relative',
whiteSpace: 'nowrap',
lineHeight: 1,
cursor: 'pointer',
borderRadius: token.borderRadiusSM,
// To make alignment right when `controlHeight` is changed
// Ref: https://github.com/ant-design/ant-design/issues/41564
alignSelf: 'center',
// Wrapper > Checkbox > input
[`${checkboxCls}-input`]: {
position: 'absolute',
// Since baseline align will get additional space offset,
// we need to move input to top to make it align with text.
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
inset: 0,
zIndex: 1,
cursor: 'pointer',
opacity: 0,
margin: 0,
[`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token))
},
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
boxSizing: 'border-box',
position: 'relative',
top: 0,
insetInlineStart: 0,
display: 'block',
width: token.checkboxSize,
height: token.checkboxSize,
direction: 'ltr',
backgroundColor: token.colorBgContainer,
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
borderRadius: token.borderRadiusSM,
borderCollapse: 'separate',
transition: `all ${token.motionDurationSlow}`,
'&:after': {
boxSizing: 'border-box',
position: 'absolute',
top: '50%',
insetInlineStart: '21.5%',
display: 'table',
width: token.checkboxSize / 14 * 5,
height: token.checkboxSize / 14 * 8,
border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
borderTop: 0,
borderInlineStart: 0,
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
opacity: 0,
content: '""',
transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
}
},
// Wrapper > Checkbox + Text
'& + span': {
paddingInlineStart: token.paddingXS,
paddingInlineEnd: token.paddingXS
}
})
},
// ===================== Hover =====================
{
// Wrapper & Wrapper > Checkbox
[`
${wrapperCls}:not(${wrapperCls}-disabled),
${checkboxCls}:not(${checkboxCls}-disabled)
`]: {
[`&:hover ${checkboxCls}-inner`]: {
borderColor: token.colorPrimary
}
},
[`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimaryHover,
borderColor: 'transparent'
},
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
borderColor: token.colorPrimaryHover
}
}
},
// ==================== Checked ====================
{
// Wrapper > Checkbox
[`${checkboxCls}-checked`]: {
[`${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimary,
borderColor: token.colorPrimary,
'&:after': {
opacity: 1,
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
}
}
},
[`
${wrapperCls}-checked:not(${wrapperCls}-disabled),
${checkboxCls}-checked:not(${checkboxCls}-disabled)
`]: {
[`&:hover ${checkboxCls}-inner`]: {
backgroundColor: token.colorPrimaryHover,
borderColor: 'transparent'
}
}
},
// ================= Indeterminate =================
{
[checkboxCls]: {
'&-indeterminate': {
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
backgroundColor: token.colorBgContainer,
borderColor: token.colorBorder,
'&:after': {
top: '50%',
insetInlineStart: '50%',
width: token.fontSizeLG / 2,
height: token.fontSizeLG / 2,
backgroundColor: token.colorPrimary,
border: 0,
transform: 'translate(-50%, -50%) scale(1)',
opacity: 1,
content: '""'
}
}
}
}
},
// ==================== Disable ====================
{
// Wrapper
[`${wrapperCls}-disabled`]: {
cursor: 'not-allowed'
},
// Wrapper > Checkbox
[`${checkboxCls}-disabled`]: {
// Wrapper > Checkbox > input
[`&, ${checkboxCls}-input`]: {
cursor: 'not-allowed',
// Disabled for native input to enable Tooltip event handler
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
pointerEvents: 'none'
},
// Wrapper > Checkbox > inner
[`${checkboxCls}-inner`]: {
background: token.colorBgContainerDisabled,
borderColor: token.colorBorder,
'&:after': {
borderColor: token.colorTextDisabled
}
},
'&:after': {
display: 'none'
},
'& + span': {
color: token.colorTextDisabled
},
[`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
background: token.colorTextDisabled
}
}
}];
};
// ============================== Export ==============================
function getStyle(prefixCls, token) {
const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, {
checkboxCls: `.${prefixCls}`,
checkboxSize: token.controlInteractiveSize
});
return [genCheckboxStyle(checkboxToken)];
}
/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
let {
prefixCls
} = _ref;
return [getStyle(prefixCls, token)];
}));
/***/ }),
/***/ 92899:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
@ -1210,108 +1030,6 @@ const initMoveMotion = (token, motionName) => {
/***/ }),
/***/ 5630:
/*!*****************************************************************!*\
!*** ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* unused harmony export Checkbox */
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 33614);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 81162);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 24018);
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 54099);
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 63011);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 71366);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls,
className = props.className,
style = props.style,
checked = props.checked,
disabled = props.disabled,
_props$defaultChecked = props.defaultChecked,
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
_props$type = props.type,
type = _props$type === void 0 ? 'checkbox' : _props$type,
title = props.title,
onChange = props.onChange,
inputProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(props, _excluded);
var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);
var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultChecked, {
value: checked
}),
_useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_useMergedState, 2),
rawValue = _useMergedState2[0],
setRawValue = _useMergedState2[1];
(0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {
return {
focus: function focus() {
var _inputRef$current;
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
},
blur: function blur() {
var _inputRef$current2;
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
},
input: inputRef.current
};
});
var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, className, (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-checked"), rawValue), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
var handleChange = function handleChange(e) {
if (disabled) {
return;
}
if (!('checked' in props)) {
setRawValue(e.target.checked);
}
onChange === null || onChange === void 0 ? void 0 : onChange({
target: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, props), {}, {
type: type,
checked: e.target.checked
}),
stopPropagation: function stopPropagation() {
e.stopPropagation();
},
preventDefault: function preventDefault() {
e.preventDefault();
},
nativeEvent: e.nativeEvent
});
};
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", {
className: classString,
title: title,
style: style
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({}, inputProps, {
className: "".concat(prefixCls, "-input"),
ref: inputRef,
onChange: handleChange,
disabled: disabled,
checked: !!rawValue,
type: type
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", {
className: "".concat(prefixCls, "-inner")
}));
});
/* harmony default export */ __webpack_exports__.Z = (Checkbox);
/***/ }),
/***/ 93681:
/*!***********************************************************************!*\
!*** ./node_modules/_rc-input@1.1.1@rc-input/es/index.js + 2 modules ***!

@ -1,262 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97941],{
/***/ 65638:
/*!*********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/MisCollection/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__, {
"default": function() { return /* binding */ Exercise_MisCollection; }
});
// 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/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(75936);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// 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
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(94001);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var MisCollectionmodules = ({"contentListWrap":"contentListWrap___j_ce4","collection":"collection___p4VQ2","btn1":"btn1___wy1qR","btn2":"btn2___JEUgr"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/MisCollection/index.tsx
var _excluded = ["exercise", "globalSetting", "loading", "dispatch", "classroomList", "user", "match"];
var MisCollection = function MisCollection(_ref) {
var _user$userInfo;
var exercise = _ref.exercise,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
classroomList = _ref.classroomList,
user = _ref.user,
match = _ref.match,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
practiceVis = _useState2[0],
setPracticeVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: MisCollectionmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "animated fadeIn",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.course) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/classrooms/".concat(params.coursesId, "/exercise"),
children: "\u5728\u7EBF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u9519\u9898\u96C6"
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt30 mb30",
style: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-font icon-fanhui-bishe font12"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: '16px',
color: '#333333',
marginLeft: '10px'
},
children: "\u9519\u9898\u96C6"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "current",
onClick: function onClick() {
setPracticeVis(true);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shezhi2 mr5 font16"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#666666",
fontSize: '14px'
},
children: "\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: MisCollectionmodules.contentListWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: MisCollectionmodules.collection,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#5F6368',
fontSize: '16px',
marginRight: '10px'
},
children: "\u9519\u9898\u6570"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000000',
fontSize: '16px'
},
children: "5\u9053"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(MisCollectionmodules.btn1, " mr20"),
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/misCollection/list"));
},
children: "\u67E5\u770B\u5168\u90E8\u9519\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: MisCollectionmodules.btn2,
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/misCollection/practice"));
},
children: "\u5F00\u59CB\u7EC3\u4E60"
})]
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u7B54\u9898\u8BBE\u7F6E",
width: 420,
open: practiceVis,
maskClosable: false,
confirmLoading: btnLoading,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
destroyOnClose: true,
onCancel: function onCancel() {
setPracticeVis(false);
},
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setBtnLoading(true);
// const updatedRefs = { ...childRefs.current };
// delete updatedRefs[cancleId]; // 清除已删除项的引用
// childRefs.current = updatedRefs; // 更新引用对象
// const res = await Fetch(`/api/user_mirrors/${routeParams?.experid}/revoke_apply.json`, {
// method: 'post'
// },
// );
// if (res.status === 0) {
// message.success('撤销成功');
// getDetail()
// }
setBtnLoading(false);
setPracticeVis(false);
case 3:
case "end":
return _context.stop();
}
}, _callee);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
fontSize: '14px',
color: '#333333'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml5",
children: "\u7B54\u5BF9"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
style: {
width: '118px',
marginLeft: '5px',
marginRight: '5px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6B21\u540E\u81EA\u52A8\u79FB\u9664\u9519\u9898"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6BCF\u6B21\u7EC3\u4E60\u968F\u673A\u62BD\u53D6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
defaultValue: 10,
min: 1,
style: {
width: '118px',
marginLeft: '5px',
marginRight: '5px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9053\u8BD5\u9898"
})]
})]
})
})]
});
};
/* harmony default export */ var Exercise_MisCollection = ((0,_umi_production_exports.connect)(function (_ref3) {
var exercise = _ref3.exercise,
loading = _ref3.loading,
user = _ref3.user,
globalSetting = _ref3.globalSetting,
classroomList = _ref3.classroomList;
return {
classroomList: classroomList,
exercise: exercise,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(MisCollection));
/***/ })
}]);

@ -31,8 +31,6 @@
}
.contentListWrap___j_ce4 .collection___p4VQ2 .btn2___JEUgr {
display: inline-block;
width: 88px;
line-height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 16px;

@ -2593,7 +2593,7 @@ var Exercise_excluded = ["user", "classroomList", "globalSetting", "loading", "d
var ShixunsListPage = function ShixunsListPage(_ref) {
var _user$userInfo4, _user$userInfo5, _detailExerciseList$e, _detailExerciseList$e2, _detailExerciseList$e3, _detailExerciseList$e4, _detailExerciseList$e5, _detailExerciseList$e9, _detailExerciseList$e10, _detailLeftMenus$cour, _detailExerciseList$e12;
var _user$userInfo4, _user$userInfo5, _detailExerciseList$e, _detailExerciseList$e2, _detailExerciseList$e3, _detailExerciseList$e4, _detailExerciseList$e5, _user$userInfo7, _detailExerciseList$e9, _detailExerciseList$e10, _detailLeftMenus$cour, _detailExerciseList$e12;
var user = _ref.user,
classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
@ -3025,7 +3025,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
isStudent: (0,authority/* isStudent */.dE)(),
getDropdownMenu: getDropdownMenu,
onTabMenuClick: onMenuSelect,
defaultSelectedKeys: [params.type || 'all']
defaultSelectedKeys: [params.type || 'all'],
showCollectionBtn: (0,authority/* isStudent */.dE)() && true,
courseId: user === null || user === void 0 || (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 || (_user$userInfo7 = _user$userInfo7.course) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.course_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SearchSortController/* default */.Z, {
dataSource: detailExerciseList.exercises || [],
isAdmin: (0,authority/* isAdmin */.GJ)(),
@ -3592,8 +3594,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -3618,6 +3618,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -3685,13 +3687,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -3704,9 +3706,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -1042,8 +1042,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -1068,6 +1066,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -1135,13 +1135,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -1154,9 +1154,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -2554,8 +2554,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -2580,6 +2578,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -2647,13 +2647,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -2666,9 +2666,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

@ -2680,8 +2680,6 @@ var menu = __webpack_require__(20834);
var dropdown = __webpack_require__(38854);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
@ -2706,6 +2704,8 @@ var TabMenu = function TabMenu(_ref) {
onTabMenuClick = _ref.onTabMenuClick,
getDropdownMenu = _ref.getDropdownMenu,
showControlButton = _ref.showControlButton,
showCollectionBtn = _ref.showCollectionBtn,
courseId = _ref.courseId,
buttonText = _ref.buttonText,
_ref$buttonIcon = _ref.buttonIcon,
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
@ -2773,13 +2773,13 @@ var TabMenu = function TabMenu(_ref) {
})]
})
}), isStudent && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: showCollectionBtn && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: TabMenumodules.control,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u6536\u85CF\u5939",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/collection"));
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(courseId, "/collection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/collects.png */ 88612),
width: 16,
@ -2792,9 +2792,7 @@ var TabMenu = function TabMenu(_ref) {
title: "\u9519\u9898\u96C6",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
onClick: function onClick() {
message/* default */.ZP.info('建设中');
return;
_umi_production_exports.history.push('/');
_umi_production_exports.history.push("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/misCollection"));
},
src: __webpack_require__(/*! @/assets/images/classrooms/error_collect.png */ 60805),
width: 16,

File diff suppressed because one or more lines are too long

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