|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64702],{
|
|
|
|
|
|
/***/ 99539:
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./src/pages/Paths/Detail/Statistics/Practice/index.tsx + 10 modules ***!
|
|
|
\***************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// ESM COMPAT FLAG
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
"default": function() { return /* binding */ Practice; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
|
|
var toConsumableArray = __webpack_require__(37205);
|
|
|
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
|
var _umi_production_exports = __webpack_require__(28118);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/Statistics/Practice/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Practicemodules = ({"Onerow":"Onerow___ncPNN","bg":"bg___QHfXX","active":"active___u3nzz","TableDom":"TableDom___AeYBg","FormCheckBoxDom":"FormCheckBoxDom___n6C21","CollapseDom":"CollapseDom___LRc9q","CollapseDomC":"CollapseDomC___jkD9c","CollapseChildrenDom":"CollapseChildrenDom___HyH0O","open":"open___iUABc","DomStyle":"DomStyle___a9arW","DomStyleTitle":"DomStyleTitle___M1V09","DomStyleTitleChild":"DomStyleTitleChild___subgQ","Sessce":"Sessce___nrKjA","AnswerSDom":"AnswerSDom___XsO2P"});
|
|
|
// 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/row/index.js
|
|
|
var row = __webpack_require__(95237);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
|
var col = __webpack_require__(43604);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
|
var es_form = __webpack_require__(78241);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
|
var spin = __webpack_require__(71418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
|
|
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
|
|
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/responsiveObserver.js
|
|
|
var responsiveObserver = __webpack_require__(69507);
|
|
|
// 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/config-provider/hooks/useSize.js
|
|
|
var useSize = __webpack_require__(19716);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/grid/hooks/useBreakpoint.js
|
|
|
var useBreakpoint = __webpack_require__(8628);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/constant.js
|
|
|
const DEFAULT_COLUMN_MAP = {
|
|
|
xxl: 3,
|
|
|
xl: 3,
|
|
|
lg: 3,
|
|
|
md: 3,
|
|
|
sm: 2,
|
|
|
xs: 1
|
|
|
};
|
|
|
/* harmony default export */ var constant = (DEFAULT_COLUMN_MAP);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/DescriptionsContext.js
|
|
|
|
|
|
const DescriptionsContext = /*#__PURE__*/_react_17_0_2_react.createContext({});
|
|
|
/* harmony default export */ var descriptions_DescriptionsContext = (DescriptionsContext);
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-util@5.41.0@rc-util/es/Children/toArray.js
|
|
|
var toArray = __webpack_require__(29541);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/hooks/useItems.js
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Convert children into items
|
|
|
const transChildren2Items = childNodes => (0,toArray/* default */.Z)(childNodes).map(node => Object.assign({}, node === null || node === void 0 ? void 0 : node.props));
|
|
|
function useItems(screens, items, children) {
|
|
|
const mergedItems = _react_17_0_2_react.useMemo(() =>
|
|
|
// Take `items` first or convert `children` into items
|
|
|
items || transChildren2Items(children), [items, children]);
|
|
|
const responsiveItems = _react_17_0_2_react.useMemo(() => mergedItems.map(_a => {
|
|
|
var {
|
|
|
span
|
|
|
} = _a,
|
|
|
restItem = __rest(_a, ["span"]);
|
|
|
return Object.assign(Object.assign({}, restItem), {
|
|
|
span: typeof span === 'number' ? span : (0,responsiveObserver/* matchScreen */.m9)(screens, span)
|
|
|
});
|
|
|
}), [mergedItems, screens]);
|
|
|
return responsiveItems;
|
|
|
}
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/hooks/useRow.js
|
|
|
|
|
|
|
|
|
function getFilledItem(rowItem, rowRestCol, span) {
|
|
|
let clone = rowItem;
|
|
|
if (span === undefined || span > rowRestCol) {
|
|
|
clone = Object.assign(Object.assign({}, rowItem), {
|
|
|
span: rowRestCol
|
|
|
});
|
|
|
false ? 0 : void 0;
|
|
|
}
|
|
|
return clone;
|
|
|
}
|
|
|
// Calculate the sum of span in a row
|
|
|
function getCalcRows(rowItems, mergedColumn) {
|
|
|
const rows = [];
|
|
|
let tmpRow = [];
|
|
|
let rowRestCol = mergedColumn;
|
|
|
rowItems.filter(n => n).forEach((rowItem, index) => {
|
|
|
const span = rowItem === null || rowItem === void 0 ? void 0 : rowItem.span;
|
|
|
const mergedSpan = span || 1;
|
|
|
// Additional handle last one
|
|
|
if (index === rowItems.length - 1) {
|
|
|
tmpRow.push(getFilledItem(rowItem, rowRestCol, span));
|
|
|
rows.push(tmpRow);
|
|
|
return;
|
|
|
}
|
|
|
if (mergedSpan < rowRestCol) {
|
|
|
rowRestCol -= mergedSpan;
|
|
|
tmpRow.push(rowItem);
|
|
|
} else {
|
|
|
tmpRow.push(getFilledItem(rowItem, rowRestCol, mergedSpan));
|
|
|
rows.push(tmpRow);
|
|
|
rowRestCol = mergedColumn;
|
|
|
tmpRow = [];
|
|
|
}
|
|
|
});
|
|
|
return rows;
|
|
|
}
|
|
|
const useRow = (mergedColumn, items) => {
|
|
|
const rows = (0,_react_17_0_2_react.useMemo)(() => getCalcRows(items, mergedColumn), [items, mergedColumn]);
|
|
|
return rows;
|
|
|
};
|
|
|
/* harmony default export */ var hooks_useRow = (useRow);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/Item.js
|
|
|
const DescriptionsItem = _ref => {
|
|
|
let {
|
|
|
children
|
|
|
} = _ref;
|
|
|
return children;
|
|
|
};
|
|
|
/* harmony default export */ var Item = (DescriptionsItem);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/Cell.js
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
function notEmpty(val) {
|
|
|
return val !== undefined && val !== null;
|
|
|
}
|
|
|
const Cell = props => {
|
|
|
const {
|
|
|
itemPrefixCls,
|
|
|
component,
|
|
|
span,
|
|
|
className,
|
|
|
style,
|
|
|
labelStyle,
|
|
|
contentStyle,
|
|
|
bordered,
|
|
|
label,
|
|
|
content,
|
|
|
colon
|
|
|
} = props;
|
|
|
const Component = component;
|
|
|
if (bordered) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(Component, {
|
|
|
className: _classnames_2_5_1_classnames_default()({
|
|
|
[`${itemPrefixCls}-item-label`]: notEmpty(label),
|
|
|
[`${itemPrefixCls}-item-content`]: notEmpty(content)
|
|
|
}, className),
|
|
|
style: style,
|
|
|
colSpan: span
|
|
|
}, notEmpty(label) && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
style: labelStyle
|
|
|
}, label), notEmpty(content) && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
style: contentStyle
|
|
|
}, content));
|
|
|
}
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(Component, {
|
|
|
className: _classnames_2_5_1_classnames_default()(`${itemPrefixCls}-item`, className),
|
|
|
style: style,
|
|
|
colSpan: span
|
|
|
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
className: `${itemPrefixCls}-item-container`
|
|
|
}, (label || label === 0) && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
className: _classnames_2_5_1_classnames_default()(`${itemPrefixCls}-item-label`, {
|
|
|
[`${itemPrefixCls}-item-no-colon`]: !colon
|
|
|
}),
|
|
|
style: labelStyle
|
|
|
}, label), (content || content === 0) && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
className: _classnames_2_5_1_classnames_default()(`${itemPrefixCls}-item-content`),
|
|
|
style: contentStyle
|
|
|
}, content)));
|
|
|
};
|
|
|
/* harmony default export */ var descriptions_Cell = (Cell);
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/Row.js
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function renderCells(items, _ref, _ref2) {
|
|
|
let {
|
|
|
colon,
|
|
|
prefixCls,
|
|
|
bordered
|
|
|
} = _ref;
|
|
|
let {
|
|
|
component,
|
|
|
type,
|
|
|
showLabel,
|
|
|
showContent,
|
|
|
labelStyle: rootLabelStyle,
|
|
|
contentStyle: rootContentStyle
|
|
|
} = _ref2;
|
|
|
return items.map((_ref3, index) => {
|
|
|
let {
|
|
|
label,
|
|
|
children,
|
|
|
prefixCls: itemPrefixCls = prefixCls,
|
|
|
className,
|
|
|
style,
|
|
|
labelStyle,
|
|
|
contentStyle,
|
|
|
span = 1,
|
|
|
key
|
|
|
} = _ref3;
|
|
|
if (typeof component === 'string') {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(descriptions_Cell, {
|
|
|
key: `${type}-${key || index}`,
|
|
|
className: className,
|
|
|
style: style,
|
|
|
labelStyle: Object.assign(Object.assign({}, rootLabelStyle), labelStyle),
|
|
|
contentStyle: Object.assign(Object.assign({}, rootContentStyle), contentStyle),
|
|
|
span: span,
|
|
|
colon: colon,
|
|
|
component: component,
|
|
|
itemPrefixCls: itemPrefixCls,
|
|
|
bordered: bordered,
|
|
|
label: showLabel ? label : null,
|
|
|
content: showContent ? children : null
|
|
|
});
|
|
|
}
|
|
|
return [/*#__PURE__*/_react_17_0_2_react.createElement(descriptions_Cell, {
|
|
|
key: `label-${key || index}`,
|
|
|
className: className,
|
|
|
style: Object.assign(Object.assign(Object.assign({}, rootLabelStyle), style), labelStyle),
|
|
|
span: 1,
|
|
|
colon: colon,
|
|
|
component: component[0],
|
|
|
itemPrefixCls: itemPrefixCls,
|
|
|
bordered: bordered,
|
|
|
label: label
|
|
|
}), /*#__PURE__*/_react_17_0_2_react.createElement(descriptions_Cell, {
|
|
|
key: `content-${key || index}`,
|
|
|
className: className,
|
|
|
style: Object.assign(Object.assign(Object.assign({}, rootContentStyle), style), contentStyle),
|
|
|
span: span * 2 - 1,
|
|
|
component: component[1],
|
|
|
itemPrefixCls: itemPrefixCls,
|
|
|
bordered: bordered,
|
|
|
content: children
|
|
|
})];
|
|
|
});
|
|
|
}
|
|
|
const Row = props => {
|
|
|
const descContext = _react_17_0_2_react.useContext(descriptions_DescriptionsContext);
|
|
|
const {
|
|
|
prefixCls,
|
|
|
vertical,
|
|
|
row,
|
|
|
index,
|
|
|
bordered
|
|
|
} = props;
|
|
|
if (vertical) {
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("tr", {
|
|
|
key: `label-${index}`,
|
|
|
className: `${prefixCls}-row`
|
|
|
}, renderCells(row, props, Object.assign({
|
|
|
component: 'th',
|
|
|
type: 'label',
|
|
|
showLabel: true
|
|
|
}, descContext))), /*#__PURE__*/_react_17_0_2_react.createElement("tr", {
|
|
|
key: `content-${index}`,
|
|
|
className: `${prefixCls}-row`
|
|
|
}, renderCells(row, props, Object.assign({
|
|
|
component: 'td',
|
|
|
type: 'content',
|
|
|
showContent: true
|
|
|
}, descContext))));
|
|
|
}
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement("tr", {
|
|
|
key: index,
|
|
|
className: `${prefixCls}-row`
|
|
|
}, renderCells(row, props, Object.assign({
|
|
|
component: bordered ? ['th', 'td'] : 'td',
|
|
|
type: 'item',
|
|
|
showLabel: true,
|
|
|
showContent: true
|
|
|
}, descContext)));
|
|
|
};
|
|
|
/* harmony default export */ var descriptions_Row = (Row);
|
|
|
// 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/descriptions/style/index.js
|
|
|
|
|
|
|
|
|
const genBorderedStyle = token => {
|
|
|
const {
|
|
|
componentCls,
|
|
|
labelBg
|
|
|
} = token;
|
|
|
return {
|
|
|
[`&${componentCls}-bordered`]: {
|
|
|
[`> ${componentCls}-view`]: {
|
|
|
border: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,
|
|
|
'> table': {
|
|
|
tableLayout: 'auto',
|
|
|
borderCollapse: 'collapse'
|
|
|
},
|
|
|
[`${componentCls}-row`]: {
|
|
|
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,
|
|
|
'&:last-child': {
|
|
|
borderBottom: 'none'
|
|
|
},
|
|
|
[`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {
|
|
|
padding: `${token.padding}px ${token.paddingLG}px`,
|
|
|
borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,
|
|
|
'&:last-child': {
|
|
|
borderInlineEnd: 'none'
|
|
|
}
|
|
|
},
|
|
|
[`> ${componentCls}-item-label`]: {
|
|
|
color: token.colorTextSecondary,
|
|
|
backgroundColor: labelBg,
|
|
|
'&::after': {
|
|
|
display: 'none'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
[`&${componentCls}-middle`]: {
|
|
|
[`${componentCls}-row`]: {
|
|
|
[`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {
|
|
|
padding: `${token.paddingSM}px ${token.paddingLG}px`
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
[`&${componentCls}-small`]: {
|
|
|
[`${componentCls}-row`]: {
|
|
|
[`> ${componentCls}-item-label, > ${componentCls}-item-content`]: {
|
|
|
padding: `${token.paddingXS}px ${token.padding}px`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
const genDescriptionStyles = token => {
|
|
|
const {
|
|
|
componentCls,
|
|
|
extraColor,
|
|
|
itemPaddingBottom,
|
|
|
colonMarginRight,
|
|
|
colonMarginLeft,
|
|
|
titleMarginBottom
|
|
|
} = token;
|
|
|
return {
|
|
|
[componentCls]: Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), genBorderedStyle(token)), {
|
|
|
[`&-rtl`]: {
|
|
|
direction: 'rtl'
|
|
|
},
|
|
|
[`${componentCls}-header`]: {
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
marginBottom: titleMarginBottom
|
|
|
},
|
|
|
[`${componentCls}-title`]: Object.assign(Object.assign({}, style/* textEllipsis */.vS), {
|
|
|
flex: 'auto',
|
|
|
color: token.colorText,
|
|
|
fontWeight: token.fontWeightStrong,
|
|
|
fontSize: token.fontSizeLG,
|
|
|
lineHeight: token.lineHeightLG
|
|
|
}),
|
|
|
[`${componentCls}-extra`]: {
|
|
|
marginInlineStart: 'auto',
|
|
|
color: extraColor,
|
|
|
fontSize: token.fontSize
|
|
|
},
|
|
|
[`${componentCls}-view`]: {
|
|
|
width: '100%',
|
|
|
borderRadius: token.borderRadiusLG,
|
|
|
table: {
|
|
|
width: '100%',
|
|
|
tableLayout: 'fixed'
|
|
|
}
|
|
|
},
|
|
|
[`${componentCls}-row`]: {
|
|
|
'> th, > td': {
|
|
|
paddingBottom: itemPaddingBottom
|
|
|
},
|
|
|
'&:last-child': {
|
|
|
borderBottom: 'none'
|
|
|
}
|
|
|
},
|
|
|
[`${componentCls}-item-label`]: {
|
|
|
color: token.colorTextTertiary,
|
|
|
fontWeight: 'normal',
|
|
|
fontSize: token.fontSize,
|
|
|
lineHeight: token.lineHeight,
|
|
|
textAlign: `start`,
|
|
|
'&::after': {
|
|
|
content: '":"',
|
|
|
position: 'relative',
|
|
|
top: -0.5,
|
|
|
marginInline: `${colonMarginLeft}px ${colonMarginRight}px`
|
|
|
},
|
|
|
[`&${componentCls}-item-no-colon::after`]: {
|
|
|
content: '""'
|
|
|
}
|
|
|
},
|
|
|
[`${componentCls}-item-no-label`]: {
|
|
|
'&::after': {
|
|
|
margin: 0,
|
|
|
content: '""'
|
|
|
}
|
|
|
},
|
|
|
[`${componentCls}-item-content`]: {
|
|
|
display: 'table-cell',
|
|
|
flex: 1,
|
|
|
color: token.colorText,
|
|
|
fontSize: token.fontSize,
|
|
|
lineHeight: token.lineHeight,
|
|
|
wordBreak: 'break-word',
|
|
|
overflowWrap: 'break-word'
|
|
|
},
|
|
|
[`${componentCls}-item`]: {
|
|
|
paddingBottom: 0,
|
|
|
verticalAlign: 'top',
|
|
|
'&-container': {
|
|
|
display: 'flex',
|
|
|
[`${componentCls}-item-label`]: {
|
|
|
display: 'inline-flex',
|
|
|
alignItems: 'baseline'
|
|
|
},
|
|
|
[`${componentCls}-item-content`]: {
|
|
|
display: 'inline-flex',
|
|
|
alignItems: 'baseline'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
'&-middle': {
|
|
|
[`${componentCls}-row`]: {
|
|
|
'> th, > td': {
|
|
|
paddingBottom: token.paddingSM
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
'&-small': {
|
|
|
[`${componentCls}-row`]: {
|
|
|
'> th, > td': {
|
|
|
paddingBottom: token.paddingXS
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
};
|
|
|
};
|
|
|
// ============================== Export ==============================
|
|
|
/* harmony default export */ var descriptions_style = ((0,genComponentStyleHook/* default */.Z)('Descriptions', token => {
|
|
|
const descriptionToken = (0,statistic/* merge */.TS)(token, {});
|
|
|
return [genDescriptionStyles(descriptionToken)];
|
|
|
}, token => ({
|
|
|
labelBg: token.colorFillAlter,
|
|
|
titleMarginBottom: token.fontSizeSM * token.lineHeightSM,
|
|
|
itemPaddingBottom: token.padding,
|
|
|
colonMarginRight: token.marginXS,
|
|
|
colonMarginLeft: token.marginXXS / 2,
|
|
|
extraColor: token.colorText
|
|
|
})));
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/descriptions/index.js
|
|
|
"use client";
|
|
|
|
|
|
var descriptions_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;
|
|
|
};
|
|
|
/* eslint-disable react/no-array-index-key */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Descriptions = props => {
|
|
|
const {
|
|
|
prefixCls: customizePrefixCls,
|
|
|
title,
|
|
|
extra,
|
|
|
column,
|
|
|
colon = true,
|
|
|
bordered,
|
|
|
layout,
|
|
|
children,
|
|
|
className,
|
|
|
rootClassName,
|
|
|
style,
|
|
|
size: customizeSize,
|
|
|
labelStyle,
|
|
|
contentStyle,
|
|
|
items
|
|
|
} = props,
|
|
|
restProps = descriptions_rest(props, ["prefixCls", "title", "extra", "column", "colon", "bordered", "layout", "children", "className", "rootClassName", "style", "size", "labelStyle", "contentStyle", "items"]);
|
|
|
const {
|
|
|
getPrefixCls,
|
|
|
direction,
|
|
|
descriptions
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
const prefixCls = getPrefixCls('descriptions', customizePrefixCls);
|
|
|
const screens = (0,useBreakpoint/* default */.Z)();
|
|
|
// Column count
|
|
|
const mergedColumn = _react_17_0_2_react.useMemo(() => {
|
|
|
var _a;
|
|
|
if (typeof column === 'number') {
|
|
|
return column;
|
|
|
}
|
|
|
return (_a = (0,responsiveObserver/* matchScreen */.m9)(screens, Object.assign(Object.assign({}, constant), column))) !== null && _a !== void 0 ? _a : 3;
|
|
|
}, [screens, column]);
|
|
|
// Items with responsive
|
|
|
const mergedItems = useItems(screens, items, children);
|
|
|
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
|
|
|
const rows = hooks_useRow(mergedColumn, mergedItems);
|
|
|
const [wrapSSR, hashId] = descriptions_style(prefixCls);
|
|
|
// ======================== Render ========================
|
|
|
const contextValue = _react_17_0_2_react.useMemo(() => ({
|
|
|
labelStyle,
|
|
|
contentStyle
|
|
|
}), [labelStyle, contentStyle]);
|
|
|
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(descriptions_DescriptionsContext.Provider, {
|
|
|
value: contextValue
|
|
|
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
|
|
className: _classnames_2_5_1_classnames_default()(prefixCls, descriptions === null || descriptions === void 0 ? void 0 : descriptions.className, {
|
|
|
[`${prefixCls}-${mergedSize}`]: mergedSize && mergedSize !== 'default',
|
|
|
[`${prefixCls}-bordered`]: !!bordered,
|
|
|
[`${prefixCls}-rtl`]: direction === 'rtl'
|
|
|
}, className, rootClassName, hashId),
|
|
|
style: Object.assign(Object.assign({}, descriptions === null || descriptions === void 0 ? void 0 : descriptions.style), style)
|
|
|
}, restProps), (title || extra) && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
className: `${prefixCls}-header`
|
|
|
}, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
className: `${prefixCls}-title`
|
|
|
}, title), extra && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
className: `${prefixCls}-extra`
|
|
|
}, extra)), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
className: `${prefixCls}-view`
|
|
|
}, /*#__PURE__*/_react_17_0_2_react.createElement("table", null, /*#__PURE__*/_react_17_0_2_react.createElement("tbody", null, rows.map((row, index) => /*#__PURE__*/_react_17_0_2_react.createElement(descriptions_Row, {
|
|
|
key: index,
|
|
|
index: index,
|
|
|
colon: colon,
|
|
|
prefixCls: prefixCls,
|
|
|
vertical: layout === 'vertical',
|
|
|
bordered: bordered,
|
|
|
row: row
|
|
|
}))))))));
|
|
|
};
|
|
|
if (false) {}
|
|
|
|
|
|
Descriptions.Item = Item;
|
|
|
/* harmony default export */ var descriptions = (Descriptions);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
|
var es_select = __webpack_require__(57809);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
|
|
|
var date_picker = __webpack_require__(84291);
|
|
|
// 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/table/index.js + 85 modules
|
|
|
var table = __webpack_require__(14491);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
|
|
|
var es_checkbox = __webpack_require__(24905);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/collapse/index.js + 8 modules
|
|
|
var collapse = __webpack_require__(36381);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
|
var pagination = __webpack_require__(53864);
|
|
|
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
|
|
var ui_customization = __webpack_require__(86049);
|
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
|
var NoData = __webpack_require__(90758);
|
|
|
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
|
|
|
var dayjs_min = __webpack_require__(99232);
|
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
// EXTERNAL MODULE: ./src/service/paths.ts
|
|
|
var paths = __webpack_require__(26651);
|
|
|
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
|
|
|
var useCustomRequest = __webpack_require__(23458);
|
|
|
// EXTERNAL MODULE: ./src/utils/constant.ts
|
|
|
var utils_constant = __webpack_require__(39159);
|
|
|
// EXTERNAL MODULE: ./src/utils/marked.ts
|
|
|
var marked = __webpack_require__(60415);
|
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
|
|
|
var RenderHtml = __webpack_require__(14747);
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
|
var util = __webpack_require__(26453);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
|
|
var DownOutlined = __webpack_require__(43501);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(87799);
|
|
|
// 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/Practice/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["data"],
|
|
|
_excluded2 = ["data"],
|
|
|
_excluded3 = ["user", "pathsDetail", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var QuesTitle = function QuesTitle(data) {
|
|
|
var _divDom$children;
|
|
|
var divDom = document.createElement("html");
|
|
|
divDom.innerHTML = (0,marked/* default */.ZP)(data);
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: (divDom === null || divDom === void 0 || (_divDom$children = divDom.children) === null || _divDom$children === void 0 || (_divDom$children = _divDom$children[1]) === null || _divDom$children === void 0 ? void 0 : _divDom$children.textContent) || (divDom === null || divDom === void 0 ? void 0 : divDom.textContent) || ""
|
|
|
});
|
|
|
};
|
|
|
var QuestionDom = function QuestionDom(_ref) {
|
|
|
var _data$ques_details, _data$ques_details2;
|
|
|
var data = _ref.data,
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
var AnswerSData = function () {
|
|
|
var AnswerSData = [];
|
|
|
if ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[0].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[1].id) {
|
|
|
var _ref2;
|
|
|
AnswerSData = [{
|
|
|
title: "选项",
|
|
|
num: "答题人数",
|
|
|
scale: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u9898\u4EBA\u6570\uFF1A"
|
|
|
}), "\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u9898\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6CE8\u610F\uFF1A"
|
|
|
}), "\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14 ml5",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
}].concat(toConsumableArray_default()((_ref2 = (data === null || data === void 0 ? void 0 : data.ques_details) || []) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (v, i) {
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
|
|
|
title: utils_constant/* TAGLIST */.k[i],
|
|
|
num: v.choice_users_count,
|
|
|
scale: (Number(v.choice_percent) * 100).toFixed(2)
|
|
|
});
|
|
|
})));
|
|
|
}
|
|
|
if ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[2].id) {
|
|
|
var _ref3;
|
|
|
AnswerSData = [{
|
|
|
title: "选项",
|
|
|
num: "答题人数",
|
|
|
scale: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u9898\u4EBA\u6570\uFF1A"
|
|
|
}), "\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u9898\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6CE8\u610F\uFF1A"
|
|
|
}), "\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14 ml5",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
}].concat(toConsumableArray_default()((_ref3 = (data === null || data === void 0 ? void 0 : data.ques_details) || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (v, i) {
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
|
|
|
title: v.choice_text,
|
|
|
num: v.choice_users_count,
|
|
|
scale: (Number(v.choice_percent) * 100).toFixed(2)
|
|
|
});
|
|
|
})));
|
|
|
}
|
|
|
if ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[3].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[8].id) {
|
|
|
var _ref4;
|
|
|
AnswerSData = [{
|
|
|
title: "填空",
|
|
|
num: "答对人数",
|
|
|
scale: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u5BF9\u4EBA\u6570\uFF1A"
|
|
|
}), "\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570\u3002"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6CE8\u610F\uFF1A"
|
|
|
}), "\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14 ml5",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
}].concat(toConsumableArray_default()((_ref4 = (data === null || data === void 0 ? void 0 : data.ques_details) || []) === null || _ref4 === void 0 ? void 0 : _ref4.map(function (v, i) {
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
|
|
|
title: "\u586B\u7A7A".concat(v.choice_position),
|
|
|
num: v.choice_users_count,
|
|
|
scale: (Number(v.choice_percent) * 100).toFixed(2)
|
|
|
});
|
|
|
})));
|
|
|
}
|
|
|
if ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[6].id) {
|
|
|
var _ref5;
|
|
|
AnswerSData = [{
|
|
|
title: "得分",
|
|
|
num: "学生人数",
|
|
|
scale: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u5B66\u751F\u6BD4\u4F8B", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5", (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "简答题" : "编程题", "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\uFF08\u8BE5", (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "简答题" : "编程题", "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5", (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "简答题" : "编程题", "\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\uFF08\u8BE5", (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "简答题" : "编程题", "\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5", (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "简答题被评阅为零分的学生数。" : "编程题得0分的学生数。", "\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id ? "(该简答题得零分的学生数/学生总数)*100% (注:未评阅(包括关键词评分和教师评阅)的学生不统计至该选项中)" : "(该编程题未得分的学生数/学生总数)*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6CE8\u610F\uFF1A"
|
|
|
}), "\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14 ml5",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
}].concat(toConsumableArray_default()((_ref5 = (data === null || data === void 0 ? void 0 : data.ques_details) || []) === null || _ref5 === void 0 ? void 0 : _ref5.map(function (v, i) {
|
|
|
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
|
|
|
title: v.choice_text,
|
|
|
num: v.choice_users_count,
|
|
|
scale: (Number(v.choice_percent) * 100).toFixed(2)
|
|
|
});
|
|
|
})));
|
|
|
}
|
|
|
return AnswerSData;
|
|
|
}();
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.DomStyle,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
justifyContent: "space-between",
|
|
|
gap: 20
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
flex: 1,
|
|
|
display: "flex",
|
|
|
flexDirection: "column",
|
|
|
justifyContent: "space-between",
|
|
|
gap: 20
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
style: {
|
|
|
maxHeight: 350,
|
|
|
overflow: "auto"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
children: "\u9898\u76EE"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
style: {
|
|
|
maxWidth: 710
|
|
|
},
|
|
|
value: data.ques_title
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: "mt20",
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
flexDirection: "column",
|
|
|
gap: 20
|
|
|
},
|
|
|
children: data === null || data === void 0 || (_data$ques_details = data.ques_details) === null || _data$ques_details === void 0 ? void 0 : _data$ques_details.map(function (v, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[0].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[1].id) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
className: "".concat(v.choice_right_boolean ? Practicemodules.Sessce : ""),
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: utils_constant/* TAGLIST */.k[index]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
style: {
|
|
|
maxWidth: 690
|
|
|
},
|
|
|
value: v.choice_text || ""
|
|
|
})
|
|
|
})]
|
|
|
}, index), (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[2].id && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
className: "".concat(v.choice_right_boolean ? Practicemodules.Sessce : ""),
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
style: {
|
|
|
maxWidth: 690
|
|
|
},
|
|
|
value: v.choice_text || ""
|
|
|
})
|
|
|
})
|
|
|
}, index), ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[3].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[8].id) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: ["\u586B\u7A7A", v.choice_position, "\uFF1A"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: v.choice_text || ""
|
|
|
})]
|
|
|
}, index), ((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[4].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[6].id) && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
style: {
|
|
|
maxWidth: 690
|
|
|
},
|
|
|
value: v.choice_text || ""
|
|
|
})
|
|
|
})
|
|
|
}, index)]
|
|
|
}, index);
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 60,
|
|
|
children: [[utils_constant/* QUESTIONTYPE */.f[0].id, utils_constant/* QUESTIONTYPE */.f[1].id, utils_constant/* QUESTIONTYPE */.f[2].id].includes(data === null || data === void 0 ? void 0 : data.ques_type) && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(Practicemodules.DomStyleTitle),
|
|
|
children: "\u6B63\u786E\u7B54\u6848\uFF1A"
|
|
|
}), data === null || data === void 0 || (_data$ques_details2 = data.ques_details) === null || _data$ques_details2 === void 0 ? void 0 : _data$ques_details2.filter(function (v) {
|
|
|
return v.choice_right_boolean;
|
|
|
}).map(function (v, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [((data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[0].id || (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[1].id) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "ml10",
|
|
|
style: {
|
|
|
color: "#000",
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: utils_constant/* TAGLIST */.k[v.choice_position - 1]
|
|
|
}), (data === null || data === void 0 ? void 0 : data.ques_type) == utils_constant/* QUESTIONTYPE */.f[2].id && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "ml10",
|
|
|
style: {
|
|
|
color: "#000",
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: v.choice_text
|
|
|
})]
|
|
|
}, index);
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(Practicemodules.DomStyleTitle, " mr10"),
|
|
|
children: "\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#000",
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: (data === null || data === void 0 ? void 0 : data.tag_discipline) || "-"
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Practicemodules.AnswerSDom,
|
|
|
style: {
|
|
|
padding: "0 0 0 20px"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
children: "\u7B54\u9898\u60C5\u51B5\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: "mt20",
|
|
|
children: AnswerSData === null || AnswerSData === void 0 ? void 0 : AnswerSData.map(function (v, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
alignItems: "center",
|
|
|
gap: 10,
|
|
|
marginTop: index == 0 ? 10 : 14
|
|
|
},
|
|
|
children: [[utils_constant/* QUESTIONTYPE */.f[0].id, utils_constant/* QUESTIONTYPE */.f[1].id, utils_constant/* QUESTIONTYPE */.f[2].id].includes(data === null || data === void 0 ? void 0 : data.ques_type) ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: "".concat(v !== null && v !== void 0 && v.choice_right_boolean ? Practicemodules.Sessce : ""),
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: v.title
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: v.title
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: [v.num, index == 0 ? "" : "人"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
children: index == 0 ? v.scale : /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 4,
|
|
|
align: "middle",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
flex: 1,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: "100%",
|
|
|
height: 10,
|
|
|
background: "#fff",
|
|
|
borderRadius: "5px"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: "".concat(v.scale, "%"),
|
|
|
height: "100%",
|
|
|
borderRadius: "5px",
|
|
|
background: "#165DFF"
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
color: "#999"
|
|
|
},
|
|
|
children: [v.scale, "%"]
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
}, index);
|
|
|
})
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
var ShixunQuestionDom = function ShixunQuestionDom(_ref6) {
|
|
|
var data = _ref6.data,
|
|
|
props = objectWithoutProperties_default()(_ref6, _excluded2);
|
|
|
var AnswerSData = {
|
|
|
title: "得分",
|
|
|
num: "学生人数",
|
|
|
scale: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u5B66\u751F\u6BD4\u4F8B", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\uFF08\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\uFF08\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"
|
|
|
}), "\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570\u3002\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"
|
|
|
}), "\uFF08\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6CE8\u610F\uFF1A"
|
|
|
}), "\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14 ml5",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
};
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.DomStyle,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
flexDirection: "column",
|
|
|
justifyContent: "space-between"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
justifyContent: "space-between",
|
|
|
gap: 20
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 10,
|
|
|
wrap: false,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
children: "\u9898\u76EE"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
style: {
|
|
|
maxWidth: 710
|
|
|
},
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
value: data.ques_title
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Practicemodules.AnswerSDom,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
children: "\u7B54\u9898\u60C5\u51B5\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "mt20",
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
alignItems: "center",
|
|
|
gap: 10
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: AnswerSData.title
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: AnswerSData.num
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
children: AnswerSData.scale
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
}), data === null || data === void 0 ? void 0 : data.ques_details.map(function (item, index) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
gap: 10
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: Practicemodules.DomStyleTitle,
|
|
|
children: ["\u7B2C", (0,util/* toChineseNumber */.EM)(index + 1), "\u5173\uFF1A"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
flex: 1
|
|
|
},
|
|
|
children: [{
|
|
|
challenge_name: item.challenge_name
|
|
|
}].concat(toConsumableArray_default()((item === null || item === void 0 ? void 0 : item.challenge_details) || [])).map(function (v, i) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
alignItems: "center",
|
|
|
justifyContent: "space-between",
|
|
|
gap: 20,
|
|
|
width: "100%"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
className: "".concat(Practicemodules.DomStyleTitle, " ").concat(i == 0 ? Practicemodules.DomStyleTitleChild : ""),
|
|
|
value: v.challenge_name || v.choice_text
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.AnswerSDom,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
style: {
|
|
|
display: "flex",
|
|
|
alignItems: "center",
|
|
|
gap: 10
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: v.choice_text ? v.choice_text : ""
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 56
|
|
|
},
|
|
|
children: v.choice_users_count != null ? "".concat(v.choice_users_count, "\u4EBA") : ""
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: 140
|
|
|
},
|
|
|
children: v.choice_percent && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
gutter: 4,
|
|
|
align: "middle",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
flex: 1,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: "100%",
|
|
|
height: 10,
|
|
|
background: "#fff",
|
|
|
borderRadius: "5px"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
width: "".concat((Number(v.choice_percent) * 100).toFixed(2), "%"),
|
|
|
height: "100%",
|
|
|
borderRadius: "5px",
|
|
|
background: "#165DFF"
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
style: {
|
|
|
color: "#999"
|
|
|
},
|
|
|
children: [(Number(v.choice_percent) * 100).toFixed(2), "%"]
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
})
|
|
|
})]
|
|
|
}, i);
|
|
|
})
|
|
|
})]
|
|
|
}, index);
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "".concat(Practicemodules.DomStyleTitle, " mr10"),
|
|
|
children: "\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#000",
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: (data === null || data === void 0 ? void 0 : data.tag_discipline) || "-"
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
var CollapseTitle = function CollapseTitle(_ref7) {
|
|
|
var columns = _ref7.columns,
|
|
|
item = _ref7.item,
|
|
|
Fques_type = _ref7.Fques_type,
|
|
|
Findex = _ref7.Findex;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
align: "middle",
|
|
|
wrap: false,
|
|
|
style: {
|
|
|
color: "#333"
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[0].width - 20, "px"),
|
|
|
style: {
|
|
|
paddingLeft: Fques_type == utils_constant/* QUESTIONTYPE */.f[7].id && "8px"
|
|
|
},
|
|
|
children: (item === null || item === void 0 ? void 0 : item.index) || "".concat(Findex, ".").concat(item === null || item === void 0 ? void 0 : item.ques_position)
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
className: Practicemodules.Onerow,
|
|
|
flex: 1,
|
|
|
style: {
|
|
|
padding: "0 8px",
|
|
|
maxWidth: 392
|
|
|
},
|
|
|
children: QuesTitle(item === null || item === void 0 ? void 0 : item.ques_title)
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
title: item === null || item === void 0 ? void 0 : item.name,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
className: Practicemodules.Onerow,
|
|
|
flex: "".concat(columns[2].width, "px"),
|
|
|
style: {
|
|
|
padding: "0 8px"
|
|
|
},
|
|
|
children: Fques_type == utils_constant/* QUESTIONTYPE */.f[7].id ? item === null || item === void 0 ? void 0 : item.name : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
className: Practicemodules.Onerow,
|
|
|
style: {
|
|
|
padding: "2px 10px 2px 0",
|
|
|
borderRadius: "13px",
|
|
|
color: "#165DFF"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
padding: "2px 10px",
|
|
|
borderRadius: "13px",
|
|
|
background: "rgba(22,93,255,0.1)"
|
|
|
},
|
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
|
})
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[3].width, "px"),
|
|
|
style: {
|
|
|
padding: "0 8px"
|
|
|
},
|
|
|
children: [item === null || item === void 0 ? void 0 : item.right_percent, "%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[4].width, "px"),
|
|
|
style: {
|
|
|
padding: "0 8px"
|
|
|
},
|
|
|
children: [item === null || item === void 0 ? void 0 : item.score_percent, "%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[5].width, "px"),
|
|
|
style: {
|
|
|
padding: "0 8px"
|
|
|
},
|
|
|
children: [item === null || item === void 0 ? void 0 : item.effictive_counts, "\u4EBA"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[6].width, "px"),
|
|
|
style: {
|
|
|
padding: "0 8px"
|
|
|
},
|
|
|
children: [item === null || item === void 0 ? void 0 : item.un_answer_counts, "\u4EBA"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
flex: "".concat(columns[7].width, "px"),
|
|
|
style: {
|
|
|
paddingLeft: "8px"
|
|
|
},
|
|
|
children: [item === null || item === void 0 ? void 0 : item.total_user_counts, "\u4EBA"]
|
|
|
})]
|
|
|
});
|
|
|
};
|
|
|
var Statistics = function Statistics(_ref8) {
|
|
|
var _PracticeData$data2, _PracticeData$data3, _PracticeData$data4, _PracticeData$data5, _PracticeData$data6, _PracticeData$data7, _PracticeResultData$q, _PracticeResultData$c, _PracticeResultData$c2;
|
|
|
var user = _ref8.user,
|
|
|
pathsDetail = _ref8.pathsDetail,
|
|
|
globalSetting = _ref8.globalSetting,
|
|
|
loading = _ref8.loading,
|
|
|
dispatch = _ref8.dispatch,
|
|
|
props = objectWithoutProperties_default()(_ref8, _excluded3);
|
|
|
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)(1),
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
category = _useState2[0],
|
|
|
setCategory = _useState2[1];
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(undefined),
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
isOpen = _useState4[0],
|
|
|
setIsOpen = _useState4[1];
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
collapseKeys = _useState6[0],
|
|
|
setCollapseKeys = _useState6[1];
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
quesIds = _useState8[0],
|
|
|
setQuesIds = _useState8[1];
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)({
|
|
|
keyword: "",
|
|
|
status: undefined,
|
|
|
start_time: "",
|
|
|
end_time: "",
|
|
|
limit: 20,
|
|
|
page: 1,
|
|
|
sort: "desc",
|
|
|
order: null,
|
|
|
order_by: undefined,
|
|
|
question_type: [],
|
|
|
practiceId: params === null || params === void 0 ? void 0 : params.practiceId,
|
|
|
stage_id: params === null || params === void 0 ? void 0 : params.stageId
|
|
|
}),
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
urlData = _useState10[0],
|
|
|
setUrlData = _useState10[1];
|
|
|
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(paths/* getPractice */.Wf, {
|
|
|
practiceId: params === null || params === void 0 ? void 0 : params.practiceId,
|
|
|
stage_id: params === null || params === void 0 ? void 0 : params.stageId
|
|
|
}),
|
|
|
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
|
|
|
PracticeLoading = _useCustomRequest2[1],
|
|
|
handleSubjectPractice = _useCustomRequest2[2],
|
|
|
PracticeData = _useCustomRequest2[3];
|
|
|
var _useCustomRequest3 = (0,useCustomRequest/* useCustomRequest */.U)(paths/* getPracticeResult */.vc, {
|
|
|
practiceId: params === null || params === void 0 ? void 0 : params.practiceId
|
|
|
}),
|
|
|
_useCustomRequest4 = slicedToArray_default()(_useCustomRequest3, 4),
|
|
|
PracticeResultLoading = _useCustomRequest4[1],
|
|
|
PracticeResult = _useCustomRequest4[2],
|
|
|
PracticeResultData = _useCustomRequest4[3];
|
|
|
var columns = [{
|
|
|
title: '序号',
|
|
|
dataIndex: 'index',
|
|
|
ellipsis: true,
|
|
|
width: 80,
|
|
|
render: function render(text, record, index) {
|
|
|
return urlData.limit * (urlData.page - 1) + index + 1;
|
|
|
}
|
|
|
}, {
|
|
|
title: '姓名',
|
|
|
dataIndex: 'real_name',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '刷题数量',
|
|
|
dataIndex: 'total_answer_count',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '正确数量',
|
|
|
dataIndex: 'right_answer_count',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '错误数量',
|
|
|
dataIndex: 'error_answer_count',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '得分',
|
|
|
width: 80,
|
|
|
dataIndex: 'user_total_score',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '最近练习时间',
|
|
|
dataIndex: 'updated_at',
|
|
|
ellipsis: true,
|
|
|
width: 200,
|
|
|
sorter: true
|
|
|
}, {
|
|
|
title: '状态',
|
|
|
dataIndex: 'status',
|
|
|
width: 80,
|
|
|
ellipsis: true,
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: text == "未完成" ? "#7991A4" : "#20A122"
|
|
|
},
|
|
|
children: text
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
title: '操作',
|
|
|
dataIndex: 'user_id',
|
|
|
ellipsis: true,
|
|
|
width: 80,
|
|
|
align: "right",
|
|
|
render: function render(text) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
onClick: function onClick() {
|
|
|
var _PracticeData$data;
|
|
|
(0,util/* openNewWindow */.xg)("/paths/".concat(params.pathId, "/statistics/").concat(params.stageId, "/practice/").concat(params.practiceId, "/detail/").concat(text, "?") + (PracticeData === null || PracticeData === void 0 || (_PracticeData$data = PracticeData.data) === null || _PracticeData$data === void 0 || (_PracticeData$data = _PracticeData$data.user_ids) === null || _PracticeData$data === void 0 ? void 0 : _PracticeData$data.map(function (item) {
|
|
|
return "user_ids=".concat(item);
|
|
|
}).join("&")));
|
|
|
},
|
|
|
children: "\u67E5\u770B\u8BE6\u60C5"
|
|
|
});
|
|
|
}
|
|
|
}];
|
|
|
var columns1 = [{
|
|
|
title: '题号',
|
|
|
dataIndex: 'index',
|
|
|
width: 70,
|
|
|
sorter: function sorter(a, b) {
|
|
|
return a.index - b.index;
|
|
|
}
|
|
|
}, {
|
|
|
title: '题目内容',
|
|
|
dataIndex: 'ques_title',
|
|
|
ellipsis: true
|
|
|
}, {
|
|
|
title: '题型',
|
|
|
dataIndex: 'name',
|
|
|
width: 110
|
|
|
}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u6B63\u786E\u7387 ", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u9898\u76EE\u6B63\u786E\u7387\uFF1A"
|
|
|
}), "\uFF08\u9898\u76EE\u6EE1\u5206\u4F5C\u7B54\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"
|
|
|
}), "\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}),
|
|
|
dataIndex: 'right_percent',
|
|
|
width: 95,
|
|
|
sorter: function sorter(a, b) {
|
|
|
return a.index3 - b.index3;
|
|
|
}
|
|
|
}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u5F97\u5206\u7387 ", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u9898\u76EE\u5F97\u5206\u7387\uFF1A"
|
|
|
}), "\uFF08\u6240\u6709\u5B66\u751F\u9898\u76EE\u5B9E\u9645\u5F97\u5206\u603B\u548C/(\u5C0F\u9898\u5E94\u5F97\u5206*\u5B66\u751F\u603B\u6570\uFF09*100%"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
fontWeight: 600
|
|
|
},
|
|
|
children: "\u5F97\u5206\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"
|
|
|
}), "\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"]
|
|
|
})]
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}),
|
|
|
dataIndex: 'score_percent',
|
|
|
width: 95,
|
|
|
sorter: function sorter(a, b) {
|
|
|
return a.score_percent - b.score_percent;
|
|
|
}
|
|
|
}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u5DF2\u7B54\u9898\u4EBA\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: "已经回答该题的学生数",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}),
|
|
|
dataIndex: 'effictive_counts',
|
|
|
width: 125,
|
|
|
sorter: function sorter(a, b) {
|
|
|
return a.effictive_counts - b.effictive_counts;
|
|
|
}
|
|
|
}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u672A\u7B54\u9898\u4EBA\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
overlayStyle: {
|
|
|
maxWidth: 600
|
|
|
},
|
|
|
title: "还未回答该题的学生数",
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-xiaowenhao2 font14",
|
|
|
style: {
|
|
|
cursor: 'pointer',
|
|
|
color: '#145DFF'
|
|
|
}
|
|
|
})
|
|
|
})]
|
|
|
}),
|
|
|
dataIndex: 'un_answer_counts',
|
|
|
width: 125,
|
|
|
sorter: function sorter(a, b) {
|
|
|
return a.un_answer_counts - b.un_answer_counts;
|
|
|
}
|
|
|
}, {
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
children: "\u603B\u4EBA\u6570"
|
|
|
}),
|
|
|
dataIndex: 'total_user_counts',
|
|
|
width: 80
|
|
|
}, {
|
|
|
title: "",
|
|
|
dataIndex: 'index8',
|
|
|
width: 58
|
|
|
}];
|
|
|
var handleCollapseActive = function handleCollapseActive(id) {
|
|
|
var collapseKeysActive = [];
|
|
|
if (collapseKeys !== null && collapseKeys !== void 0 && collapseKeys.includes(id)) {
|
|
|
collapseKeysActive = collapseKeys.filter(function (v) {
|
|
|
return v != id;
|
|
|
});
|
|
|
} else {
|
|
|
collapseKeysActive = [].concat(toConsumableArray_default()(collapseKeys), [id]);
|
|
|
}
|
|
|
setCollapseKeys(collapseKeysActive);
|
|
|
};
|
|
|
var handlePracticeResult = /*#__PURE__*/function () {
|
|
|
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
var _res$commit_results;
|
|
|
var data,
|
|
|
collapseKeysIds,
|
|
|
res,
|
|
|
_res$commit_results2,
|
|
|
_res$commit_results3,
|
|
|
_args = arguments;
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
data = _args.length > 0 && _args[0] !== undefined ? _args[0] : urlData;
|
|
|
collapseKeysIds = [];
|
|
|
_context.next = 4;
|
|
|
return PracticeResult(data);
|
|
|
case 4:
|
|
|
res = _context.sent;
|
|
|
res === null || res === void 0 || (_res$commit_results = res.commit_results) === null || _res$commit_results === void 0 || _res$commit_results.forEach(function (v) {
|
|
|
var _v$sub_exercise_quest, _v$sub_exercise_quest2;
|
|
|
collapseKeysIds.push(v === null || v === void 0 ? void 0 : v.id);
|
|
|
!!(v !== null && v !== void 0 && (_v$sub_exercise_quest = v.sub_exercise_questions) !== null && _v$sub_exercise_quest !== void 0 && _v$sub_exercise_quest.length) && (v === null || v === void 0 || (_v$sub_exercise_quest2 = v.sub_exercise_questions) === null || _v$sub_exercise_quest2 === void 0 ? void 0 : _v$sub_exercise_quest2.forEach(function (v) {
|
|
|
collapseKeysIds.push(v === null || v === void 0 ? void 0 : v.id);
|
|
|
}));
|
|
|
});
|
|
|
if (isOpen) {
|
|
|
setCollapseKeys(collapseKeysIds);
|
|
|
}
|
|
|
if (isOpen == false) {
|
|
|
setCollapseKeys([]);
|
|
|
}
|
|
|
if (isOpen == undefined) {
|
|
|
setCollapseKeys(res !== null && res !== void 0 && (_res$commit_results2 = res.commit_results) !== null && _res$commit_results2 !== void 0 && (_res$commit_results2 = _res$commit_results2[0]) !== null && _res$commit_results2 !== void 0 && _res$commit_results2.id ? [res === null || res === void 0 || (_res$commit_results3 = res.commit_results) === null || _res$commit_results3 === void 0 || (_res$commit_results3 = _res$commit_results3[0]) === null || _res$commit_results3 === void 0 ? void 0 : _res$commit_results3.id] : []);
|
|
|
}
|
|
|
setQuesIds(collapseKeysIds);
|
|
|
case 10:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function handlePracticeResult() {
|
|
|
return _ref9.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
category == 1 ? handleSubjectPractice(urlData) : handlePracticeResult(urlData);
|
|
|
}, [urlData, category]);
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
|
spinning: PracticeLoading || PracticeResultLoading,
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
className: Practicemodules.bg,
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "mt20 mb20 c-grey-333",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont current mr10 icon-zuojiantou",
|
|
|
onClick: function onClick() {
|
|
|
_umi_production_exports.history.push("/paths/".concat(params.pathId));
|
|
|
}
|
|
|
}), PracticeData === null || PracticeData === void 0 || (_PracticeData$data2 = PracticeData.data) === null || _PracticeData$data2 === void 0 ? void 0 : _PracticeData$data2.name, "-\u7EC3\u4E60\u7EDF\u8BA1"]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
className: "bg-white p30 pt20 pb20",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
style: {
|
|
|
padding: "16px 20px",
|
|
|
background: "#F6F7F9"
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(descriptions, {
|
|
|
title: "\u7EC3\u4E60\u57FA\u7840\u4FE1\u606F",
|
|
|
colon: false,
|
|
|
column: 1,
|
|
|
items: [{
|
|
|
key: 1,
|
|
|
label: '练习名称',
|
|
|
children: PracticeData === null || PracticeData === void 0 || (_PracticeData$data3 = PracticeData.data) === null || _PracticeData$data3 === void 0 ? void 0 : _PracticeData$data3.name
|
|
|
}, {
|
|
|
key: 2,
|
|
|
label: '题目总数',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [PracticeData === null || PracticeData === void 0 || (_PracticeData$data4 = PracticeData.data) === null || _PracticeData$data4 === void 0 ? void 0 : _PracticeData$data4.question_count, "\u9053"]
|
|
|
})
|
|
|
}, {
|
|
|
key: 3,
|
|
|
label: '总分',
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: [PracticeData === null || PracticeData === void 0 || (_PracticeData$data5 = PracticeData.data) === null || _PracticeData$data5 === void 0 ? void 0 : _PracticeData$data5.total_score, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "c-grey-999",
|
|
|
children: "\uFF08\u5B8C\u6210\u5168\u90E8\u9898\u76EE\u4E14\u5B66\u751F\u5F97\u5206 \u2265 \u603B\u5206\u768460%\uFF0C\u624D\u7B97\u5B8C\u6210\u5F53\u524D\u7EC3\u4E60\uFF09"
|
|
|
})]
|
|
|
})
|
|
|
}]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
|
|
|
className: "mt10",
|
|
|
value: category,
|
|
|
onChange: function onChange(id) {
|
|
|
setCategory(id);
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
page: 1
|
|
|
}));
|
|
|
},
|
|
|
tabBarExtraContent: category == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
|
|
|
style: {
|
|
|
width: 252
|
|
|
},
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u641C\u7D22",
|
|
|
value: urlData.keyword,
|
|
|
onChange: function onChange(keyword) {
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
keyword: keyword
|
|
|
}));
|
|
|
}
|
|
|
}),
|
|
|
dataSource: [{
|
|
|
id: 1,
|
|
|
name: '学生练习统计',
|
|
|
classNameActive: Practicemodules.active
|
|
|
}, {
|
|
|
id: 2,
|
|
|
name: "\u9898\u76EE\u8BE6\u60C5",
|
|
|
classNameActive: Practicemodules.active
|
|
|
}]
|
|
|
}), category == 1 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
|
style: {
|
|
|
marginTop: 25
|
|
|
},
|
|
|
initialValues: {},
|
|
|
layout: "inline",
|
|
|
colon: false,
|
|
|
onValuesChange: function onValuesChange(changedValues, allValues) {
|
|
|
var _allValues$time, _allValues$time2;
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
status: allValues === null || allValues === void 0 ? void 0 : allValues.status,
|
|
|
start_time: (allValues === null || allValues === void 0 ? void 0 : allValues.time) && dayjs_min_default()(allValues === null || allValues === void 0 || (_allValues$time = allValues.time) === null || _allValues$time === void 0 ? void 0 : _allValues$time[0]).format("YYYY-MM-DD"),
|
|
|
end_time: (allValues === null || allValues === void 0 ? void 0 : allValues.time) && dayjs_min_default()(allValues === null || allValues === void 0 || (_allValues$time2 = allValues.time) === null || _allValues$time2 === void 0 ? void 0 : _allValues$time2[1]).format("YYYY-MM-DD"),
|
|
|
page: 1
|
|
|
}));
|
|
|
},
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
name: "status",
|
|
|
label: "\u72B6\u6001",
|
|
|
style: {
|
|
|
marginBottom: 0
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
style: {
|
|
|
width: 160
|
|
|
},
|
|
|
placeholder: "\u5168\u90E8\u72B6\u6001",
|
|
|
options: [{
|
|
|
value: null,
|
|
|
label: "全部状态"
|
|
|
}, {
|
|
|
value: 3,
|
|
|
label: '已完成'
|
|
|
}, {
|
|
|
value: 2,
|
|
|
label: '未完成'
|
|
|
}]
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
name: "time",
|
|
|
label: "\u65F6\u95F4",
|
|
|
style: {
|
|
|
marginBottom: 0
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"].RangePicker, {})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
style: {
|
|
|
marginLeft: "auto"
|
|
|
},
|
|
|
type: "primary",
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
className: "iconfont icon-shangchuanfujian"
|
|
|
}),
|
|
|
onClick: function onClick() {
|
|
|
(0,util/* downLoadFile */.FH)('', (0,util/* setUrlQuery */.NY)({
|
|
|
url: env/* default */.Z.API_SERVER + "/api/subject_exercises/".concat(params === null || params === void 0 ? void 0 : params.practiceId, ".xlsx"),
|
|
|
query: objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
practiceId: params === null || params === void 0 ? void 0 : params.practiceId,
|
|
|
stage_id: params === null || params === void 0 ? void 0 : params.stageId
|
|
|
})
|
|
|
}));
|
|
|
},
|
|
|
children: "\u5BFC\u51FA"
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
className: "mt20",
|
|
|
columns: columns,
|
|
|
dataSource: PracticeData === null || PracticeData === void 0 || (_PracticeData$data6 = PracticeData.data) === null || _PracticeData$data6 === void 0 ? void 0 : _PracticeData$data6.exercise_users,
|
|
|
locale: {
|
|
|
emptyText: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
|
|
|
},
|
|
|
onChange: function onChange(p, _, sorter) {
|
|
|
var _sorter$order;
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
order: sorter === null || sorter === void 0 ? void 0 : sorter.field,
|
|
|
sort: (sorter === null || sorter === void 0 || (_sorter$order = sorter.order) === null || _sorter$order === void 0 ? void 0 : _sorter$order.replace("end", "")) || "asc"
|
|
|
}));
|
|
|
},
|
|
|
pagination: {
|
|
|
showQuickJumper: true,
|
|
|
onChange: function onChange(page, limit) {
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
page: page,
|
|
|
limit: limit
|
|
|
}));
|
|
|
},
|
|
|
current: urlData.page,
|
|
|
pageSize: urlData.limit,
|
|
|
total: (PracticeData === null || PracticeData === void 0 || (_PracticeData$data7 = PracticeData.data) === null || _PracticeData$data7 === void 0 ? void 0 : _PracticeData$data7.total_count) || 0,
|
|
|
showTotal: function showTotal(total) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#165DFF"
|
|
|
},
|
|
|
children: total
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
})]
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
|
|
|
form: form,
|
|
|
className: "mt30 mb20 ".concat(Practicemodules.FormCheckBoxDom),
|
|
|
initialValues: {
|
|
|
question_type: ["all"]
|
|
|
},
|
|
|
onValuesChange: function onValuesChange(challenges, allValues) {
|
|
|
var _allValues$question_t;
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
question_type: allValues !== null && allValues !== void 0 && (_allValues$question_t = allValues.question_type) !== null && _allValues$question_t !== void 0 && _allValues$question_t.every(function (v) {
|
|
|
return v === "all";
|
|
|
}) ? [] : allValues === null || allValues === void 0 ? void 0 : allValues.question_type
|
|
|
}));
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
style: {
|
|
|
marginBottom: 0
|
|
|
},
|
|
|
name: "question_type",
|
|
|
initialValue: ["all"],
|
|
|
label: "\u9009\u62E9\u9898\u578B",
|
|
|
normalize: function normalize(value, prevValue, prevValues) {
|
|
|
var _ref10, _ref11, _value;
|
|
|
if ((_ref10 = prevValue || []) !== null && _ref10 !== void 0 && _ref10.every(function (v) {
|
|
|
return v === "all";
|
|
|
}) && value.includes("all") && value.length > 1) {
|
|
|
value = value.filter(function (v) {
|
|
|
return v !== "all";
|
|
|
});
|
|
|
}
|
|
|
if (!((_ref11 = prevValue || []) !== null && _ref11 !== void 0 && _ref11.includes("all")) && value.includes("all") || ((_value = value) === null || _value === void 0 ? void 0 : _value.length) == 0) {
|
|
|
value = ["all"];
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z.Group, {
|
|
|
options: [{
|
|
|
label: "全部",
|
|
|
value: "all"
|
|
|
}].concat(toConsumableArray_default()((PracticeResultData === null || PracticeResultData === void 0 || (_PracticeResultData$q = PracticeResultData.question_types) === null || _PracticeResultData$q === void 0 ? void 0 : _PracticeResultData$q.map(function (v) {
|
|
|
return {
|
|
|
label: v.name,
|
|
|
value: v.id
|
|
|
};
|
|
|
})) || []))
|
|
|
})
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
className: "mt20 mb20",
|
|
|
align: "middle",
|
|
|
justify: "space-between",
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
className: "font16 c-black line26",
|
|
|
children: "\u9898\u76EE\u8BE6\u60C5"
|
|
|
})
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
type: "primary",
|
|
|
onClick: function onClick() {
|
|
|
if ((collapseKeys === null || collapseKeys === void 0 ? void 0 : collapseKeys.length) == (quesIds === null || quesIds === void 0 ? void 0 : quesIds.length)) {
|
|
|
setCollapseKeys([]);
|
|
|
setIsOpen(false);
|
|
|
} else {
|
|
|
setCollapseKeys(quesIds);
|
|
|
setIsOpen(true);
|
|
|
}
|
|
|
},
|
|
|
children: ["\u5168\u90E8", (collapseKeys === null || collapseKeys === void 0 ? void 0 : collapseKeys.length) == (quesIds === null || quesIds === void 0 ? void 0 : quesIds.length) ? "收起" : "展开"]
|
|
|
})
|
|
|
})]
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
className: Practicemodules.TableDom,
|
|
|
columns: columns1,
|
|
|
dataSource: [],
|
|
|
pagination: false,
|
|
|
onChange: function onChange(p, _, s) {
|
|
|
var _s$order;
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
order: s === null || s === void 0 ? void 0 : s.field,
|
|
|
sort: (s === null || s === void 0 || (_s$order = s.order) === null || _s$order === void 0 ? void 0 : _s$order.replace("end", "")) || "asc"
|
|
|
}));
|
|
|
}
|
|
|
}), PracticeResultData === null || PracticeResultData === void 0 || (_PracticeResultData$c = PracticeResultData.commit_results) === null || _PracticeResultData$c === void 0 ? void 0 : _PracticeResultData$c.map(function (item) {
|
|
|
var _item$sub_exercise_qu;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
|
|
|
className: "".concat(Practicemodules.CollapseDom, " ").concat((item === null || item === void 0 ? void 0 : item.ques_type) == utils_constant/* QUESTIONTYPE */.f[7].id ? Practicemodules.CollapseDomC : ""),
|
|
|
ghost: true,
|
|
|
expandIconPosition: "end",
|
|
|
activeKey: collapseKeys,
|
|
|
onChange: function onChange() {
|
|
|
handleCollapseActive(item === null || item === void 0 ? void 0 : item.id);
|
|
|
},
|
|
|
expandIcon: function expandIcon(_ref12) {
|
|
|
var isActive = _ref12.isActive;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
className: "font14",
|
|
|
style: {
|
|
|
color: "#165DFF"
|
|
|
},
|
|
|
children: [isActive ? "收起" : "展开", /*#__PURE__*/(0,jsx_runtime.jsx)(DownOutlined/* default */.Z, {
|
|
|
className: "".concat(isActive ? Practicemodules.open : ""),
|
|
|
style: {
|
|
|
fontSize: 9,
|
|
|
marginLeft: 3,
|
|
|
transition: 'all .2s'
|
|
|
}
|
|
|
})]
|
|
|
});
|
|
|
},
|
|
|
items: [{
|
|
|
key: item === null || item === void 0 ? void 0 : item.id,
|
|
|
label: /*#__PURE__*/(0,jsx_runtime.jsx)(CollapseTitle, {
|
|
|
columns: columns1,
|
|
|
item: item
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.ques_type) == utils_constant/* QUESTIONTYPE */.f[7].id && (item === null || item === void 0 || (_item$sub_exercise_qu = item.sub_exercise_questions) === null || _item$sub_exercise_qu === void 0 ? void 0 : _item$sub_exercise_qu.map(function (value) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(collapse/* default */.Z, {
|
|
|
className: Practicemodules.CollapseChildrenDom,
|
|
|
ghost: true,
|
|
|
expandIconPosition: "end",
|
|
|
activeKey: collapseKeys,
|
|
|
onChange: function onChange() {
|
|
|
handleCollapseActive(value === null || value === void 0 ? void 0 : value.id);
|
|
|
},
|
|
|
expandIcon: function expandIcon(_ref13) {
|
|
|
var isActive = _ref13.isActive;
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
style: {
|
|
|
color: "#165DFF",
|
|
|
marginLeft: 25
|
|
|
},
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DownOutlined/* default */.Z, {
|
|
|
className: "".concat(isActive ? Practicemodules.open : ""),
|
|
|
style: {
|
|
|
fontSize: 9,
|
|
|
marginLeft: 3,
|
|
|
transition: 'all .2s'
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
items: [{
|
|
|
key: value === null || value === void 0 ? void 0 : value.id,
|
|
|
label: /*#__PURE__*/(0,jsx_runtime.jsx)(CollapseTitle, {
|
|
|
columns: columns1,
|
|
|
item: value,
|
|
|
Fques_type: item === null || item === void 0 ? void 0 : item.ques_type,
|
|
|
Findex: item === null || item === void 0 ? void 0 : item.index
|
|
|
}),
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(QuestionDom, {
|
|
|
data: value
|
|
|
})
|
|
|
}]
|
|
|
}, value === null || value === void 0 ? void 0 : value.id);
|
|
|
})), (item === null || item === void 0 ? void 0 : item.ques_type) !== utils_constant/* QUESTIONTYPE */.f[7].id && (item === null || item === void 0 ? void 0 : item.ques_type) !== utils_constant/* QUESTIONTYPE */.f[5].id && /*#__PURE__*/(0,jsx_runtime.jsx)(QuestionDom, {
|
|
|
data: item
|
|
|
}), (item === null || item === void 0 ? void 0 : item.ques_type) == utils_constant/* QUESTIONTYPE */.f[5].id && /*#__PURE__*/(0,jsx_runtime.jsx)(ShixunQuestionDom, {
|
|
|
data: item
|
|
|
})]
|
|
|
})
|
|
|
}]
|
|
|
}, item === null || item === void 0 ? void 0 : item.id);
|
|
|
}), (PracticeResultData === null || PracticeResultData === void 0 || (_PracticeResultData$c2 = PracticeResultData.commit_results) === null || _PracticeResultData$c2 === void 0 ? void 0 : _PracticeResultData$c2.length) == 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
|
className: "mt20",
|
|
|
pageSize: urlData.limit,
|
|
|
current: urlData.page,
|
|
|
showSizeChanger: true,
|
|
|
showQuickJumper: true,
|
|
|
showTotal: function showTotal(total) {
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
style: {
|
|
|
color: '#165DFF'
|
|
|
},
|
|
|
children: [" ", total, " "]
|
|
|
}), "\u6761\u6570\u636E"]
|
|
|
});
|
|
|
},
|
|
|
onChange: function onChange(page, limit) {
|
|
|
setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
|
|
page: page,
|
|
|
limit: limit
|
|
|
}));
|
|
|
},
|
|
|
total: PracticeResultData === null || PracticeResultData === void 0 ? void 0 : PracticeResultData.questions_count
|
|
|
})]
|
|
|
})]
|
|
|
})]
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
/* harmony default export */ var Practice = ((0,_umi_production_exports.connect)(function (_ref14) {
|
|
|
var user = _ref14.user,
|
|
|
pathsDetail = _ref14.pathsDetail,
|
|
|
loading = _ref14.loading,
|
|
|
globalSetting = _ref14.globalSetting;
|
|
|
return {
|
|
|
user: user,
|
|
|
pathsDetail: pathsDetail,
|
|
|
globalSetting: globalSetting,
|
|
|
loading: loading
|
|
|
};
|
|
|
})(Statistics));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 23458:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/utils/hooks/useCustomRequest.ts ***!
|
|
|
\*********************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
/* harmony export */ U: function() { return /* binding */ useCustomRequest; }
|
|
|
/* harmony export */ });
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//常见的请求模式,包含loading和改变params。
|
|
|
|
|
|
function useCustomRequest(request, baseParams) {
|
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(baseParams),
|
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
|
params = _useState2[0],
|
|
|
setParams = _useState2[1];
|
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
|
|
_useState4 = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
|
|
loading = _useState4[0],
|
|
|
setLoading = _useState4[1];
|
|
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
|
|
|
_useState6 = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
|
|
|
data = _useState6[0],
|
|
|
setData = _useState6[1];
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
var _ref = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(newParams) {
|
|
|
var reset,
|
|
|
mergedParams,
|
|
|
res,
|
|
|
_args = arguments;
|
|
|
return _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
reset = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|
|
|
mergedParams = reset ? baseParams : _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params), newParams);
|
|
|
setLoading(true);
|
|
|
setParams(mergedParams);
|
|
|
_context.next = 6;
|
|
|
return request(mergedParams);
|
|
|
case 6:
|
|
|
res = _context.sent;
|
|
|
setLoading(false);
|
|
|
setData(res);
|
|
|
return _context.abrupt("return", res);
|
|
|
case 10:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
return function getData(_x) {
|
|
|
return _ref.apply(this, arguments);
|
|
|
};
|
|
|
}();
|
|
|
return [params, loading, getData, data];
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |