Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent bf9351ffc6
commit 4a2bba11f0

@ -914,7 +914,7 @@ exports.removeClassName = removeClassName;
exports.removeEvent = removeEvent;
exports.removeUserSelectStyles = removeUserSelectStyles;
var _shims = __webpack_require__(/*! ./shims */ 36641);
var _getPrefix = _interopRequireWildcard(__webpack_require__(/*! ./getPrefix */ 32092));
var _getPrefix = _interopRequireWildcard(__webpack_require__(/*! ./getPrefix */ 1750));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/
@ -1115,7 +1115,7 @@ function removeClassName(el /*: HTMLElement*/, className /*: string*/) {
/***/ }),
/***/ 32092:
/***/ 1750:
/*!******************************************************************************************!*\
!*** ./node_modules/_react-draggable@4.4.6@react-draggable/build/cjs/utils/getPrefix.js ***!
\******************************************************************************************/

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37013,56047],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55050,56047],{
/***/ 80117:
/*!*************************************************************************************************************!*\
@ -432,6 +432,500 @@ if (false) {}
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// 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-util@5.43.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(75440);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(47413);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(46952);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.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;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_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 InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_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;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_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 getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 12563:
/*!*******************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***!

File diff suppressed because one or more lines are too long

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

@ -1733,7 +1733,7 @@ var scoreStatusMapping = {
1: 'c-green'
};
var Answer = function Answer(_ref) {
var _answerData$exercise4, _answerData$question_4, _answerData$exercise_9, _answerData$question_5, _answerData$exercise_10, _answerData$exercise_11, _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise_15, _answerData$exercise_16;
var _answerData$exercise4, _answerData$question_4, _answerData$exercise_10, _answerData$question_5, _answerData$exercise_11, _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise_14, _answerData$exercise_17, _answerData$exercise_18;
var user = _ref.user,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
@ -2886,7 +2886,7 @@ var Answer = function Answer(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {
var _answerData$exercise;
var _answerData$exercise, _answerData$exercise_4;
if (index === oneindex && k === twoindex) {
//点击的答题卡选项恰好是当前题目时不该做任何操作
return;
@ -2917,17 +2917,19 @@ var Answer = function Answer(_ref) {
// }
// 如果上一题答完题未提交,则取消它的答题状态并且清空答题内容
if (showConfirm) {
setAnswerData(function (e) {
var _e$question_status;
e.exercise_question_types[oneindex].items[twoindex].user_answer = [];
e === null || e === void 0 || (_e$question_status = e.question_status) === null || _e$question_status === void 0 || _e$question_status.forEach(function (val) {
if (val.ques_id === currentQuestion.question_id && (val === null || val === void 0 ? void 0 : val.ques_status) === 1) {
val.ques_status = 0;
}
});
return e;
});
if (answerData !== null && answerData !== void 0 && answerData.exercise_question_types[index].items[k].user_answer.length && !(answerData !== null && answerData !== void 0 && (_answerData$exercise_4 = answerData.exercise_question_types[index]) !== null && _answerData$exercise_4 !== void 0 && (_answerData$exercise_4 = _answerData$exercise_4.items[k]) !== null && _answerData$exercise_4 !== void 0 && _answerData$exercise_4.standard_answer_show)) {
setShowConfirm(true);
} else {
// if (showConfirm)) {
// setAnswerData(e => {
// e.exercise_question_types[oneindex].items[twoindex].user_answer = [];
// e?.question_status?.forEach((val: any) => {
// if (val.ques_id === currentQuestion.question_id && val?.ques_status === 1) {
// val.ques_status = 0;
// }
// })
// return e
// })
setShowConfirm(false);
}
setoneindex(index);
@ -3126,19 +3128,19 @@ var Answer = function Answer(_ref) {
return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
};
var renderClassifyQuestion = function renderClassifyQuestion() {
var _answerData$exercise_4, _answerData$exercise_5, _answerData$exercise_6, _answerData$exercise_7, _answerData$exercise_8;
var _answerData$exercise_5, _answerData$exercise_6, _answerData$exercise_7, _answerData$exercise_8, _answerData$exercise_9;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "pt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Practicemodules.questionTypeTitle,
children: [toChinesNum(oneindex + 1), "\u3001", answerData === null || answerData === void 0 || (_answerData$exercise_4 = answerData.exercise_question_types) === null || _answerData$exercise_4 === void 0 || (_answerData$exercise_4 = _answerData$exercise_4[oneindex]) === null || _answerData$exercise_4 === void 0 ? void 0 : _answerData$exercise_4.name]
children: [toChinesNum(oneindex + 1), "\u3001", answerData === null || answerData === void 0 || (_answerData$exercise_5 = answerData.exercise_question_types) === null || _answerData$exercise_5 === void 0 || (_answerData$exercise_5 = _answerData$exercise_5[oneindex]) === null || _answerData$exercise_5 === void 0 ? void 0 : _answerData$exercise_5.name]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Practicemodules.questionTypeInfo,
children: ["\uFF08\u5171", answerData === null || answerData === void 0 || (_answerData$exercise_5 = answerData.exercise_question_types) === null || _answerData$exercise_5 === void 0 || (_answerData$exercise_5 = _answerData$exercise_5[oneindex]) === null || _answerData$exercise_5 === void 0 ? void 0 : _answerData$exercise_5.count, "\u9898 ", (answerData === null || answerData === void 0 || (_answerData$exercise_6 = answerData.exercise_question_types) === null || _answerData$exercise_6 === void 0 || (_answerData$exercise_6 = _answerData$exercise_6[oneindex]) === null || _answerData$exercise_6 === void 0 ? void 0 : _answerData$exercise_6.question_type) === 7 ? "\uFF1B\u5305\u542B".concat(answerData === null || answerData === void 0 || (_answerData$exercise_7 = answerData.exercise_question_types) === null || _answerData$exercise_7 === void 0 || (_answerData$exercise_7 = _answerData$exercise_7[oneindex]) === null || _answerData$exercise_7 === void 0 ? void 0 : _answerData$exercise_7.sub_questions_count, "\u5C0F\u9898") : '', "\uFF09 "]
children: ["\uFF08\u5171", answerData === null || answerData === void 0 || (_answerData$exercise_6 = answerData.exercise_question_types) === null || _answerData$exercise_6 === void 0 || (_answerData$exercise_6 = _answerData$exercise_6[oneindex]) === null || _answerData$exercise_6 === void 0 ? void 0 : _answerData$exercise_6.count, "\u9898 ", (answerData === null || answerData === void 0 || (_answerData$exercise_7 = answerData.exercise_question_types) === null || _answerData$exercise_7 === void 0 || (_answerData$exercise_7 = _answerData$exercise_7[oneindex]) === null || _answerData$exercise_7 === void 0 ? void 0 : _answerData$exercise_7.question_type) === 7 ? "\uFF1B\u5305\u542B".concat(answerData === null || answerData === void 0 || (_answerData$exercise_8 = answerData.exercise_question_types) === null || _answerData$exercise_8 === void 0 || (_answerData$exercise_8 = _answerData$exercise_8[oneindex]) === null || _answerData$exercise_8 === void 0 ? void 0 : _answerData$exercise_8.sub_questions_count, "\u5C0F\u9898") : '', "\uFF09 "]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: renderQuestion(answerData === null || answerData === void 0 || (_answerData$exercise_8 = answerData.exercise_question_types) === null || _answerData$exercise_8 === void 0 || (_answerData$exercise_8 = _answerData$exercise_8[oneindex]) === null || _answerData$exercise_8 === void 0 || (_answerData$exercise_8 = _answerData$exercise_8.items) === null || _answerData$exercise_8 === void 0 ? void 0 : _answerData$exercise_8[twoindex], twoindex)
children: renderQuestion(answerData === null || answerData === void 0 || (_answerData$exercise_9 = answerData.exercise_question_types) === null || _answerData$exercise_9 === void 0 || (_answerData$exercise_9 = _answerData$exercise_9[oneindex]) === null || _answerData$exercise_9 === void 0 || (_answerData$exercise_9 = _answerData$exercise_9.items) === null || _answerData$exercise_9 === void 0 ? void 0 : _answerData$exercise_9[twoindex], twoindex)
}, twoindex)]
}, oneindex);
};
@ -3209,7 +3211,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#999999'
},
children: ["/", answerData === null || answerData === void 0 || (_answerData$exercise_9 = answerData.exercise_types) === null || _answerData$exercise_9 === void 0 ? void 0 : _answerData$exercise_9.q_counts]
children: ["/", answerData === null || answerData === void 0 || (_answerData$exercise_10 = answerData.exercise_types) === null || _answerData$exercise_10 === void 0 ? void 0 : _answerData$exercise_10.q_counts]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -3218,7 +3220,7 @@ var Answer = function Answer(_ref) {
trailColor: "#0000000d",
percent: (answerData === null || answerData === void 0 || (_answerData$question_5 = answerData.question_status) === null || _answerData$question_5 === void 0 || (_answerData$question_5 = _answerData$question_5.filter(function (val) {
return (val === null || val === void 0 ? void 0 : val.ques_status) === 1;
})) === null || _answerData$question_5 === void 0 ? void 0 : _answerData$question_5.length) / (answerData === null || answerData === void 0 || (_answerData$exercise_10 = answerData.exercise_types) === null || _answerData$exercise_10 === void 0 ? void 0 : _answerData$exercise_10.q_counts) * 100,
})) === null || _answerData$question_5 === void 0 ? void 0 : _answerData$question_5.length) / (answerData === null || answerData === void 0 || (_answerData$exercise_11 = answerData.exercise_types) === null || _answerData$exercise_11 === void 0 ? void 0 : _answerData$exercise_11.q_counts) * 100,
showInfo: false
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -3229,7 +3231,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#165DFF'
},
children: (answerData === null || answerData === void 0 || (_answerData$exercise_11 = answerData.exercise_types) === null || _answerData$exercise_11 === void 0 ? void 0 : _answerData$exercise_11.q_counts) || (answerData === null || answerData === void 0 || (_answerData$exercise_12 = answerData.exercise_scores) === null || _answerData$exercise_12 === void 0 || (_answerData$exercise_12 = _answerData$exercise_12.exercise_types) === null || _answerData$exercise_12 === void 0 ? void 0 : _answerData$exercise_12.q_counts)
children: (answerData === null || answerData === void 0 || (_answerData$exercise_12 = answerData.exercise_types) === null || _answerData$exercise_12 === void 0 ? void 0 : _answerData$exercise_12.q_counts) || (answerData === null || answerData === void 0 || (_answerData$exercise_13 = answerData.exercise_scores) === null || _answerData$exercise_13 === void 0 || (_answerData$exercise_13 = _answerData$exercise_13.exercise_types) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13.q_counts)
}), " \u9898\uFF1A"]
})
})
@ -3250,7 +3252,7 @@ var Answer = function Answer(_ref) {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: Practicemodules.cardList,
children: answerData === null || answerData === void 0 || (_answerData$exercise_13 = answerData.exercise_question_types) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13.map(function (er, index) {
children: answerData === null || answerData === void 0 || (_answerData$exercise_14 = answerData.exercise_question_types) === null || _answerData$exercise_14 === void 0 ? void 0 : _answerData$exercise_14.map(function (er, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: renderCardList(er, index)
}, er.question_type);
@ -3318,12 +3320,12 @@ var Answer = function Answer(_ref) {
className: "".concat(Practicemodules.changeButton, " ").concat(Practicemodules.prevBtn, " mr20"),
type: "default",
onClick: function onClick() {
var _answerData$exercise5;
var _answerData$exercise5, _answerData$exercise_16;
answerData.exercise_question_types[oneindex].items[twoindex].israp = false;
setAnswerData(objectSpread2_default()({}, answerData));
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise5 = answerData.exercise) === null || _answerData$exercise5 === void 0 ? void 0 : _answerData$exercise5.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_14;
if (!((_answerData$exercise_14 = answerData.exercise_question_types) !== null && _answerData$exercise_14 !== void 0 && (_answerData$exercise_14 = _answerData$exercise_14[oneindex]) !== null && _answerData$exercise_14 !== void 0 && (_answerData$exercise_14 = _answerData$exercise_14.items) !== null && _answerData$exercise_14 !== void 0 && (_answerData$exercise_14 = _answerData$exercise_14[twoindex]) !== null && _answerData$exercise_14 !== void 0 && _answerData$exercise_14.repeat_answer)) {
var _answerData$exercise_15;
if (!((_answerData$exercise_15 = answerData.exercise_question_types) !== null && _answerData$exercise_15 !== void 0 && (_answerData$exercise_15 = _answerData$exercise_15[oneindex]) !== null && _answerData$exercise_15 !== void 0 && (_answerData$exercise_15 = _answerData$exercise_15.items) !== null && _answerData$exercise_15 !== void 0 && (_answerData$exercise_15 = _answerData$exercise_15[twoindex]) !== null && _answerData$exercise_15 !== void 0 && _answerData$exercise_15.repeat_answer)) {
setisshowmodal(true);
settype(1);
return;
@ -3337,18 +3339,23 @@ var Answer = function Answer(_ref) {
}
setoneindex(oneindex);
settwoindex(twoindex);
if (answerData.exercise_question_types[oneindex].items[twoindex].user_answer.length > 0 && !(answerData !== null && answerData !== void 0 && (_answerData$exercise_16 = answerData.exercise_question_types[oneindex]) !== null && _answerData$exercise_16 !== void 0 && (_answerData$exercise_16 = _answerData$exercise_16.items[twoindex]) !== null && _answerData$exercise_16 !== void 0 && _answerData$exercise_16.standard_answer_show)) {
setShowConfirm(true);
} else {
setShowConfirm(false);
}
},
children: "\u4E0A\u4E00\u9898"
}), !showConfirm && !(oneindex === (answerData === null || answerData === void 0 || (_answerData$exercise_15 = answerData.exercise_question_types) === null || _answerData$exercise_15 === void 0 ? void 0 : _answerData$exercise_15.length) - 1 && twoindex === (answerData === null || answerData === void 0 || (_answerData$exercise_16 = answerData.exercise_question_types) === null || _answerData$exercise_16 === void 0 || (_answerData$exercise_16 = _answerData$exercise_16[oneindex]) === null || _answerData$exercise_16 === void 0 || (_answerData$exercise_16 = _answerData$exercise_16.items) === null || _answerData$exercise_16 === void 0 ? void 0 : _answerData$exercise_16.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), !showConfirm && !(oneindex === (answerData === null || answerData === void 0 || (_answerData$exercise_17 = answerData.exercise_question_types) === null || _answerData$exercise_17 === void 0 ? void 0 : _answerData$exercise_17.length) - 1 && twoindex === (answerData === null || answerData === void 0 || (_answerData$exercise_18 = answerData.exercise_question_types) === null || _answerData$exercise_18 === void 0 || (_answerData$exercise_18 = _answerData$exercise_18[oneindex]) === null || _answerData$exercise_18 === void 0 || (_answerData$exercise_18 = _answerData$exercise_18.items) === null || _answerData$exercise_18 === void 0 ? void 0 : _answerData$exercise_18.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Practicemodules.changeButton,
type: "primary",
onClick: function onClick() {
var _answerData$exercise6;
var _answerData$exercise6, _answerData$exercise_20;
answerData.exercise_question_types[oneindex].items[twoindex].israp = false;
setAnswerData(objectSpread2_default()({}, answerData));
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise6 = answerData.exercise) === null || _answerData$exercise6 === void 0 ? void 0 : _answerData$exercise6.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_17;
if (!((_answerData$exercise_17 = answerData.exercise_question_types) !== null && _answerData$exercise_17 !== void 0 && (_answerData$exercise_17 = _answerData$exercise_17[oneindex]) !== null && _answerData$exercise_17 !== void 0 && (_answerData$exercise_17 = _answerData$exercise_17.items) !== null && _answerData$exercise_17 !== void 0 && (_answerData$exercise_17 = _answerData$exercise_17[twoindex]) !== null && _answerData$exercise_17 !== void 0 && _answerData$exercise_17.repeat_answer)) {
var _answerData$exercise_19;
if (!((_answerData$exercise_19 = answerData.exercise_question_types) !== null && _answerData$exercise_19 !== void 0 && (_answerData$exercise_19 = _answerData$exercise_19[oneindex]) !== null && _answerData$exercise_19 !== void 0 && (_answerData$exercise_19 = _answerData$exercise_19.items) !== null && _answerData$exercise_19 !== void 0 && (_answerData$exercise_19 = _answerData$exercise_19[twoindex]) !== null && _answerData$exercise_19 !== void 0 && _answerData$exercise_19.repeat_answer)) {
setisshowmodal(true);
settype(2);
return;
@ -3362,6 +3369,11 @@ var Answer = function Answer(_ref) {
}
setoneindex(oneindex);
settwoindex(twoindex);
if (answerData.exercise_question_types[oneindex].items[twoindex].user_answer.length > 0 && !(answerData !== null && answerData !== void 0 && (_answerData$exercise_20 = answerData.exercise_question_types[oneindex]) !== null && _answerData$exercise_20 !== void 0 && (_answerData$exercise_20 = _answerData$exercise_20.items[twoindex]) !== null && _answerData$exercise_20 !== void 0 && _answerData$exercise_20.standard_answer_show)) {
setShowConfirm(true);
} else {
setShowConfirm(false);
}
},
children: "\u4E0B\u4E00\u9898"
}), showConfirm && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {

@ -160,7 +160,7 @@ var MisCollection = function MisCollection(_ref) {
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;
problemParams.question_number = 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);
}
@ -326,19 +326,26 @@ var MisCollection = function MisCollection(_ref) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (Number.isInteger(problemParams.question_number)) {
_context3.next = 3;
break;
}
message/* default */.ZP.info('请输入整数!');
return _context3.abrupt("return");
case 3:
setBtnLoading(true);
_context3.next = 3;
_context3.next = 6;
return (0,service_exercise/* setWrongQuestion */.FF)(objectSpread2_default()({
coursesId: params.coursesId
}, problemParams));
case 3:
case 6:
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 10:
case "end":
return _context3.stop();
}
@ -354,7 +361,7 @@ var MisCollection = function MisCollection(_ref) {
min: 1,
value: Number(problemParams.question_number),
onChange: function onChange(value) {
problemParams.question_number = value;
problemParams.question_number = Number(value);
setProblemParams(objectSpread2_default()({}, problemParams));
},
style: {

@ -5264,9 +5264,9 @@ function updateMoopCase(id, params) {
/***/ }),
/***/ 63636:
/***/ 26628:
/*!******************************************************!*\
!*** ./src/pages/Paths/Detail/[id].tsx + 57 modules ***!
!*** ./src/pages/Paths/Detail/[id].tsx + 61 modules ***!
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -20005,6 +20005,513 @@ var knowledge_Atlas = function Atlas(_ref) {
pathsDetail: pathsDetail
};
})(knowledge_Atlas));
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var LearnPathmodules = ({"pathWrap":"pathWrap___jfkaP","errorStatus":"errorStatus___Isj1L","successStatus":"successStatus___zwDAO","nameSty":"nameSty___ilLoy","iconSty":"iconSty___xRU86"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/AddLearnPath/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddLearnPathmodules = ({"bg":"bg___Ztswj","title":"title___EKsBk","fieldWrap":"fieldWrap___heRkc","footer_style":"footer_style___ZjLRN","submit_button":"submit_button___EqHE6","close_button":"close_button___NLCMc","stageWrap":"stageWrap___ppiKv","treeTitle":"treeTitle___Js9NW","treeBox":"treeBox___wXg6k","header":"header___nTNPI"});
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/AddLearnPath/index.tsx
var NewLearnPathPage = function NewLearnPathPage(_ref) {
var _formValue$name;
var visable = _ref.visable,
onCancel = _ref.onCancel;
var params = (0,_umi_production_exports.useParams)();
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
formValue = _useState2[0],
setFormValue = _useState2[1];
var courseId = (0,_react_17_0_2_react.useRef)();
var _useState3 = (0,_react_17_0_2_react.useState)({}),
_useState4 = slicedToArray_default()(_useState3, 2),
items = _useState4[0],
setitems = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
stageVis = _useState6[0],
setStageVis = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
stageDate = _useState8[0],
setStageData = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
checkedKeys = _useState10[0],
setCheckedKeys = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
checkedKeys2 = _useState12[0],
setCheckedKeys2 = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
checkedNodes = _useState14[0],
setCheckedNodes = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)([]),
_useState16 = slicedToArray_default()(_useState15, 2),
checkedNodes2 = _useState16[0],
setCheckedNodes2 = _useState16[1]; // 临时存储选中的节点
var _useState17 = (0,_react_17_0_2_react.useState)(false),
_useState18 = slicedToArray_default()(_useState17, 2),
checkAll = _useState18[0],
setCheckAll = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(false),
_useState20 = slicedToArray_default()(_useState19, 2),
treeLoading = _useState20[0],
setTreeLoading = _useState20[1];
var onCheck = function onCheck(checkedKeysValue, e) {
console.log("checkedKeysValue--", checkedKeysValue);
console.log("e--", e);
setCheckedKeys2(checkedKeysValue);
setCheckedNodes2(toConsumableArray_default()(e.checkedNodes));
};
function transformData(stages) {
return stages.map(function (stage) {
return {
title: stage === null || stage === void 0 ? void 0 : stage.text,
key: (stage === null || stage === void 0 ? void 0 : stage.stage_id) || (stage === null || stage === void 0 ? void 0 : stage.stage_shixun_id),
children: stage !== null && stage !== void 0 && stage.children ? transformData(stage === null || stage === void 0 ? void 0 : stage.children) : [],
selectable: false,
// 如果不想选择父节点,可以设为 false
checkable: true,
// 可以选择
// 这里可以根据 checked 属性设置选中状态
checked: stage === null || stage === void 0 ? void 0 : stage.checked
};
});
}
var getSubjectList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _res$data, treeData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setTreeLoading(true);
_context.next = 3;
return (0,paths/* getSubjects */.T0)({
identifier: params.pathId
});
case 3:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
treeData = transformData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.stages);
setStageData(toConsumableArray_default()(treeData));
}
setTreeLoading(false);
case 6:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getSubjectList() {
return _ref2.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
getSubjectList();
}, []);
// useEffect(() => {
// setTimeout(() => {
// document.body.scrollIntoView();
// }, 300);
// const { coursesId, categoryId } = params as any;
// dispatch({
// type: 'shixunHomeworks/addCommonHomeWorkDefaultData',
// payload: { category: categoryId, coursesId, type: 3 },
// });
// }, []);
// useEffect(() => {
// form.resetFields();
// }, [classroomList.actionTabs.key])
var handleFinish = function handleFinish() {
form.validateFields().then( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var bodyData, _bodyData$attachment_, _bodyData$reference_a;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(formValue.min_num > formValue.max_num)) {
_context2.next = 3;
break;
}
message/* default */.ZP.info('最大人数不能小于最小人数');
return _context2.abrupt("return");
case 3:
bodyData = objectSpread2_default()({}, formValue);
if (bodyData.attachment_ids) {
bodyData.attachment_ids = bodyData === null || bodyData === void 0 || (_bodyData$attachment_ = bodyData.attachment_ids) === null || _bodyData$attachment_ === void 0 ? void 0 : _bodyData$attachment_.map(function (v) {
return v.response.id;
});
}
if (bodyData.reference_attachment_ids) {
bodyData.reference_attachment_ids = bodyData === null || bodyData === void 0 || (_bodyData$reference_a = bodyData.reference_attachment_ids) === null || _bodyData$reference_a === void 0 ? void 0 : _bodyData$reference_a.map(function (v) {
return v.response.id;
});
}
if (!bodyData.base_on_project) {
bodyData.base_on_project = false;
}
// const res = await addHomeworkToStage({
// id: classroomList.actionTabs.id,
// subject_id: classroomList.actionTabs.subject_id,
// ...bodyData,
// homework_type: 3,
// });
// if (res.status === 0) {
// set_work_points(res.homework_id)
// trackEvent(['教学课堂', '分组作业', '新建分组作业']);
// message.success('新建成功')
// dispatch({
// type: 'classroomList/setActionTabs',
// payload: {
// key: 'closePathsTabs'
// },
// });
// }
case 7:
case "end":
return _context2.stop();
}
}, _callee2);
})));
};
function set_work_points(_x) {
return _set_work_points.apply(this, arguments);
}
function _set_work_points() {
_set_work_points = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(id) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (items !== null && items !== void 0 && items.ec_point_ids) {
_context3.next = 2;
break;
}
return _context3.abrupt("return");
case 2:
_context3.next = 4;
return (0,fetch/* default */.ZP)("/api/ec_courses/".concat(items === null || items === void 0 ? void 0 : items.ec_course_id, "/ec_points/set_work_points.json"), {
method: 'post',
body: objectSpread2_default()({
homework_common_id: id
}, items)
});
case 4:
res = _context3.sent;
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _set_work_points.apply(this, arguments);
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)(drawer/* default */.Z, {
placement: "bottom",
height: "100%",
closable: false
// onClose={this.onClose}
,
open: visable,
className: AddLearnPathmodules.drawer,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: AddLearnPathmodules.bg,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "animated fadeIn mb25",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/paths/".concat(params.pathId),
children: "\u5B9E\u8DF5\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
href: "/paths/".concat(params.pathId),
children: "\u5B9E\u8DF5\u8BFE\u7A0B\u8BE6\u60C5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u65B0\u5EFA\u5B66\u4E60\u8DEF\u5F84"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: AddLearnPathmodules.title,
children: "\u65B0\u5EFA\u5B66\u4E60\u8DEF\u5F84"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
scrollToFirstError: true
// layout="vertical"
,
initialValues: {
method: '1',
status: '1'
},
onValuesChange: function onValuesChange() {
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "name",
label: "\u8DEF\u5F84\u540D\u79F0",
rules: [{
required: true,
message: '请输入路径名称'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
suffix: "".concat(((_formValue$name = formValue.name) === null || _formValue$name === void 0 ? void 0 : _formValue$name.length) || 0, "/60"),
placeholder: "\u8BF7\u8F93\u5165\u8DEF\u5F84\u540D\u79F0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "method"
// style={{ marginTop: '-10px' }}
,
label: "\u7EC4\u7EC7\u65B9\u5F0F",
rules: [{
required: true,
message: '请选择组织方式'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: "1",
children: "\u6309\u9636\u6BB5\u7EC4\u7EC7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: "2",
children: "\u6309\u6A21\u5757\u7EC4\u7EC7"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
shape: "default",
style: {
marginLeft: '80px'
},
onClick: function onClick() {
setStageVis(true);
},
children: "\u6DFB\u52A0\u9636\u6BB5"
}), checkedNodes.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '100%',
maxHeight: '310px',
overflowY: 'auto',
background: '#F6F7F9',
padding: '16px 20px',
borderRadius: '4px'
},
children: checkedNodes.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [item.children && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
fontSize: '16px',
color: '#232B40',
fontWeight: 500
},
children: ["\u7B2C", index + 1, "\u9636\u6BB5"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
}, index);
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "relateClass",
label: "\u5173\u8054\u73ED\u7EA7",
rules: [{
required: true,
message: '请选择关联班级'
}]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "status",
label: "\u53D1\u5E03\u72B6\u6001",
rules: [{
required: true,
message: '请选择关联班级'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: "1",
children: "\u7ACB\u5373\u53D1\u5E03"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: "2",
children: "\u6682\u4E0D\u53D1\u5E03"
})]
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddLearnPathmodules.footer_style,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddLearnPathmodules.close_button,
onClick: function onClick() {
form.resetFields();
onCancel();
},
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: handleFinish,
className: AddLearnPathmodules.submit_button,
children: "\u63D0\u4EA4"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
width: 948,
keyboard: false,
maskClosable: false,
destroyOnClose: true,
title: "\u6DFB\u52A0\u5B66\u4E60\u9636\u6BB5",
open: stageVis,
onOk: function onOk() {
checkedNodes.push(checkedNodes2);
//
checkedKeys.push(checkedKeys2);
console.log("checkedNodes--", checkedNodes);
console.log("checkedKeys--", checkedKeys);
setCheckedKeys(toConsumableArray_default()(checkedKeys));
setCheckedNodes(toConsumableArray_default()(checkedNodes));
setCheckedKeys2([]);
setCheckedNodes2([]);
},
onCancel: function onCancel() {
setStageVis(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddLearnPathmodules.stageWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddLearnPathmodules.treeTitle,
children: "\u8BF7\u9009\u62E9\u5B66\u4E60\u9636\u6BB5\u4E0B\u7684\u7AE0\u8282"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: AddLearnPathmodules.treeBox,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddLearnPathmodules.header,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
checked: checkAll,
onChange: function onChange(e) {
setCheckAll(e.target.checked);
if (e.target.checked) {} else {}
},
children: "\u5168\u90E8"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tree/* default */.Z, {
style: {
paddingLeft: '20px',
background: '#FDFDFE'
},
checkable: true,
defaultExpandAll: true,
onCheck: onCheck,
checkedKeys: checkedKeys2,
treeData: stageDate,
blockNode: true
})]
})]
})
})]
}, "bottom");
};
/* harmony default export */ var AddLearnPath = (NewLearnPathPage);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/LearnPath/index.tsx
var LearnPath_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"];
var LearnPath = function LearnPath(_ref) {
var pathsDetail = _ref.pathsDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, LearnPath_excluded);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
createPathVis = _useState2[0],
setCreatePathVis = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
pathData = _useState4[0],
setPathData = _useState4[1];
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [pathData.length > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: pathData.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: LearnPathmodules.pathWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LearnPathmodules.errorStatus,
children: item.status
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: LearnPathmodules.nameSty,
children: item.name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-bianji14 font14 mr20 ".concat(LearnPathmodules.iconSty)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchutimu font14 ".concat(LearnPathmodules.iconSty)
})]
})]
}, index);
})
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
styles: {
marginBottom: '25px'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
style: {
margin: '0 auto'
},
onClick: function onClick() {
setCreatePathVis(true);
},
children: "\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddLearnPath, {
visable: createPathVis,
onCancel: function onCancel() {
setCreatePathVis(false);
}
})]
});
};
/* harmony default export */ var components_LearnPath = ((0,_umi_production_exports.connect)(function (_ref2) {
var pathsDetail = _ref2.pathsDetail,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
pathsDetail: pathsDetail,
globalSetting: globalSetting,
loading: loading
};
})(LearnPath));
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___hEKvu","flex_space_between":"flex_space_between___gtzO_","flex_box_vertical_center":"flex_box_vertical_center___QQWbT","flex_box_center_end":"flex_box_center_end___AyfXQ","flex_box_column":"flex_box_column___q0hJc","bg":"bg___sN_Hy","wrap":"wrap___IaIuZ","content":"content___q5lPL","wrapTabs":"wrapTabs___FivJx","intro":"intro___lW9Kf","introTitle":"introTitle___y5V_M"});
@ -20036,6 +20543,7 @@ var _id_excluded = ["pathsDetail", "globalSetting", "loading", "dispatch"];
var _id_TabPane = tabs/* default */.Z.TabPane;
function _id_onPreviewImage(e) {
var parentIndexOf = function parentIndexOf(node, parent) {
@ -20099,6 +20607,9 @@ var PathsDetailPage = function PathsDetailPage(_ref) {
}, {
name: '知识图谱',
key: 'knowledge'
}, {
name: '学习路径',
key: 'learnPath'
}].filter(function (item) {
var _pathsDetail$detail, _pathsDetail$detail2;
if ((_pathsDetail$detail = pathsDetail.detail) !== null && _pathsDetail$detail !== void 0 && _pathsDetail$detail.excellent || ((_pathsDetail$detail2 = pathsDetail.detail) === null || _pathsDetail$detail2 === void 0 ? void 0 : _pathsDetail$detail2.is_free) === false) {
@ -20235,7 +20746,7 @@ var PathsDetailPage = function PathsDetailPage(_ref) {
})
}), activeKey === 'stage' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Stage, {
keywords: keywords
}), activeKey === 'ranking' && /*#__PURE__*/(0,jsx_runtime.jsx)(StudentItems, {}), activeKey === 'certificate' && /*#__PURE__*/(0,jsx_runtime.jsx)(Stage_Certificate, {}), activeKey === 'atlas' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Atlas, {}), activeKey === 'knowledge' && /*#__PURE__*/(0,jsx_runtime.jsx)(knowledge, {})]
}), activeKey === 'ranking' && /*#__PURE__*/(0,jsx_runtime.jsx)(StudentItems, {}), activeKey === 'certificate' && /*#__PURE__*/(0,jsx_runtime.jsx)(Stage_Certificate, {}), activeKey === 'atlas' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Atlas, {}), activeKey === 'knowledge' && /*#__PURE__*/(0,jsx_runtime.jsx)(knowledge, {}), activeKey === 'learnPath' && /*#__PURE__*/(0,jsx_runtime.jsx)(components_LearnPath, {})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_Right, {})]
})]
})

@ -6135,6 +6135,154 @@ button[class~='ant-btn-default']:disabled.btn___In02G {
color: #3061D0;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/Paths/Detail/components/LearnPath/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.pathWrap___jfkaP {
width: 100%;
height: 65px;
padding-left: 20px;
padding-right: 20px;
background: #FFFFFF;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
}
.pathWrap___jfkaP .errorStatus___Isj1L {
display: inline-block;
width: 60px;
height: 26px;
line-height: 26px;
text-align: center;
font-size: 14px;
color: #999999;
border-radius: 13px;
border: 1px solid #DADBDE;
margin-right: 10px;
}
.pathWrap___jfkaP .successStatus___zwDAO {
display: inline-block;
width: 60px;
height: 26px;
line-height: 26px;
text-align: center;
font-size: 14px;
color: #00B187;
border-radius: 13px;
border: 1px solid #B1F0E1;
margin-right: 10px;
}
.pathWrap___jfkaP .nameSty___ilLoy {
font-weight: 500;
font-size: 16px;
color: #333333;
}
.pathWrap___jfkaP .iconSty___xRU86 {
color: #8F96B1;
cursor: pointer;
}
.pathWrap___jfkaP .iconSty___xRU86:hover {
color: #3061D0;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/Paths/Detail/components/LearnPath/AddLearnPath/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
body {
background: #fff;
}
.bg___Ztswj {
width: 1200px;
margin: 0 auto;
}
.title___EKsBk {
width: 96px;
margin-bottom: 20px;
font-size: 16px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
}
.fieldWrap___heRkc {
background-color: #fff;
padding-top: 20px;
}
.fieldWrap___heRkc div[class~='ant-form-item-label'] label {
font-size: 14px;
color: #5F6368;
}
.fieldWrap___heRkc span[class~='ant-input-affix-wrapper'] {
padding: 0 7px;
font-size: 14px;
}
.fieldWrap___heRkc input[class~='ant-input'] {
border-width: 1px;
height: 40px;
font-size: 14px;
padding: 0 7px;
}
.footer_style___ZjLRN {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 64px;
background: #fff;
box-shadow: 0px -2px 4px 0px #E0DFE1;
position: fixed;
bottom: 0;
left: 0;
z-index: 100;
}
.footer_style___ZjLRN .submit_button___EqHE6 {
width: 60px;
height: 38px;
background: #3061D0;
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
line-height: 38px;
text-align: center;
cursor: pointer;
}
.footer_style___ZjLRN .close_button___NLCMc {
width: 60px;
height: 38px;
border-radius: 2px;
opacity: 0.9;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-right: 20px;
}
.stageWrap___ppiKv .treeTitle___Js9NW {
font-size: 14px;
color: #191919;
margin-bottom: 15px;
width: 100%;
}
.stageWrap___ppiKv .treeBox___wXg6k {
width: 898px;
height: 273px;
background: #FDFDFE;
border: 1px solid #ECECEC;
}
.stageWrap___ppiKv .treeBox___wXg6k .header___nTNPI {
height: 42px;
line-height: 42px;
padding-left: 20px;
background: #F6F7F9;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.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/Paths/Detail/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

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