Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent ff628c2284
commit e3d74df75b

@ -1,4 +1,391 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[11862],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1829],{
/***/ 27666:
/*!****************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js ***!
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 12101);
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 91659);
function throttleByAnimationFrame(fn) {
let requestId;
const later = args => () => {
requestId = null;
fn.apply(void 0, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(args));
};
const throttled = function () {
if (requestId == null) {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
requestId = (0,rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(later(args));
}
};
throttled.cancel = () => {
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.cancel(requestId);
requestId = null;
};
return throttled;
}
/* harmony default export */ __webpack_exports__.Z = (throttleByAnimationFrame);
/***/ }),
/***/ 81228:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/affix/index.js + 2 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ affix; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(70057);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(3643);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(61471);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(14385);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// 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-resize-observer@1.4.0@rc-resize-observer/es/index.js + 4 modules
var es = __webpack_require__(28647);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/omit.js
var omit = __webpack_require__(62805);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js
var throttleByAnimationFrame = __webpack_require__(27666);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/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/affix/style/index.js
// ============================== Shared ==============================
const genSharedAffixStyle = token => {
const {
componentCls
} = token;
return {
[componentCls]: {
position: 'fixed',
zIndex: token.zIndexPopup
}
};
};
// ============================== Export ==============================
/* harmony default export */ var style = ((0,genComponentStyleHook/* default */.Z)('Affix', token => {
const affixToken = (0,statistic/* merge */.TS)(token, {
zIndexPopup: token.zIndexBase + 10
});
return [genSharedAffixStyle(affixToken)];
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/utils.js
function getTargetRect(target) {
return target !== window ? target.getBoundingClientRect() : {
top: 0,
bottom: window.innerHeight
};
}
function getFixedTop(placeholderRect, targetRect, offsetTop) {
if (offsetTop !== undefined && targetRect.top > placeholderRect.top - offsetTop) {
return offsetTop + targetRect.top;
}
return undefined;
}
function getFixedBottom(placeholderRect, targetRect, offsetBottom) {
if (offsetBottom !== undefined && targetRect.bottom < placeholderRect.bottom + offsetBottom) {
const targetBottomOffset = window.innerHeight - targetRect.bottom;
return offsetBottom + targetBottomOffset;
}
return undefined;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/index.js
"use client";
const TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
function getDefaultTarget() {
return typeof window !== 'undefined' ? window : null;
}
var AffixStatus;
(function (AffixStatus) {
AffixStatus[AffixStatus["None"] = 0] = "None";
AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare";
})(AffixStatus || (AffixStatus = {}));
let InternalAffix = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(InternalAffix, _React$Component);
var _super = (0,createSuper/* default */.Z)(InternalAffix);
function InternalAffix() {
var _this;
(0,classCallCheck/* default */.Z)(this, InternalAffix);
_this = _super.apply(this, arguments);
_this.state = {
status: AffixStatus.None,
lastAffix: false,
prevTarget: null
};
_this.placeholderNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
_this.fixedNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
_this.addListeners = () => {
const targetFunc = _this.getTargetFunc();
const target = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
const {
prevTarget
} = _this.state;
if (prevTarget !== target) {
TRIGGER_EVENTS.forEach(eventName => {
prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
target === null || target === void 0 ? void 0 : target.addEventListener(eventName, _this.lazyUpdatePosition);
});
_this.updatePosition();
_this.setState({
prevTarget: target
});
}
};
_this.removeListeners = () => {
if (_this.timer) {
clearTimeout(_this.timer);
_this.timer = null;
}
const {
prevTarget
} = _this.state;
const targetFunc = _this.getTargetFunc();
const newTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
TRIGGER_EVENTS.forEach(eventName => {
newTarget === null || newTarget === void 0 ? void 0 : newTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
});
_this.updatePosition.cancel();
// https://github.com/ant-design/ant-design/issues/22683
_this.lazyUpdatePosition.cancel();
};
_this.getOffsetTop = () => {
const {
offsetBottom,
offsetTop
} = _this.props;
return offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;
};
_this.getOffsetBottom = () => _this.props.offsetBottom;
// =================== Measure ===================
_this.measure = () => {
const {
status,
lastAffix
} = _this.state;
const {
onChange
} = _this.props;
const targetFunc = _this.getTargetFunc();
if (status !== AffixStatus.Prepare || !_this.fixedNodeRef.current || !_this.placeholderNodeRef.current || !targetFunc) {
return;
}
const offsetTop = _this.getOffsetTop();
const offsetBottom = _this.getOffsetBottom();
const targetNode = targetFunc();
if (targetNode) {
const newState = {
status: AffixStatus.None
};
const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
if (placeholderRect.top === 0 && placeholderRect.left === 0 && placeholderRect.width === 0 && placeholderRect.height === 0) {
return;
}
const targetRect = getTargetRect(targetNode);
const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
if (fixedTop !== undefined) {
newState.affixStyle = {
position: 'fixed',
top: fixedTop,
width: placeholderRect.width,
height: placeholderRect.height
};
newState.placeholderStyle = {
width: placeholderRect.width,
height: placeholderRect.height
};
} else if (fixedBottom !== undefined) {
newState.affixStyle = {
position: 'fixed',
bottom: fixedBottom,
width: placeholderRect.width,
height: placeholderRect.height
};
newState.placeholderStyle = {
width: placeholderRect.width,
height: placeholderRect.height
};
}
newState.lastAffix = !!newState.affixStyle;
if (onChange && lastAffix !== newState.lastAffix) {
onChange(newState.lastAffix);
}
_this.setState(newState);
}
};
_this.prepareMeasure = () => {
// event param is used before. Keep compatible ts define here.
_this.setState({
status: AffixStatus.Prepare,
affixStyle: undefined,
placeholderStyle: undefined
});
// Test if `updatePosition` called
if (false) {}
};
_this.updatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
_this.prepareMeasure();
});
_this.lazyUpdatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
const targetFunc = _this.getTargetFunc();
const {
affixStyle
} = _this.state;
// Check position change before measure to make Safari smooth
if (targetFunc && affixStyle) {
const offsetTop = _this.getOffsetTop();
const offsetBottom = _this.getOffsetBottom();
const targetNode = targetFunc();
if (targetNode && _this.placeholderNodeRef.current) {
const targetRect = getTargetRect(targetNode);
const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
return;
}
}
}
// Directly call prepare measure since it's already throttled.
_this.prepareMeasure();
});
return _this;
}
(0,createClass/* default */.Z)(InternalAffix, [{
key: "getTargetFunc",
value: function getTargetFunc() {
const {
getTargetContainer
} = this.context;
const {
target
} = this.props;
if (target !== undefined) {
return target;
}
return getTargetContainer !== null && getTargetContainer !== void 0 ? getTargetContainer : getDefaultTarget;
}
// Event handler
}, {
key: "componentDidMount",
value: function componentDidMount() {
// [Legacy] Wait for parent component ref has its value.
// We should use target as directly element instead of function which makes element check hard.
this.timer = setTimeout(this.addListeners);
}
}, {
key: "componentDidUpdate",
value: function componentDidUpdate(prevProps) {
this.addListeners();
if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) {
this.updatePosition();
}
this.measure();
}
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
this.removeListeners();
}
// =================== Render ===================
}, {
key: "render",
value: function render() {
const {
affixStyle,
placeholderStyle
} = this.state;
const {
affixPrefixCls,
rootClassName,
children
} = this.props;
const className = _classnames_2_5_1_classnames_default()(affixStyle && rootClassName, {
[affixPrefixCls]: !!affixStyle
});
let props = (0,omit/* default */.Z)(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls', 'rootClassName']);
// Omit this since `onTestUpdatePosition` only works on test.
if (false) {}
return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
onResize: this.updatePosition
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, props, {
ref: this.placeholderNodeRef
}), affixStyle && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
style: placeholderStyle,
"aria-hidden": "true"
}), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
ref: this.fixedNodeRef,
style: affixStyle
}, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
onResize: this.updatePosition
}, children))));
}
}]);
return InternalAffix;
}(_react_17_0_2_react.Component);
InternalAffix.contextType = context/* ConfigContext */.E_;
const Affix = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)((props, ref) => {
const {
prefixCls: customizePrefixCls,
rootClassName
} = props;
const {
getPrefixCls
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const affixPrefixCls = getPrefixCls('affix', customizePrefixCls);
const [wrapSSR, hashId] = style(affixPrefixCls);
const AffixProps = Object.assign(Object.assign({}, props), {
affixPrefixCls,
rootClassName: _classnames_2_5_1_classnames_default()(rootClassName, hashId)
});
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(InternalAffix, Object.assign({}, AffixProps, {
ref: ref
})));
});
if (false) {}
/* harmony default export */ var affix = (Affix);
/***/ }),
/***/ 78673:
/*!**********************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28278,11862,84742],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28278,84742],{
/***/ 23174:
/*!************************************************************************************************************!*\

@ -1,153 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[36245],{
/***/ 91426:
/*!***************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.tsx + 1 modules ***!
\***************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ component_AnswerComments; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AnswerCommentsmodules = ({"flex_box_center":"flex_box_center___hzSR8","flex_space_between":"flex_space_between___Mscip","flex_box_vertical_center":"flex_box_vertical_center___Uckau","flex_box_center_end":"flex_box_center_end___Kw1tf","flex_box_column":"flex_box_column___udgQE","comments":"comments___He0El","line":"line___P3zVB"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(18765);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// 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/Review/component/AnswerComments/index.tsx
var AnswerComments = function AnswerComments(_ref) {
var list = _ref.list,
_ref$hideScore = _ref.hideScore,
hideScore = _ref$hideScore === void 0 ? false : _ref$hideScore,
newuserCommentVisible = _ref.newuserCommentVisible;
console.log('xxxx', list);
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: list === null || list === void 0 ? void 0 : list.map(function (v) {
var _v$user, _v$user2, _v$user3, _v$comments;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.API_SERVER + '/images/' + (v === null || v === void 0 || (_v$user2 = v.user) === null || _v$user2 === void 0 ? void 0 : _v$user2.image_url),
width: "40",
style: {
borderRadius: 40
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 font16",
children: v === null || v === void 0 || (_v$user3 = v.user) === null || _v$user3 === void 0 ? void 0 : _v$user3.name
})]
}, v === null || v === void 0 || (_v$user = v.user) === null || _v$user === void 0 ? void 0 : _v$user.user_id), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.comments,
children: v === null || v === void 0 || (_v$comments = v.comments) === null || _v$comments === void 0 ? void 0 : _v$comments.map(function (e, i) {
if (newuserCommentVisible && e.question_type !== 5) {
if (i === 0) {
var _v$user4, _v$comments2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flexShrink: 0,
marginRight: 10
},
children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
}), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: 1
},
children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e === null || e === void 0 ? void 0 : e.score
}), "\u5206"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flexShrink: 0
},
children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
})]
}), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u8BC4\u8BED\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e.comment
})]
}), (v === null || v === void 0 || (_v$comments2 = v.comments) === null || _v$comments2 === void 0 ? void 0 : _v$comments2.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.line
})]
}, (v === null || v === void 0 || (_v$user4 = v.user) === null || _v$user4 === void 0 ? void 0 : _v$user4.user_id) + '-' + i);
}
} else {
var _v$user5, _e$comment, _v$comments3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flexShrink: 0,
marginRight: 10
},
children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
}), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: 1
},
children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e === null || e === void 0 ? void 0 : e.score
}), "\u5206"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flexShrink: 0
},
children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
})]
}), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-wrp",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u8BC4\u8BED\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary flex1",
dangerouslySetInnerHTML: {
__html: ((_e$comment = e.comment) === null || _e$comment === void 0 ? void 0 : _e$comment.replace(/\n/g, "<br/>")) || ""
}
})]
}), (v === null || v === void 0 || (_v$comments3 = v.comments) === null || _v$comments3 === void 0 ? void 0 : _v$comments3.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.line
})]
}, (v === null || v === void 0 || (_v$user5 = v.user) === null || _v$user5 === void 0 ? void 0 : _v$user5.user_id) + '-' + i);
}
})
})]
});
})
});
};
/* harmony default export */ var component_AnswerComments = (AnswerComments);
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64797],{
/***/ 4021:
/*!************************************************************************!*\
@ -462,6 +314,7 @@ var BFill = function BFill(_ref) {
var TextArea = antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.TextArea;
var Fill = function Fill(_ref) {
var item = _ref.item,
@ -514,8 +367,7 @@ var Fill = function Fill(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("aside", {
className: "font14 c-light-primary mb5",
children: "\u5B66\u751F\u7B54\u9898"
}), extra && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("aside", {
className: "font14 c-light-primary mb5",
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
children: extra
})]
}), userAnswer === null || userAnswer === void 0 ? void 0 : userAnswer.map(function (answer, index) {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[75634],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94548],{
/***/ 78231:
/*!********************************************************************************************************!*\
@ -91,391 +91,6 @@ if (false) {}
/***/ }),
/***/ 27666:
/*!****************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js ***!
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 12101);
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 91659);
function throttleByAnimationFrame(fn) {
let requestId;
const later = args => () => {
requestId = null;
fn.apply(void 0, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(args));
};
const throttled = function () {
if (requestId == null) {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
requestId = (0,rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(later(args));
}
};
throttled.cancel = () => {
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.cancel(requestId);
requestId = null;
};
return throttled;
}
/* harmony default export */ __webpack_exports__.Z = (throttleByAnimationFrame);
/***/ }),
/***/ 81228:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/affix/index.js + 2 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ affix; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(70057);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(3643);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(61471);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(14385);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// 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-resize-observer@1.4.0@rc-resize-observer/es/index.js + 4 modules
var es = __webpack_require__(28647);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/omit.js
var omit = __webpack_require__(62805);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js
var throttleByAnimationFrame = __webpack_require__(27666);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/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/affix/style/index.js
// ============================== Shared ==============================
const genSharedAffixStyle = token => {
const {
componentCls
} = token;
return {
[componentCls]: {
position: 'fixed',
zIndex: token.zIndexPopup
}
};
};
// ============================== Export ==============================
/* harmony default export */ var style = ((0,genComponentStyleHook/* default */.Z)('Affix', token => {
const affixToken = (0,statistic/* merge */.TS)(token, {
zIndexPopup: token.zIndexBase + 10
});
return [genSharedAffixStyle(affixToken)];
}));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/utils.js
function getTargetRect(target) {
return target !== window ? target.getBoundingClientRect() : {
top: 0,
bottom: window.innerHeight
};
}
function getFixedTop(placeholderRect, targetRect, offsetTop) {
if (offsetTop !== undefined && targetRect.top > placeholderRect.top - offsetTop) {
return offsetTop + targetRect.top;
}
return undefined;
}
function getFixedBottom(placeholderRect, targetRect, offsetBottom) {
if (offsetBottom !== undefined && targetRect.bottom < placeholderRect.bottom + offsetBottom) {
const targetBottomOffset = window.innerHeight - targetRect.bottom;
return offsetBottom + targetBottomOffset;
}
return undefined;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/index.js
"use client";
const TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
function getDefaultTarget() {
return typeof window !== 'undefined' ? window : null;
}
var AffixStatus;
(function (AffixStatus) {
AffixStatus[AffixStatus["None"] = 0] = "None";
AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare";
})(AffixStatus || (AffixStatus = {}));
let InternalAffix = /*#__PURE__*/function (_React$Component) {
(0,inherits/* default */.Z)(InternalAffix, _React$Component);
var _super = (0,createSuper/* default */.Z)(InternalAffix);
function InternalAffix() {
var _this;
(0,classCallCheck/* default */.Z)(this, InternalAffix);
_this = _super.apply(this, arguments);
_this.state = {
status: AffixStatus.None,
lastAffix: false,
prevTarget: null
};
_this.placeholderNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
_this.fixedNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
_this.addListeners = () => {
const targetFunc = _this.getTargetFunc();
const target = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
const {
prevTarget
} = _this.state;
if (prevTarget !== target) {
TRIGGER_EVENTS.forEach(eventName => {
prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
target === null || target === void 0 ? void 0 : target.addEventListener(eventName, _this.lazyUpdatePosition);
});
_this.updatePosition();
_this.setState({
prevTarget: target
});
}
};
_this.removeListeners = () => {
if (_this.timer) {
clearTimeout(_this.timer);
_this.timer = null;
}
const {
prevTarget
} = _this.state;
const targetFunc = _this.getTargetFunc();
const newTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
TRIGGER_EVENTS.forEach(eventName => {
newTarget === null || newTarget === void 0 ? void 0 : newTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
});
_this.updatePosition.cancel();
// https://github.com/ant-design/ant-design/issues/22683
_this.lazyUpdatePosition.cancel();
};
_this.getOffsetTop = () => {
const {
offsetBottom,
offsetTop
} = _this.props;
return offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;
};
_this.getOffsetBottom = () => _this.props.offsetBottom;
// =================== Measure ===================
_this.measure = () => {
const {
status,
lastAffix
} = _this.state;
const {
onChange
} = _this.props;
const targetFunc = _this.getTargetFunc();
if (status !== AffixStatus.Prepare || !_this.fixedNodeRef.current || !_this.placeholderNodeRef.current || !targetFunc) {
return;
}
const offsetTop = _this.getOffsetTop();
const offsetBottom = _this.getOffsetBottom();
const targetNode = targetFunc();
if (targetNode) {
const newState = {
status: AffixStatus.None
};
const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
if (placeholderRect.top === 0 && placeholderRect.left === 0 && placeholderRect.width === 0 && placeholderRect.height === 0) {
return;
}
const targetRect = getTargetRect(targetNode);
const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
if (fixedTop !== undefined) {
newState.affixStyle = {
position: 'fixed',
top: fixedTop,
width: placeholderRect.width,
height: placeholderRect.height
};
newState.placeholderStyle = {
width: placeholderRect.width,
height: placeholderRect.height
};
} else if (fixedBottom !== undefined) {
newState.affixStyle = {
position: 'fixed',
bottom: fixedBottom,
width: placeholderRect.width,
height: placeholderRect.height
};
newState.placeholderStyle = {
width: placeholderRect.width,
height: placeholderRect.height
};
}
newState.lastAffix = !!newState.affixStyle;
if (onChange && lastAffix !== newState.lastAffix) {
onChange(newState.lastAffix);
}
_this.setState(newState);
}
};
_this.prepareMeasure = () => {
// event param is used before. Keep compatible ts define here.
_this.setState({
status: AffixStatus.Prepare,
affixStyle: undefined,
placeholderStyle: undefined
});
// Test if `updatePosition` called
if (false) {}
};
_this.updatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
_this.prepareMeasure();
});
_this.lazyUpdatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
const targetFunc = _this.getTargetFunc();
const {
affixStyle
} = _this.state;
// Check position change before measure to make Safari smooth
if (targetFunc && affixStyle) {
const offsetTop = _this.getOffsetTop();
const offsetBottom = _this.getOffsetBottom();
const targetNode = targetFunc();
if (targetNode && _this.placeholderNodeRef.current) {
const targetRect = getTargetRect(targetNode);
const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
return;
}
}
}
// Directly call prepare measure since it's already throttled.
_this.prepareMeasure();
});
return _this;
}
(0,createClass/* default */.Z)(InternalAffix, [{
key: "getTargetFunc",
value: function getTargetFunc() {
const {
getTargetContainer
} = this.context;
const {
target
} = this.props;
if (target !== undefined) {
return target;
}
return getTargetContainer !== null && getTargetContainer !== void 0 ? getTargetContainer : getDefaultTarget;
}
// Event handler
}, {
key: "componentDidMount",
value: function componentDidMount() {
// [Legacy] Wait for parent component ref has its value.
// We should use target as directly element instead of function which makes element check hard.
this.timer = setTimeout(this.addListeners);
}
}, {
key: "componentDidUpdate",
value: function componentDidUpdate(prevProps) {
this.addListeners();
if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) {
this.updatePosition();
}
this.measure();
}
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
this.removeListeners();
}
// =================== Render ===================
}, {
key: "render",
value: function render() {
const {
affixStyle,
placeholderStyle
} = this.state;
const {
affixPrefixCls,
rootClassName,
children
} = this.props;
const className = _classnames_2_5_1_classnames_default()(affixStyle && rootClassName, {
[affixPrefixCls]: !!affixStyle
});
let props = (0,omit/* default */.Z)(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls', 'rootClassName']);
// Omit this since `onTestUpdatePosition` only works on test.
if (false) {}
return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
onResize: this.updatePosition
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, props, {
ref: this.placeholderNodeRef
}), affixStyle && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
style: placeholderStyle,
"aria-hidden": "true"
}), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
ref: this.fixedNodeRef,
style: affixStyle
}, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
onResize: this.updatePosition
}, children))));
}
}]);
return InternalAffix;
}(_react_17_0_2_react.Component);
InternalAffix.contextType = context/* ConfigContext */.E_;
const Affix = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)((props, ref) => {
const {
prefixCls: customizePrefixCls,
rootClassName
} = props;
const {
getPrefixCls
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const affixPrefixCls = getPrefixCls('affix', customizePrefixCls);
const [wrapSSR, hashId] = style(affixPrefixCls);
const AffixProps = Object.assign(Object.assign({}, props), {
affixPrefixCls,
rootClassName: _classnames_2_5_1_classnames_default()(rootClassName, hashId)
});
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(InternalAffix, Object.assign({}, AffixProps, {
ref: ref
})));
});
if (false) {}
/* harmony default export */ var affix = (Affix);
/***/ }),
/***/ 69340:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/image/index.js + 26 modules ***!

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

@ -1835,6 +1835,7 @@ var AnswerComments = function AnswerComments(_ref) {
var TextArea = antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.TextArea;
var Fill = function Fill(_ref) {
var item = _ref.item,
@ -1887,8 +1888,7 @@ var Fill = function Fill(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("aside", {
className: "font14 c-light-primary mb5",
children: "\u5B66\u751F\u7B54\u9898"
}), extra && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("aside", {
className: "font14 c-light-primary mb5",
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
children: extra
})]
}), userAnswer === null || userAnswer === void 0 ? void 0 : userAnswer.map(function (answer, index) {

@ -3319,6 +3319,154 @@ function useInterval(callback, delay) {
/***/ }),
/***/ 91426:
/*!***************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.tsx + 1 modules ***!
\***************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ component_AnswerComments; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AnswerCommentsmodules = ({"flex_box_center":"flex_box_center___hzSR8","flex_space_between":"flex_space_between___Mscip","flex_box_vertical_center":"flex_box_vertical_center___Uckau","flex_box_center_end":"flex_box_center_end___Kw1tf","flex_box_column":"flex_box_column___udgQE","comments":"comments___He0El","line":"line___P3zVB"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(18765);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// 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/Review/component/AnswerComments/index.tsx
var AnswerComments = function AnswerComments(_ref) {
var list = _ref.list,
_ref$hideScore = _ref.hideScore,
hideScore = _ref$hideScore === void 0 ? false : _ref$hideScore,
newuserCommentVisible = _ref.newuserCommentVisible;
console.log('xxxx', list);
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: list === null || list === void 0 ? void 0 : list.map(function (v) {
var _v$user, _v$user2, _v$user3, _v$comments;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.API_SERVER + '/images/' + (v === null || v === void 0 || (_v$user2 = v.user) === null || _v$user2 === void 0 ? void 0 : _v$user2.image_url),
width: "40",
style: {
borderRadius: 40
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 font16",
children: v === null || v === void 0 || (_v$user3 = v.user) === null || _v$user3 === void 0 ? void 0 : _v$user3.name
})]
}, v === null || v === void 0 || (_v$user = v.user) === null || _v$user === void 0 ? void 0 : _v$user.user_id), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.comments,
children: v === null || v === void 0 || (_v$comments = v.comments) === null || _v$comments === void 0 ? void 0 : _v$comments.map(function (e, i) {
if (newuserCommentVisible && e.question_type !== 5) {
if (i === 0) {
var _v$user4, _v$comments2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flexShrink: 0,
marginRight: 10
},
children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
}), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: 1
},
children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e === null || e === void 0 ? void 0 : e.score
}), "\u5206"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flexShrink: 0
},
children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
})]
}), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u8BC4\u8BED\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e.comment
})]
}), (v === null || v === void 0 || (_v$comments2 = v.comments) === null || _v$comments2 === void 0 ? void 0 : _v$comments2.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.line
})]
}, (v === null || v === void 0 || (_v$user4 = v.user) === null || _v$user4 === void 0 ? void 0 : _v$user4.user_id) + '-' + i);
}
} else {
var _v$user5, _e$comment, _v$comments3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
children: [!!e.shixun_chanllge_position && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flexShrink: 0,
marginRight: 10
},
children: ["\u7B2C", e.shixun_chanllge_position, "\u5173"]
}), !hideScore && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: 1
},
children: ["\u539F\u59CB\u5F97\u5206", e === null || e === void 0 ? void 0 : e.origin_score, "\u5206\uFF0C\u4FEE\u6B63\u4E3A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: e === null || e === void 0 ? void 0 : e.score
}), "\u5206"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flexShrink: 0
},
children: dayjs_min_default()(e.updated_at).format('YYYY-MM-DD HH:mm')
})]
}), !!e.comment && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-wrp",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u8BC4\u8BED\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary flex1",
dangerouslySetInnerHTML: {
__html: ((_e$comment = e.comment) === null || _e$comment === void 0 ? void 0 : _e$comment.replace(/\n/g, "<br/>")) || ""
}
})]
}), (v === null || v === void 0 || (_v$comments3 = v.comments) === null || _v$comments3 === void 0 ? void 0 : _v$comments3.length) - 1 > i && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AnswerCommentsmodules.line
})]
}, (v === null || v === void 0 || (_v$user5 = v.user) === null || _v$user5 === void 0 ? void 0 : _v$user5.user_id) + '-' + i);
}
})
})]
});
})
});
};
/* harmony default export */ var component_AnswerComments = (AnswerComments);
/***/ }),
/***/ 43095:
/*!**************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/Review/component/Program.tsx ***!

@ -3954,6 +3954,7 @@ var Answer = function Answer(_ref) {
var renderSingles = function renderSingles(items, keys, i) {
var _answerData$exercise2, _items$sub_exercise_q4;
var disabled = (answerData === null || answerData === void 0 || (_answerData$exercise2 = answerData.exercise) === null || _answerData$exercise2 === void 0 ? void 0 : _answerData$exercise2.user_exercise_status) === 1 || !items.repeat_answer && items.ques_status !== 0;
var answerText = '';
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: items === null || items === void 0 || (_items$sub_exercise_q4 = items.sub_exercise_questions) === null || _items$sub_exercise_q4 === void 0 ? void 0 : _items$sub_exercise_q4.map(function (item, key) {
var _item$user_answer2, _item$question_choice3;

@ -30,7 +30,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi_production_exports = __webpack_require__(53156);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/Statistics/PracticeDetail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var PracticeDetailmodules = ({"flex_box_center":"flex_box_center___ispni","flex_space_between":"flex_space_between___oFahK","flex_box_vertical_center":"flex_box_vertical_center___Gvv9d","flex_box_center_end":"flex_box_center_end___74s4S","flex_box_column":"flex_box_column___bEXcH","Onerow":"Onerow___wpdQ9","bg":"bg___cMcut","circularBlue":"circularBlue___ZqUpd","circularRed":"circularRed____yIMw","circularOrange":"circularOrange___rnEuo","circularGreen":"circularGreen___MgPXy","circularGrey":"circularGrey___TZspz","typeTitle":"typeTitle___oONVp","answerError":"answerError___rqa4N","greenBg":"greenBg___a0AHR","blueBg":"blueBg___oqrFa","redBg":"redBg___txmVB","orangeBg":"orangeBg___DkHDf","greyBg":"greyBg___xwEBl","questionsInfo":"questionsInfo___ckmSf","questionIcons":"questionIcons___h8rrM","grey":"grey___xgaEI","green":"green___mp_Xf","blue":"blue___i2cCi","orange":"orange___quvmm","red":"red___GxnoA"});
/* harmony default export */ var PracticeDetailmodules = ({"flex_box_center":"flex_box_center___ispni","flex_space_between":"flex_space_between___oFahK","flex_box_vertical_center":"flex_box_vertical_center___Gvv9d","flex_box_center_end":"flex_box_center_end___74s4S","flex_box_column":"flex_box_column___bEXcH","Onerow":"Onerow___wpdQ9","bg":"bg___cMcut","circularBlue":"circularBlue___ZqUpd","circularRed":"circularRed____yIMw","circularOrange":"circularOrange___rnEuo","circularGreen":"circularGreen___MgPXy","circularGrey":"circularGrey___TZspz","typeTitle":"typeTitle___oONVp","answerError":"answerError___rqa4N","greenBg":"greenBg___a0AHR","blueBg":"blueBg___oqrFa","redBg":"redBg___txmVB","orangeBg":"orangeBg___DkHDf","greyBg":"greyBg___xwEBl","questionsInfo":"questionsInfo___ckmSf","questionIcons":"questionIcons___h8rrM","grey":"grey___xgaEI","green":"green___mp_Xf","blue":"blue___i2cCi","orange":"orange___quvmm","red":"red___GxnoA","buttonFixed":"buttonFixed___ecEGB","leftBar":"leftBar___x45oe"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
@ -45,12 +45,16 @@ var es_checkbox = __webpack_require__(24905);
var divider = __webpack_require__(28103);
// 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/affix/index.js + 2 modules
var affix = __webpack_require__(81228);
// 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/switch/index.js + 2 modules
var es_switch = __webpack_require__(78673);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(52306);
// 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: ./src/components/RenderHtml/index.tsx + 1 modules
@ -73,8 +77,6 @@ var NewShixun = __webpack_require__(27082);
var Simple = __webpack_require__(1349);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/NewProgram.tsx
var NewProgram = __webpack_require__(41568);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.tsx + 1 modules
var AnswerComments = __webpack_require__(91426);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(25644);
// EXTERNAL MODULE: ./src/assets/images/icons/commented.png
@ -91,13 +93,15 @@ var partially_correct = __webpack_require__(39532);
var paths = __webpack_require__(44011);
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
var useCustomRequest = __webpack_require__(51102);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(35713);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/Statistics/PracticeDetail/index.tsx
var _excluded = ["user", "pathsDetail", "globalSetting"];
var _excluded = ["user", "pathsDetail", "globalSetting", "dispatch"];
@ -180,10 +184,11 @@ var renderBadge = function renderBadge(item) {
}
};
var Statistics = function Statistics(_ref) {
var _ExerciseData$exercis3, _ExerciseData$exercis4, _ExerciseData$exercis5, _ExerciseData$exercis6, _ExerciseData$exercis7, _ExerciseData$exercis8, _ExerciseData$exercis9, _ExerciseData$exercis10, _ExerciseData$exercis11, _ExerciseData$exercis12, _ExerciseData$exercis13, _ExerciseData$exercis14, _ExerciseData$exercis15, _ExerciseData$exercis16, _ExerciseData$exercis17;
var _ExerciseData$exercis3, _ExerciseData$exercis4, _ExerciseData$exercis5, _ExerciseData$exercis6, _ExerciseData$exercis7, _ExerciseData$exercis8, _ExerciseData$exercis9, _ExerciseData$exercis10, _ExerciseData$exercis11, _ExerciseData$exercis12, _ExerciseData$exercis13, _ExerciseData$exercis14, _ExerciseData$exercis15, _ExerciseData$exercis16, _ExerciseData$exercis17, _ExerciseData$review_, _ExerciseData$review_3, _urlData$recommend_it;
var user = _ref.user,
pathsDetail = _ref.pathsDetail,
globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(paths/* getConsultExercise */.Do, {
@ -206,7 +211,8 @@ var Statistics = function Statistics(_ref) {
urlData = _useState2[0],
setUrlData = _useState2[1];
var renderQuestion = function renderQuestion(item, i) {
var _item$user_answer, _item$question_choice, _item$question_choice2, _item$user_answer2, _item$question_choice3, _item$answer_record, _item$recommend_item_, _item$sub_exercise_qu, _item$question_choice4, _item$user_answer4, _item$answer_record2, _item$recommend_item_2, _ref2, _ref3, _ref4, _ref5;
var _item$user_answer, _item$question_choice, _item$question_choice2, _item$user_answer2, _item$question_choice3, _item$answer_record, _item$recommend_item_, _item$sub_exercise_qu, _item$question_choice4, _item$user_answer4, _item$answer_record2, _item$recommend_item_2, _item$tag_disciplines, _ref2, _ref3, _ref4, _ref5;
var isModal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: "mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
@ -228,21 +234,7 @@ var Statistics = function Statistics(_ref) {
children: [i + 1, "."]
}), item.question_type === 6 ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "font16 line26",
children: !!(item !== null && item !== void 0 && item.hack_user_identifier) ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
target: "_blank",
href: "/myproblems/".concat(item === null || item === void 0 ? void 0 : item.hack_user_identifier),
children: item.question_title
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
target: "_blank",
style: {
textDecoration: "underline"
},
className: "ml15",
href: "/myproblems/".concat(item === null || item === void 0 ? void 0 : item.hack_user_identifier),
children: ["\u67E5\u770B\u7B54\u9898\u8BE6\u60C5", '>']
})]
}) : item.question_title
children: item.question_title
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: (item === null || item === void 0 ? void 0 : item.question_type) === 8 ? item.description : item.question_title + "".concat(item.question_type === 7 ? "\uFF08\u5171".concat(item === null || item === void 0 ? void 0 : item.sub_q_count, "\u9898 ").concat(item === null || item === void 0 ? void 0 : item.question_score, "\u5206\uFF09") : '')
})]
@ -303,7 +295,11 @@ var Statistics = function Statistics(_ref) {
changeScoreData: [],
textValue: "",
textOnChange: function textOnChange(value) {},
extra: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
extra: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mb5",
style: {
marginLeft: "auto"
},
children: [(item === null || item === void 0 || (_item$answer_record = item.answer_record) === null || _item$answer_record === void 0 ? void 0 : _item$answer_record.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue ml20 current",
onClick: function onClick() {
@ -378,7 +374,7 @@ var Statistics = function Statistics(_ref) {
})
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !isModal && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "p30",
style: {
background: "#fafafa",
@ -386,6 +382,10 @@ var Statistics = function Statistics(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr5",
style: {
display: "inline-flex",
width: "100%"
},
children: ["\u5B66\u751F\u7B54\u6848\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue",
children: [(_jte$question_choices2 = jte.question_choices) === null || _jte$question_choices2 === void 0 || (_jte$question_choices2 = _jte$question_choices2.filter(function (i) {
@ -393,8 +393,14 @@ var Statistics = function Statistics(_ref) {
return (_jte$user_answer2 = jte.user_answer) === null || _jte$user_answer2 === void 0 ? void 0 : _jte$user_answer2.includes(i.choice_id);
})) === null || _jte$question_choices2 === void 0 ? void 0 : _jte$question_choices2.map(function (i, key) {
return item.question_type === 2 ? util/* JudgeSort */.Qq[i.choice_position - 1] : util/* ZimuSort */.oV[i.choice_position - 1];
}), ((_jte$user_answer3 = jte.user_answer) === null || _jte$user_answer3 === void 0 ? void 0 : _jte$user_answer3.length) <= 0 && '未答', (jte === null || jte === void 0 || (_jte$answer_record = jte.answer_record) === null || _jte$answer_record === void 0 ? void 0 : _jte$answer_record.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue ml20 current",
}), ((_jte$user_answer3 = jte.user_answer) === null || _jte$user_answer3 === void 0 ? void 0 : _jte$user_answer3.length) <= 0 && '未答']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue",
style: {
marginLeft: "auto"
},
children: [(jte === null || jte === void 0 || (_jte$answer_record = jte.answer_record) === null || _jte$answer_record === void 0 ? void 0 : _jte$answer_record.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "current",
onClick: function onClick() {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
AnswerOpen: true,
@ -403,7 +409,7 @@ var Statistics = function Statistics(_ref) {
},
children: " \u67E5\u770B\u4F5C\u7B54\u8BB0\u5F55"
}), (jte === null || jte === void 0 || (_jte$recommend_item_b = jte.recommend_item_banks) === null || _jte$recommend_item_b === void 0 ? void 0 : _jte$recommend_item_b.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue ml10 current",
className: "ml10 current",
onClick: function onClick() {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
RecommendOpen: true,
@ -423,11 +429,9 @@ var Statistics = function Statistics(_ref) {
})]
})]
});
})), (item === null || item === void 0 ? void 0 : item.answer_comments) && /*#__PURE__*/(0,jsx_runtime.jsx)(AnswerComments/* default */.Z, {
list: item === null || item === void 0 ? void 0 : item.answer_comments
})]
}))]
})]
}), item.question_type < 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !isModal && item.question_type < 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "p30",
style: {
background: "#fafafa",
@ -435,6 +439,10 @@ var Statistics = function Statistics(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr5",
style: {
display: "inline-flex",
width: "100%"
},
children: ["\u5B66\u751F\u7B54\u6848\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue",
children: [(_item$question_choice4 = item.question_choices) === null || _item$question_choice4 === void 0 || (_item$question_choice4 = _item$question_choice4.filter(function (i) {
@ -442,8 +450,14 @@ var Statistics = function Statistics(_ref) {
return (_item$user_answer3 = item.user_answer) === null || _item$user_answer3 === void 0 ? void 0 : _item$user_answer3.includes(i.choice_id);
})) === null || _item$question_choice4 === void 0 ? void 0 : _item$question_choice4.map(function (i, key) {
return item.question_type === 2 ? util/* JudgeSort */.Qq[i.choice_position - 1] : util/* ZimuSort */.oV[i.choice_position - 1];
}), ((_item$user_answer4 = item.user_answer) === null || _item$user_answer4 === void 0 ? void 0 : _item$user_answer4.length) <= 0 && '未答', (item === null || item === void 0 || (_item$answer_record2 = item.answer_record) === null || _item$answer_record2 === void 0 ? void 0 : _item$answer_record2.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue ml20 current",
}), ((_item$user_answer4 = item.user_answer) === null || _item$user_answer4 === void 0 ? void 0 : _item$user_answer4.length) <= 0 && '未答']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-blue",
style: {
marginLeft: "auto"
},
children: [(item === null || item === void 0 || (_item$answer_record2 = item.answer_record) === null || _item$answer_record2 === void 0 ? void 0 : _item$answer_record2.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "current",
onClick: function onClick() {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
AnswerOpen: true,
@ -452,7 +466,7 @@ var Statistics = function Statistics(_ref) {
},
children: " \u67E5\u770B\u4F5C\u7B54\u8BB0\u5F55"
}), (item === null || item === void 0 || (_item$recommend_item_2 = item.recommend_item_banks) === null || _item$recommend_item_2 === void 0 ? void 0 : _item$recommend_item_2.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue ml10 current",
className: "ml10 current",
onClick: function onClick() {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
RecommendOpen: true,
@ -470,8 +484,64 @@ var Statistics = function Statistics(_ref) {
value: item.analysis
})]
})]
}), isModal && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font16 c-grey mt20",
style: {
borderBottom: "1px solid #F6F7F9",
paddingBottom: 12
},
children: ["\u7B54\u9898\u7ED3\u679C", item.is_right ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10",
style: {
color: "#29A64F"
},
children: "\u7B54\u5BF9\u4E86"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10",
style: {
color: "#E53333"
},
children: "\u7B54\u9519\u4E86"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "p20 mt20",
style: {
background: "#F6F7F9",
color: "#5F6367"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
gutter: 10,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u3010\u7B54\u6848\u3011"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: item === null || item === void 0 ? void 0 : item.standard_answer_show
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
gutter: 10,
className: "mt10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u3010\u89E3\u6790\u3011"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: item.analysis
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
gutter: 10,
className: "mt10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u3010\u77E5\u8BC6\u70B9\u3011"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: item === null || item === void 0 || (_item$tag_disciplines = item.tag_disciplines) === null || _item$tag_disciplines === void 0 ? void 0 : _item$tag_disciplines.join("、")
})]
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
}), !isModal && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "140px",
className: "ml20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -603,7 +673,23 @@ var Statistics = function Statistics(_ref) {
return dom;
};
(0,_react_17_0_2_react.useEffect)(function () {
handleConsultExercise({});
(params === null || params === void 0 ? void 0 : params.userId) && handleConsultExercise({}, true);
}, [params === null || params === void 0 ? void 0 : params.userId]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: "globalSetting/footerToggle",
payload: false
});
dispatch({
type: 'globalSetting/onlyShowBackTopToggle',
payload: true
});
return function () {
dispatch({
type: 'globalSetting/onlyShowBackTopToggle',
payload: false
});
};
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
spinning: ExerciseLoading,
@ -635,138 +721,142 @@ var Statistics = function Statistics(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
gutter: 20,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "284px",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-container bg-white",
style: {
padding: "16px 14px",
position: "relative"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 60,
height: 68,
src: env/* default */.Z.API_SERVER + '/images/' + (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis6 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis6 === void 0 ? void 0 : _ExerciseData$exercis6.user_img)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: PracticeDetailmodules.leftBar,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(affix/* default */.Z, {
offsetTop: 0,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-container bg-white",
style: {
display: 'flex',
flexDirection: "column",
marginLeft: 14,
gap: 4,
flex: 1
padding: "16px 14px",
position: "relative"
},
children: [{
title: "姓名",
value: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis7 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis7 === void 0 ? void 0 : _ExerciseData$exercis7.user_name
}, {
title: "学号",
value: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis8 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis8 === void 0 ? void 0 : _ExerciseData$exercis8.student_id
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: item.value,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(PracticeDetailmodules.Onerow, " blod"),
style: {
color: "#171717",
maxWidth: 160
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr5",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 60,
height: 68,
src: env/* default */.Z.API_SERVER + '/images/' + (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis6 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis6 === void 0 ? void 0 : _ExerciseData$exercis6.user_img)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: 'flex',
flexDirection: "column",
marginLeft: 14,
gap: 4,
flex: 1
},
children: [{
title: "姓名",
value: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis7 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis7 === void 0 ? void 0 : _ExerciseData$exercis7.user_name
}, {
title: "学号",
value: ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis8 = ExerciseData.exercise_answer_user) === null || _ExerciseData$exercis8 === void 0 ? void 0 : _ExerciseData$exercis8.student_id
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: item.value,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(PracticeDetailmodules.Onerow, " blod"),
style: {
color: "#6F7378",
fontWeight: 400
color: "#171717",
maxWidth: 160
},
children: item.title
}), item.value]
}, index)
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 76,
height: 76,
style: {
position: "absolute",
top: -2,
right: -2
},
src: (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis9 = ExerciseData.exercise) === null || _ExerciseData$exercis9 === void 0 ? void 0 : _ExerciseData$exercis9.answer_total_count) == (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis10 = ExerciseData.exercise_scores) === null || _ExerciseData$exercis10 === void 0 || (_ExerciseData$exercis10 = _ExerciseData$exercis10.exercise_types) === null || _ExerciseData$exercis10 === void 0 ? void 0 : _ExerciseData$exercis10.q_counts) ? finish_namespaceObject : nofinish_namespaceObject
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "bg-white p20 mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
children: "\u7B54\u9898\u5361"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
flexDirection: 'column'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u4EC5\u663E\u793A\u9519\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
className: "ml5",
checked: urlData.showIncorrect,
onChange: function onChange(showIncorrect) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
showIncorrect: showIncorrect
}));
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "mt5",
children: ["\u4EC5\u663E\u793A\u4E3B\u89C2\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
checked: urlData.showsub,
className: "ml5",
onChange: function onChange(showsub) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
showsub: showsub
}));
}
})]
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr5",
style: {
color: "#6F7378",
fontWeight: 400
},
children: item.title
}), item.value]
}, index)
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
width: 76,
height: 76,
style: {
position: "absolute",
top: -2,
right: -2
},
src: (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis9 = ExerciseData.exercise) === null || _ExerciseData$exercis9 === void 0 ? void 0 : _ExerciseData$exercis9.answer_total_count) == (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis10 = ExerciseData.exercise_scores) === null || _ExerciseData$exercis10 === void 0 || (_ExerciseData$exercis10 = _ExerciseData$exercis10.exercise_types) === null || _ExerciseData$exercis10 === void 0 ? void 0 : _ExerciseData$exercis10.q_counts) ? finish_namespaceObject : nofinish_namespaceObject
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt10",
gutter: [20, 10],
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: PracticeDetailmodules.circularBlue
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6B63\u786E"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(PracticeDetailmodules.circularRed)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9519\u8BEF"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "bg-white p20 mt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
children: "\u7B54\u9898\u5361"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
flexDirection: 'column'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u4EC5\u663E\u793A\u9519\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
className: "ml5",
checked: urlData.showIncorrect,
onChange: function onChange(showIncorrect) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
showIncorrect: showIncorrect
}));
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "mt5",
children: ["\u4EC5\u663E\u793A\u4E3B\u89C2\u9898", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
checked: urlData.showsub,
className: "ml5",
onChange: function onChange(showsub) {
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
showsub: showsub
}));
}
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(PracticeDetailmodules.circularGrey)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u672A\u7B54"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt10",
gutter: [20, 10],
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: PracticeDetailmodules.circularBlue
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6B63\u786E"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(PracticeDetailmodules.circularRed)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9519\u8BEF"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(PracticeDetailmodules.circularGrey)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u672A\u7B54"
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "bg-white p20 mt10 pr10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
className: "c-blue",
children: "\u5BA2\u89C2\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: PracticeDetailmodules.questionIcons,
children: renderClassifyIndex()
})]
}), (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis11 = ExerciseData.exercise_question_types) === null || _ExerciseData$exercis11 === void 0 ? void 0 : _ExerciseData$exercis11.some(function (e) {
return e.question_type === 4;
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "bg-white p20 mt10 pr10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
className: "c-blue",
children: "\u4E3B\u89C2\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: PracticeDetailmodules.questionIcons,
children: renderClassifyIndex(true)
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "bg-white p20 mt10 pr10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
className: "c-blue",
children: "\u5BA2\u89C2\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: PracticeDetailmodules.questionIcons,
children: renderClassifyIndex()
})]
}), (ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$exercis11 = ExerciseData.exercise_question_types) === null || _ExerciseData$exercis11 === void 0 ? void 0 : _ExerciseData$exercis11.some(function (e) {
return e.question_type === 4;
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "bg-white p20 mt10 pr10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
className: "c-blue",
children: "\u4E3B\u89C2\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: PracticeDetailmodules.questionIcons,
children: renderClassifyIndex(true)
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: 1,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -854,7 +944,48 @@ var Statistics = function Statistics(_ref) {
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: PracticeDetailmodules.buttonFixed,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: 1200,
margin: "auto",
height: "100%"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
justify: "space-between",
style: {
height: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
_umi_production_exports.history.push("/paths/".concat(params.pathId, "/statistics/").concat(params.stageId, "/practice/").concat(params === null || params === void 0 ? void 0 : params.practiceId));
},
children: "\u8FD4\u56DE"
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
disabled: !(ExerciseData !== null && ExerciseData !== void 0 && (_ExerciseData$review_ = ExerciseData.review_progress) !== null && _ExerciseData$review_ !== void 0 && _ExerciseData$review_.prev_login),
onClick: function onClick() {
var _ExerciseData$review_2;
_umi_production_exports.history.push("/paths/".concat(params.pathId, "/statistics/").concat(params.stageId, "/practice/").concat(params.practiceId, "/detail/").concat(ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$review_2 = ExerciseData.review_progress) === null || _ExerciseData$review_2 === void 0 ? void 0 : _ExerciseData$review_2.prev_login));
},
children: "\u4E0A\u4E00\u4EBA"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "ml20",
disabled: !(ExerciseData !== null && ExerciseData !== void 0 && (_ExerciseData$review_3 = ExerciseData.review_progress) !== null && _ExerciseData$review_3 !== void 0 && _ExerciseData$review_3.next_login),
onClick: function onClick() {
var _ExerciseData$review_4;
_umi_production_exports.history.push("/paths/".concat(params.pathId, "/statistics/").concat(params.stageId, "/practice/").concat(params.practiceId, "/detail/").concat(ExerciseData === null || ExerciseData === void 0 || (_ExerciseData$review_4 = ExerciseData.review_progress) === null || _ExerciseData$review_4 === void 0 ? void 0 : _ExerciseData$review_4.next_login));
},
children: "\u4E0B\u4E00\u4EBA"
})]
})]
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "作答记录",
open: urlData === null || urlData === void 0 ? void 0 : urlData.AnswerOpen,
destroyOnClose: true,
@ -888,6 +1019,35 @@ var Statistics = function Statistics(_ref) {
}],
dataSource: (urlData === null || urlData === void 0 ? void 0 : urlData.answer_record) || []
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
title: "推荐题目作答详情",
open: urlData === null || urlData === void 0 ? void 0 : urlData.RecommendOpen,
destroyOnClose: true,
centered: true,
width: 800,
footer: null,
onCancel: function onCancel() {
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
RecommendOpen: false,
recommend_item_banks: []
}));
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
maxHeight: 800,
overflow: "auto"
},
children: urlData === null || urlData === void 0 || (_urlData$recommend_it = urlData.recommend_item_banks) === null || _urlData$recommend_it === void 0 ? void 0 : _urlData$recommend_it.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: renderQuestion(objectSpread2_default()(objectSpread2_default()({}, item), {}, {
question_type: constant/* QUESTIONTYPE */.f.find(function (i) {
return i.nameType == (item === null || item === void 0 ? void 0 : item.question_type);
}).id,
user_answer: item === null || item === void 0 ? void 0 : item.answer_content
}), index, true)
});
})
})
})]
});
};

@ -177,6 +177,28 @@
.questionIcons___h8rrM .red___GxnoA:hover {
background-color: #ffbdb6;
}
.buttonFixed___ecEGB {
position: fixed;
z-index: 1000;
bottom: 0;
left: 0;
width: 100%;
height: 70px;
background: #fff;
box-shadow: 0px -2px 8px 0px #F1F1F1;
}
.buttonFixed___ecEGB [class^="ant-btn"] {
border-radius: 2px;
height: 40px;
}
.leftBar___x45oe {
padding-bottom: 70px;
}
.leftBar___x45oe [class~='ant-affix'] {
height: 100% !important;
padding-bottom: 80px;
overflow: auto;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.1.8@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.8@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/component/index.less?modules ***!
@ -802,46 +824,3 @@
border-color: #5784de;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.1.8@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.8@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/component/AnswerComments/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___hzSR8 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___Mscip {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Uckau {
align-items: center;
box-align: center;
}
.flex_box_center_end___Kw1tf {
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___udgQE {
flex-direction: column;
box-orient: block-axis;
}
.comments___He0El {
background-color: #f2f2f2;
padding: 10px 14px;
border-radius: 2px;
margin-top: 11px;
}
.comments___He0El .line___P3zVB {
height: 1px;
border-bottom: 1px dashed #d3d1d1;
margin: 7px 0;
}

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