Auto Submit

pull/1/head
autosubmit 3 years ago
parent 661dde2f46
commit f3ea61e165

File diff suppressed because it is too large Load Diff

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

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

File diff suppressed because it is too large Load Diff

@ -1,4 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[22162,74045,88511,24091,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710],{
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[46463,74045,88511,73105,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710],{
/***/ 99611:
/*!****************************************************************************!*\
@ -6,7 +7,6 @@
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -49,7 +49,6 @@ if (false) {}
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -92,7 +91,6 @@ if (false) {}
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
@ -111,7 +109,6 @@ function useForceUpdate() {
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -597,7 +594,6 @@ if (false) {}
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -866,7 +862,6 @@ if (false) {}
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "C2": function() { return /* binding */ getStyle; }
/* harmony export */ });
@ -1143,7 +1138,6 @@ function getStyle(prefixCls, token) {
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1381,7 +1375,6 @@ if (false) {}
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1760,322 +1753,6 @@ input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 57761:
/*!*********************************************************************!*\
!*** ./node_modules/react-infinite-scroller/dist/InfiniteScroll.js ***!
\*********************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 67294);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 45697);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 246:
/*!*******************************************************!*\
!*** ./node_modules/react-infinite-scroller/index.js ***!
\*******************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
/***/ })
}]);

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

@ -127,41 +127,6 @@ if (false) {}
/***/ }),
/***/ 98787:
/*!**********************************************!*\
!*** ./node_modules/antd/es/_util/colors.js ***!
\**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "o2": function() { return /* binding */ isPresetColor; },
/* harmony export */ "yT": function() { return /* binding */ isPresetStatusColor; }
/* harmony export */ });
/* unused harmony export PresetStatusColorTypes */
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 74902);
/* harmony import */ var _theme_interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../theme/interface */ 8796);
const inverseColors = _theme_interface__WEBPACK_IMPORTED_MODULE_0__/* .PresetColors.map */ .i.map(color => `${color}-inverse`);
const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning'];
/**
* determine if the color keyword belongs to the `Ant Design` {@link PresetColors}.
* @param color color to be judged
* @param includeInverse whether to include reversed colors
*/
function isPresetColor(color) {
let includeInverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
if (includeInverse) {
return [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(inverseColors), (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_theme_interface__WEBPACK_IMPORTED_MODULE_0__/* .PresetColors */ .i)).includes(color);
}
return _theme_interface__WEBPACK_IMPORTED_MODULE_0__/* .PresetColors.includes */ .i.includes(color);
}
function isPresetStatusColor(color) {
return PresetStatusColorTypes.includes(color);
}
/***/ }),
/***/ 84567:
/*!************************************************************!*\
!*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
@ -1416,47 +1381,6 @@ Tag.CheckableTag = tag_CheckableTag;
/***/ }),
/***/ 8796:
/*!**************************************************************!*\
!*** ./node_modules/antd/es/theme/interface/presetColors.js ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "i": function() { return /* binding */ PresetColors; }
/* harmony export */ });
const PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
/***/ }),
/***/ 98719:
/*!***********************************************************!*\
!*** ./node_modules/antd/es/theme/util/genPresetColor.js ***!
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": function() { return /* binding */ genPresetColor; }
/* harmony export */ });
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interface */ 8796);
function genPresetColor(token, genCss) {
return _interface__WEBPACK_IMPORTED_MODULE_0__/* .PresetColors.reduce */ .i.reduce((prev, colorKey) => {
const lightColor = token[`${colorKey}1`];
const lightBorderColor = token[`${colorKey}3`];
const darkColor = token[`${colorKey}6`];
const textColor = token[`${colorKey}7`];
return Object.assign(Object.assign({}, prev), genCss(colorKey, {
lightColor,
lightBorderColor,
darkColor,
textColor
}));
}, {});
}
/***/ }),
/***/ 95860:
/*!**********************************************************!*\
!*** ./node_modules/rc-checkbox/es/index.js + 5 modules ***!

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

@ -1,4 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[24091,74045,88511,22162,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710],{
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73105,74045,88511,46463,75574,27750,84358,33358,68657,92936,35034,41522,9600,61710],{
/***/ 99611:
/*!****************************************************************************!*\
@ -6,7 +7,6 @@
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -49,7 +49,6 @@ if (false) {}
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -92,7 +91,6 @@ if (false) {}
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
@ -111,7 +109,6 @@ function useForceUpdate() {
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -597,7 +594,6 @@ if (false) {}
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -866,7 +862,6 @@ if (false) {}
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "C2": function() { return /* binding */ getStyle; }
/* harmony export */ });
@ -1143,7 +1138,6 @@ function getStyle(prefixCls, token) {
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1381,7 +1375,6 @@ if (false) {}
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1760,322 +1753,6 @@ input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 57761:
/*!*********************************************************************!*\
!*** ./node_modules/react-infinite-scroller/dist/InfiniteScroll.js ***!
\*********************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 67294);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 45697);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 246:
/*!*******************************************************!*\
!*** ./node_modules/react-infinite-scroller/index.js ***!
\*******************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
/***/ })
}]);

File diff suppressed because it is too large Load Diff

@ -5635,7 +5635,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: classroomscloseisshow && (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : (_globalSetting$settin2 = _globalSetting$settin.adv_course) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.image_url) && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: (0,authority/* isStudent */.dE)() && classroomscloseisshow && (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : (_globalSetting$settin2 = _globalSetting$settin.adv_course) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.image_url) && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "edu-container",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: function onClick() {

@ -3052,7 +3052,7 @@ var theme = {
},
Modal: {
titleFontSize: 16,
titleLineHeight: 1,
// titleLineHeight: 1,
titleColor: "#000"
}
}

@ -9069,7 +9069,7 @@ var HiddenSetting_WorkList = function WorkList(_ref) {
},
children: [(workSetting === null || workSetting === void 0 ? void 0 : workSetting.unified_setting) && (workSetting === null || workSetting === void 0 ? void 0 : workSetting.unified_late) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
disabled: !(workSetting !== null && workSetting !== void 0 && workSetting.manage_all_group),
disabled: disabled || data.anonymous_appeal || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment) || !(workSetting !== null && workSetting !== void 0 && workSetting.manage_all_group),
children: "\u7EDF\u4E00\u533F\u8BC4"
}), (workSetting === null || workSetting === void 0 ? void 0 : (_workSetting$group_se3 = workSetting.group_settings) === null || _workSetting$group_se3 === void 0 ? void 0 : _workSetting$group_se3.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,

@ -62,7 +62,7 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./src/components/DropdownSearch/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var DropdownSearchmodules = ({"flex_box_center":"flex_box_center___va8nO","flex_space_between":"flex_space_between___hPW7K","flex_box_vertical_center":"flex_box_vertical_center___PKxoL","flex_box_center_end":"flex_box_center_end___D5CRS","flex_box_column":"flex_box_column___TKM2o","listWrap":"listWrap___wC5Nd","menu":"menu___gJ_kD","list":"list___Df_Ne"});
/* harmony default export */ var DropdownSearchmodules = ({"flex_box_center":"flex_box_center___va8nO","flex_space_between":"flex_space_between___hPW7K","flex_box_vertical_center":"flex_box_vertical_center___PKxoL","flex_box_center_end":"flex_box_center_end___D5CRS","flex_box_column":"flex_box_column___TKM2o","listWrap":"listWrap___wC5Nd","menu":"menu___gJ_kD","list":"list___Df_Ne","pad":"pad___b8kSJ"});
;// CONCATENATED MODULE: ./src/components/VirtualList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var VirtualListmodules = ({"flex_box_center":"flex_box_center___jQroX","flex_space_between":"flex_space_between___ybTjf","flex_box_vertical_center":"flex_box_vertical_center___TEudd","flex_box_center_end":"flex_box_center_end___sXWuH","flex_box_column":"flex_box_column___irPtQ","virtual":"virtual___Cl1Fa"});
@ -241,12 +241,15 @@ var DropdownSearch = function DropdownSearch(_ref) {
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: DropdownSearchmodules.pad,
onMouseLeave: function onMouseLeave() {
if (!isFocus.current) {
setVisible(false);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z
// open
, {
open: visible,
dropdownRender: submenu,
destroyPopupOnHide: true,

@ -225,6 +225,17 @@
.listWrap___wC5Nd .menu___gJ_kD .list___Df_Ne:hover {
background-color: #f5f5f5;
}
.pad___b8kSJ {
position: relative;
}
.pad___b8kSJ::after {
content: ' ';
width: 100%;
height: 20px;
position: absolute;
left: 0;
bottom: -20px;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/VirtualList/index.less?modules ***!

@ -1503,8 +1503,8 @@ var RegularInput = function RegularInput(_ref2) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 2453);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 51904);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 25159);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 15746);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 83062);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 79531);
@ -1570,7 +1570,9 @@ var KeywordTag = function KeywordTag(_ref2) {
var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var questionTitlePlaceholder = _ref3.questionTitlePlaceholder,
form = _ref3.form,
showKeywords = _ref3.showKeywords;
showKeywords = _ref3.showKeywords,
_ref3$isMustKeyWords = _ref3.isMustKeyWords,
isMustKeyWords = _ref3$isMustKeyWords === void 0 ? showKeywords : _ref3$isMustKeyWords;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
editAnalysis = _useState2[0],
@ -1612,13 +1614,20 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
height: 140,
placeholder: '请编辑参考答案(非必填)'
})
}), showKeywords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
}), showKeywords && !isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
hidden: true,
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
defaultChecked: true
})
}), showKeywords && isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {})
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
className: "ml10",
children: "\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"
@ -1635,10 +1644,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
})
})
})]
}), useKeywordsValue && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
}), (useKeywordsValue || !isMustKeyWords) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
name: "keywords",
rules: [{
validator: function validator(rule, values) {
if (!isMustKeyWords) {
return Promise.resolve();
}
if (!(values !== null && values !== void 0 && values.length)) {
return Promise.reject(new Error('请输入关键词'));
}
@ -1657,8 +1669,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_5__/* ["default"].title */ .Z.title, " mb10"),
children: "\u5173\u952E\u8BCD"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: !isMustKeyWords ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
style: {
color: "#9096A3"
},
children: "\u5224\u5206\u5173\u952E\u8BCD"
}) : "关键词"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "font14 mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
@ -1718,14 +1735,14 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var key = _ref5.key,
name = _ref5.name,
restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default()(_ref5, _excluded2);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
className: "mb20",
style: {
marginRight: 148
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
flex: 1,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
justify: "space-between",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
@ -1735,7 +1752,7 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return remove(name);
}
})
})), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
})), isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
name: [name, "score"],
label: "\u5206\u503C",
rules: [{
@ -5150,21 +5167,25 @@ var EngineeringPoints = function EngineeringPoints(_ref) {
user: user
};
})(EngineeringPoints));
// EXTERNAL MODULE: ./node_modules/antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(68508);
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(57953);
// EXTERNAL MODULE: ./node_modules/antd/es/affix/index.js + 2 modules
var affix = __webpack_require__(30291);
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(21687);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(85418);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditPotinmodules = ({"flex_box_center":"flex_box_center___zCnVx","flex_space_between":"flex_space_between___BBiQD","flex_box_vertical_center":"flex_box_vertical_center___KzPui","flex_box_center_end":"flex_box_center_end___zJokd","flex_box_column":"flex_box_column___Grsys","bg":"bg___oBBHW","title":"title___xV4Rt","bottomdiv":"bottomdiv___rPfwr","spanBtn":"spanBtn___eJxID","addQuestionBtn":"addQuestionBtn___RPRiP","saveBtn":"saveBtn___y9nNf","left":"left___Q3Qf4","scrollWrapper":"scrollWrapper___a3Wdq","Button":"Button___r00OP","iconWrapper":"iconWrapper___wofW_","up":"up___a9RQm","down":"down___x6RAl","disabled":"disabled___mkEME","titleleft":"titleleft___WZ83K","qcount":"qcount___o6F1k","score":"score___Gy6jr","qtitle":"qtitle___KF7pa","qcountclick":"qcountclick___kvoyc","right":"right___Nfa70","edit":"edit___RVRSb","delete":"delete___J9BAT","shixun":"shixun___YkjdZ","scoreByBlankRadio":"scoreByBlankRadio___QYQY5","modalconfirm":"modalconfirm___dmWFe","scoremodal":"scoremodal___CDA7w","close":"close___jdUWv","content":"content___HPqUf","items":"items___YkyQL","bottom":"bottom___mzpp4","yes":"yes___Xio6z","no":"no___hbicD","formcenter":"formcenter___kN8Ax","radiogroup":"radiogroup___htjtc","easy":"easy____g1mR","medium":"medium___vPAsn","hard":"hard___c6tcf","formcenterselect":"formcenterselect___B88vb","selectitems":"selectitems___wUGKF","morebottom":"morebottom___F5cFQ","scoreinput":"scoreinput___S9Fbv","titleTooltip":"titleTooltip___J0i26","exercise_styles":"exercise_styles___BJAZm"});
/* harmony default export */ var EditPotinmodules = ({"flex_box_center":"flex_box_center___zCnVx","flex_space_between":"flex_space_between___BBiQD","flex_box_vertical_center":"flex_box_vertical_center___KzPui","flex_box_center_end":"flex_box_center_end___zJokd","flex_box_column":"flex_box_column___Grsys","moreSpan":"moreSpan___VJeLv","bg":"bg___oBBHW","title":"title___xV4Rt","bottomdiv":"bottomdiv___rPfwr","spanBtn":"spanBtn___eJxID","addQuestionBtn":"addQuestionBtn___RPRiP","saveBtn":"saveBtn___y9nNf","left":"left___Q3Qf4","scrollWrapper":"scrollWrapper___a3Wdq","Button":"Button___r00OP","iconWrapper":"iconWrapper___wofW_","up":"up___a9RQm","down":"down___x6RAl","disabled":"disabled___mkEME","titleleft":"titleleft___WZ83K","more_style":"more_style___ZXYnN","qcount":"qcount___o6F1k","score":"score___Gy6jr","qtitle":"qtitle___KF7pa","qcountclick":"qcountclick___kvoyc","right":"right___Nfa70","edit":"edit___RVRSb","delete":"delete___J9BAT","shixun":"shixun___YkjdZ","scoreByBlankRadio":"scoreByBlankRadio___QYQY5","modalconfirm":"modalconfirm___dmWFe","scoremodal":"scoremodal___CDA7w","close":"close___jdUWv","content":"content___HPqUf","items":"items___YkyQL","bottom":"bottom___mzpp4","yes":"yes___Xio6z","no":"no___hbicD","formcenter":"formcenter___kN8Ax","radiogroup":"radiogroup___htjtc","easy":"easy____g1mR","medium":"medium___vPAsn","hard":"hard___c6tcf","formcenterselect":"formcenterselect___B88vb","selectitems":"selectitems___wUGKF","morebottom":"morebottom___F5cFQ","scoreinput":"scoreinput___S9Fbv","titleTooltip":"titleTooltip___J0i26","exercise_styles":"exercise_styles___BJAZm"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules
var react_beautiful_dnd_esm = __webpack_require__(66012);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/components/LeftItems.tsx
@ -8598,6 +8619,8 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./src/utils/hooks/useOverflow.ts
var useOverflow = __webpack_require__(33483);
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(51412);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/EditPotin/index.tsx
@ -8628,46 +8651,55 @@ var useOverflow = __webpack_require__(33483);
var questionType = [{
name: '单选题',
id: 0,
count: 'q_singles',
score: 'q_singles_scores'
score: 'q_singles_scores',
nameType: "SINGLE"
}, {
name: '多选题',
id: 1,
count: 'q_doubles',
score: 'q_doubles_scores'
score: 'q_doubles_scores',
nameType: "MULTIPLE"
}, {
name: '判断题',
id: 2,
count: 'q_judges',
score: 'q_judges_scores'
score: 'q_judges_scores',
nameType: "JUDGMENT"
}, {
name: '填空题',
id: 3,
count: 'q_nulls',
score: 'q_nulls_scores'
score: 'q_nulls_scores',
nameType: "COMPLETION"
}, {
name: '简答题',
id: 4,
count: 'q_mains',
score: 'q_mains_scores'
score: 'q_mains_scores',
nameType: "SUBJECTIVE"
}, {
name: '实训题',
id: 5,
count: 'q_shixuns',
score: 'q_shixuns_scores'
score: 'q_shixuns_scores',
nameType: "PRACTICAL"
}, {
name: '编程题',
id: 6,
count: 'q_pros',
score: 'q_pros_scores'
score: 'q_pros_scores',
nameType: "PROGRAM"
}, {
name: '组合题',
id: 7,
count: 'q_combinations',
score: 'q_combinations_scores'
score: 'q_combinations_scores',
nameType: "COMBINATION"
}];
var AddNewPaper = function AddNewPaper(_ref) {
var _exerciseitem$exercis, _exerciseitem$exercis2, _exerciseitem$exercis3, _exerciseitem$exercis4, _exerciseitem$exercis5, _exerciseitem$exercis6, _exerciseitem$exercis7, _user$userInfo, _user$userInfo$course, _exerciseitem$exercis8, _user$userInfo2, _user$userInfo2$cours, _exerciseitem$exercis9, _user$userInfo3, _user$userInfo3$cours, _exerciseitem$exercis10, _exerciseitem$exercis14;
@ -8733,7 +8765,13 @@ var AddNewPaper = function AddNewPaper(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
isloadings = _useState28[0],
setisloadings = _useState28[1]; //防止多次点击
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState29 = (0,react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
isOpenEditName = _useState30[0],
setIsOpenEditName = _useState30[1];
(0,react.useEffect)(function () {
if (itemid) {
init();
@ -8772,15 +8810,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _init.apply(this, arguments);
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _res$exercise, _res$exercise_questio, _res$exercise_questio2, _res$exercise_questio3, _res$exercise_questio4;
var res, _res$exercise2;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
setrightloading(true);
setisloading(true);
_context7.next = 4;
_context10.next = 4;
return dispatch({
type: 'exercise/editExercise',
payload: {
@ -8788,7 +8826,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 4:
res = _context7.sent;
res = _context10.sent;
setrightloading(false);
setisloading(false);
setexerciseitem(res);
@ -8806,9 +8844,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
}));
case 12:
case "end":
return _context7.stop();
return _context10.stop();
}
}, _callee7);
}, _callee10);
}));
return _init.apply(this, arguments);
}
@ -8816,15 +8854,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _getdatas.apply(this, arguments);
}
function _getdatas() {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(params) {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(params) {
var _res$exercise_questio5, _items$filter, _res$exercise_questio6, _bigitems$filter;
var res, items, item, bigitems, valitems;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
setrightloading(true);
setisloading(true);
_context8.next = 4;
_context11.next = 4;
return dispatch({
type: 'exercise/editExercise',
payload: {
@ -8832,7 +8870,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 4:
res = _context8.sent;
res = _context11.sent;
setexerciseitem(res);
items = [];
res === null || res === void 0 ? void 0 : (_res$exercise_questio5 = res.exercise_question_types) === null || _res$exercise_questio5 === void 0 ? void 0 : _res$exercise_questio5.map(function (item) {
@ -8863,9 +8901,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
setisadd(false);
case 16:
case "end":
return _context8.stop();
return _context11.stop();
}
}, _callee8);
}, _callee11);
}));
return _getdatas.apply(this, arguments);
}
@ -8873,11 +8911,11 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _seveeditor.apply(this, arguments);
}
function _seveeditor() {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(params) {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(params) {
var _exerciseitem$exercis16;
var datas, url, res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
datas = objectSpread2_default()(objectSpread2_default()({}, params), {}, {
repeat_answer: !params.repeat_answer,
@ -8891,7 +8929,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
url = isadd ? "/api/exercises/".concat(itemid, "/exercise_questions") : "/api/exercise_questions/".concat(params === null || params === void 0 ? void 0 : params.question_id, ".json");
if (!((params === null || params === void 0 ? void 0 : params.is_my) === 1)) {
_context11.next = 7;
_context14.next = 7;
break;
}
modal/* default.confirm */.Z.confirm({
@ -8901,19 +8939,19 @@ var AddNewPaper = function AddNewPaper(_ref) {
cancelText: '不覆盖',
keyboard: false,
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var res;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
datas.is_cover = 1;
_context9.next = 3;
_context12.next = 3;
return (0,fetch/* default */.ZP)(url, {
method: isadd ? 'post' : 'PUT',
body: objectSpread2_default()({}, datas)
});
case 3:
res = _context9.sent;
res = _context12.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisedit(false);
getdatas({
@ -8922,9 +8960,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
case 5:
case "end":
return _context9.stop();
return _context12.stop();
}
}, _callee9);
}, _callee12);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -8932,18 +8970,18 @@ var AddNewPaper = function AddNewPaper(_ref) {
return onOk;
}(),
onCancel: function () {
var _onCancel = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _onCancel = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
var res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
_context10.next = 2;
_context13.next = 2;
return (0,fetch/* default */.ZP)(url, {
method: isadd ? 'post' : 'PUT',
body: objectSpread2_default()({}, datas)
});
case 2:
res = _context10.sent;
res = _context13.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisedit(false);
getdatas({
@ -8952,9 +8990,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
case 4:
case "end":
return _context10.stop();
return _context13.stop();
}
}, _callee10);
}, _callee13);
}));
function onCancel() {
return _onCancel.apply(this, arguments);
@ -8962,16 +9000,16 @@ var AddNewPaper = function AddNewPaper(_ref) {
return onCancel;
}()
});
_context11.next = 11;
_context14.next = 11;
break;
case 7:
_context11.next = 9;
_context14.next = 9;
return (0,fetch/* default */.ZP)(url, {
method: isadd ? 'post' : 'PUT',
body: objectSpread2_default()({}, datas)
});
case 9:
res = _context11.sent;
res = _context14.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisedit(false);
getdatas({
@ -8982,9 +9020,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
(0,util/* scrollToTop */.k3)();
case 12:
case "end":
return _context11.stop();
return _context14.stop();
}
}, _callee11);
}, _callee14);
}));
return _seveeditor.apply(this, arguments);
}
@ -8992,13 +9030,13 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _sort_question.apply(this, arguments);
}
function _sort_question() {
_sort_question = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12(params) {
var res;
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
_sort_question = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15(params) {
var res1, _res$exercise3, res, _res$exercise4;
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
while (1) switch (_context15.prev = _context15.next) {
case 0:
setisloading(true);
_context12.next = 3;
_context15.next = 3;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(itemid, "/sort_question_type.json"), {
method: 'post',
body: {
@ -9006,16 +9044,31 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 3:
res = _context12.sent;
res1 = _context15.sent;
setisloading(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
init();
if (!((res1 === null || res1 === void 0 ? void 0 : res1.status) === 0)) {
_context15.next = 12;
break;
}
case 6:
_context15.next = 8;
return dispatch({
type: 'exercise/editExercise',
payload: {
categoryId: itemid
}
});
case 8:
res = _context15.sent;
setexerciseitem(res);
setisadd(false);
if (res !== null && res !== void 0 && (_res$exercise3 = res.exercise) !== null && _res$exercise3 !== void 0 && _res$exercise3.sub_discipline_id) {
getTagData(res === null || res === void 0 ? void 0 : (_res$exercise4 = res.exercise) === null || _res$exercise4 === void 0 ? void 0 : _res$exercise4.sub_discipline_id);
}
case 12:
case "end":
return _context12.stop();
return _context15.stop();
}
}, _callee12);
}, _callee15);
}));
return _sort_question.apply(this, arguments);
}
@ -9103,9 +9156,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _deleteitem.apply(this, arguments);
}
function _deleteitem() {
_deleteitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
_deleteitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
while (1) switch (_context17.prev = _context17.next) {
case 0:
modal/* default.confirm */.Z.confirm({
title: '提示',
@ -9114,26 +9167,26 @@ var AddNewPaper = function AddNewPaper(_ref) {
centered: true,
className: EditPotinmodules.modalconfirm,
onOk: function () {
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
var res;
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
if (!qitem.question_id) {
_context13.next = 7;
_context16.next = 7;
break;
}
_context13.next = 3;
_context16.next = 3;
return (0,fetch/* default */.ZP)("/api/exercise_questions/".concat(qitem.question_id, ".json"), {
method: 'delete'
});
case 3:
res = _context13.sent;
res = _context16.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
init();
setisedit(false);
}
_context13.next = 10;
_context16.next = 10;
break;
case 7:
setqitem({});
@ -9141,9 +9194,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
init();
case 10:
case "end":
return _context13.stop();
return _context16.stop();
}
}, _callee13);
}, _callee16);
}));
function onOk() {
return _onOk3.apply(this, arguments);
@ -9154,9 +9207,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
});
case 1:
case "end":
return _context14.stop();
return _context17.stop();
}
}, _callee14);
}, _callee17);
}));
return _deleteitem.apply(this, arguments);
}
@ -9188,6 +9241,96 @@ var AddNewPaper = function AddNewPaper(_ref) {
overflow = _useOverflow.overflow,
handleMouseEnter = _useOverflow.handleMouseEnter,
handleMouseLeave = _useOverflow.handleMouseLeave;
var exportMenu = function exportMenu(values, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
disabled: index === 0 ? true : false,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var arr;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (!(index === 0)) {
_context4.next = 2;
break;
}
return _context4.abrupt("return");
case 2:
if (!isedit) {
_context4.next = 5;
break;
}
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return _context4.abrupt("return");
case 5:
arr = (0,util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index - 1);
_context4.next = 8;
return sort_question(arr.map(function (item) {
return item.name;
}));
case 8:
case "end":
return _context4.stop();
}
}, _callee4);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u4E0A\u79FB"
})
}, "1"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
disabled: index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? true : false,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var arr;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (!(index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1)) {
_context5.next = 2;
break;
}
return _context5.abrupt("return");
case 2:
if (!isedit) {
_context5.next = 5;
break;
}
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return _context5.abrupt("return");
case 5:
arr = (0,util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index + 1);
_context5.next = 8;
return sort_question(arr.map(function (item) {
return item.name;
}));
case 8:
case "end":
return _context5.stop();
}
}, _callee5);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u4E0B\u79FB"
})
}, "2"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
onClick: function onClick() {
var _questionType$find;
form.setFieldsValue({
name: values.name,
item_type_en: (_questionType$find = questionType.find(function (item) {
return item.id == values.question_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.nameType
});
setIsOpenEditName(true);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u91CD\u547D\u540D"
})
}, "3")]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: rightloading,
@ -9256,49 +9399,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
},
children: ["\uFF08", item.count, "\u5C0F\u9898\uFF0C\u5171", item.score, "\u5206\uFF09"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? '' : '点击下移箭头即可整题下移',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: EditPotinmodules.iconWrapper,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
if (index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1) {
return;
}
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑试题。');
return;
}
var arr = (0,util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index + 1);
sort_question(arr.map(function (item) {
return item.name;
}));
},
className: "".concat(EditPotinmodules.down, " iconfont icon-xiangxiayidong ").concat(index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? EditPotinmodules.disabled : '')
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: index === 0 ? '' : '点击上移箭头即可整题上移',
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
dropdownRender: function dropdownRender() {
return exportMenu(item, index);
},
placement: "bottomLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: EditPotinmodules.iconWrapper,
style: {
marginLeft: 1
},
className: EditPotinmodules.more_style,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
if (index === 0) {
return;
}
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑试题。');
return;
}
var arr = (0,util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index - 1);
sort_question(arr.map(function (item) {
return item.name;
}));
},
className: "".concat(EditPotinmodules.up, " iconfont icon-xiangshangyidong ").concat(index === 0 ? EditPotinmodules.disabled : '')
className: "iconfont icon-sandian font12"
})
})
})]
@ -9486,12 +9595,12 @@ var AddNewPaper = function AddNewPaper(_ref) {
children: "\u5BFC\u5165\u8BD5\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.spanBtn,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var res, _user$userInfo4;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context4.next = 2;
_context6.next = 2;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exerciseId, "/simulate_start_answer.json"), {
method: 'get',
params: {
@ -9501,15 +9610,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 2:
res = _context4.sent;
res = _context6.sent;
if ((res === null || res === void 0 ? void 0 : res.status) != -1) {
window.open("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercise/").concat(params === null || params === void 0 ? void 0 : params.exerciseId, "/").concat((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login, "/initate_answer"));
}
case 4:
case "end":
return _context4.stop();
return _context6.stop();
}
}, _callee4);
}, _callee6);
})),
children: "\u6A21\u62DF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -9637,10 +9746,10 @@ var AddNewPaper = function AddNewPaper(_ref) {
isloadings: isloadings,
ScoreShow: showquestion,
onOk: /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(questionIdArr, shixunIdArr, ischeck_only, listitems_length, shixunCopyIds) {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(questionIdArr, shixunIdArr, ischeck_only, listitems_length, shixunCopyIds) {
var params, res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
setisloadings(true);
params = {
@ -9649,24 +9758,24 @@ var AddNewPaper = function AddNewPaper(_ref) {
shixun_ids: shixunIdArr,
shixun_copy_ids: shixunCopyIds
};
_context6.next = 4;
_context8.next = 4;
return addquestion(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
check_only: ischeck_only
}));
case 4:
res = _context6.sent;
res = _context8.sent;
setisloadings(false);
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
_context6.next = 14;
_context8.next = 14;
break;
}
_context6.next = 9;
_context8.next = 9;
return addquestion(params);
case 9:
init();
setshowquestion(false);
message/* default.info */.ZP.info('添加成功');
_context6.next = 15;
_context8.next = 15;
break;
case 14:
if (res.status === -2) {
@ -9674,11 +9783,11 @@ var AddNewPaper = function AddNewPaper(_ref) {
title: '提示',
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7F16\u7A0B\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
_context5.next = 2;
_context7.next = 2;
return addquestion(params);
case 2:
setshowquestion(false);
@ -9686,9 +9795,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
message/* default.info */.ZP.info('添加成功');
case 5:
case "end":
return _context5.stop();
return _context7.stop();
}
}, _callee5);
}, _callee7);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -9699,12 +9808,12 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
case 15:
case "end":
return _context6.stop();
return _context8.stop();
}
}, _callee6);
}, _callee8);
}));
return function (_x8, _x9, _x10, _x11, _x12) {
return _ref6.apply(this, arguments);
return _ref8.apply(this, arguments);
};
}()
}), /*#__PURE__*/(0,jsx_runtime.jsx)(UploadQuestions/* default */.Z, {
@ -9745,19 +9854,83 @@ var AddNewPaper = function AddNewPaper(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u7F16\u8F91\u9898\u578B\u540D\u79F0",
open: isOpenEditName,
width: 500,
onOk: function onOk() {
return form.submit();
},
onCancel: function onCancel() {
return setIsOpenEditName(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
initialValues: {},
onFinish: /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
_context9.next = 2;
return (0,service_exercise/* getEditQuestionTypeAlias */.RK)(objectSpread2_default()({
id: itemid
}, values));
case 2:
res = _context9.sent;
if (res.status == 0) {
message/* default.success */.ZP.success("修改成功");
init();
setIsOpenEditName(false);
}
case 4:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return function (_x13) {
return _ref9.apply(this, arguments);
};
}(),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "name",
style: {
marginBottom: 0
},
rules: [{
required: true,
message: '请输入题型名称'
}, {
whitespace: true,
message: '请勿输入空格'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
maxLength: 6,
showCount: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
hidden: true,
name: "item_type_en",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large"
})
})]
})
})]
});
};
/* harmony default export */ var EditPotin = ((0,_umi_production_exports.connect)(function (_ref7) {
var user = _ref7.user,
dispatch = _ref7.dispatch;
/* harmony default export */ var EditPotin = ((0,_umi_production_exports.connect)(function (_ref10) {
var user = _ref10.user,
dispatch = _ref10.dispatch;
return {
user: user,
dispatch: dispatch
};
})(AddNewPaper));
// EXTERNAL MODULE: ./src/service/exercise.ts
var service_exercise = __webpack_require__(51412);
// EXTERNAL MODULE: ./src/components/DigitalLabel/index.tsx + 1 modules
var DigitalLabel = __webpack_require__(73105);
// EXTERNAL MODULE: ./src/pages/Paperlibrary/Add/TitleEditor.tsx

@ -280,6 +280,12 @@
flex-direction: column;
box-orient: block-axis;
}
.moreSpan___VJeLv {
color: #5F6368;
}
.moreSpan___VJeLv:hover {
color: #333;
}
.bg___oBBHW {
background: white;
box-shadow: 0px 2px 4px 0px #EAEEF4;
@ -415,11 +421,26 @@
}
.left___Q3Qf4 .title___xV4Rt .titleleft___WZ83K {
width: 85%;
padding-right: 4px;
flex: 1 1;
position: relative;
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
}
.left___Q3Qf4 .title___xV4Rt .more_style___ZXYnN {
height: 100%;
width: 30px;
color: #000000;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.left___Q3Qf4 .title___xV4Rt .more_style___ZXYnN:hover {
background-color: #fff;
}
.left___Q3Qf4 .title___xV4Rt .iconWrapper___wofW_ {
display: none;
}

@ -4347,6 +4347,8 @@ var AsyncButton = __webpack_require__(48559);
var Hooks = __webpack_require__(4663);
// EXTERNAL MODULE: ./src/utils/hooks/useRemindModal.tsx
var useRemindModal = __webpack_require__(25290);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(12729);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Answer/index.tsx
@ -4387,6 +4389,7 @@ var _excluded = ["globalSetting", "loading", "user", "exercise", "dispatch"];
var Countdown = statistic/* default.Countdown */.Z.Countdown;
@ -4396,7 +4399,7 @@ var Answer_scoreStatusMapping = {
1: 'c-green'
};
var Answer = function Answer(_ref) {
var _user$userInfo, _user$userInfo2, _answerData$exercise4, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _answerData$exercise27, _answerData$exercise28, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise32, _answerData$exercise33, _answerData$exercise_24, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$exercise38, _answerData$exercise39, _answerData$exercise40, _answerData$question_5, _answerData$question_6, _answerData$exercise_25, _answerData$question_7, _answerData$question_8, _answerData$exercise_26, _answerData$exercise_27, _answerData$exercise_28, _answerData$exercise_29, _answerData$exercise_30, _answerData$exercise_31, _answerData$exercise_32, _answerData$exercise41, _answerData$exercise_33, _answerData$exercise_34, _answerData$exercise_35, _answerData$exercise_37, _answerData$exercise_38, _answerData$exercise_39, _answerData$exercise_40, _answerData$exercise_41, _answerData$exercise_42, _answerData$exercise42, _answerData$exercise43, _answerData$exercise44, _answerData$exercise45, _answerData$exercise_43;
var _user$userInfo, _user$userInfo2, _answerData$exercise4, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _answerData$exercise27, _answerData$exercise28, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise32, _answerData$exercise33, _answerData$exercise_26, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$exercise38, _answerData$exercise39, _answerData$exercise40, _answerData$question_5, _answerData$question_6, _answerData$exercise_27, _answerData$question_7, _answerData$question_8, _answerData$exercise_28, _answerData$exercise_29, _answerData$exercise_30, _answerData$exercise_31, _answerData$exercise_32, _answerData$exercise_33, _answerData$exercise_34, _answerData$exercise41, _answerData$exercise_35, _answerData$exercise_36, _answerData$exercise_37, _answerData$exercise_39, _answerData$exercise_40, _answerData$exercise_41, _answerData$exercise_42, _answerData$exercise_43, _answerData$exercise_44, _answerData$exercise42, _answerData$exercise43, _answerData$exercise44, _answerData$exercise45, _answerData$exercise_45;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
user = _ref.user,
@ -5676,7 +5679,7 @@ var Answer = function Answer(_ref) {
}();
var handleVerifySave = /*#__PURE__*/function () {
var _ref15 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee20(isSave) {
var timeRes, time, res, tip, total, renderArr, filteredArr;
var timeRes, time, res, tip, total, _answerData$exercise_2, _answerData$exercise_3, renderArr, filteredArr;
return regeneratorRuntime_default()().wrap(function _callee20$(_context20) {
while (1) switch (_context20.prev = _context20.next) {
case 0:
@ -5697,6 +5700,7 @@ var Answer = function Answer(_ref) {
}
return _context20.abrupt("return");
case 9:
console.log("res===", res);
if (res.question_undo !== 0 || res.oj_undo !== 0) {
if (res.question_undo > 0) {
total = /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
@ -5707,10 +5711,14 @@ var Answer = function Answer(_ref) {
});
if (res.oj_undo > 0 || res.shixun_undo > 0) {
renderArr = [{
type: '编程题',
type: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_2 = answerData.exercise_question_types) === null || _answerData$exercise_2 === void 0 ? void 0 : _answerData$exercise_2.find(function (item) {
return item.question_type == 6;
}).name) || '编程题',
num: res.oj_undo
}, {
type: '实训题',
type: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_3 = answerData.exercise_question_types) === null || _answerData$exercise_3 === void 0 ? void 0 : _answerData$exercise_3.find(function (item) {
return item.question_type == 5;
}).name) || '实训题',
num: res.shixun_undo
}];
filteredArr = renderArr.filter(function (item) {
@ -5809,7 +5817,7 @@ var Answer = function Answer(_ref) {
}()
});
}
case 10:
case 11:
case "end":
return _context20.stop();
}
@ -6511,8 +6519,8 @@ var Answer = function Answer(_ref) {
});
};
var renderAnswerCard = function renderAnswerCard(title, key, index) {
var _answerData$exercise_2, _obj$items;
var obj = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_2 = answerData.exercise_question_types) === null || _answerData$exercise_2 === void 0 ? void 0 : _answerData$exercise_2.find(function (item) {
var _answerData$exercise_4, _obj$items;
var obj = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_4 = answerData.exercise_question_types) === null || _answerData$exercise_4 === void 0 ? void 0 : _answerData$exercise_4.find(function (item) {
return item.question_type === key;
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -6677,8 +6685,8 @@ var Answer = function Answer(_ref) {
});
};
var renderCardList = function renderCardList(item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [item.question_type === 0 && renderAnswerCard('单选题', 0, index), item.question_type === 1 && renderAnswerCard('多选题', 1, index), item.question_type === 2 && renderAnswerCard('判断题', 2, index), item.question_type === 3 && renderAnswerCard('填空题', 3, index), item.question_type === 4 && renderAnswerCard('简答题', 4, index), item.question_type === 5 && renderAnswerCard('实训题', 5, index), item.question_type === 6 && renderAnswerCard('编程题', 6, index), item.question_type === 7 && renderAnswerCard('组合题', 7, index)]
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: renderAnswerCard((item === null || item === void 0 ? void 0 : item.name) || constant/* QUESTIONTYPE */.f[item.question_type].name, item.question_type, index)
});
};
var sign = (0,react.useRef)(false);
@ -6686,9 +6694,9 @@ var Answer = function Answer(_ref) {
var switchType = (0,react.useRef)();
var switchData = (0,react.useRef)({});
var skipPrevQuestion = function skipPrevQuestion() {
var _answerData$exercise_3, _answerData$exercise_4, _answerData$exercise_5, _answerData$exercise20, _currentQuestionItem$2;
var _answerData$exercise_5, _answerData$exercise_6, _answerData$exercise_7, _answerData$exercise20, _currentQuestionItem$2;
window.blur();
var currentQuestionItem = (_answerData$exercise_3 = answerData.exercise_question_types) === null || _answerData$exercise_3 === void 0 ? void 0 : (_answerData$exercise_4 = _answerData$exercise_3[oneindex]) === null || _answerData$exercise_4 === void 0 ? void 0 : (_answerData$exercise_5 = _answerData$exercise_4.items) === null || _answerData$exercise_5 === void 0 ? void 0 : _answerData$exercise_5[twoindex];
var currentQuestionItem = (_answerData$exercise_5 = answerData.exercise_question_types) === null || _answerData$exercise_5 === void 0 ? void 0 : (_answerData$exercise_6 = _answerData$exercise_5[oneindex]) === null || _answerData$exercise_6 === void 0 ? void 0 : (_answerData$exercise_7 = _answerData$exercise_6.items) === null || _answerData$exercise_7 === void 0 ? void 0 : _answerData$exercise_7[twoindex];
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise20 = answerData.exercise) === null || _answerData$exercise20 === void 0 ? void 0 : _answerData$exercise20.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$;
if (!(currentQuestionItem !== null && currentQuestionItem !== void 0 && currentQuestionItem.repeat_answer) && (currentQuestionItem === null || currentQuestionItem === void 0 ? void 0 : (_currentQuestionItem$ = currentQuestionItem.user_answer) === null || _currentQuestionItem$ === void 0 ? void 0 : _currentQuestionItem$.length) > 0) {
@ -6718,9 +6726,9 @@ var Answer = function Answer(_ref) {
settwoindex(twoindex);
};
var skipNextQuestion = function skipNextQuestion() {
var _answerData$exercise_6, _answerData$exercise_7, _answerData$exercise_8, _answerData$exercise21, _currentQuestionItem$4;
var _answerData$exercise_8, _answerData$exercise_9, _answerData$exercise_10, _answerData$exercise21, _currentQuestionItem$4;
window.blur();
var currentQuestionItem = (_answerData$exercise_6 = answerData.exercise_question_types) === null || _answerData$exercise_6 === void 0 ? void 0 : (_answerData$exercise_7 = _answerData$exercise_6[oneindex]) === null || _answerData$exercise_7 === void 0 ? void 0 : (_answerData$exercise_8 = _answerData$exercise_7.items) === null || _answerData$exercise_8 === void 0 ? void 0 : _answerData$exercise_8[twoindex];
var currentQuestionItem = (_answerData$exercise_8 = answerData.exercise_question_types) === null || _answerData$exercise_8 === void 0 ? void 0 : (_answerData$exercise_9 = _answerData$exercise_8[oneindex]) === null || _answerData$exercise_9 === void 0 ? void 0 : (_answerData$exercise_10 = _answerData$exercise_9.items) === null || _answerData$exercise_10 === void 0 ? void 0 : _answerData$exercise_10[twoindex];
//提示不允许重复作答弹窗的逻辑
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise21 = answerData.exercise) === null || _answerData$exercise21 === void 0 ? void 0 : _answerData$exercise21.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$3;
@ -6751,9 +6759,9 @@ var Answer = function Answer(_ref) {
settwoindex(twoindex);
};
var skipAppointQuestion = function skipAppointQuestion(p) {
var _answerData$exercise_9, _answerData$exercise_10, _answerData$exercise_11, _answerData$exercise22, _currentQuestionItem$6;
var _answerData$exercise_11, _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise22, _currentQuestionItem$6;
var record = p || skipData.current;
var currentQuestionItem = (_answerData$exercise_9 = answerData.exercise_question_types) === null || _answerData$exercise_9 === void 0 ? void 0 : (_answerData$exercise_10 = _answerData$exercise_9[oneindex]) === null || _answerData$exercise_10 === void 0 ? void 0 : (_answerData$exercise_11 = _answerData$exercise_10.items) === null || _answerData$exercise_11 === void 0 ? void 0 : _answerData$exercise_11[twoindex];
var currentQuestionItem = (_answerData$exercise_11 = answerData.exercise_question_types) === null || _answerData$exercise_11 === void 0 ? void 0 : (_answerData$exercise_12 = _answerData$exercise_11[oneindex]) === null || _answerData$exercise_12 === void 0 ? void 0 : (_answerData$exercise_13 = _answerData$exercise_12.items) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13[twoindex];
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$5;
if (!(currentQuestionItem !== null && currentQuestionItem !== void 0 && currentQuestionItem.repeat_answer) && (currentQuestionItem === null || currentQuestionItem === void 0 ? void 0 : (_currentQuestionItem$5 = currentQuestionItem.user_answer) === null || _currentQuestionItem$5 === void 0 ? void 0 : _currentQuestionItem$5.length) > 0) {
@ -6842,37 +6850,18 @@ var Answer = function Answer(_ref) {
}
skipData.current = {};
};
//转换中文
var toChinesNum = function toChinesNum(num) {
var changeNum = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']; //changeNum[0] = "零"
var unit = ["", "十", "百", "千", "万"];
num = parseInt(num);
var getWan = function getWan(temp) {
var strArr = temp.toString().split("").reverse();
var newNum = "";
for (var i = 0; i < strArr.length; i++) {
newNum = (i == 0 && strArr[i] == 0 ? "" : i > 0 && strArr[i] == 0 && strArr[i - 1] == 0 ? "" : changeNum[strArr[i]] + (strArr[i] == 0 ? unit[0] : unit[i])) + newNum;
}
return newNum;
};
var overWan = Math.floor(num / 10000);
var noWan = num % 10000;
if (noWan.toString().length < 4) noWan = "0" + noWan;
return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
};
var renderClassifyQuestion = function renderClassifyQuestion() {
var _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise_14, _answerData$exercise_15, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23;
var currentItem = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_12 = answerData.exercise_question_types) === null || _answerData$exercise_12 === void 0 ? void 0 : (_answerData$exercise_13 = _answerData$exercise_12[oneindex].items) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13[twoindex];
var _answerData$exercise_14, _answerData$exercise_15, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise_24, _answerData$exercise_25;
var currentItem = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_14 = answerData.exercise_question_types) === null || _answerData$exercise_14 === void 0 ? void 0 : (_answerData$exercise_15 = _answerData$exercise_14[oneindex].items) === null || _answerData$exercise_15 === void 0 ? void 0 : _answerData$exercise_15[twoindex];
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "pt20 mb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Answermodules.questionTypeTitle,
children: [toChinesNum(oneindex + 1), "\u3001", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_14 = answerData.exercise_question_types) === null || _answerData$exercise_14 === void 0 ? void 0 : (_answerData$exercise_15 = _answerData$exercise_14[oneindex]) === null || _answerData$exercise_15 === void 0 ? void 0 : _answerData$exercise_15.name]
children: [(0,util/* toChineseNumber */.EM)(oneindex + 1), "\u3001", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_16 = answerData.exercise_question_types) === null || _answerData$exercise_16 === void 0 ? void 0 : (_answerData$exercise_17 = _answerData$exercise_16[oneindex]) === null || _answerData$exercise_17 === void 0 ? void 0 : _answerData$exercise_17.name]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Answermodules.questionTypeInfo,
children: ["\uFF08\u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_16 = answerData.exercise_question_types) === null || _answerData$exercise_16 === void 0 ? void 0 : (_answerData$exercise_17 = _answerData$exercise_16[oneindex]) === null || _answerData$exercise_17 === void 0 ? void 0 : _answerData$exercise_17.count, "\u9898\uFF1B", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_18 = answerData.exercise_question_types) === null || _answerData$exercise_18 === void 0 ? void 0 : (_answerData$exercise_19 = _answerData$exercise_18[oneindex]) === null || _answerData$exercise_19 === void 0 ? void 0 : _answerData$exercise_19.question_type) === 7 ? "\u5305\u542B".concat(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_20 = answerData.exercise_question_types) === null || _answerData$exercise_20 === void 0 ? void 0 : (_answerData$exercise_21 = _answerData$exercise_20[oneindex]) === null || _answerData$exercise_21 === void 0 ? void 0 : _answerData$exercise_21.sub_questions_count, "\u5C0F\u9898") : '', " \u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_22 = answerData.exercise_question_types) === null || _answerData$exercise_22 === void 0 ? void 0 : (_answerData$exercise_23 = _answerData$exercise_22[oneindex]) === null || _answerData$exercise_23 === void 0 ? void 0 : _answerData$exercise_23.score, "\u5206\uFF09"]
children: ["\uFF08\u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_18 = answerData.exercise_question_types) === null || _answerData$exercise_18 === void 0 ? void 0 : (_answerData$exercise_19 = _answerData$exercise_18[oneindex]) === null || _answerData$exercise_19 === void 0 ? void 0 : _answerData$exercise_19.count, "\u9898\uFF1B", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_20 = answerData.exercise_question_types) === null || _answerData$exercise_20 === void 0 ? void 0 : (_answerData$exercise_21 = _answerData$exercise_20[oneindex]) === null || _answerData$exercise_21 === void 0 ? void 0 : _answerData$exercise_21.question_type) === 7 ? "\u5305\u542B".concat(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_22 = answerData.exercise_question_types) === null || _answerData$exercise_22 === void 0 ? void 0 : (_answerData$exercise_23 = _answerData$exercise_22[oneindex]) === null || _answerData$exercise_23 === void 0 ? void 0 : _answerData$exercise_23.sub_questions_count, "\u5C0F\u9898") : '', " \u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_24 = answerData.exercise_question_types) === null || _answerData$exercise_24 === void 0 ? void 0 : (_answerData$exercise_25 = _answerData$exercise_24[oneindex]) === null || _answerData$exercise_25 === void 0 ? void 0 : _answerData$exercise_25.score, "\u5206\uFF09"]
}), !(currentItem !== null && currentItem !== void 0 && currentItem.repeat_answer) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E30000',
@ -6967,7 +6956,7 @@ var Answer = function Answer(_ref) {
children: "\u4EA4\u5377"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.commit_status) == 1 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise33 = answerData.exercise) === null || _answerData$exercise33 === void 0 ? void 0 : _answerData$exercise33.exercise_status) == 3) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_24 = answerData.exercise_answer_user) === null || _answerData$exercise_24 === void 0 ? void 0 : _answerData$exercise_24.analysis) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.commit_status) == 1 || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise33 = answerData.exercise) === null || _answerData$exercise33 === void 0 ? void 0 : _answerData$exercise33.exercise_status) == 3) && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_26 = answerData.exercise_answer_user) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.analysis) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Answermodules.teachAnalysis,
onClick: function onClick() {
return setTeachAnalysisModal(true);
@ -7073,7 +7062,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#999999'
},
children: ["/", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_25 = answerData.exercise_types) === null || _answerData$exercise_25 === void 0 ? void 0 : _answerData$exercise_25.q_counts]
children: ["/", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_27 = answerData.exercise_types) === null || _answerData$exercise_27 === void 0 ? void 0 : _answerData$exercise_27.q_counts]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -7082,7 +7071,7 @@ var Answer = function Answer(_ref) {
trailColor: "#0000000d",
percent: (answerData === null || answerData === void 0 ? void 0 : (_answerData$question_7 = answerData.question_status) === null || _answerData$question_7 === void 0 ? void 0 : (_answerData$question_8 = _answerData$question_7.filter(function (val) {
return val.ques_status === 1;
})) === null || _answerData$question_8 === void 0 ? void 0 : _answerData$question_8.length) / (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_26 = answerData.exercise_types) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.q_counts) * 100,
})) === null || _answerData$question_8 === void 0 ? void 0 : _answerData$question_8.length) / (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_28 = answerData.exercise_types) === null || _answerData$exercise_28 === void 0 ? void 0 : _answerData$exercise_28.q_counts) * 100,
showInfo: false
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -7093,7 +7082,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#165DFF'
},
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_27 = answerData.exercise_types) === null || _answerData$exercise_27 === void 0 ? void 0 : _answerData$exercise_27.q_counts) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_28 = answerData.exercise_scores) === null || _answerData$exercise_28 === void 0 ? void 0 : (_answerData$exercise_29 = _answerData$exercise_28.exercise_types) === null || _answerData$exercise_29 === void 0 ? void 0 : _answerData$exercise_29.q_counts)
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_29 = answerData.exercise_types) === null || _answerData$exercise_29 === void 0 ? void 0 : _answerData$exercise_29.q_counts) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_30 = answerData.exercise_scores) === null || _answerData$exercise_30 === void 0 ? void 0 : (_answerData$exercise_31 = _answerData$exercise_30.exercise_types) === null || _answerData$exercise_31 === void 0 ? void 0 : _answerData$exercise_31.q_counts)
}), " \u9898\uFF1A"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333",
@ -7101,7 +7090,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#FA6400'
},
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_30 = answerData.exercise_types) === null || _answerData$exercise_30 === void 0 ? void 0 : _answerData$exercise_30.q_scores) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_31 = answerData.exercise_scores) === null || _answerData$exercise_31 === void 0 ? void 0 : (_answerData$exercise_32 = _answerData$exercise_31.exercise_types) === null || _answerData$exercise_32 === void 0 ? void 0 : _answerData$exercise_32.q_scores)
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_32 = answerData.exercise_types) === null || _answerData$exercise_32 === void 0 ? void 0 : _answerData$exercise_32.q_scores) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_33 = answerData.exercise_scores) === null || _answerData$exercise_33 === void 0 ? void 0 : (_answerData$exercise_34 = _answerData$exercise_33.exercise_types) === null || _answerData$exercise_34 === void 0 ? void 0 : _answerData$exercise_34.q_scores)
}), " \u5206"]
})]
})
@ -7122,7 +7111,7 @@ var Answer = function Answer(_ref) {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "".concat(Answermodules.cardList, " ").concat((_answerData$exercise41 = answerData.exercise) !== null && _answerData$exercise41 !== void 0 && _answerData$exercise41.open_phone_video_recording ? Answermodules.withQrcode : ''),
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_33 = answerData.exercise_question_types) === null || _answerData$exercise_33 === void 0 ? void 0 : _answerData$exercise_33.map(function (er, index) {
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_35 = answerData.exercise_question_types) === null || _answerData$exercise_35 === void 0 ? void 0 : _answerData$exercise_35.map(function (er, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: renderCardList(er, index)
}, er.question_type);
@ -7202,7 +7191,7 @@ var Answer = function Answer(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont ".concat((_answerData$exercise_34 = answerData.exercise_question_types) !== null && _answerData$exercise_34 !== void 0 && (_answerData$exercise_35 = _answerData$exercise_34[oneindex].items[twoindex]) !== null && _answerData$exercise_35 !== void 0 && _answerData$exercise_35.is_marked ? 'icon-biaoji1' : 'icon-biaojigaiti'),
className: "iconfont ".concat((_answerData$exercise_36 = answerData.exercise_question_types) !== null && _answerData$exercise_36 !== void 0 && (_answerData$exercise_37 = _answerData$exercise_36[oneindex].items[twoindex]) !== null && _answerData$exercise_37 !== void 0 && _answerData$exercise_37.is_marked ? 'icon-biaoji1' : 'icon-biaojigaiti'),
style: {
color: '#FFB538',
marginRight: 6
@ -7210,14 +7199,14 @@ var Answer = function Answer(_ref) {
}),
className: Answermodules.markBtn,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee29() {
var _answerData$exercise_36;
var _answerData$exercise_38;
var res;
return regeneratorRuntime_default()().wrap(function _callee29$(_context29) {
while (1) switch (_context29.prev = _context29.next) {
case 0:
_context29.next = 2;
return (0,service_exercise/* markQuestion */.sS)(params.categoryId, {
exercise_question_id: (_answerData$exercise_36 = answerData.exercise_question_types[oneindex].items[twoindex]) === null || _answerData$exercise_36 === void 0 ? void 0 : _answerData$exercise_36.question_id
exercise_question_id: (_answerData$exercise_38 = answerData.exercise_question_types[oneindex].items[twoindex]) === null || _answerData$exercise_38 === void 0 ? void 0 : _answerData$exercise_38.question_id
});
case 2:
res = _context29.sent;
@ -7230,7 +7219,7 @@ var Answer = function Answer(_ref) {
}
}, _callee29);
})),
children: (_answerData$exercise_37 = answerData.exercise_question_types) !== null && _answerData$exercise_37 !== void 0 && (_answerData$exercise_38 = _answerData$exercise_37[oneindex].items[twoindex]) !== null && _answerData$exercise_38 !== void 0 && _answerData$exercise_38.is_marked ? '取消标记' : '标记该题'
children: (_answerData$exercise_39 = answerData.exercise_question_types) !== null && _answerData$exercise_39 !== void 0 && (_answerData$exercise_40 = _answerData$exercise_39[oneindex].items[twoindex]) !== null && _answerData$exercise_40 !== void 0 && _answerData$exercise_40.is_marked ? '取消标记' : '标记该题'
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: [(oneindex != 0 || twoindex != 0) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
@ -7244,7 +7233,7 @@ var Answer = function Answer(_ref) {
skipPrevQuestion();
},
children: "\u4E0A\u4E00\u9898"
}), !(oneindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_39 = answerData.exercise_question_types) === null || _answerData$exercise_39 === void 0 ? void 0 : _answerData$exercise_39.length) - 1 && twoindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_40 = answerData.exercise_question_types) === null || _answerData$exercise_40 === void 0 ? void 0 : (_answerData$exercise_41 = _answerData$exercise_40[oneindex]) === null || _answerData$exercise_41 === void 0 ? void 0 : (_answerData$exercise_42 = _answerData$exercise_41.items) === null || _answerData$exercise_42 === void 0 ? void 0 : _answerData$exercise_42.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), !(oneindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_41 = answerData.exercise_question_types) === null || _answerData$exercise_41 === void 0 ? void 0 : _answerData$exercise_41.length) - 1 && twoindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_42 = answerData.exercise_question_types) === null || _answerData$exercise_42 === void 0 ? void 0 : (_answerData$exercise_43 = _answerData$exercise_42[oneindex]) === null || _answerData$exercise_43 === void 0 ? void 0 : (_answerData$exercise_44 = _answerData$exercise_43.items) === null || _answerData$exercise_44 === void 0 ? void 0 : _answerData$exercise_44.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Answermodules.changeButton,
type: "primary",
onClick: function onClick() {
@ -7438,7 +7427,7 @@ var Answer = function Answer(_ref) {
onCancel: function onCancel() {
return setTeachAnalysisModal(false);
},
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_43 = answerData.exercise_answer_user) === null || _answerData$exercise_43 === void 0 ? void 0 : _answerData$exercise_43.analysis
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_45 = answerData.exercise_answer_user) === null || _answerData$exercise_45 === void 0 ? void 0 : _answerData$exercise_45.analysis
})]
});
};

File diff suppressed because it is too large Load Diff

@ -3349,6 +3349,37 @@ span.CodeMirror-selectedtext {
.form___TDc55 [class~='ant-form-item'] {
margin-bottom: 0;
}
.buttonFixed___oKPiL {
position: fixed;
z-index: 1000;
bottom: 0;
left: 0;
width: 100%;
height: 64px;
background: #fff;
box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.05);
}
.buttonFixed___oKPiL .buttonWrap___LDtpG {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.buttonFixed___oKPiL .buttonWrap___LDtpG .button___ydPRd {
width: 100px;
height: 38px !important;
line-height: 38px !important;
font-weight: 400;
padding: 0px;
font-size: 14px !important;
}
.buttonFixed___oKPiL div[class~='ant-form-item'] {
margin-bottom: 0px;
height: 100%;
}
.buttonFixed___oKPiL div[class~='ant-form-item-control-input'] {
height: 100%;
}
.scoreSettingWrapper___L7weV label[class~='ant-radio-wrapper'] span,
.scoreSettingWrapper___L7weV label[class~='ant-checkbox-wrapper'] span {
color: #333333;
@ -3533,39 +3564,32 @@ span.CodeMirror-selectedtext {
cursor: not-allowed;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/TipsButton/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___sOi51 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___pl96A {
justify-content: space-between;
-webkit-box-pack: justify;
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FixedButton/index.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.buttonFixed___vyq30 {
position: fixed;
z-index: 1000;
bottom: 0;
left: 0;
width: 100%;
height: 63px;
background: #fff;
box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.05);
}
.flex_box_vertical_center___LVWaS {
align-items: center;
box-align: center;
.button___hxmYv {
width: 100px;
height: 38px !important;
font-weight: 400;
padding: 0px;
font-size: 14px !important;
}
.flex_box_center_end___bFW2z {
justify-content: flex-end;
.buttonWrap___uK8dl {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___Iuosg {
flex-direction: column;
box-orient: block-axis;
}
.disabled___kyQ47 > * {
pointer-events: none;
height: 100%;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -3906,3 +3930,38 @@ span.CodeMirror-selectedtext {
color: #0152d9;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/TipsButton/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___sOi51 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___pl96A {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___LVWaS {
align-items: center;
box-align: center;
}
.flex_box_center_end___bFW2z {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___Iuosg {
flex-direction: column;
box-orient: block-axis;
}
.disabled___kyQ47 > * {
pointer-events: none;
}

@ -3230,18 +3230,18 @@ __webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ components_Head; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(861);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(42122);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(17061);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(17156);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(27424);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
@ -3268,6 +3268,8 @@ var RenderHtml = __webpack_require__(12768);
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.tsx + 3 modules
var ExportSetting = __webpack_require__(3307);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(12729);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx
@ -3288,8 +3290,10 @@ var jsx_runtime = __webpack_require__(85893);
var Head = function Head(_ref) {
var _exercise$exerciseExp2, _exercise$commonHeade, _exercise$exerciseExp3, _exercise$commonHeade2, _exercise$exerciseExp4, _exercise$exerciseExp5;
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _exercise$exerciseExp2, _exercise$commonHeade, _exercise$exerciseExp3, _exercise$commonHeade2, _exercise$exerciseExp4, _exercise$exerciseExp5;
var _ref$isPreview = _ref.isPreview,
isPreview = _ref$isPreview === void 0 ? false : _ref$isPreview,
_ref$isExportBlank = _ref.isExportBlank,
@ -3317,7 +3321,29 @@ var Head = function Head(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
leftheights = _useState6[0],
setleftheights = _useState6[1];
var _useState7 = (0,react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
questionName = _useState8[0],
setQuestionName = _useState8[1];
(0,react.useEffect)(function () {
!asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var questionName;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,service_exercise/* getQuestionTypeAlias */.cV)({
id: params.exerciseId || params.categoryId
});
case 2:
questionName = _context.sent;
questionName.status == 0 && setQuestionName(questionName.data);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}))();
if ((0,util/* isUnOrNull */.W)(activeTabs)) {
// getData();
} else {
@ -3335,8 +3361,8 @@ var Head = function Head(_ref) {
if ((_exercise$exerciseExp = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp !== void 0 && _exercise$exerciseExp.title) {
var res = exercise.exerciseExportHeadData;
setHeadData(objectSpread2_default()({}, res || {}));
var _ref2 = res || {},
table = _ref2.table;
var _ref3 = res || {},
table = _ref3.table;
var total_score;
var actual_total_score;
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
@ -3348,27 +3374,27 @@ var Head = function Head(_ref) {
var data = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
total_score: total_score || 0
}, {
key: '2',
name: '实得分',
singles_score: table === null || table === void 0 ? void 0 : table.singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.combination_scores,
total_score: actual_total_score
singles_score: (table === null || table === void 0 ? void 0 : table.singles_scores) || 0,
doubles_score: (table === null || table === void 0 ? void 0 : table.doubles_scores) || 0,
nulls_score: (table === null || table === void 0 ? void 0 : table.nulls_scores) || 0,
judges_score: (table === null || table === void 0 ? void 0 : table.judges_scores) || 0,
pros_score: (table === null || table === void 0 ? void 0 : table.pros_scores) || 0,
shixuns_score: (table === null || table === void 0 ? void 0 : table.shixuns_scores) || 0,
mains_score: (table === null || table === void 0 ? void 0 : table.mains_scores) || 0,
total_combination_scores: (table === null || table === void 0 ? void 0 : table.combination_scores) || 0,
total_score: actual_total_score || 0
}, {
key: '3',
name: '评卷人'
@ -3376,15 +3402,15 @@ var Head = function Head(_ref) {
var blankData = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
total_score: total_score || 0
}, {
key: '2',
name: '实得分'
@ -3396,21 +3422,21 @@ var Head = function Head(_ref) {
}
}, [exercise.exerciseExportHeadData]);
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var query, res, _ref4, table, total_score, actual_total_score, data, blankData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var query, res, _ref5, table, total_score, actual_total_score, data, blankData;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
query = {
id: params.exerciseId || params.categoryId,
identify: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.login) || null
};
_context.next = 3;
_context2.next = 3;
return (0,service_exercise/* getExerciseExportHeadData */.iw)(query);
case 3:
res = _context.sent;
res = _context2.sent;
setHeadData(res || {});
_ref4 = res || {}, table = _ref4.table;
_ref5 = res || {}, table = _ref5.table;
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
}
@ -3420,27 +3446,27 @@ var Head = function Head(_ref) {
data = [{
key: '1',
name: '应得分',
singles_score: table === null || table === void 0 ? void 0 : table.total_singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.total_doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.total_nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.total_judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.total_pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.total_shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.total_mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.total_combination_scores,
total_score: total_score
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
total_score: total_score || 0
}, {
key: '2',
name: '实得分',
singles_score: table === null || table === void 0 ? void 0 : table.singles_scores,
doubles_score: table === null || table === void 0 ? void 0 : table.doubles_scores,
nulls_score: table === null || table === void 0 ? void 0 : table.nulls_scores,
judges_score: table === null || table === void 0 ? void 0 : table.judges_scores,
pros_score: table === null || table === void 0 ? void 0 : table.pros_scores,
shixuns_score: table === null || table === void 0 ? void 0 : table.shixuns_scores,
mains_score: table === null || table === void 0 ? void 0 : table.mains_scores,
total_combination_scores: table === null || table === void 0 ? void 0 : table.combination_scores,
total_score: actual_total_score
singles_score: (table === null || table === void 0 ? void 0 : table.singles_scores) || 0,
doubles_score: (table === null || table === void 0 ? void 0 : table.doubles_scores) || 0,
nulls_score: (table === null || table === void 0 ? void 0 : table.nulls_scores) || 0,
judges_score: (table === null || table === void 0 ? void 0 : table.judges_scores) || 0,
pros_score: (table === null || table === void 0 ? void 0 : table.pros_scores) || 0,
shixuns_score: (table === null || table === void 0 ? void 0 : table.shixuns_scores) || 0,
mains_score: (table === null || table === void 0 ? void 0 : table.mains_scores) || 0,
total_combination_scores: (table === null || table === void 0 ? void 0 : table.combination_scores) || 0,
total_score: actual_total_score || 0
}, {
key: '3',
name: '评卷人'
@ -3458,12 +3484,12 @@ var Head = function Head(_ref) {
setTableData(isExportBlank ? blankData : data);
case 11:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
}));
return function getData() {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var columns = [{
@ -3477,9 +3503,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '单选题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.0.nameType */.f[0].nameType;
})) === null || _questionName$find === void 0 ? void 0 : _questionName$find.name) || '单选题',
align: 'center',
// ellipsis: true,
dataIndex: 'singles_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3487,9 +3516,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '多选题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find2 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.1.nameType */.f[1].nameType;
})) === null || _questionName$find2 === void 0 ? void 0 : _questionName$find2.name) || '多选题',
align: 'center',
// ellipsis: true,
dataIndex: 'doubles_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3497,9 +3529,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '填空题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find3 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.3.nameType */.f[3].nameType;
})) === null || _questionName$find3 === void 0 ? void 0 : _questionName$find3.name) || '填空题',
align: 'center',
// ellipsis: true,
dataIndex: 'nulls_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3507,9 +3542,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: 140,
title: '判断题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find4 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.2.nameType */.f[2].nameType;
})) === null || _questionName$find4 === void 0 ? void 0 : _questionName$find4.name) || '判断题',
align: 'center',
// ellipsis: true,
dataIndex: 'judges_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3517,9 +3555,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '编程题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find5 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.6.nameType */.f[6].nameType;
})) === null || _questionName$find5 === void 0 ? void 0 : _questionName$find5.name) || '编程题',
align: 'center',
// ellipsis: true,
dataIndex: 'pros_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3527,9 +3568,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '实训题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find6 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.5.nameType */.f[5].nameType;
})) === null || _questionName$find6 === void 0 ? void 0 : _questionName$find6.name) || '实训题',
align: 'center',
// ellipsis: true,
dataIndex: 'shixuns_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3537,9 +3581,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '简答题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find7 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.4.nameType */.f[4].nameType;
})) === null || _questionName$find7 === void 0 ? void 0 : _questionName$find7.name) || '简答题',
align: 'center',
// ellipsis: true,
dataIndex: 'mains_score',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3547,9 +3594,12 @@ var Head = function Head(_ref) {
});
}
}, {
width: '10%',
title: '组合题',
// width: '10%',
title: (questionName === null || questionName === void 0 ? void 0 : (_questionName$find8 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.7.nameType */.f[7].nameType;
})) === null || _questionName$find8 === void 0 ? void 0 : _questionName$find8.name) || '组合题',
align: 'center',
// ellipsis: true,
dataIndex: 'total_combination_scores',
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -3567,8 +3617,8 @@ var Head = function Head(_ref) {
});
}
}];
var _ref5 = headData || {},
exercise_header = _ref5.exercise_header;
var _ref6 = headData || {},
exercise_header = _ref6.exercise_header;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [((exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_user) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_no) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_group)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Headmodules.glassSeal,
@ -3660,11 +3710,11 @@ var Head = function Head(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ExportSetting/* default */.Z, {})]
});
};
/* harmony default export */ var components_Head = ((0,_umi_production_exports.connect)(function (_ref6) {
var exercise = _ref6.exercise,
loading = _ref6.loading,
user = _ref6.user,
globalSetting = _ref6.globalSetting;
/* harmony default export */ var components_Head = ((0,_umi_production_exports.connect)(function (_ref7) {
var exercise = _ref7.exercise,
loading = _ref7.loading,
user = _ref7.user,
globalSetting = _ref7.globalSetting;
return {
exercise: exercise,
globalSetting: globalSetting,

@ -2957,6 +2957,8 @@ var ErrCheckIpTip_Fill = function Fill(_ref) {
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
var lodash = __webpack_require__(96486);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(12729);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/ImitateAnswer/index.tsx
@ -2982,6 +2984,7 @@ var lodash = __webpack_require__(96486);
var Countdown = statistic/* default.Countdown */.Z.Countdown;
@ -2992,7 +2995,7 @@ var scoreStatusMapping = {
1: 'c-green'
};
var Answer = function Answer(_ref) {
var _answerData$exercise4, _answerData$exercise16, _answerData$exercise17, _answerData$exercise18, _answerData$exercise19, _answerData$exercise20, _answerData$question_4, _answerData$question_5, _answerData$exercise_19, _answerData$question_6, _answerData$question_7, _answerData$exercise_20, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise_27, _answerData$exercise_32, _answerData$exercise_33, _answerData$exercise_34, _answerData$exercise_35;
var _answerData$exercise4, _answerData$exercise16, _answerData$exercise17, _answerData$exercise18, _answerData$exercise19, _answerData$exercise20, _answerData$question_4, _answerData$question_5, _answerData$exercise_21, _answerData$question_6, _answerData$question_7, _answerData$exercise_22, _answerData$exercise_23, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise_27, _answerData$exercise_28, _answerData$exercise_29, _answerData$exercise_34, _answerData$exercise_35, _answerData$exercise_36, _answerData$exercise_37;
var user = _ref.user,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
@ -3430,7 +3433,7 @@ var Answer = function Answer(_ref) {
}();
var handleVerifySave = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11(isSave) {
var res, tip;
var res, tip, _answerData$exercise_, _answerData$exercise_2;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
@ -3449,7 +3452,9 @@ var Answer = function Answer(_ref) {
if (res.question_undo !== 0 || res.oj_undo !== 0) {
tip = '';
if (res.question_undo !== 0 && res.oj_undo !== 0) {
tip = "\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(res.oj_undo, " \u4E2A\u7F16\u7A0B\u9898");
tip = "\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(res.oj_undo, " \u4E2A").concat((answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_ = answerData.exercise_question_types) === null || _answerData$exercise_ === void 0 ? void 0 : (_answerData$exercise_2 = _answerData$exercise_.find(function (item) {
return item.question_type == 6;
})) === null || _answerData$exercise_2 === void 0 ? void 0 : _answerData$exercise_2.name) || "编程题");
} else if (res.question_undo !== 0 && res.oj_undo === 0) {
tip = "\u6709 ".concat(res.question_undo, " \u9898\u672A\u5B8C\u6210");
} else if (res.question_undo === 0 && res.oj_undo !== 0) {
@ -3959,8 +3964,8 @@ var Answer = function Answer(_ref) {
});
};
var renderAnswerCard = function renderAnswerCard(title, key, index) {
var _answerData$exercise_, _obj$items;
var obj = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_ = answerData.exercise_question_types) === null || _answerData$exercise_ === void 0 ? void 0 : _answerData$exercise_.find(function (item) {
var _answerData$exercise_3, _obj$items;
var obj = answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_3 = answerData.exercise_question_types) === null || _answerData$exercise_3 === void 0 ? void 0 : _answerData$exercise_3.find(function (item) {
return item.question_type === key;
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -3992,8 +3997,8 @@ var Answer = function Answer(_ref) {
answerData.exercise_question_types[oneindex].items[twoindex].israp = false;
setAnswerData(objectSpread2_default()({}, answerData));
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise13 = answerData.exercise) === null || _answerData$exercise13 === void 0 ? void 0 : _answerData$exercise13.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_2, _answerData$exercise_3, _answerData$exercise_4, _answerData$exercise_5;
if (!((_answerData$exercise_2 = answerData.exercise_question_types) !== null && _answerData$exercise_2 !== void 0 && (_answerData$exercise_3 = _answerData$exercise_2[oneindex]) !== null && _answerData$exercise_3 !== void 0 && (_answerData$exercise_4 = _answerData$exercise_3.items) !== null && _answerData$exercise_4 !== void 0 && (_answerData$exercise_5 = _answerData$exercise_4[twoindex]) !== null && _answerData$exercise_5 !== void 0 && _answerData$exercise_5.repeat_answer)) {
var _answerData$exercise_4, _answerData$exercise_5, _answerData$exercise_6, _answerData$exercise_7;
if (!((_answerData$exercise_4 = answerData.exercise_question_types) !== null && _answerData$exercise_4 !== void 0 && (_answerData$exercise_5 = _answerData$exercise_4[oneindex]) !== null && _answerData$exercise_5 !== void 0 && (_answerData$exercise_6 = _answerData$exercise_5.items) !== null && _answerData$exercise_6 !== void 0 && (_answerData$exercise_7 = _answerData$exercise_6[twoindex]) !== null && _answerData$exercise_7 !== void 0 && _answerData$exercise_7.repeat_answer)) {
setisshowmodal(true);
settype(3);
setindexitems({
@ -4179,8 +4184,8 @@ var Answer = function Answer(_ref) {
});
};
var renderCardList = function renderCardList(item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [item.question_type === 0 && renderAnswerCard('单选题', 0, index), item.question_type === 1 && renderAnswerCard('多选题', 1, index), item.question_type === 2 && renderAnswerCard('判断题', 2, index), item.question_type === 3 && renderAnswerCard('填空题', 3, index), item.question_type === 4 && renderAnswerCard('简答题', 4, index), item.question_type === 5 && renderAnswerCard('实训题', 5, index), item.question_type === 6 && renderAnswerCard('编程题', 6, index), item.question_type === 7 && renderAnswerCard('组合题', 7, index)]
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: renderAnswerCard(item.name || constant/* QUESTIONTYPE */.f[item.question_type].name, item.question_type, index)
});
};
@ -4203,19 +4208,19 @@ var Answer = function Answer(_ref) {
return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
};
var renderClassifyQuestion = function renderClassifyQuestion() {
var _answerData$exercise_6, _answerData$exercise_7, _answerData$exercise_8, _answerData$exercise_9, _answerData$exercise_10, _answerData$exercise_11, _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise_14, _answerData$exercise_15, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18;
var _answerData$exercise_8, _answerData$exercise_9, _answerData$exercise_10, _answerData$exercise_11, _answerData$exercise_12, _answerData$exercise_13, _answerData$exercise_14, _answerData$exercise_15, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18, _answerData$exercise_19, _answerData$exercise_20;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "pt20",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: ImitateAnswermodules.questionTypeTitle,
children: [toChinesNum(oneindex + 1), "\u3001", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_6 = answerData.exercise_question_types) === null || _answerData$exercise_6 === void 0 ? void 0 : (_answerData$exercise_7 = _answerData$exercise_6[oneindex]) === null || _answerData$exercise_7 === void 0 ? void 0 : _answerData$exercise_7.name]
children: [toChinesNum(oneindex + 1), "\u3001", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_8 = answerData.exercise_question_types) === null || _answerData$exercise_8 === void 0 ? void 0 : (_answerData$exercise_9 = _answerData$exercise_8[oneindex]) === null || _answerData$exercise_9 === void 0 ? void 0 : _answerData$exercise_9.name]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: ImitateAnswermodules.questionTypeInfo,
children: ["\uFF08\u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_8 = answerData.exercise_question_types) === null || _answerData$exercise_8 === void 0 ? void 0 : (_answerData$exercise_9 = _answerData$exercise_8[oneindex]) === null || _answerData$exercise_9 === void 0 ? void 0 : _answerData$exercise_9.count, "\u9898\uFF1B", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_10 = answerData.exercise_question_types) === null || _answerData$exercise_10 === void 0 ? void 0 : (_answerData$exercise_11 = _answerData$exercise_10[oneindex]) === null || _answerData$exercise_11 === void 0 ? void 0 : _answerData$exercise_11.question_type) === 7 ? "\u5305\u542B".concat(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_12 = answerData.exercise_question_types) === null || _answerData$exercise_12 === void 0 ? void 0 : (_answerData$exercise_13 = _answerData$exercise_12[oneindex]) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13.sub_questions_count, "\u5C0F\u9898") : '', " \u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_14 = answerData.exercise_question_types) === null || _answerData$exercise_14 === void 0 ? void 0 : (_answerData$exercise_15 = _answerData$exercise_14[oneindex]) === null || _answerData$exercise_15 === void 0 ? void 0 : _answerData$exercise_15.score, "\u5206\uFF09"]
children: ["\uFF08\u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_10 = answerData.exercise_question_types) === null || _answerData$exercise_10 === void 0 ? void 0 : (_answerData$exercise_11 = _answerData$exercise_10[oneindex]) === null || _answerData$exercise_11 === void 0 ? void 0 : _answerData$exercise_11.count, "\u9898\uFF1B", (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_12 = answerData.exercise_question_types) === null || _answerData$exercise_12 === void 0 ? void 0 : (_answerData$exercise_13 = _answerData$exercise_12[oneindex]) === null || _answerData$exercise_13 === void 0 ? void 0 : _answerData$exercise_13.question_type) === 7 ? "\u5305\u542B".concat(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_14 = answerData.exercise_question_types) === null || _answerData$exercise_14 === void 0 ? void 0 : (_answerData$exercise_15 = _answerData$exercise_14[oneindex]) === null || _answerData$exercise_15 === void 0 ? void 0 : _answerData$exercise_15.sub_questions_count, "\u5C0F\u9898") : '', " \u5171", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_16 = answerData.exercise_question_types) === null || _answerData$exercise_16 === void 0 ? void 0 : (_answerData$exercise_17 = _answerData$exercise_16[oneindex]) === null || _answerData$exercise_17 === void 0 ? void 0 : _answerData$exercise_17.score, "\u5206\uFF09"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: renderQuestion(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_16 = answerData.exercise_question_types) === null || _answerData$exercise_16 === void 0 ? void 0 : (_answerData$exercise_17 = _answerData$exercise_16[oneindex]) === null || _answerData$exercise_17 === void 0 ? void 0 : (_answerData$exercise_18 = _answerData$exercise_17.items) === null || _answerData$exercise_18 === void 0 ? void 0 : _answerData$exercise_18[twoindex], twoindex)
children: renderQuestion(answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_18 = answerData.exercise_question_types) === null || _answerData$exercise_18 === void 0 ? void 0 : (_answerData$exercise_19 = _answerData$exercise_18[oneindex]) === null || _answerData$exercise_19 === void 0 ? void 0 : (_answerData$exercise_20 = _answerData$exercise_19.items) === null || _answerData$exercise_20 === void 0 ? void 0 : _answerData$exercise_20[twoindex], twoindex)
}, twoindex)]
}, oneindex);
};
@ -4300,7 +4305,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#999999'
},
children: ["/", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_19 = answerData.exercise_types) === null || _answerData$exercise_19 === void 0 ? void 0 : _answerData$exercise_19.q_counts]
children: ["/", answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_21 = answerData.exercise_types) === null || _answerData$exercise_21 === void 0 ? void 0 : _answerData$exercise_21.q_counts]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -4309,7 +4314,7 @@ var Answer = function Answer(_ref) {
trailColor: "#0000000d",
percent: (answerData === null || answerData === void 0 ? void 0 : (_answerData$question_6 = answerData.question_status) === null || _answerData$question_6 === void 0 ? void 0 : (_answerData$question_7 = _answerData$question_6.filter(function (val) {
return (val === null || val === void 0 ? void 0 : val.ques_status) === 1;
})) === null || _answerData$question_7 === void 0 ? void 0 : _answerData$question_7.length) / (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_20 = answerData.exercise_types) === null || _answerData$exercise_20 === void 0 ? void 0 : _answerData$exercise_20.q_counts) * 100,
})) === null || _answerData$question_7 === void 0 ? void 0 : _answerData$question_7.length) / (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_22 = answerData.exercise_types) === null || _answerData$exercise_22 === void 0 ? void 0 : _answerData$exercise_22.q_counts) * 100,
showInfo: false
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
@ -4320,7 +4325,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#165DFF'
},
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_21 = answerData.exercise_types) === null || _answerData$exercise_21 === void 0 ? void 0 : _answerData$exercise_21.q_counts) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_22 = answerData.exercise_scores) === null || _answerData$exercise_22 === void 0 ? void 0 : (_answerData$exercise_23 = _answerData$exercise_22.exercise_types) === null || _answerData$exercise_23 === void 0 ? void 0 : _answerData$exercise_23.q_counts)
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_23 = answerData.exercise_types) === null || _answerData$exercise_23 === void 0 ? void 0 : _answerData$exercise_23.q_counts) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_24 = answerData.exercise_scores) === null || _answerData$exercise_24 === void 0 ? void 0 : (_answerData$exercise_25 = _answerData$exercise_24.exercise_types) === null || _answerData$exercise_25 === void 0 ? void 0 : _answerData$exercise_25.q_counts)
}), " \u9898\uFF1A"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "c-grey-333",
@ -4328,7 +4333,7 @@ var Answer = function Answer(_ref) {
style: {
color: '#FA6400'
},
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_24 = answerData.exercise_types) === null || _answerData$exercise_24 === void 0 ? void 0 : _answerData$exercise_24.q_scores) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_25 = answerData.exercise_scores) === null || _answerData$exercise_25 === void 0 ? void 0 : (_answerData$exercise_26 = _answerData$exercise_25.exercise_types) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.q_scores)
children: (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_26 = answerData.exercise_types) === null || _answerData$exercise_26 === void 0 ? void 0 : _answerData$exercise_26.q_scores) || (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_27 = answerData.exercise_scores) === null || _answerData$exercise_27 === void 0 ? void 0 : (_answerData$exercise_28 = _answerData$exercise_27.exercise_types) === null || _answerData$exercise_28 === void 0 ? void 0 : _answerData$exercise_28.q_scores)
}), " \u5206"]
})]
})
@ -4349,7 +4354,7 @@ var Answer = function Answer(_ref) {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: ImitateAnswermodules.cardList,
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_27 = answerData.exercise_question_types) === null || _answerData$exercise_27 === void 0 ? void 0 : _answerData$exercise_27.map(function (er, index) {
children: answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_29 = answerData.exercise_question_types) === null || _answerData$exercise_29 === void 0 ? void 0 : _answerData$exercise_29.map(function (er, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: renderCardList(er, index)
}, er.question_type);
@ -4421,8 +4426,8 @@ var Answer = function Answer(_ref) {
answerData.exercise_question_types[oneindex].items[twoindex].israp = false;
setAnswerData(objectSpread2_default()({}, answerData));
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise21 = answerData.exercise) === null || _answerData$exercise21 === void 0 ? void 0 : _answerData$exercise21.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_28, _answerData$exercise_29, _answerData$exercise_30, _answerData$exercise_31;
if (!((_answerData$exercise_28 = answerData.exercise_question_types) !== null && _answerData$exercise_28 !== void 0 && (_answerData$exercise_29 = _answerData$exercise_28[oneindex]) !== null && _answerData$exercise_29 !== void 0 && (_answerData$exercise_30 = _answerData$exercise_29.items) !== null && _answerData$exercise_30 !== void 0 && (_answerData$exercise_31 = _answerData$exercise_30[twoindex]) !== null && _answerData$exercise_31 !== void 0 && _answerData$exercise_31.repeat_answer)) {
var _answerData$exercise_30, _answerData$exercise_31, _answerData$exercise_32, _answerData$exercise_33;
if (!((_answerData$exercise_30 = answerData.exercise_question_types) !== null && _answerData$exercise_30 !== void 0 && (_answerData$exercise_31 = _answerData$exercise_30[oneindex]) !== null && _answerData$exercise_31 !== void 0 && (_answerData$exercise_32 = _answerData$exercise_31.items) !== null && _answerData$exercise_32 !== void 0 && (_answerData$exercise_33 = _answerData$exercise_32[twoindex]) !== null && _answerData$exercise_33 !== void 0 && _answerData$exercise_33.repeat_answer)) {
setisshowmodal(true);
settype(1);
return;
@ -4438,7 +4443,7 @@ var Answer = function Answer(_ref) {
settwoindex(twoindex);
},
children: "\u4E0A\u4E00\u9898"
}), !(oneindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_32 = answerData.exercise_question_types) === null || _answerData$exercise_32 === void 0 ? void 0 : _answerData$exercise_32.length) - 1 && twoindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_33 = answerData.exercise_question_types) === null || _answerData$exercise_33 === void 0 ? void 0 : (_answerData$exercise_34 = _answerData$exercise_33[oneindex]) === null || _answerData$exercise_34 === void 0 ? void 0 : (_answerData$exercise_35 = _answerData$exercise_34.items) === null || _answerData$exercise_35 === void 0 ? void 0 : _answerData$exercise_35.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), !(oneindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_34 = answerData.exercise_question_types) === null || _answerData$exercise_34 === void 0 ? void 0 : _answerData$exercise_34.length) - 1 && twoindex === (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise_35 = answerData.exercise_question_types) === null || _answerData$exercise_35 === void 0 ? void 0 : (_answerData$exercise_36 = _answerData$exercise_35[oneindex]) === null || _answerData$exercise_36 === void 0 ? void 0 : (_answerData$exercise_37 = _answerData$exercise_36.items) === null || _answerData$exercise_37 === void 0 ? void 0 : _answerData$exercise_37.length) - 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: ImitateAnswermodules.changeButton,
type: "primary",
onClick: function onClick() {
@ -4446,8 +4451,8 @@ var Answer = function Answer(_ref) {
answerData.exercise_question_types[oneindex].items[twoindex].israp = false;
setAnswerData(objectSpread2_default()({}, answerData));
if (!ischecked && (answerData === null || answerData === void 0 ? void 0 : (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _answerData$exercise_36, _answerData$exercise_37, _answerData$exercise_38, _answerData$exercise_39;
if (!((_answerData$exercise_36 = answerData.exercise_question_types) !== null && _answerData$exercise_36 !== void 0 && (_answerData$exercise_37 = _answerData$exercise_36[oneindex]) !== null && _answerData$exercise_37 !== void 0 && (_answerData$exercise_38 = _answerData$exercise_37.items) !== null && _answerData$exercise_38 !== void 0 && (_answerData$exercise_39 = _answerData$exercise_38[twoindex]) !== null && _answerData$exercise_39 !== void 0 && _answerData$exercise_39.repeat_answer)) {
var _answerData$exercise_38, _answerData$exercise_39, _answerData$exercise_40, _answerData$exercise_41;
if (!((_answerData$exercise_38 = answerData.exercise_question_types) !== null && _answerData$exercise_38 !== void 0 && (_answerData$exercise_39 = _answerData$exercise_38[oneindex]) !== null && _answerData$exercise_39 !== void 0 && (_answerData$exercise_40 = _answerData$exercise_39.items) !== null && _answerData$exercise_40 !== void 0 && (_answerData$exercise_41 = _answerData$exercise_40[twoindex]) !== null && _answerData$exercise_41 !== void 0 && _answerData$exercise_41.repeat_answer)) {
setisshowmodal(true);
settype(2);
return;

File diff suppressed because it is too large Load Diff

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

File diff suppressed because one or more lines are too long

@ -1,6 +1,77 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60479],{
/***/ 95293:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "h": function() { return /* binding */ MdEditorInForm; },
/* harmony export */ "x": function() { return /* binding */ RegularInput; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 55373);
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 52654);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var _excluded = ["value", "onChange", "scrollId"];
var MdEditorInForm = function MdEditorInForm(_ref) {
var value = _ref.value,
onChange = _ref.onChange,
scrollId = _ref.scrollId,
props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
id: scrollId || '',
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
defaultValue: value,
onChange: onChange
}))
});
};
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
isEdit = _ref2.isEdit;
return isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
watch: true,
isFocus: true,
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'
},
children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder,
value: value
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].placeholder */ .Z.placeholder),
children: placeholder
})
});
};
/***/ }),
/***/ 54524:
/*!*********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/GroupHomework/EditWork/index.tsx + 1 modules ***!
@ -34,9 +105,6 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react-infinite-scroller/index.js
var react_infinite_scroller = __webpack_require__(246);
var react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
@ -47,23 +115,25 @@ var modal = __webpack_require__(72423);
var breadcrumb = __webpack_require__(85673);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 21 modules
var input_number = __webpack_require__(31795);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
var MdEditorInForm = __webpack_require__(95293);
// EXTERNAL MODULE: ./src/service/shixunHomeworks.ts
var service_shixunHomeworks = __webpack_require__(45678);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/EditWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditWorkmodules = ({"flex_box_center":"flex_box_center___Oai0Y","flex_space_between":"flex_space_between___fZFK_","flex_box_vertical_center":"flex_box_vertical_center___RWV5x","flex_box_center_end":"flex_box_center_end___ajHAV","flex_box_column":"flex_box_column___jI14a","bg":"bg___cSxNp","flexRow":"flexRow___bc5Oj","flexJustifyCenter":"flexJustifyCenter___Nx05M","flexAlignEnd":"flexAlignEnd___DhuDB","flexAlignCenter":"flexAlignCenter___nIPvg","flexColumn":"flexColumn___KpeLE","formWrap":"formWrap___ORs91","titleWrap":"titleWrap___J_NOF","fieldWrap":"fieldWrap___G9hW5","mdWrap":"mdWrap___TuZ7q","backgroundFa":"backgroundFa___QRzbN","button":"button___S5k_z","searchMember":"searchMember___oWEni"});
/* harmony default export */ var EditWorkmodules = ({"flex_box_center":"flex_box_center___Oai0Y","flex_space_between":"flex_space_between___fZFK_","flex_box_vertical_center":"flex_box_vertical_center___RWV5x","flex_box_center_end":"flex_box_center_end___ajHAV","flex_box_column":"flex_box_column___jI14a","bg":"bg___cSxNp","flexRow":"flexRow___bc5Oj","flexJustifyCenter":"flexJustifyCenter___Nx05M","flexAlignEnd":"flexAlignEnd___DhuDB","flexAlignCenter":"flexAlignCenter___nIPvg","flexColumn":"flexColumn___KpeLE","formWrap":"formWrap___ORs91","titleWrap":"titleWrap___J_NOF","fieldWrap":"fieldWrap___G9hW5","mdWrap":"mdWrap___TuZ7q","backgroundFa":"backgroundFa___QRzbN","button":"button___S5k_z","Onerow":"Onerow___Pi45X","searchMember":"searchMember___oWEni","searchMemberHeader":"searchMemberHeader___K11IN"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(64768);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
@ -83,10 +153,10 @@ var jsx_runtime = __webpack_require__(85893);
var NewCoursePage = function NewCoursePage(_ref) {
var _searchMemberList, _ref6;
var _searchMemberList, _ref7;
var shixunHomeworks = _ref.shixunHomeworks,
user = _ref.user,
newCourse = _ref.newCourse,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@ -103,24 +173,23 @@ var NewCoursePage = function NewCoursePage(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
hasMore = _useState4[0],
setHasmore = _useState4[1];
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isLoading = _useState6[0],
setIsLoading = _useState6[1];
var courseId = (0,react.useRef)();
var studentWorkEditDefaultData = shixunHomeworks.studentWorkEditDefaultData;
var _useState5 = (0,react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
searchMemberList = _useState6[0],
setSearchMemberList = _useState6[1];
var _useState7 = (0,react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
searchMemberList = _useState8[0],
setSearchMemberList = _useState8[1];
selectArr = _useState8[0],
setSelectArrs = _useState8[1];
var _useState9 = (0,react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
selectArr = _useState10[0],
setSelectArrs = _useState10[1];
var _useState11 = (0,react.useState)([]),
selectStudent = _useState10[0],
setSelectStudent = _useState10[1];
var _useState11 = (0,react.useState)(false),
_useState12 = slicedToArray_default()(_useState11, 2),
selectStudent = _useState12[0],
setSelectStudent = _useState12[1];
disabled = _useState12[0],
setDisabled = _useState12[1];
var _useState13 = (0,react.useState)({
page: 1,
limit: 20,
@ -132,11 +201,13 @@ var NewCoursePage = function NewCoursePage(_ref) {
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res$members;
var res;
var isSubmit,
res,
_args = arguments;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setIsLoading(true);
isSubmit = _args.length > 0 && _args[0] !== undefined ? _args[0] : false;
_context.next = 3;
return dispatch({
type: 'shixunHomeworks/getSearchMemberList',
@ -144,11 +215,14 @@ var NewCoursePage = function NewCoursePage(_ref) {
});
case 3:
res = _context.sent;
setIsLoading(false);
if (isSubmit) {
searchMemberList = [];
setSelectStudent([]);
}
if (res.members && res.members.length > 0) {
setSearchMemberList([].concat(toConsumableArray_default()(searchMemberList), toConsumableArray_default()(res.members)));
}
if (((_res$members = res.members) === null || _res$members === void 0 ? void 0 : _res$members.length) < 20) setHasmore(false);
if (((_res$members = res.members) === null || _res$members === void 0 ? void 0 : _res$members.length) < 20) setHasmore(false);else setHasmore(true);
case 7:
case "end":
return _context.stop();
@ -159,36 +233,41 @@ var NewCoursePage = function NewCoursePage(_ref) {
return _ref2.apply(this, arguments);
};
}();
(0,react.useEffect)(function () {
new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var init = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return getData();
case 2:
_context2.next = 4;
return dispatch({
type: 'shixunHomeworks/editStudentWorkDefaultData',
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
type: 3
})
});
case 4:
case 2:
res = _context2.sent;
setDisabled(res === null || res === void 0 ? void 0 : res.is_group_grade);
setSelectArrs(res === null || res === void 0 ? void 0 : res.members);
form.setFieldsValue({
attachment_ids: (0,MultiUpload/* coverToFileList */.z)(res.attachments),
description: res.description
});
case 7:
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
})));
}, []);
}));
return function init() {
return _ref3.apply(this, arguments);
};
}();
(0,react.useEffect)(function () {
getData();
init();
}, [memberSearchParams]);
var handleSubmit = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(bodyData) {
var res;
@ -206,6 +285,8 @@ var NewCoursePage = function NewCoursePage(_ref) {
res = _context3.sent;
if (res.status === 0) {
message/* default.success */.ZP.success('保存成功');
init();
getData(true);
}
case 5:
case "end":
@ -230,6 +311,17 @@ var NewCoursePage = function NewCoursePage(_ref) {
return v.id || v.response.id;
});
}
bodyData["group_leader_scores"] = [].concat(toConsumableArray_default()(selectStudent.map(function (item) {
return {
user_id: item.user_id,
score: item.score
};
})), toConsumableArray_default()(selectArr.map(function (item) {
return {
user_id: item.user_id,
score: item.score
};
})));
if (bodyData.attachment_ids == '') {
modal/* default.confirm */.Z.confirm({
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -242,7 +334,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
} else {
handleSubmit(bodyData);
}
case 4:
case 5:
case "end":
return _context4.stop();
}
@ -252,6 +344,30 @@ var NewCoursePage = function NewCoursePage(_ref) {
return _ref5.apply(this, arguments);
};
}();
var handleInfiniteOnLoad = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(idName) {
var _document, _document$querySelect, _document2, _document2$querySelec, _document3, _document3$querySelec;
var scrollHeight, offsetTop, offsetHeight;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
scrollHeight = (_document = document) === null || _document === void 0 ? void 0 : (_document$querySelect = _document.querySelector(idName)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.scrollHeight;
offsetTop = (_document2 = document) === null || _document2 === void 0 ? void 0 : (_document2$querySelec = _document2.querySelector(idName)) === null || _document2$querySelec === void 0 ? void 0 : _document2$querySelec.scrollTop;
offsetHeight = (_document3 = document) === null || _document3 === void 0 ? void 0 : (_document3$querySelec = _document3.querySelector(idName)) === null || _document3$querySelec === void 0 ? void 0 : _document3$querySelec.clientHeight;
if (scrollHeight == offsetTop + offsetHeight && hasMore) {
memberSearchParams.page++;
setMemberSearchParams(memberSearchParams);
}
case 4:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return function handleInfiniteOnLoad(_x3) {
return _ref6.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: EditWorkmodules.bg,
children: [studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
@ -261,15 +377,11 @@ var NewCoursePage = function NewCoursePage(_ref) {
children: studentWorkEditDefaultData.category && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(studentWorkEditDefaultData.course_id, "/group_homework"),
children: studentWorkEditDefaultData.course_name
})
href: "/classrooms/".concat(studentWorkEditDefaultData.course_id, "/group_homework"),
children: studentWorkEditDefaultData.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(studentWorkEditDefaultData.course_id, "/group_homework"),
children: studentWorkEditDefaultData.category.category_name
})
href: "/classrooms/".concat(studentWorkEditDefaultData.course_id, "/group_homework"),
children: studentWorkEditDefaultData.category.category_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default.Item */.Z.Item, {
children: [studentWorkEditDefaultData === null || studentWorkEditDefaultData === void 0 ? void 0 : studentWorkEditDefaultData.user_name, " \u63D0\u4EA4\u4F5C\u54C1"]
})]
@ -278,61 +390,70 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "font24 bold mt20 mb20",
children: studentWorkEditDefaultData.homework_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
form: form,
className: EditWorkmodules.formWrap,
scrollToFirstError: true,
layout: "vertical",
onValuesChange: function onValuesChange(value) {
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
}
// initialValues={[{ base_on_project: 1 }]}
,
onValuesChange: function onValuesChange(value, allValues) {
return setFormValue(allValues);
},
onFinish: handleFinish,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: EditWorkmodules.mdWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
htmlFor: null,
label: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5185\u5BB9:"
}),
name: "description",
label: "\u5185\u5BB9:",
rules: [{
required: true,
message: "请输入作业的简介"
message: '请输入作业的简介'
}, {
type: "string",
max: 65535,
message: '作业简介最大限制65535个字符'
}, {
type: "string",
whitespace: true,
message: "内容不能全为空格"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
defaultValue: studentWorkEditDefaultData.description || ''
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* MdEditorInForm */.h, {
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A65535\u4E2A\u5B57\u7B26",
scrollId: '',
watch: true
})
}), studentWorkEditDefaultData.course_name && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C0F\u7EC4\u6210\u5458\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pl30 mb20",
children: ["\u6210\u5458\u8981\u6C42:", studentWorkEditDefaultData.min_num, "~", studentWorkEditDefaultData.max_num, "\u4EBA ", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(value, e) {
e.preventDefault();
if (value === '') {
delete memberSearchParams.search;
} else {
memberSearchParams.search = value;
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u6210\u5458\u8981\u6C42:", studentWorkEditDefaultData.min_num, "~", studentWorkEditDefaultData.max_num, "\u4EBA\xA0"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(value, e) {
e.preventDefault();
if (value === '') {
delete memberSearchParams.search;
} else {
memberSearchParams.search = value;
}
memberSearchParams.page = 1;
setMemberSearchParams(memberSearchParams);
setSearchMemberList([]);
setHasmore(true);
},
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",
allowClear: true,
style: {
width: 240
}
memberSearchParams.page = 1;
searchMemberList = [];
setHasmore(true);
getData();
},
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",
allowClear: true,
style: {
width: 240
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
@ -342,29 +463,44 @@ var NewCoursePage = function NewCoursePage(_ref) {
name: "user_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default.Group */.Z.Group, {
className: "w100",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: EditWorkmodules.searchMember,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: EditWorkmodules.searchMemberHeader,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml40",
flex: "100px",
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: "\u5206\u73ED"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u5B66\u53F7"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 360,
overflow: 'auto'
padding: 20
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)((react_infinite_scroller_default()), {
initialLoad: false,
pageStart: 1,
threshold: 20,
loadMore: function loadMore(page) {
memberSearchParams.page++;
getData();
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
id: "searchMemberList",
style: {
height: 360,
overflow: "auto"
},
onScrollCapture: function onScrollCapture() {
return handleInfiniteOnLoad("#searchMemberList");
},
hasMore: hasMore,
useWindow: false,
children: (_searchMemberList = searchMemberList) === null || _searchMemberList === void 0 ? void 0 : _searchMemberList.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
height: "32px",
lineHeight: "32px",
marginBottom: "8px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
disabled: selectArr.some(function (val) {
disabled: selectArr === null || selectArr === void 0 ? void 0 : selectArr.some(function (val) {
return val.user_id === item.user_id;
}),
value: item.user_id,
@ -381,15 +517,15 @@ var NewCoursePage = function NewCoursePage(_ref) {
},
children: item.user_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "100px",
children: item.group_name
children: [item.group_name, " "]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: selectArr.some(function (val) {
children: (selectArr === null || selectArr === void 0 ? void 0 : selectArr.some(function (val) {
return val.user_id === item.user_id;
}) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
})) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-red ml10",
children: "\u5DF2\u63D0\u4EA4"
})
@ -397,149 +533,237 @@ var NewCoursePage = function NewCoursePage(_ref) {
}, key);
})
})
})
})]
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 1,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-youjiang ml20 mr20"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 10,
span: 11,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: EditWorkmodules.searchMember,
style: {
marginTop: "-24px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: EditWorkmodules.searchMemberHeader,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml20",
flex: "100px",
children: studentWorkEditDefaultData.user_name
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: studentWorkEditDefaultData.group_name
})
children: "\u5206\u73ED"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: "\u5B66\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: studentWorkEditDefaultData.student_id
children: studentWorkEditDefaultData.is_leader_work && disabled && "评分"
})]
}), selectArr === null || selectArr === void 0 ? void 0 : selectArr.map(function (item, key) {
if (formValue) return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
padding: 20,
overflow: 'auto',
height: 360
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
style: {
marginBottom: 8
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: item.is_leader && 'c-blue',
children: item.user_name
})
children: studentWorkEditDefaultData.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: !item.is_leader && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
modal/* default.confirm */.Z.confirm({
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["TA\u7684\u4F5C\u54C1\u5C06\u88AB\u5220\u9664", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"]
}),
onOk: function onOk() {
setSelectArrs(selectArr.filter(function (val) {
return val.user_id !== item.user_id;
}));
}
});
}
})
})]
}, key);
}), selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item, key) {
// if (formValue?.user_ids?.includes(item.user_id)) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.user_name
className: "c-blue",
children: studentWorkEditDefaultData.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
children: studentWorkEditDefaultData.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
var _formValue$user_ids, _formValue$user_ids2;
setSelectStudent(selectStudent.filter(function (v) {
return v.user_id != item.user_id;
}));
form.setFieldsValue({
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids = formValue.user_ids) === null || _formValue$user_ids === void 0 ? void 0 : _formValue$user_ids.filter(function (val) {
return val !== item.user_id;
})
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids2 = formValue.user_ids) === null || _formValue$user_ids2 === void 0 ? void 0 : _formValue$user_ids2.filter(function (val) {
return val !== item.user_id;
})
}));
}
})
flex: "100px"
})]
}, key);
// }
}), selectArr === null || selectArr === void 0 ? void 0 : selectArr.map(function (item, key) {
return formValue && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
style: {
marginBottom: 8
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: studentWorkEditDefaultData.is_leader_work && disabled && /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
stringMode: true,
min: "0.1",
max: "100",
step: "0.1",
placeholder: "\u8BF7\u8F93\u5165",
value: item.score,
onChange: function onChange(value) {
setSelectArrs(selectArr === null || selectArr === void 0 ? void 0 : selectArr.map(function (v) {
if (item.user_id == v.user_id) {
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
score: value
});
} else return v;
}));
}
})
}), !item.is_leader && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: "auto"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
modal/* default.confirm */.Z.confirm({
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["TA\u7684\u4F5C\u54C1\u5C06\u88AB\u5220\u9664", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"]
}),
onOk: function onOk() {
setSelectArrs(selectArr === null || selectArr === void 0 ? void 0 : selectArr.filter(function (val) {
return val.user_id !== item.user_id;
}));
}
});
}
})
})]
}, key);
}), selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
style: {
marginBottom: 8
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: studentWorkEditDefaultData.is_leader_work && disabled && /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
stringMode: true,
min: "0.1",
max: "100",
step: "0.1",
placeholder: "\u8BF7\u8F93\u5165",
value: item.score,
onChange: function onChange(value) {
setSelectStudent(selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (v) {
if (item.user_id == v.user_id) {
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
score: value
});
} else return v;
}));
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: "auto"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
var _formValue$user_ids, _formValue$user_ids2;
form.setFieldsValue({
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids = formValue.user_ids) === null || _formValue$user_ids === void 0 ? void 0 : _formValue$user_ids.filter(function (val) {
return val !== item.user_id;
})
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids2 = formValue.user_ids) === null || _formValue$user_ids2 === void 0 ? void 0 : _formValue$user_ids2.filter(function (val) {
return val !== item.user_id;
})
}));
setSelectStudent(selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.filter(function (v) {
return v.user_id != item.user_id;
}));
}
})
})]
}, key);
})]
})]
})
})]
}), ((_ref6 = [].concat(toConsumableArray_default()((formValue === null || formValue === void 0 ? void 0 : formValue.user_ids) || []), toConsumableArray_default()((selectArr === null || selectArr === void 0 ? void 0 : selectArr.map(function (item) {
}), ((_ref7 = [].concat(toConsumableArray_default()((formValue === null || formValue === void 0 ? void 0 : formValue.user_ids) || []), toConsumableArray_default()((selectArr === null || selectArr === void 0 ? void 0 : selectArr.map(function (item) {
return item.user_id;
})) || []))) === null || _ref6 === void 0 ? void 0 : _ref6.length) > studentWorkEditDefaultData.max_num && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
})) || []))) === null || _ref7 === void 0 ? void 0 : _ref7.length) > studentWorkEditDefaultData.max_num && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
className: "c-red",
children: ["\u4EBA\u6570\u4E0D\u80FD\u5927\u4E8E", studentWorkEditDefaultData.max_num, "\u4EBA"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: EditWorkmodules.backgroundFa,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pt40 mb30",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
className: "".concat(EditWorkmodules.button, " mr20"),
htmlType: "submit",
loading: loading['newCourse/editCourse'] || loading['newCourse/submitCourse'],
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
ghost: true,
className: EditWorkmodules.button,
onClick: function onClick() {
return _umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework"));
},
children: "\u53D6\u6D88"
})]
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pt40 mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
className: "".concat(EditWorkmodules.button, " mr20"),
loading: loading['newCourse/editCourse'] || loading['newCourse/submitCourse'],
onClick: function onClick() {
return form.submit();
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
ghost: true,
className: EditWorkmodules.button,
onClick: function onClick() {
return _umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework"));
},
children: "\u53D6\u6D88"
})]
})]
});
};
/* harmony default export */ var EditWork = ((0,_umi_production_exports.connect)(function (_ref7) {
var shixunHomeworks = _ref7.shixunHomeworks,
newCourse = _ref7.newCourse,
loading = _ref7.loading,
globalSetting = _ref7.globalSetting;
/* harmony default export */ var EditWork = ((0,_umi_production_exports.connect)(function (_ref8) {
var shixunHomeworks = _ref8.shixunHomeworks,
newCourse = _ref8.newCourse,
user = _ref8.user,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting;
return {
shixunHomeworks: shixunHomeworks,
newCourse: newCourse,
user: user,
globalSetting: globalSetting,
loading: loading.effects
};
})(NewCoursePage));
/***/ }),
/***/ 52654:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/index.less?modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__["Z"] = ({"wrap":"wrap___ilWvf","deleteIcon":"deleteIcon___JBDG8","keywordTag":"keywordTag___iieCb","questionTitleEditorWrap":"questionTitleEditorWrap___MHB5s","choiceWrap":"choiceWrap___QFkTc","choiceIndex":"choiceIndex___Mr2YO","judgementIndex":"judgementIndex___fUVWK","setAnswerBtn":"setAnswerBtn___Whox5","activeAnswer":"activeAnswer___fGU6Y","activeJudgementAnswer":"activeJudgementAnswer___wJv8P","actionWrapper":"actionWrapper___ERQ7k","addIcon":"addIcon___L9TE0","inputBorder":"inputBorder___Q5tRE","placeholder":"placeholder___p9sFY","blankWrapper":"blankWrapper___nC45e","blankInput":"blankInput___pEHsx","blankInputNumberWrapper":"blankInputNumberWrapper___uEHb0","addBtn":"addBtn___WR5ZI","blankIndex":"blankIndex___x9Pny","baseInputWrapper":"baseInputWrapper___eVsG7","collapseWrapper":"collapseWrapper___ZTysU","panelHeader":"panelHeader___QSN9g","open":"open___B6FU9","close":"close___QX19r","hide":"hide___mn25n"});
/***/ })
}]);

@ -1,3 +1,183 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrap___ilWvf div[class~='ant-form-item'] {
margin-bottom: 0;
}
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
display: none;
}
.wrap___ilWvf .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
}
.wrap___ilWvf .keywordTag___iieCb {
padding: 10px 10px 10px 8px;
font-size: 14px;
font-weight: 400;
color: #000000;
}
.questionTitleEditorWrap___MHB5s {
margin-bottom: 18px;
}
.choiceWrap___QFkTc {
margin-bottom: 20px;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
display: flex;
flex: 0 0 auto;
justify-content: center;
align-items: center;
width: 46px;
height: 46px;
border-radius: 23px;
border: 1px solid #DCDCDC;
font-size: 16px;
font-weight: 400;
color: #464F66;
cursor: pointer;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
border-radius: 2px;
}
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
border-radius: 2px;
border: 1px solid #DCDCDC;
font-size: 14px;
font-weight: 400;
color: #9096A3;
height: 46px;
display: flex;
align-items: center;
padding: 0 16px;
cursor: pointer;
}
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
background-color: #37AD83;
border-color: #37AD83;
color: #fff;
}
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
background-color: #ebf6f2;
border-color: #37AD83;
color: #37AD83;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
display: flex;
align-items: center;
justify-content: flex-end;
margin: auto 0 auto 20px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
color: #2FA34F;
font-size: 14px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
margin-left: 20px;
}
.inputBorder___Q5tRE {
border-radius: 2px;
border: 1px solid #DCDCDC;
padding: 8px 12px;
font-size: 14px;
min-height: 46px;
display: flex;
align-items: center;
}
.placeholder___p9sFY {
font-size: 14px;
font-weight: 400;
color: #9096A3;
}
.blankWrapper___nC45e {
display: flex;
align-items: center;
}
.blankWrapper___nC45e .blankInput___pEHsx {
border-radius: 2px;
border: 1px solid #DCDCDC;
height: 46px;
font-size: 14px;
}
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
line-height: 46px;
}
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
font-size: 14px;
height: 46px;
}
.addBtn___WR5ZI {
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 16px;
cursor: pointer;
font-weight: 400;
color: #FFFFFF;
font-size: 12px;
}
.blankIndex___x9Pny {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
line-height: 56px;
}
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
font-size: 14px;
}
div[class~='ant-collapse-borderless'] {
background-color: #fff;
}
.collapseWrapper___ZTysU {
margin-bottom: 30px;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
margin-bottom: 20px;
border: none;
box-shadow: 0px 2px 4px 0px #EAEEF4;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
padding: 0 20px;
height: 64px;
background-color: #F6F7F8;
align-items: center;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
background-color: #fff;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
padding: 20px 40px;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
background-color: #eaeffa;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g {
font-size: 14px;
font-weight: 400;
color: #000000;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
color: #666666;
}
.collapseWrapper___ZTysU .open___B6FU9 {
color: #165DFF;
transform: rotateZ(90deg);
}
.collapseWrapper___ZTysU .close___QX19r {
color: #82A8FF;
}
.hide___mn25n {
display: none;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/GroupHomework/EditWork/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -99,23 +279,32 @@
font-weight: 400;
padding: 0px;
}
.Onerow___Pi45X {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.searchMember___oWEni {
background: #f4faff;
width: 530px;
height: 400px;
padding: 20px;
height: 440px;
overflow: auto;
}
.searchMember___oWEni .searchMemberHeader___K11IN {
height: 40px;
padding: 9px 0;
background: #F8FCFF;
border: 1px solid #EDF3FF;
}
.searchMember___oWEni [class~='ant-col'] {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.searchMember___oWEni [class~='ant-col'] [class='ant-checkbox-wrapper'] {
display: box;
display: flex;
align-items: center;
box-align: center;
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

@ -975,6 +975,7 @@ var _excluded = ["shixunHomeworks", "globalSetting", "loading", "user", "dispatc
var questionType = (/* unused pure expression or super */ null && (['单选题', '多选题', '判断题', '填空题', '简答题', '实训题']));
@ -1769,6 +1770,28 @@ var ExeriseReview = function ExeriseReview(_ref) {
}), v.score !== null && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml30 c-orange",
children: [v.score, "\u5206"]
}), v.who_score && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [v.who_score == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 font12",
style: {
padding: "0 6px",
color: "#B98B6B",
height: 18,
borderRadius: 2,
border: "1px solid #DDCEC4"
},
children: "\u7EC4\u957F\u8BC4\u5206"
}), v.who_score == 2 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 font12",
style: {
padding: "0 6px",
color: "#9096A3",
height: 18,
borderRadius: 2,
border: "1px solid #ccc"
},
children: "\u533F\u8BC4\u8BC4\u5206"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: k === 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {

@ -1,6 +1,77 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28072],{
/***/ 95293:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "h": function() { return /* binding */ MdEditorInForm; },
/* harmony export */ "x": function() { return /* binding */ RegularInput; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectSpread2.js */ 42122);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 55373);
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 52654);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 12768);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
var _excluded = ["value", "onChange", "scrollId"];
var MdEditorInForm = function MdEditorInForm(_ref) {
var value = _ref.value,
onChange = _ref.onChange,
scrollId = _ref.scrollId,
props = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
id: scrollId || '',
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
defaultValue: value,
onChange: onChange
}))
});
};
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
isEdit = _ref2.isEdit;
return isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
watch: true,
isFocus: true,
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'
},
children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder,
value: value
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].inputBorder */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"].placeholder */ .Z.placeholder),
children: placeholder
})
});
};
/***/ }),
/***/ 31303:
/*!***********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/GroupHomework/SubmitWork/index.tsx + 1 modules ***!
@ -34,34 +105,35 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
var react = __webpack_require__(67294);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./node_modules/react-infinite-scroller/index.js
var react_infinite_scroller = __webpack_require__(246);
var react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(react_infinite_scroller);
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
var es_form = __webpack_require__(25159);
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
var message = __webpack_require__(2453);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(85673);
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(96074);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
var input = __webpack_require__(79531);
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 21 modules
var input_number = __webpack_require__(31795);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(71577);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(55373);
// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
var MdEditorInForm = __webpack_require__(95293);
// EXTERNAL MODULE: ./src/service/shixunHomeworks.ts
var service_shixunHomeworks = __webpack_require__(45678);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/SubmitWork/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SubmitWorkmodules = ({"flex_box_center":"flex_box_center___zhDlQ","flex_space_between":"flex_space_between___G3Pry","flex_box_vertical_center":"flex_box_vertical_center___IidBt","flex_box_center_end":"flex_box_center_end___jySR4","flex_box_column":"flex_box_column___AzFAn","bg":"bg___wt09q","flexRow":"flexRow___D5fvl","flexJustifyCenter":"flexJustifyCenter___wXpVq","flexAlignEnd":"flexAlignEnd___L6jeu","flexAlignCenter":"flexAlignCenter___aGyHJ","flexColumn":"flexColumn____MXLR","formWrap":"formWrap___zUO3M","titleWrap":"titleWrap___WjWMI","fieldWrap":"fieldWrap___jarda","mdWrap":"mdWrap___Ig5ru","backgroundFa":"backgroundFa___kIq8U","button":"button___RImGP","searchMember":"searchMember___ty7AP"});
/* harmony default export */ var SubmitWorkmodules = ({"flex_box_center":"flex_box_center___zhDlQ","flex_space_between":"flex_space_between___G3Pry","flex_box_vertical_center":"flex_box_vertical_center___IidBt","flex_box_center_end":"flex_box_center_end___jySR4","flex_box_column":"flex_box_column___AzFAn","bg":"bg___wt09q","flexRow":"flexRow___D5fvl","flexJustifyCenter":"flexJustifyCenter___wXpVq","flexAlignEnd":"flexAlignEnd___L6jeu","flexAlignCenter":"flexAlignCenter___aGyHJ","flexColumn":"flexColumn____MXLR","formWrap":"formWrap___zUO3M","titleWrap":"titleWrap___WjWMI","fieldWrap":"fieldWrap___jarda","mdWrap":"mdWrap___Ig5ru","backgroundFa":"backgroundFa___kIq8U","button":"button___RImGP","Onerow":"Onerow___yUQfa","searchMember":"searchMember___ty7AP","searchMemberHeader":"searchMemberHeader___NA8eK"});
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
var MultiUpload = __webpack_require__(64768);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
@ -81,10 +153,9 @@ var jsx_runtime = __webpack_require__(85893);
var NewCoursePage = function NewCoursePage(_ref) {
var _searchMemberList;
var shixunHomeworks = _ref.shixunHomeworks,
user = _ref.user,
newCourse = _ref.newCourse,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@ -101,28 +172,23 @@ var NewCoursePage = function NewCoursePage(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
hasMore = _useState4[0],
setHasmore = _useState4[1];
var _useState5 = (0,react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isLoading = _useState6[0],
setIsLoading = _useState6[1];
var courseId = (0,react.useRef)();
var studentWorkAddDefaultData = shixunHomeworks.studentWorkAddDefaultData;
var _useState5 = (0,react.useState)([]),
_useState6 = slicedToArray_default()(_useState5, 2),
searchMemberList = _useState6[0],
setSearchMemberList = _useState6[1];
var _useState7 = (0,react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
searchMemberList = _useState8[0],
setSearchMemberList = _useState8[1];
var _useState9 = (0,react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
selectStudent = _useState10[0],
setSelectStudent = _useState10[1];
var _useState11 = (0,react.useState)({
selectStudent = _useState8[0],
setSelectStudent = _useState8[1];
var _useState9 = (0,react.useState)({
page: 1,
limit: 20,
search: ""
}),
_useState12 = slicedToArray_default()(_useState11, 2),
memberSearchParams = _useState12[0],
setMemberSearchParams = _useState12[1];
_useState10 = slicedToArray_default()(_useState9, 2),
memberSearchParams = _useState10[0],
setMemberSearchParams = _useState10[1];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res$members;
@ -130,21 +196,19 @@ var NewCoursePage = function NewCoursePage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setIsLoading(true);
_context.next = 3;
_context.next = 2;
return dispatch({
type: 'shixunHomeworks/getSearchMemberList',
payload: objectSpread2_default()(objectSpread2_default()({}, params), memberSearchParams)
});
case 3:
case 2:
res = _context.sent;
console.log(searchMemberList, res.members, 44);
setIsLoading(false);
if (res.members && res.members.length > 0) {
setSearchMemberList([].concat(toConsumableArray_default()(searchMemberList), toConsumableArray_default()(res.members)));
}
if (((_res$members = res.members) === null || _res$members === void 0 ? void 0 : _res$members.length) < 20) setHasmore(false);
case 8:
case 6:
case "end":
return _context.stop();
}
@ -155,61 +219,57 @@ var NewCoursePage = function NewCoursePage(_ref) {
};
}();
(0,react.useEffect)(function () {
new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return dispatch({
type: 'shixunHomeworks/addStudentWorkDefaultData',
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
type: 3
})
});
case 2:
res = _context2.sent;
case 3:
case "end":
return _context2.stop();
}
}, _callee2);
})));
getData();
dispatch({
type: 'shixunHomeworks/addStudentWorkDefaultData',
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
type: 3
})
});
}, []);
(0,react.useEffect)(function () {
getData();
}, [memberSearchParams]);
(0,react.useEffect)(function () {
setSelectStudent([{
user_name: studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.user_name,
group_name: studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.group_name,
student_id: studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.student_id,
user_id: studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.user_id
}]);
}, [studentWorkAddDefaultData]);
var handleSubmit = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(bodyData) {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(bodyData) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
bodyData.user_ids = [studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.user_id].concat(toConsumableArray_default()((selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item) {
bodyData.user_ids = (selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item) {
return item.user_id;
})) || []));
_context3.next = 3;
})) || [];
_context2.next = 3;
return (0,service_shixunHomeworks/* addStudentWork */.Be)(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, params), bodyData), {}, {
type: 3
}));
case 3:
res = _context3.sent;
res = _context2.sent;
if (res.status === 0) {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework/").concat(params.commonHomeworkId, "/review/").concat(res.work_id));
}
case 5:
case "end":
return _context3.stop();
return _context2.stop();
}
}, _callee3);
}, _callee2);
}));
return function handleSubmit(_x) {
return _ref4.apply(this, arguments);
return _ref3.apply(this, arguments);
};
}();
var handleFinish = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(values) {
var bodyData, _bodyData$attachment_;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
var bodyData, _bodyData$attachment_, isScore;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
bodyData = objectSpread2_default()({}, formValue);
bodyData.base_on_project = 1;
@ -218,6 +278,25 @@ var NewCoursePage = function NewCoursePage(_ref) {
return v.response.id;
});
}
isScore = false;
selectStudent.map(function (item) {
if (!item.score) {
isScore = true;
}
});
if (!(studentWorkAddDefaultData.is_group_grade && isScore)) {
_context3.next = 8;
break;
}
message/* default.warning */.ZP.warning("评分不能为空");
return _context3.abrupt("return");
case 8:
bodyData["group_leader_scores"] = selectStudent.map(function (item) {
return {
user_id: item.user_id,
score: item.score
};
});
if (!bodyData.attachment_ids || bodyData.attachment_ids == '') {
modal/* default.confirm */.Z.confirm({
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -230,13 +309,37 @@ var NewCoursePage = function NewCoursePage(_ref) {
} else {
handleSubmit(bodyData);
}
case 10:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleFinish(_x2) {
return _ref4.apply(this, arguments);
};
}();
var handleInfiniteOnLoad = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(idName) {
var _document, _document$querySelect, _document2, _document2$querySelec, _document3, _document3$querySelec;
var scrollHeight, offsetTop, offsetHeight;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
scrollHeight = (_document = document) === null || _document === void 0 ? void 0 : (_document$querySelect = _document.querySelector(idName)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.scrollHeight;
offsetTop = (_document2 = document) === null || _document2 === void 0 ? void 0 : (_document2$querySelec = _document2.querySelector(idName)) === null || _document2$querySelec === void 0 ? void 0 : _document2$querySelec.scrollTop;
offsetHeight = (_document3 = document) === null || _document3 === void 0 ? void 0 : (_document3$querySelec = _document3.querySelector(idName)) === null || _document3$querySelec === void 0 ? void 0 : _document3$querySelec.clientHeight;
if (scrollHeight == offsetTop + offsetHeight && hasMore) {
memberSearchParams.page++;
setMemberSearchParams(memberSearchParams);
}
case 4:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function handleFinish(_x2) {
return function handleInfiniteOnLoad(_x3) {
return _ref5.apply(this, arguments);
};
}();
@ -249,15 +352,11 @@ var NewCoursePage = function NewCoursePage(_ref) {
children: studentWorkAddDefaultData.category && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(studentWorkAddDefaultData.course_id, "/group_homework"),
children: studentWorkAddDefaultData.course_name
})
href: "/classrooms/".concat(studentWorkAddDefaultData.course_id, "/group_homework"),
children: studentWorkAddDefaultData.course_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(studentWorkAddDefaultData.course_id, "/group_homework"),
children: studentWorkAddDefaultData.category.category_name
})
href: "/classrooms/".concat(studentWorkAddDefaultData.course_id, "/group_homework"),
children: studentWorkAddDefaultData.category.category_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default.Item */.Z.Item, {
children: [studentWorkAddDefaultData === null || studentWorkAddDefaultData === void 0 ? void 0 : studentWorkAddDefaultData.user_name, " \u63D0\u4EA4\u4F5C\u54C1"]
})]
@ -266,60 +365,70 @@ var NewCoursePage = function NewCoursePage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "font24 bold mt20 mb20",
children: studentWorkAddDefaultData.homework_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
form: form,
className: SubmitWorkmodules.formWrap,
scrollToFirstError: true,
layout: "vertical",
onValuesChange: function onValuesChange() {
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
}
// initialValues={[{ base_on_project: 1 }]}
,
onValuesChange: function onValuesChange(value, allValues) {
return setFormValue(allValues);
},
onFinish: handleFinish,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SubmitWorkmodules.mdWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
htmlFor: null,
label: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5185\u5BB9:"
}),
name: "description",
label: "\u5185\u5BB9:",
rules: [{
required: true,
message: "请输入作业的简介"
message: '请输入作业的简介'
}, {
type: "string",
max: 65535,
message: '作业简介最大限制65535个字符'
}, {
type: "string",
whitespace: true,
message: "内容不能全为空格"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
defaultValue: formValue.intro
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* MdEditorInForm */.h, {
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A65535\u4E2A\u5B57\u7B26",
scrollId: '',
watch: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5C0F\u7EC4\u6210\u5458\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pl30 mb20",
children: ["\u6210\u5458\u8981\u6C42:", studentWorkAddDefaultData.min_num, "~", studentWorkAddDefaultData.max_num, "\u4EBA ", /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(value, e) {
e.preventDefault();
if (value === '') {
delete memberSearchParams.search;
} else {
memberSearchParams.search = value;
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
children: ["\u6210\u5458\u8981\u6C42:", studentWorkAddDefaultData.min_num, "~", studentWorkAddDefaultData.max_num, "\u4EBA\xA0"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.Search */.Z.Search, {
onSearch: function onSearch(value, e) {
e.preventDefault();
if (value === '') {
delete memberSearchParams.search;
} else {
memberSearchParams.search = value;
}
memberSearchParams.page = 1;
setMemberSearchParams(memberSearchParams);
setSearchMemberList([]);
setHasmore(true);
},
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",
allowClear: true,
style: {
width: 240
}
searchMemberList = [];
memberSearchParams.page = 1;
setHasmore(true);
getData();
},
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",
allowClear: true,
style: {
width: 240
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
@ -329,25 +438,40 @@ var NewCoursePage = function NewCoursePage(_ref) {
name: "user_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default.Group */.Z.Group, {
className: "w100",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SubmitWorkmodules.searchMember,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: SubmitWorkmodules.searchMemberHeader,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml40",
flex: "100px",
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: "\u5206\u73ED"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u5B66\u53F7"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: 360,
overflow: 'auto'
padding: 20
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)((react_infinite_scroller_default()), {
initialLoad: false,
pageStart: 1,
threshold: 20,
loadMore: function loadMore(page) {
memberSearchParams.page++;
getData();
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
id: "searchMemberList",
style: {
height: 360,
overflow: "auto"
},
onScrollCapture: function onScrollCapture() {
return handleInfiniteOnLoad("#searchMemberList");
},
hasMore: hasMore,
useWindow: false,
children: (_searchMemberList = searchMemberList) === null || _searchMemberList === void 0 ? void 0 : _searchMemberList.map(function (item, key) {
children: searchMemberList === null || searchMemberList === void 0 ? void 0 : searchMemberList.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
height: "32px",
lineHeight: "32px",
marginBottom: "8px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
@ -366,107 +490,137 @@ var NewCoursePage = function NewCoursePage(_ref) {
},
children: item.user_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "100px",
children: item.group_name
children: [item.group_name, " "]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: item.student_id
})]
}, key);
})
})
})
})]
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 1,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-youjiang ml20 mr20"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 10,
span: 11,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SubmitWorkmodules.searchMember,
style: {
overflow: 'auto'
marginTop: "-24px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: SubmitWorkmodules.searchMemberHeader,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml20",
flex: "100px",
children: studentWorkAddDefaultData.user_name
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: studentWorkAddDefaultData.group_name
})
children: "\u5206\u73ED"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: studentWorkAddDefaultData.student_id
flex: "110px",
children: "\u5B66\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: studentWorkAddDefaultData.is_group_grade && "评分"
})]
}), selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item, key) {
// if (formValue?.user_ids?.includes(item.user_id)) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
var _formValue$user_ids, _formValue$user_ids2;
form.setFieldsValue({
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids = formValue.user_ids) === null || _formValue$user_ids === void 0 ? void 0 : _formValue$user_ids.filter(function (val) {
return val !== item.user_id;
})
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids2 = formValue.user_ids) === null || _formValue$user_ids2 === void 0 ? void 0 : _formValue$user_ids2.filter(function (val) {
return val !== item.user_id;
})
}));
setSelectStudent(selectStudent.filter(function (v) {
return v.user_id != item.user_id;
}));
}
})
})]
}, key);
// }
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
padding: 20,
overflow: 'auto',
height: 360
},
children: selectStudent === null || selectStudent === void 0 ? void 0 : selectStudent.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
style: {
marginBottom: 8
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.user_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "100px",
children: item.group_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "110px",
children: item.student_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: studentWorkAddDefaultData.is_group_grade && /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
stringMode: true,
min: "0.1",
max: "100",
step: "0.1",
placeholder: "\u8BF7\u8F93\u5165",
value: item.score,
onChange: function onChange(value) {
setSelectStudent(selectStudent.map(function (v) {
if (item.user_id == v.user_id) {
return objectSpread2_default()(objectSpread2_default()({}, v), {}, {
score: value
});
} else return v;
}));
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: "auto"
},
children: key != 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shanchudiao current",
onClick: function onClick() {
var _formValue$user_ids, _formValue$user_ids2;
form.setFieldsValue({
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids = formValue.user_ids) === null || _formValue$user_ids === void 0 ? void 0 : _formValue$user_ids.filter(function (val) {
return val !== item.user_id;
})
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
user_ids: formValue === null || formValue === void 0 ? void 0 : (_formValue$user_ids2 = formValue.user_ids) === null || _formValue$user_ids2 === void 0 ? void 0 : _formValue$user_ids2.filter(function (val) {
return val !== item.user_id;
})
}));
setSelectStudent(selectStudent.filter(function (v) {
return v.user_id != item.user_id;
}));
}
})
})]
}, key);
})
})]
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SubmitWorkmodules.backgroundFa,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pt40 mb30",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default.Item */.Z.Item, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
className: "".concat(SubmitWorkmodules.button, " mr20"),
htmlType: "submit",
loading: loading['newCourse/editCourse'] || loading['newCourse/submitCourse'],
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
ghost: true,
className: SubmitWorkmodules.button,
onClick: function onClick() {
return _umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework/").concat(params.commonHomeworkId, "/detail"));
},
children: "\u53D6\u6D88"
})]
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "pt40 mb30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
className: "".concat(SubmitWorkmodules.button, " mr20"),
loading: loading['newCourse/editCourse'] || loading['newCourse/submitCourse'],
onClick: function onClick() {
return form.submit();
},
children: "\u63D0\u4EA4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: 'middle',
type: "primary",
ghost: true,
className: SubmitWorkmodules.button,
onClick: function onClick() {
return _umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework/").concat(params.commonHomeworkId, "/detail"));
},
children: "\u53D6\u6D88"
})]
})]
});
@ -474,16 +628,29 @@ var NewCoursePage = function NewCoursePage(_ref) {
/* harmony default export */ var SubmitWork = ((0,_umi_production_exports.connect)(function (_ref6) {
var shixunHomeworks = _ref6.shixunHomeworks,
newCourse = _ref6.newCourse,
user = _ref6.user,
loading = _ref6.loading,
globalSetting = _ref6.globalSetting;
return {
shixunHomeworks: shixunHomeworks,
newCourse: newCourse,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(NewCoursePage));
/***/ }),
/***/ 52654:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/index.less?modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__["Z"] = ({"wrap":"wrap___ilWvf","deleteIcon":"deleteIcon___JBDG8","keywordTag":"keywordTag___iieCb","questionTitleEditorWrap":"questionTitleEditorWrap___MHB5s","choiceWrap":"choiceWrap___QFkTc","choiceIndex":"choiceIndex___Mr2YO","judgementIndex":"judgementIndex___fUVWK","setAnswerBtn":"setAnswerBtn___Whox5","activeAnswer":"activeAnswer___fGU6Y","activeJudgementAnswer":"activeJudgementAnswer___wJv8P","actionWrapper":"actionWrapper___ERQ7k","addIcon":"addIcon___L9TE0","inputBorder":"inputBorder___Q5tRE","placeholder":"placeholder___p9sFY","blankWrapper":"blankWrapper___nC45e","blankInput":"blankInput___pEHsx","blankInputNumberWrapper":"blankInputNumberWrapper___uEHb0","addBtn":"addBtn___WR5ZI","blankIndex":"blankIndex___x9Pny","baseInputWrapper":"baseInputWrapper___eVsG7","collapseWrapper":"collapseWrapper___ZTysU","panelHeader":"panelHeader___QSN9g","open":"open___B6FU9","close":"close___QX19r","hide":"hide___mn25n"});
/***/ })
}]);

@ -1,3 +1,183 @@
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrap___ilWvf div[class~='ant-form-item'] {
margin-bottom: 0;
}
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
display: none;
}
.wrap___ilWvf .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
}
.wrap___ilWvf .keywordTag___iieCb {
padding: 10px 10px 10px 8px;
font-size: 14px;
font-weight: 400;
color: #000000;
}
.questionTitleEditorWrap___MHB5s {
margin-bottom: 18px;
}
.choiceWrap___QFkTc {
margin-bottom: 20px;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
display: flex;
flex: 0 0 auto;
justify-content: center;
align-items: center;
width: 46px;
height: 46px;
border-radius: 23px;
border: 1px solid #DCDCDC;
font-size: 16px;
font-weight: 400;
color: #464F66;
cursor: pointer;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
border-radius: 2px;
}
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
border-radius: 2px;
border: 1px solid #DCDCDC;
font-size: 14px;
font-weight: 400;
color: #9096A3;
height: 46px;
display: flex;
align-items: center;
padding: 0 16px;
cursor: pointer;
}
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
background-color: #37AD83;
border-color: #37AD83;
color: #fff;
}
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
background-color: #ebf6f2;
border-color: #37AD83;
color: #37AD83;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
display: flex;
align-items: center;
justify-content: flex-end;
margin: auto 0 auto 20px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
color: #2FA34F;
font-size: 14px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
margin-left: 20px;
}
.inputBorder___Q5tRE {
border-radius: 2px;
border: 1px solid #DCDCDC;
padding: 8px 12px;
font-size: 14px;
min-height: 46px;
display: flex;
align-items: center;
}
.placeholder___p9sFY {
font-size: 14px;
font-weight: 400;
color: #9096A3;
}
.blankWrapper___nC45e {
display: flex;
align-items: center;
}
.blankWrapper___nC45e .blankInput___pEHsx {
border-radius: 2px;
border: 1px solid #DCDCDC;
height: 46px;
font-size: 14px;
}
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
line-height: 46px;
}
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
font-size: 14px;
height: 46px;
}
.addBtn___WR5ZI {
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 16px;
cursor: pointer;
font-weight: 400;
color: #FFFFFF;
font-size: 12px;
}
.blankIndex___x9Pny {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
line-height: 56px;
}
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
font-size: 14px;
}
div[class~='ant-collapse-borderless'] {
background-color: #fff;
}
.collapseWrapper___ZTysU {
margin-bottom: 30px;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
margin-bottom: 20px;
border: none;
box-shadow: 0px 2px 4px 0px #EAEEF4;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
padding: 0 20px;
height: 64px;
background-color: #F6F7F8;
align-items: center;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
background-color: #fff;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
padding: 20px 40px;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
background-color: #eaeffa;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g {
font-size: 14px;
font-weight: 400;
color: #000000;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
color: #666666;
}
.collapseWrapper___ZTysU .open___B6FU9 {
color: #165DFF;
transform: rotateZ(90deg);
}
.collapseWrapper___ZTysU .close___QX19r {
color: #82A8FF;
}
.hide___mn25n {
display: none;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/GroupHomework/SubmitWork/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -100,23 +280,32 @@
font-weight: 400;
padding: 0px;
}
.Onerow___yUQfa {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.searchMember___ty7AP {
background: #f4faff;
width: 530px;
height: 400px;
padding: 20px;
height: 440px;
overflow: auto;
}
.searchMember___ty7AP .searchMemberHeader___NA8eK {
height: 40px;
padding: 9px 0;
background: #F8FCFF;
border: 1px solid #EDF3FF;
}
.searchMember___ty7AP [class~='ant-col'] {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.searchMember___ty7AP [class~='ant-col'] [class='ant-checkbox-wrapper'] {
display: box;
display: flex;
align-items: center;
box-align: center;
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

@ -6466,6 +6466,7 @@ var Stage = function Stage(_ref) {
course_id: params === null || params === void 0 ? void 0 : params.coursesId,
index: key,
cust_seq: true,
hiddenEditBtn: true,
showVideoPlay: true
// user.userInfo?.admin ||
// user.userInfo?.business ||
@ -7574,10 +7575,6 @@ var SendToClassModal = function SendToClassModal(_ref) {
return null;
}
}
if (item.item_type !== visibleType && visibleType !== 'All') {
return null;
}
//普通课程付费和试学
var bool = nodeData.index.slice(0, 1) === '1';
var notCollectPay = (nodeData === null || nodeData === void 0 ? void 0 : (_nodeData$learning_st = nodeData.learning_status) === null || _nodeData$learning_st === void 0 ? void 0 : _nodeData$learning_st[0]) === 'can';
@ -7692,8 +7689,9 @@ var SendToClassModal = function SendToClassModal(_ref) {
marginLeft: '5px',
width: '112px',
height: '20px',
display: 'inline-block',
textAlign: 'center',
display: 'inline-flex',
alignItems: 'center',
justifyContent: "center",
fontSize: '12px'
},
children: "Jupyter Notebook"
@ -7747,7 +7745,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
children: "\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
className: "tr",
children: [(item.item_type === 'VideoItem' || (item === null || item === void 0 ? void 0 : item.item_type) === "Attachment" || (item === null || item === void 0 ? void 0 : item.item_type) === 'StageCatalog' || (item === null || item === void 0 ? void 0 : item.item_type) === 'SubjectHomework') && !props.disabled && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
children: [(item.item_type === 'VideoItem' || (item === null || item === void 0 ? void 0 : item.item_type) === "Attachment" || (item === null || item === void 0 ? void 0 : item.item_type) === 'StageCatalog' || (item === null || item === void 0 ? void 0 : item.item_type) === 'SubjectHomework') && !props.disabled && !props.hiddenEditBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u7F16\u8F91",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {

@ -895,7 +895,7 @@ var FormSearch = function FormSearch(_ref) {
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u521B\u5EFA\u8005",
label: "\u521B\u5EFA\u8005/\u5408\u4F5C\u8005",
name: "creator",
initialValue: "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
@ -2957,7 +2957,7 @@ var divider = __webpack_require__(96074);
var NoData = __webpack_require__(82982);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/components/SelectShixun.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectShixunmodules = ({"flex_box_center":"flex_box_center___z88Le","flex_space_between":"flex_space_between___b4xPz","flex_box_vertical_center":"flex_box_vertical_center___KkW0d","flex_box_center_end":"flex_box_center_end___pgvoZ","flex_box_column":"flex_box_column___tFgV5","wrp":"wrp___RrUT2","drawer":"drawer___QqugY","menu":"menu___uKpxi","actived":"actived___hCeHj","actived2":"actived2___aIAeg","subTag":"subTag___S0zfl","listItem":"listItem___Ulw3D","listItem2":"listItem2___J8GtN","info":"info___gY955","title":"title___hyfzM","titleLeft":"titleLeft___eH38u","titleRight":"titleRight___JCVAi","search":"search___GnrcF","filter":"filter___jwVvV","description":"description___ynLaI","menuCourse":"menuCourse___HRXxE"});
/* harmony default export */ var SelectShixunmodules = ({"flex_box_center":"flex_box_center___z88Le","flex_space_between":"flex_space_between___b4xPz","flex_box_vertical_center":"flex_box_vertical_center___KkW0d","flex_box_center_end":"flex_box_center_end___pgvoZ","flex_box_column":"flex_box_column___tFgV5","wrp":"wrp___RrUT2","drawer":"drawer___QqugY","menu":"menu___uKpxi","actived":"actived___hCeHj","actived2":"actived2___aIAeg","subTag":"subTag___S0zfl","listItem":"listItem___Ulw3D","listItem2":"listItem2___J8GtN","info":"info___gY955","title":"title___hyfzM","titleLeft":"titleLeft___eH38u","titleRight":"titleRight___JCVAi","search":"search___GnrcF","filter":"filter___jwVvV","description":"description___ynLaI","menuCourse":"menuCourse___HRXxE","authorname":"authorname___qn85G"});
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(7303);
// EXTERNAL MODULE: ./src/components/FormSearch/index.tsx + 1 modules
@ -3538,7 +3538,6 @@ var SelectShixun_PublishShixun = function PublishShixun(_ref) {
setSelectArrs(checkedValues);
},
children: data === null || data === void 0 ? void 0 : (_data$shixun_list3 = data.shixun_list) === null || _data$shixun_list3 === void 0 ? void 0 : _data$shixun_list3.map(function (v, k) {
var _v$content, _v$content2, _v$content2$author_na;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunmodules.listItem,
style: {
@ -3638,31 +3637,42 @@ var SelectShixun_PublishShixun = function PublishShixun(_ref) {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20",
children: [v !== null && v !== void 0 && (_v$content = v.content) !== null && _v$content !== void 0 && _v$content.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v === null || v === void 0 ? void 0 : (_v$content2 = v.content) === null || _v$content2 === void 0 ? void 0 : (_v$content2$author_na = _v$content2.author_name) === null || _v$content2$author_na === void 0 ? void 0 : _v$content2$author_na[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(v === null || v === void 0 ? void 0 : v.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
})
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v.author_school_name
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u96BE\u5EA6\u7CFB\u6570 \xA0", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", v.study_count]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u96BE\u5EA6\u7CFB\u6570 ", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.study_count
})]
})]
})]
@ -4604,7 +4614,7 @@ var SelectCourses_PublishShixun = function PublishShixun(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: "tc",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(SelectCourses_Search, {
placeholder: "\u8BFE\u7A0B\u540D\u79F0/\u521B\u5EFA\u8005",
placeholder: "\u8BFE\u7A0B\u540D\u79F0/\u8BFE\u7A0B\u6807\u8BC6/\u5408\u4F5C\u8005",
enterButton: "\u641C\u7D22",
size: 'middle',
className: SelectShixunmodules.search,
@ -4685,7 +4695,6 @@ var SelectCourses_PublishShixun = function PublishShixun(_ref) {
})]
})
}), (coursesLists === null || coursesLists === void 0 ? void 0 : (_coursesLists$subject = coursesLists.subject_list) === null || _coursesLists$subject === void 0 ? void 0 : _coursesLists$subject.length) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), coursesLists === null || coursesLists === void 0 ? void 0 : (_coursesLists$subject2 = coursesLists.subject_list) === null || _coursesLists$subject2 === void 0 ? void 0 : _coursesLists$subject2.map(function (v, k) {
var _v$content, _v$content2, _v$content2$author_na;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SelectShixunmodules.listItem,
style: {
@ -4755,36 +4764,43 @@ var SelectCourses_PublishShixun = function PublishShixun(_ref) {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20",
children: [v !== null && v !== void 0 && (_v$content = v.content) !== null && _v$content !== void 0 && _v$content.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v === null || v === void 0 ? void 0 : (_v$content2 = v.content) === null || _v$content2 === void 0 ? void 0 : (_v$content2$author_na = _v$content2.author_name) === null || _v$content2$author_na === void 0 ? void 0 : _v$content2$author_na[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsxs)(react.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(v === null || v === void 0 ? void 0 : v.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
})
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u7AE0\u8282 \xA0", v.stage_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u5B9E\u8BAD \xA0", v.shixuns_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", v.myshixuns_count]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.myshixuns_count
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7AE0\u8282:", v.stage_count]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B9E\u8BAD:", v.shixuns_count]
})]
})]
})]

@ -372,6 +372,14 @@ div[class~="ant-modal-confirm-content"] {
display: inline-block;
margin-right: 30px;
}
.authorname___qn85G {
max-width: 300px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FormSearch/index.less?modules ***!

@ -149,7 +149,7 @@ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
var react = __webpack_require__(67294);
;// CONCATENATED MODULE: ./src/components/DropdownSearch/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var DropdownSearchmodules = ({"flex_box_center":"flex_box_center___va8nO","flex_space_between":"flex_space_between___hPW7K","flex_box_vertical_center":"flex_box_vertical_center___PKxoL","flex_box_center_end":"flex_box_center_end___D5CRS","flex_box_column":"flex_box_column___TKM2o","listWrap":"listWrap___wC5Nd","menu":"menu___gJ_kD","list":"list___Df_Ne"});
/* harmony default export */ var DropdownSearchmodules = ({"flex_box_center":"flex_box_center___va8nO","flex_space_between":"flex_space_between___hPW7K","flex_box_vertical_center":"flex_box_vertical_center___PKxoL","flex_box_center_end":"flex_box_center_end___D5CRS","flex_box_column":"flex_box_column___TKM2o","listWrap":"listWrap___wC5Nd","menu":"menu___gJ_kD","list":"list___Df_Ne","pad":"pad___b8kSJ"});
;// CONCATENATED MODULE: ./src/components/VirtualList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var VirtualListmodules = ({"flex_box_center":"flex_box_center___jQroX","flex_space_between":"flex_space_between___ybTjf","flex_box_vertical_center":"flex_box_vertical_center___TEudd","flex_box_center_end":"flex_box_center_end___sXWuH","flex_box_column":"flex_box_column___irPtQ","virtual":"virtual___Cl1Fa"});
@ -328,12 +328,15 @@ var DropdownSearch = function DropdownSearch(_ref) {
});
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: DropdownSearchmodules.pad,
onMouseLeave: function onMouseLeave() {
if (!isFocus.current) {
setVisible(false);
}
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z
// open
, {
open: visible,
dropdownRender: submenu,
destroyPopupOnHide: true,

@ -234,6 +234,17 @@
.listWrap___wC5Nd .menu___gJ_kD .list___Df_Ne:hover {
background-color: #f5f5f5;
}
.pad___b8kSJ {
position: relative;
}
.pad___b8kSJ::after {
content: ' ';
width: 100%;
height: 20px;
position: absolute;
left: 0;
bottom: -20px;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/VirtualList/index.less?modules ***!

@ -309,7 +309,7 @@ var FormSearch = function FormSearch(_ref) {
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u521B\u5EFA\u8005",
label: "\u521B\u5EFA\u8005/\u5408\u4F5C\u8005",
name: "creator",
initialValue: "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
@ -7787,7 +7787,7 @@ var informationPage = function informationPage(_ref) {
teacher_max: 0
};
var submitData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var _formValue$identifier;
var obj_attachment, obj_file, res, obj, i;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
@ -7884,7 +7884,7 @@ var informationPage = function informationPage(_ref) {
}
}, _callee);
}));
return function submitData() {
return function submitData(_x) {
return _ref2.apply(this, arguments);
};
}();
@ -8046,7 +8046,7 @@ var informationPage = function informationPage(_ref) {
}
}, _callee2);
}));
return function (_x) {
return function (_x2) {
return _ref3.apply(this, arguments);
};
}(),

@ -4744,7 +4744,7 @@ function reducer(state, action) {
function onPaginationChange(value) {
dispatch({
type: Types.SET_PAGE,
page: value
payload: value
});
}
function onSetActionType(value) {

@ -1577,8 +1577,8 @@ var RegularInput = function RegularInput(_ref2) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 2453);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 51904);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 25159);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 15746);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 83062);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 79531);
@ -1644,7 +1644,9 @@ var KeywordTag = function KeywordTag(_ref2) {
var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var questionTitlePlaceholder = _ref3.questionTitlePlaceholder,
form = _ref3.form,
showKeywords = _ref3.showKeywords;
showKeywords = _ref3.showKeywords,
_ref3$isMustKeyWords = _ref3.isMustKeyWords,
isMustKeyWords = _ref3$isMustKeyWords === void 0 ? showKeywords : _ref3$isMustKeyWords;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
editAnalysis = _useState2[0],
@ -1686,13 +1688,20 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
height: 140,
placeholder: '请编辑参考答案(非必填)'
})
}), showKeywords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
}), showKeywords && !isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
hidden: true,
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
defaultChecked: true
})
}), showKeywords && isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {})
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
className: "ml10",
children: "\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"
@ -1709,10 +1718,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
})
})
})]
}), useKeywordsValue && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
}), (useKeywordsValue || !isMustKeyWords) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
name: "keywords",
rules: [{
validator: function validator(rule, values) {
if (!isMustKeyWords) {
return Promise.resolve();
}
if (!(values !== null && values !== void 0 && values.length)) {
return Promise.reject(new Error('请输入关键词'));
}
@ -1731,8 +1743,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_5__/* ["default"].title */ .Z.title, " mb10"),
children: "\u5173\u952E\u8BCD"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: !isMustKeyWords ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
style: {
color: "#9096A3"
},
children: "\u5224\u5206\u5173\u952E\u8BCD"
}) : "关键词"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "font14 mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
@ -1792,14 +1809,14 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var key = _ref5.key,
name = _ref5.name,
restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default()(_ref5, _excluded2);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
className: "mb20",
style: {
marginRight: 148
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
flex: 1,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
justify: "space-between",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
@ -1809,7 +1826,7 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return remove(name);
}
})
})), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
})), isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
name: [name, "score"],
label: "\u5206\u503C",
rules: [{
@ -4207,15 +4224,17 @@ var util = __webpack_require__(87429);
var AsyncButton = __webpack_require__(48559);
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
var modal = __webpack_require__(72423);
// EXTERNAL MODULE: ./node_modules/antd/es/menu/index.js + 11 modules
var menu = __webpack_require__(68508);
// EXTERNAL MODULE: ./node_modules/antd/es/affix/index.js + 2 modules
var affix = __webpack_require__(30291);
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(21687);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/index.js + 1 modules
var dropdown = __webpack_require__(85418);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/EditPotin/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var EditPotinmodules = ({"flex_box_center":"flex_box_center___gi93l","flex_space_between":"flex_space_between___mWMLA","flex_box_vertical_center":"flex_box_vertical_center___rk4nc","flex_box_center_end":"flex_box_center_end___B8XxF","flex_box_column":"flex_box_column___AX3Vm","bg":"bg___Ya739","title":"title___BC46y","bottomdiv":"bottomdiv___uaPr6","spanBtn":"spanBtn___jjgnA","addQuestionBtn":"addQuestionBtn___qOlYW","saveBtn":"saveBtn___ulgem","left":"left___i8aTX","scrollWrapper":"scrollWrapper___Jk80T","Button":"Button___auxWm","iconWrapper":"iconWrapper___h3H1m","up":"up___tLyCX","down":"down___T5_aj","disabled":"disabled___GRBbF","titleleft":"titleleft___xZGbq","qcount":"qcount___ID7OA","score":"score___T7dbm","qtitle":"qtitle___qJBFd","qcountclick":"qcountclick___m_VKG","right":"right___CBabI","edit":"edit___WHuql","delete":"delete___Pa6db","shixun":"shixun___oObBe","scoreByBlankRadio":"scoreByBlankRadio___r4AWn","scoreinput":"scoreinput___O8EhL","modalconfirm":"modalconfirm___Ru9B_","scoremodal":"scoremodal___BdW7P","close":"close___blHYk","content":"content___jlm9o","items":"items___i3TrH","bottom":"bottom___zMQZ6","yes":"yes___lOPY6","no":"no___gtzKI","formcenter":"formcenter___fCxkm","radiogroup":"radiogroup___oXWHc","easy":"easy___ANNVD","medium":"medium___ov7N3","hard":"hard___n4afW","formcenterselect":"formcenterselect___lYa4f","selectitems":"selectitems___c9Pt5","morebottom":"morebottom____I_ev","titleTooltip":"titleTooltip___CAyYg"});
/* harmony default export */ var EditPotinmodules = ({"flex_box_center":"flex_box_center___gi93l","flex_space_between":"flex_space_between___mWMLA","flex_box_vertical_center":"flex_box_vertical_center___rk4nc","flex_box_center_end":"flex_box_center_end___B8XxF","flex_box_column":"flex_box_column___AX3Vm","moreSpan":"moreSpan___hbStq","bg":"bg___Ya739","title":"title___BC46y","bottomdiv":"bottomdiv___uaPr6","spanBtn":"spanBtn___jjgnA","addQuestionBtn":"addQuestionBtn___qOlYW","saveBtn":"saveBtn___ulgem","left":"left___i8aTX","scrollWrapper":"scrollWrapper___Jk80T","Button":"Button___auxWm","iconWrapper":"iconWrapper___h3H1m","up":"up___tLyCX","down":"down___T5_aj","disabled":"disabled___GRBbF","titleleft":"titleleft___xZGbq","more_style":"more_style___nhWCX","qcount":"qcount___ID7OA","score":"score___T7dbm","qtitle":"qtitle___qJBFd","qcountclick":"qcountclick___m_VKG","right":"right___CBabI","edit":"edit___WHuql","delete":"delete___Pa6db","shixun":"shixun___oObBe","scoreByBlankRadio":"scoreByBlankRadio___r4AWn","scoreinput":"scoreinput___O8EhL","modalconfirm":"modalconfirm___Ru9B_","scoremodal":"scoremodal___BdW7P","close":"close___blHYk","content":"content___jlm9o","items":"items___i3TrH","bottom":"bottom___zMQZ6","yes":"yes___lOPY6","no":"no___gtzKI","formcenter":"formcenter___fCxkm","radiogroup":"radiogroup___oXWHc","easy":"easy___ANNVD","medium":"medium___ov7N3","hard":"hard___n4afW","formcenterselect":"formcenterselect___lYa4f","selectitems":"selectitems___c9Pt5","morebottom":"morebottom____I_ev","titleTooltip":"titleTooltip___CAyYg"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var utils_util = __webpack_require__(29427);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -4225,6 +4244,8 @@ var NoData = __webpack_require__(82982);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(861);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules
var react_beautiful_dnd_esm = __webpack_require__(66012);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
@ -5815,7 +5836,7 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
className: Saveitemmodules.yestag,
children: "\u6B63\u786E\u7B54\u6848"
})]
});
}, index);
})
}), (qitem === null || qitem === void 0 ? void 0 : qitem.question_type) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Saveitemmodules.normalWrap,
@ -5836,7 +5857,7 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
className: Saveitemmodules.yestag,
children: "\u6B63\u786E\u7B54\u6848"
})]
});
}, index);
})
}), (qitem === null || qitem === void 0 ? void 0 : qitem.question_type) === 3 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Saveitemmodules.completion,
@ -5861,7 +5882,7 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
}, vindex);
})
})]
});
}, index);
})
}), (qitem === null || qitem === void 0 ? void 0 : qitem.question_type) === 4 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Saveitemmodules.simple,
@ -5931,11 +5952,11 @@ var SaveItem_DragQuestions = function DragQuestions(_ref) {
className: Saveitemmodules.yestag,
children: "\u6B63\u786E\u7B54\u6848"
})]
});
}, index);
})
})
})]
});
}, vndex);
})), ((qitem === null || qitem === void 0 ? void 0 : qitem.question_type) <= 4 || (qitem === null || qitem === void 0 ? void 0 : qitem.question_type) === 6) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Saveitemmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -6240,7 +6261,7 @@ var SetScore = function SetScore(_ref) {
})]
}), exerciseitem === null || exerciseitem === void 0 ? void 0 : (_exerciseitem$exercis2 = exerciseitem.exercise_question_types) === null || _exerciseitem$exercis2 === void 0 ? void 0 : (_exerciseitem$exercis3 = _exerciseitem$exercis2.filter(function (item) {
return item.name !== '实训题' && item.name !== '组合题';
})) === null || _exerciseitem$exercis3 === void 0 ? void 0 : _exerciseitem$exercis3.map(function (item) {
})) === null || _exerciseitem$exercis3 === void 0 ? void 0 : _exerciseitem$exercis3.map(function (item, k) {
var _item$items;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: EditPotinmodules.items,
@ -6267,7 +6288,7 @@ var SetScore = function SetScore(_ref) {
}
}), "\u5206"]
})]
});
}, k);
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: EditPotinmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
@ -7550,47 +7571,54 @@ var useOverflow = __webpack_require__(33483);
var questionType = [{
name: '单选题',
id: 0,
count: 'q_singles',
score: 'q_singles_scores'
score: 'q_singles_scores',
nameType: "SINGLE"
}, {
name: '多选题',
id: 1,
count: 'q_doubles',
score: 'q_doubles_scores'
score: 'q_doubles_scores',
nameType: "MULTIPLE"
}, {
name: '判断题',
id: 2,
count: 'q_judges',
score: 'q_judges_scores'
score: 'q_judges_scores',
nameType: "JUDGMENT"
}, {
name: '填空题',
id: 3,
count: 'q_nulls',
score: 'q_nulls_scores'
score: 'q_nulls_scores',
nameType: "COMPLETION"
}, {
name: '简答题',
id: 4,
count: 'q_mains',
score: 'q_mains_scores'
score: 'q_mains_scores',
nameType: "SUBJECTIVE"
}, {
name: '实训题',
id: 5,
count: 'q_shixuns',
score: 'q_shixuns_scores'
score: 'q_shixuns_scores',
nameType: "PRACTICAL"
}, {
name: '编程题',
id: 6,
count: 'q_pros',
score: 'q_pros_scores'
score: 'q_pros_scores',
nameType: "PROGRAM"
}, {
name: '组合题',
id: 7,
count: 'q_combinations',
score: 'q_combinations_scores'
score: 'q_combinations_scores',
nameType: "COMBINATION"
}];
var AddNewPaper = function AddNewPaper(_ref) {
var _exerciseitem$exercis, _exerciseitem$exercis2, _exerciseitem$exercis3;
@ -7646,7 +7674,17 @@ var AddNewPaper = function AddNewPaper(_ref) {
_useState24 = slicedToArray_default()(_useState23, 2),
isloadings = _useState24[0],
setisloadings = _useState24[1]; //选题loading状态
var _useState25 = (0,react.useState)(false),
_useState26 = slicedToArray_default()(_useState25, 2),
showChange = _useState26[0],
setShowChange = _useState26[1]; //上下移动切换
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState27 = (0,react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
isOpenEditName = _useState28[0],
setIsOpenEditName = _useState28[1];
(0,react.useEffect)(function () {
init();
}, []);
@ -7683,15 +7721,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _init.apply(this, arguments);
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _res$exercise, _res$exercise_questio, _res$exercise_questio2, _res$exercise_questio3, _res$exercise_questio4;
var res, _res$exercise2;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _res$exercise3, _res$exercise_questio, _res$exercise_questio2, _res$exercise_questio3, _res$exercise_questio4;
var res, _res$exercise4;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
setrightloading(true);
setisloading(true);
_context7.next = 4;
_context11.next = 4;
return dispatch({
type: 'newExercisePaper/editExercise',
payload: {
@ -7699,12 +7737,12 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 4:
res = _context7.sent;
res = _context11.sent;
setrightloading(false);
setisloading(false);
setexerciseitem(res);
if (res !== null && res !== void 0 && (_res$exercise = res.exercise) !== null && _res$exercise !== void 0 && _res$exercise.sub_discipline_id) {
getTagData(res === null || res === void 0 ? void 0 : (_res$exercise2 = res.exercise) === null || _res$exercise2 === void 0 ? void 0 : _res$exercise2.sub_discipline_id);
if (res !== null && res !== void 0 && (_res$exercise3 = res.exercise) !== null && _res$exercise3 !== void 0 && _res$exercise3.sub_discipline_id) {
getTagData(res === null || res === void 0 ? void 0 : (_res$exercise4 = res.exercise) === null || _res$exercise4 === void 0 ? void 0 : _res$exercise4.sub_discipline_id);
}
//初始化qid为第一题第一个
setqitem(objectSpread2_default()(objectSpread2_default()({}, res === null || res === void 0 ? void 0 : (_res$exercise_questio = res.exercise_question_types) === null || _res$exercise_questio === void 0 ? void 0 : (_res$exercise_questio2 = _res$exercise_questio[0]) === null || _res$exercise_questio2 === void 0 ? void 0 : (_res$exercise_questio3 = _res$exercise_questio2.items) === null || _res$exercise_questio3 === void 0 ? void 0 : _res$exercise_questio3[0]), {}, {
@ -7715,9 +7753,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
}));
case 11:
case "end":
return _context7.stop();
return _context11.stop();
}
}, _callee7);
}, _callee11);
}));
return _init.apply(this, arguments);
}
@ -7725,15 +7763,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _getdatas.apply(this, arguments);
}
function _getdatas() {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(params) {
_getdatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12(params) {
var _res$exercise_questio5, _items$filter, _res$exercise_questio6, _bigitems$filter;
var res, items, item, bigitems, valitems;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
case 0:
setrightloading(true);
setisloading(true);
_context8.next = 4;
_context12.next = 4;
return dispatch({
type: 'newExercisePaper/editExercise',
payload: {
@ -7741,7 +7779,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 4:
res = _context8.sent;
res = _context12.sent;
setexerciseitem(res);
items = [];
res === null || res === void 0 ? void 0 : (_res$exercise_questio5 = res.exercise_question_types) === null || _res$exercise_questio5 === void 0 ? void 0 : _res$exercise_questio5.map(function (item) {
@ -7771,9 +7809,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
setisloading(false);
case 15:
case "end":
return _context8.stop();
return _context12.stop();
}
}, _callee8);
}, _callee12);
}));
return _getdatas.apply(this, arguments);
}
@ -7781,11 +7819,11 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _seveeditor.apply(this, arguments);
}
function _seveeditor() {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(params) {
_seveeditor = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13(params) {
var _exerciseitem$exercis9;
var datas, res;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
while (1) switch (_context13.prev = _context13.next) {
case 0:
datas = objectSpread2_default()(objectSpread2_default()({}, params), {}, {
difficulty: (params === null || params === void 0 ? void 0 : params.difficulty) || 2,
@ -7797,13 +7835,13 @@ var AddNewPaper = function AddNewPaper(_ref) {
if (params.tag_discipline_ids) {
datas.tag_discipline_ids = Array.isArray(params.tag_discipline_ids) ? params.tag_discipline_ids : [params.tag_discipline_ids];
}
_context9.next = 4;
_context13.next = 4;
return (0,fetch/* default */.ZP)("/api/examination_banks/".concat(itemid, "/examination_banks_item_banks/create_item_bank.json"), {
method: 'post',
body: objectSpread2_default()({}, datas)
});
case 4:
res = _context9.sent;
res = _context13.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisedit(false);
getdatas(res);
@ -7811,9 +7849,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
(0,utils_util/* scrollToTop */.k3)();
case 7:
case "end":
return _context9.stop();
return _context13.stop();
}
}, _callee9);
}, _callee13);
}));
return _seveeditor.apply(this, arguments);
}
@ -7821,13 +7859,13 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _sort_question.apply(this, arguments);
}
function _sort_question() {
_sort_question = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(params) {
_sort_question = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14(params) {
var res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
while (1) switch (_context14.prev = _context14.next) {
case 0:
setisloading(true);
_context10.next = 3;
_context14.next = 3;
return (0,fetch/* default */.ZP)("/api/examination_banks/".concat(itemid, "/sort_question_type.json"), {
method: 'post',
body: {
@ -7835,16 +7873,16 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
});
case 3:
res = _context10.sent;
res = _context14.sent;
setisloading(false);
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
init();
}
case 6:
case "end":
return _context10.stop();
return _context14.stop();
}
}, _callee10);
}, _callee14);
}));
return _sort_question.apply(this, arguments);
}
@ -7887,9 +7925,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
return _deleteitem.apply(this, arguments);
}
function _deleteitem() {
_deleteitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
_deleteitem = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
modal/* default.confirm */.Z.confirm({
title: '提示',
@ -7898,26 +7936,26 @@ var AddNewPaper = function AddNewPaper(_ref) {
centered: true,
className: EditPotinmodules.modalconfirm,
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
var res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
while (1) switch (_context15.prev = _context15.next) {
case 0:
if (!qitem.question_id) {
_context11.next = 7;
_context15.next = 7;
break;
}
_context11.next = 3;
_context15.next = 3;
return (0,fetch/* default */.ZP)("/api/examination_banks/".concat(itemid, "/examination_banks_item_banks/").concat(qitem.question_id, ".json"), {
method: 'delete'
});
case 3:
res = _context11.sent;
res = _context15.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
init();
setisedit(false);
}
_context11.next = 10;
_context15.next = 10;
break;
case 7:
setqitem({});
@ -7925,9 +7963,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
init();
case 10:
case "end":
return _context11.stop();
return _context15.stop();
}
}, _callee11);
}, _callee15);
}));
function onOk() {
return _onOk2.apply(this, arguments);
@ -7938,9 +7976,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
});
case 1:
case "end":
return _context12.stop();
return _context16.stop();
}
}, _callee12);
}, _callee16);
}));
return _deleteitem.apply(this, arguments);
}
@ -7972,6 +8010,145 @@ var AddNewPaper = function AddNewPaper(_ref) {
overflow = _useOverflow.overflow,
handleMouseEnter = _useOverflow.handleMouseEnter,
handleMouseLeave = _useOverflow.handleMouseLeave;
var sort_question_show = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(params) {
var res, _res$exercise, _res, _res$exercise2;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setisloading(true);
_context4.next = 3;
return (0,fetch/* default */.ZP)("/api/examination_banks/".concat(itemid, "/sort_question_type.json"), {
method: 'post',
body: {
question_type: params
}
});
case 3:
res = _context4.sent;
setisloading(false);
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
_context4.next = 11;
break;
}
_context4.next = 8;
return dispatch({
type: 'newExercisePaper/editExercise',
payload: {
id: itemid
}
});
case 8:
_res = _context4.sent;
setexerciseitem(_res);
if (_res !== null && _res !== void 0 && (_res$exercise = _res.exercise) !== null && _res$exercise !== void 0 && _res$exercise.sub_discipline_id) {
getTagData(_res === null || _res === void 0 ? void 0 : (_res$exercise2 = _res.exercise) === null || _res$exercise2 === void 0 ? void 0 : _res$exercise2.sub_discipline_id);
}
case 11:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function sort_question_show(_x8) {
return _ref5.apply(this, arguments);
};
}();
var handleIsEdit = function handleIsEdit() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return true;
}
return false;
};
var exportMenu = function exportMenu(values, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
disabled: index === 0 ? true : false,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var arr;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (!(index === 0)) {
_context5.next = 2;
break;
}
return _context5.abrupt("return");
case 2:
if (!handleIsEdit()) {
_context5.next = 4;
break;
}
return _context5.abrupt("return");
case 4:
arr = (0,utils_util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index - 1);
_context5.next = 7;
return sort_question_show(arr.map(function (item) {
return item.name;
}));
case 7:
case "end":
return _context5.stop();
}
}, _callee5);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u4E0A\u79FB"
})
}, "1"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
disabled: index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? true : false,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var arr;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if (!(index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1)) {
_context6.next = 2;
break;
}
return _context6.abrupt("return");
case 2:
if (!handleIsEdit()) {
_context6.next = 4;
break;
}
return _context6.abrupt("return");
case 4:
arr = (0,utils_util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index + 1);
_context6.next = 7;
return sort_question_show(arr.map(function (item) {
return item.name;
}));
case 7:
case "end":
return _context6.stop();
}
}, _callee6);
})),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u4E0B\u79FB"
})
}, "2"), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default.Item */.Z.Item, {
onClick: function onClick() {
var _questionType$find;
form.setFieldsValue({
name: values.name,
item_type_en: (_questionType$find = questionType.find(function (item) {
return item.id == values.question_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.nameType
});
setIsOpenEditName(true);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.moreSpan,
children: "\u91CD\u547D\u540D"
})
}, "3")]
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: rightloading,
@ -8004,10 +8181,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
className: EditPotinmodules.left,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
if (handleIsEdit()) return;
setScoreShow(true);
},
className: EditPotinmodules.Button,
@ -8040,49 +8214,15 @@ var AddNewPaper = function AddNewPaper(_ref) {
},
children: ["\uFF08", item.count, "\u5C0F\u9898\uFF0C\u5171", item.score, "\u5206\uFF09"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? '' : '点击下移箭头即可整题下移',
}), /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
dropdownRender: function dropdownRender() {
return exportMenu(item, index);
},
placement: "bottomLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: EditPotinmodules.iconWrapper,
className: EditPotinmodules.more_style,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
if (index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1) {
return;
}
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
var arr = (0,utils_util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index + 1);
sort_question(arr.map(function (item) {
return item.name;
}));
},
className: "".concat(EditPotinmodules.down, " iconfont icon-xiangxiayidong ").concat(index === (exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types.length) - 1 ? EditPotinmodules.disabled : '')
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: index === 0 ? '' : '点击上移箭头即可整题上移',
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: EditPotinmodules.iconWrapper,
style: {
marginLeft: 1
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
if (index === 0) {
return;
}
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
var arr = (0,utils_util/* moveArray */.rz)(exerciseitem === null || exerciseitem === void 0 ? void 0 : exerciseitem.exercise_question_types, index, index - 1);
sort_question(arr.map(function (item) {
return item.name;
}));
},
className: "".concat(EditPotinmodules.up, " iconfont icon-xiangshangyidong ").concat(index === 0 ? EditPotinmodules.disabled : '')
className: "iconfont icon-sandian font12"
})
})
})]
@ -8256,10 +8396,7 @@ var AddNewPaper = function AddNewPaper(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.spanBtn,
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
if (handleIsEdit()) return;
setshowquestion(true);
setisshixun(false);
},
@ -8267,60 +8404,50 @@ var AddNewPaper = function AddNewPaper(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.spanBtn,
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
if (handleIsEdit()) return;
setUploadModalVisible(true);
},
children: "\u5BFC\u5165\u8BD5\u9898"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.spanBtn,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res, _user$userInfo;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if (!isedit) {
_context4.next = 3;
if (!handleIsEdit()) {
_context7.next = 2;
break;
}
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return _context4.abrupt("return");
case 3:
_context4.next = 5;
return _context7.abrupt("return");
case 2:
_context7.next = 4;
return (0,paperlibrary/* generateExerciseId */.JP)(itemid);
case 5:
res = _context4.sent;
case 4:
res = _context7.sent;
if (res.status === 0) {
window.open("/classrooms/coursesId/exercise/".concat(res.exercise_id, "/").concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "/initate_answer"));
}
case 7:
case 6:
case "end":
return _context4.stop();
return _context7.stop();
}
}, _callee4);
}, _callee7);
})),
children: "\u6A21\u62DF\u8003\u8BD5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: EditPotinmodules.spanBtn,
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
if (handleIsEdit()) return;
window.open("/paperlibrary/see/".concat(itemid));
},
children: "\u8BD5\u5377\u9884\u89C8"
}), questionType === null || questionType === void 0 ? void 0 : questionType.map(function (item) {
}), questionType === null || questionType === void 0 ? void 0 : questionType.map(function (item, k) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: EditPotinmodules.addQuestionBtn,
type: "primary",
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑的试题。');
return;
}
if (handleIsEdit()) return;
if (item.id === 5) {
setshowquestion(true);
setisshixun(true);
@ -8388,14 +8515,11 @@ var AddNewPaper = function AddNewPaper(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjiashitixiaojiahao mr5"
}), item.name]
});
}, k);
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: EditPotinmodules.saveBtn,
onClick: function onClick() {
if (isedit) {
message/* default.info */.ZP.info('请先保存或取消当前正在编辑试题。');
return;
}
if (handleIsEdit()) return;
message/* default.info */.ZP.info('创建成功');
window.open("/paperlibrary?defaultActiveKey=0");
},
@ -8419,10 +8543,10 @@ var AddNewPaper = function AddNewPaper(_ref) {
ScoreShow: showquestion,
isloadings: isloadings,
onOk: /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(questionIdArr, shixunIdArr, ischeck_only, listitems_length) {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(questionIdArr, shixunIdArr, ischeck_only, listitems_length) {
var params, res;
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
setisloadings(true);
params = {
@ -8430,24 +8554,24 @@ var AddNewPaper = function AddNewPaper(_ref) {
item_bank_ids: questionIdArr,
shixun_ids: shixunIdArr
};
_context6.next = 4;
_context9.next = 4;
return addquestion(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
check_only: ischeck_only
}));
case 4:
res = _context6.sent;
res = _context9.sent;
setisloadings(false);
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
_context6.next = 14;
_context9.next = 14;
break;
}
_context6.next = 9;
_context9.next = 9;
return addquestion(params);
case 9:
setshowquestion(false);
init();
message/* default.info */.ZP.info('添加成功');
_context6.next = 15;
_context9.next = 15;
break;
case 14:
if (res.status === -2) {
@ -8455,11 +8579,11 @@ var AddNewPaper = function AddNewPaper(_ref) {
title: '提示',
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7F16\u7A0B\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
_context5.next = 2;
_context8.next = 2;
return addquestion(params);
case 2:
setshowquestion(false);
@ -8467,9 +8591,9 @@ var AddNewPaper = function AddNewPaper(_ref) {
message/* default.info */.ZP.info('添加成功');
case 5:
case "end":
return _context5.stop();
return _context8.stop();
}
}, _callee5);
}, _callee8);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -8480,12 +8604,12 @@ var AddNewPaper = function AddNewPaper(_ref) {
}
case 15:
case "end":
return _context6.stop();
return _context9.stop();
}
}, _callee6);
}, _callee9);
}));
return function (_x8, _x9, _x10, _x11) {
return _ref6.apply(this, arguments);
return function (_x9, _x10, _x11, _x12) {
return _ref9.apply(this, arguments);
};
}()
}), /*#__PURE__*/(0,jsx_runtime.jsx)(UploadQuestions/* default */.Z, {
@ -8494,12 +8618,78 @@ var AddNewPaper = function AddNewPaper(_ref) {
return setUploadModalVisible(false);
},
onOk: handleOk
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
title: "\u7F16\u8F91\u9898\u578B\u540D\u79F0",
open: isOpenEditName,
width: 500,
onOk: function onOk() {
return form.submit();
},
onCancel: function onCancel() {
return setIsOpenEditName(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
form: form,
initialValues: {},
onFinish: /*#__PURE__*/function () {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10(values) {
var res;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
_context10.next = 2;
return (0,paperlibrary/* getEditQuestionTypeAlias */.RK)(objectSpread2_default()({
id: itemid
}, values));
case 2:
res = _context10.sent;
if (res.status == 0) {
message/* default.success */.ZP.success("修改成功");
init();
setIsOpenEditName(false);
}
case 4:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return function (_x13) {
return _ref10.apply(this, arguments);
};
}(),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
style: {
marginBottom: 0
},
name: "name",
rules: [{
required: true,
message: '请输入题型名称'
}, {
whitespace: true,
message: '请勿输入空格'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large",
maxLength: 6,
showCount: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
hidden: true,
name: "item_type_en",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
size: "large"
})
})]
})
})]
});
};
/* harmony default export */ var EditPotin = ((0,_umi_production_exports.connect)(function (_ref7) {
var user = _ref7.user,
dispatch = _ref7.dispatch;
/* harmony default export */ var EditPotin = ((0,_umi_production_exports.connect)(function (_ref11) {
var user = _ref11.user,
dispatch = _ref11.dispatch;
return {
user: user,
dispatch: dispatch

@ -234,6 +234,12 @@
flex-direction: column;
box-orient: block-axis;
}
.moreSpan___hbStq {
color: #5F6368;
}
.moreSpan___hbStq:hover {
color: #333;
}
.bg___Ya739 {
background: white;
box-shadow: 0px 2px 4px 0px #EAEEF4;
@ -370,11 +376,24 @@
.left___i8aTX .title___BC46y .titleleft___xZGbq {
padding-right: 4px;
flex: 1 1;
position: relative;
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
}
.left___i8aTX .title___BC46y .more_style___nhWCX {
height: 100%;
width: 30px;
color: #000000;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.left___i8aTX .title___BC46y .more_style___nhWCX:hover {
background-color: #fff;
}
.left___i8aTX .title___BC46y .iconWrapper___h3H1m {
display: none;
}

@ -2138,6 +2138,8 @@ var exportPDF = /*#__PURE__*/function () {
var AsyncButton = __webpack_require__(48559);
// EXTERNAL MODULE: ./src/service/paperlibrary.ts
var service_paperlibrary = __webpack_require__(24410);
// EXTERNAL MODULE: ./src/utils/constant.ts
var constant = __webpack_require__(12729);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(85893);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/See/index.tsx
@ -2159,8 +2161,10 @@ var jsx_runtime = __webpack_require__(85893);
var See = function See(_ref) {
var _paperlibrary$paperDa, _paperlibrary$paperDa2, _paperlibrary$paperDa3, _paperlibrary$paperDa4;
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _paperlibrary$paperDa, _paperlibrary$paperDa2, _paperlibrary$paperDa3, _paperlibrary$paperDa4;
var newExercisePaper = _ref.newExercisePaper,
_ref$isExportBlank = _ref.isExportBlank,
isExportBlank = _ref$isExportBlank === void 0 ? false : _ref$isExportBlank,
@ -2186,6 +2190,10 @@ var See = function See(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
tableData = _useState6[0],
setTableData = _useState6[1];
var _useState7 = (0,react.useState)([]),
_useState8 = slicedToArray_default()(_useState7, 2),
questionName = _useState8[0],
setQuestionName = _useState8[1];
(0,react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
@ -2203,6 +2211,7 @@ var See = function See(_ref) {
setDefaultActiveKey(searchParams.get("defaultActiveKey"));
getPaperData();
getData();
handleGetQuestionName();
}, []);
(0,react.useEffect)(function () {
var _newExercisePaper$exe;
@ -2269,19 +2278,42 @@ var See = function See(_ref) {
setTableData(toConsumableArray_default()(isExportBlank ? blankData : data));
}
}, [newExercisePaper.exerciseExportHeadData]);
var getData = /*#__PURE__*/function () {
var handleGetQuestionName = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _ref4, table, total_score, actual_total_score, data, blankData;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,service_paperlibrary/* getExerciseHeadInfo */.Dq)(params.id);
return (0,service_paperlibrary/* getQuestionTypeAlias */.cV)({
id: params.id
});
case 2:
res = _context.sent;
res.status == 0 && setQuestionName(res.data);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleGetQuestionName() {
return _ref3.apply(this, arguments);
};
}();
var getData = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res, _ref5, table, total_score, actual_total_score, data, blankData;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,service_paperlibrary/* getExerciseHeadInfo */.Dq)(params.id);
case 2:
res = _context2.sent;
console.log(res, "res-----------------");
setHeadData(res || {});
_ref4 = res || {}, table = _ref4.table;
_ref5 = res || {}, table = _ref5.table;
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
}
@ -2329,12 +2361,12 @@ var See = function See(_ref) {
setTableData(isExportBlank ? blankData : data);
case 11:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
}));
return function getData() {
return _ref3.apply(this, arguments);
return _ref4.apply(this, arguments);
};
}();
var columns = [{
@ -2349,7 +2381,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '单选题',
title: ((_questionName$find = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.0.nameType */.f[0].nameType;
})) === null || _questionName$find === void 0 ? void 0 : _questionName$find.name) || constant/* QUESTIONTYPE.0.name */.f[0].name,
align: 'center',
dataIndex: 'singles_score',
render: function render(text) {
@ -2359,7 +2393,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '多选题',
title: ((_questionName$find2 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.1.nameType */.f[1].nameType;
})) === null || _questionName$find2 === void 0 ? void 0 : _questionName$find2.name) || constant/* QUESTIONTYPE.1.name */.f[1].name,
align: 'center',
dataIndex: 'doubles_score',
render: function render(text) {
@ -2369,7 +2405,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '填空题',
title: ((_questionName$find3 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.3.nameType */.f[3].nameType;
})) === null || _questionName$find3 === void 0 ? void 0 : _questionName$find3.name) || constant/* QUESTIONTYPE.3.name */.f[3].name,
align: 'center',
dataIndex: 'nulls_score',
render: function render(text) {
@ -2379,7 +2417,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '判断题',
title: ((_questionName$find4 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.2.nameType */.f[2].nameType;
})) === null || _questionName$find4 === void 0 ? void 0 : _questionName$find4.name) || constant/* QUESTIONTYPE.2.name */.f[2].name,
align: 'center',
dataIndex: 'judges_score',
render: function render(text) {
@ -2389,7 +2429,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '编程题',
title: ((_questionName$find5 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.6.nameType */.f[6].nameType;
})) === null || _questionName$find5 === void 0 ? void 0 : _questionName$find5.name) || constant/* QUESTIONTYPE.6.name */.f[6].name,
align: 'center',
dataIndex: 'pros_score',
render: function render(text) {
@ -2399,7 +2441,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '实训题',
title: ((_questionName$find6 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.5.nameType */.f[5].nameType;
})) === null || _questionName$find6 === void 0 ? void 0 : _questionName$find6.name) || constant/* QUESTIONTYPE.5.name */.f[5].name,
align: 'center',
dataIndex: 'shixuns_score',
render: function render(text) {
@ -2409,7 +2453,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '简答题',
title: ((_questionName$find7 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.4.nameType */.f[4].nameType;
})) === null || _questionName$find7 === void 0 ? void 0 : _questionName$find7.name) || constant/* QUESTIONTYPE.4.name */.f[4].name,
align: 'center',
dataIndex: 'mains_score',
render: function render(text) {
@ -2419,7 +2465,9 @@ var See = function See(_ref) {
}
}, {
width: '10%',
title: '组合题',
title: ((_questionName$find8 = questionName.find(function (item) {
return item.value == constant/* QUESTIONTYPE.7.nameType */.f[7].nameType;
})) === null || _questionName$find8 === void 0 ? void 0 : _questionName$find8.name) || constant/* QUESTIONTYPE.7.name */.f[7].name,
align: 'center',
dataIndex: 'combinations_score',
render: function render(text) {
@ -2447,20 +2495,20 @@ var See = function See(_ref) {
});
};
var handleDragEnd = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(data, paperItem) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(data, paperItem) {
var itemId, position, res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (!(!data.destination || !data.source)) {
_context2.next = 2;
_context3.next = 2;
break;
}
return _context2.abrupt("return");
return _context3.abrupt("return");
case 2:
itemId = paperItem.questions[data.source.index].id;
position = data.destination.index + 1;
_context2.next = 6;
_context3.next = 6;
return dispatch({
type: 'paperlibrary/adjustPosition',
payload: {
@ -2470,22 +2518,22 @@ var See = function See(_ref) {
}
});
case 6:
res = _context2.sent;
res = _context3.sent;
if (!(res.status === -1)) {
_context2.next = 9;
_context3.next = 9;
break;
}
return _context2.abrupt("return");
return _context3.abrupt("return");
case 9:
getPaperData();
case 10:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function handleDragEnd(_x, _x2) {
return _ref5.apply(this, arguments);
return _ref6.apply(this, arguments);
};
}();
var handleSendToClass = function handleSendToClass() {
@ -2500,44 +2548,44 @@ var See = function See(_ref) {
});
};
var paperDomRef = (0,react.useRef)();
var _useState7 = (0,react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
showAnswer = _useState8[0],
setShowAnswer = _useState8[1];
var _useState9 = (0,react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
showAnswer = _useState10[0],
setShowAnswer = _useState10[1];
var handleExportPaper = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setShowAnswer(false);
_context3.next = 3;
_context4.next = 3;
return exportPDF(paperDomRef.current.children, '导出试卷');
case 3:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
}));
return function handleExportPaper() {
return _ref6.apply(this, arguments);
return _ref7.apply(this, arguments);
};
}();
var handleExportPaperWithAnswer = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
setShowAnswer(true);
_context4.next = 3;
_context5.next = 3;
return exportPDF(paperDomRef.current.children, '导出试卷');
case 3:
case "end":
return _context4.stop();
return _context5.stop();
}
}, _callee4);
}, _callee5);
}));
return function handleExportPaperWithAnswer() {
return _ref7.apply(this, arguments);
return _ref8.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
@ -2548,6 +2596,7 @@ var See = function See(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
href: "/paperlibrary",
children: "\u8BD5\u5377\u5E93"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
href: "/paperlibrary?defaultActiveKey=".concat(defaultActiveKey),
@ -2557,21 +2606,23 @@ var See = function See(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Seemodules.btnWrapper,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
style: {
borderRadius: "16px"
},
type: "primary",
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {}),
onClick: handleExportPaperWithAnswer,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {}), "\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
children: "\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
style: {
borderRadius: "16px"
},
type: "primary",
className: "ml10",
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {}),
onClick: handleExportPaper,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {}), "\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"]
children: "\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -2646,12 +2697,12 @@ var See = function See(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SendToClassModal/* default */.Z, {})]
});
};
/* harmony default export */ var Paperlibrary_See = ((0,_umi_production_exports.connect)(function (_ref8) {
var paperlibrary = _ref8.paperlibrary,
user = _ref8.user,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting,
newExercisePaper = _ref8.newExercisePaper;
/* harmony default export */ var Paperlibrary_See = ((0,_umi_production_exports.connect)(function (_ref9) {
var paperlibrary = _ref9.paperlibrary,
user = _ref9.user,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting,
newExercisePaper = _ref9.newExercisePaper;
return {
paperlibrary: paperlibrary,
user: user,

@ -1446,7 +1446,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
var defaultActiveKey = searchParams.get("defaultActiveKey") || '1';
var defaultActiveKey = searchParams.get("defaultActiveKey") || '0';
var _useState = (0,react.useState)({
discipline_id: null,
sub_discipline_id: null,
@ -2240,14 +2240,14 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
})]
})
}),
defaultActiveKey: activeTabsKey,
activeKey: activeTabsKey,
onChange: handleTabsChange,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u516C\u5171"
}, "1"), ((_paperlibrary$teachGr5 = paperlibrary.teachGroupData) === null || _paperlibrary$teachGr5 === void 0 ? void 0 : (_paperlibrary$teachGr6 = _paperlibrary$teachGr5.groups) === null || _paperlibrary$teachGr6 === void 0 ? void 0 : _paperlibrary$teachGr6.length) && /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u56E2\u961F\u5171\u4EAB"
}, "2"), /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u6211\u7684"
tab: "\u6211\u521B\u5EFA\u7684"
}, "0")]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

File diff suppressed because it is too large Load Diff

@ -1868,6 +1868,14 @@
display: inline-block;
margin-right: 30px;
}
.authorname___cTiR0 {
max-width: 300px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paths/Detail/components/Stage/SelectWork/index.less?modules ***!
@ -2073,7 +2081,6 @@
.scoremodal___lnIm4 .header_style___E1ylY {
display: flex;
border-bottom: 1px #f0f0f0 solid;
margin-top: -20px;
}
.scoremodal___lnIm4 .header_style___E1ylY .tabWrap___hzccg div[class~='ant-tabs-tab'] {
font-size: 14px;
@ -4628,6 +4635,170 @@ body {
padding-right: 12px;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paths/Detail/components/knowledge/index.less?modules ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___Szzqu {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___dPVA6 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___jyJ_1 {
align-items: center;
box-align: center;
}
.flex_box_center_end___LcIki {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___URqef {
flex-direction: column;
box-orient: block-axis;
}
.diagram-component___p5I1J {
width: 400px;
height: 400px;
border: 1px solid black;
}
.rightmodal___m9muS {
min-height: 600px;
max-height: 600px;
overflow: auto;
box-shadow: #8393ba 0px 2px 8px 0px;
width: 600px;
min-width: 600px;
border-radius: 4px;
z-index: 10;
background: #ffffff;
padding: 25px;
overflow: hidden;
}
.rightmodal___m9muS .title___o_SbY {
color: #000;
font-size: 16px;
font-weight: 600;
flex: 1 1;
}
.rightmodal___m9muS .button___dkDCG {
padding: 0px 12px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #F6F7F9;
height: 38px;
font-size: 14px;
color: #000;
cursor: pointer;
border-radius: 2px;
border: 1px solid #E7E7E7;
margin-right: 16px;
}
.rightmodal___m9muS .button___dkDCG:hover {
color: #3061D0;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
border: 1px solid #BACFFE;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
}
.rightmodal___m9muS .linetitles___OnY49 {
color: #333;
font-size: 14px;
font-weight: 500;
display: flex;
align-items: center;
margin-bottom: 15px;
}
.rightmodal___m9muS .linetitles___OnY49 .line___DRyRv {
background: #000;
width: 2px;
height: 14px;
margin-right: 6px;
display: inline-block;
}
.rightmodal___m9muS .linetitles___OnY49 .additem___e0i2I {
height: 30px;
background: #F3F7FF;
border-radius: 2px;
padding: 0px 12px;
display: inline-block;
line-height: 30px;
color: #3061D0;
font-size: 12px;
cursor: pointer;
}
.rightmodal___m9muS .lebels___L_GjD {
color: #5f6368;
font-size: 14px;
font-weight: 400;
}
.rightmodal___m9muS .describe___kQnz2 {
background: #F6F7F9;
padding: 12px;
margin-top: 10px;
}
.rightmodal___m9muS .describe___kQnz2 .describetitle___ruvEj {
display: flex;
justify-content: space-between;
}
.rightmodal___m9muS .describe___kQnz2 .ehover___yL7ec {
color: #8E94A0;
cursor: pointer;
}
.rightmodal___m9muS .describe___kQnz2 .ehover___yL7ec:hover {
color: #3061D0;
}
.rightmodal___m9muS .describe___kQnz2 .dhover___Fk5zc {
color: #8E94A0;
cursor: pointer;
}
.rightmodal___m9muS .describe___kQnz2 .dhover___Fk5zc:hover {
color: red;
}
.header___pmtBA {
padding: 12px 20px;
text-align: center;
font-size: 12px;
cursor: pointer;
border: 1px solid white;
}
.header___pmtBA:hover {
background: rgba(48, 97, 208, 0.1);
border: 1px solid rgba(48, 97, 208, 0.4);
}
.headeractivite___NrVuo {
padding: 12px 20px;
text-align: center;
max-width: 78px;
font-size: 12px;
background: rgba(48, 97, 208, 0.1);
border: 1px solid rgba(48, 97, 208, 0.4);
color: #3061D0;
}
.dhover___Fk5zc {
color: #8E94A0;
cursor: pointer;
}
.dhover___Fk5zc:hover {
color: red;
}
.ehover___yL7ec {
color: #8E94A0;
cursor: pointer;
}
.ehover___yL7ec:hover {
color: #3061D0;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paths/Detail/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

@ -1890,8 +1890,8 @@ var RegularInput = function RegularInput(_ref2) {
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 2453);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 51904);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 25159);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 47897);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 71230);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 15746);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 83062);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 79531);
@ -1957,7 +1957,9 @@ var KeywordTag = function KeywordTag(_ref2) {
var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var questionTitlePlaceholder = _ref3.questionTitlePlaceholder,
form = _ref3.form,
showKeywords = _ref3.showKeywords;
showKeywords = _ref3.showKeywords,
_ref3$isMustKeyWords = _ref3.isMustKeyWords,
isMustKeyWords = _ref3$isMustKeyWords === void 0 ? showKeywords : _ref3$isMustKeyWords;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
editAnalysis = _useState2[0],
@ -1999,13 +2001,20 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
height: 140,
placeholder: '请编辑参考答案(非必填)'
})
}), showKeywords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
}), showKeywords && !isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
hidden: true,
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
defaultChecked: true
})
}), showKeywords && isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, {
name: "use_keywords",
valuePropName: "checked",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {})
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
className: "ml10",
children: "\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"
@ -2022,10 +2031,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
})
})
})]
}), useKeywordsValue && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
}), (useKeywordsValue || !isMustKeyWords) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].List */ .Z.List, {
name: "keywords",
rules: [{
validator: function validator(rule, values) {
if (!isMustKeyWords) {
return Promise.resolve();
}
if (!(values !== null && values !== void 0 && values.length)) {
return Promise.reject(new Error('请输入关键词'));
}
@ -2044,8 +2056,13 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment, {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_5__/* ["default"].title */ .Z.title, " mb10"),
children: "\u5173\u952E\u8BCD"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: !isMustKeyWords ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
style: {
color: "#9096A3"
},
children: "\u5224\u5206\u5173\u952E\u8BCD"
}) : "关键词"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
className: "font14 mb30",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
@ -2105,14 +2122,14 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
var key = _ref5.key,
name = _ref5.name,
restField = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default()(_ref5, _excluded2);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
className: "mb20",
style: {
marginRight: 148
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
flex: 1,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
align: "middle",
justify: "space-between",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
@ -2122,7 +2139,7 @@ var SubjectiveQuestionEditor = function SubjectiveQuestionEditor(_ref3) {
return remove(name);
}
})
})), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
})), isMustKeyWords && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Item */ .Z.Item, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, restField), {}, {
name: [name, "score"],
label: "\u5206\u503C",
rules: [{
@ -4254,7 +4271,8 @@ var RenderEditor = function RenderEditor(_ref) {
answerKey: "standard_answers"
}),
"SUBJECTIVE": /*#__PURE__*/(0,jsx_runtime.jsx)(SubjectiveQuestionEditor/* SubjectiveQuestionEditor */.W, {
showKeywords: false,
showKeywords: true,
isMustKeyWords: false,
form: form,
questionTitlePlaceholder: "\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"
}),
@ -4459,7 +4477,8 @@ var NewItem = function NewItem(_ref2) {
break;
case 'SUBJECTIVE':
form.setFieldsValue({
answer_texts: []
answer_texts: [],
use_keywords: true
});
break;
case 'COMBINATION':
@ -4761,18 +4780,17 @@ var NewItem = function NewItem(_ref2) {
})
}), currentItemType !== 'PROGRAM' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
className: "".concat(NewItemmodules.cascaderWrapper, " mb30"),
labelAlign: "left",
label: "\u65B9\u5411&\u8BFE\u7A0B",
className: "".concat(NewItemmodules.cascaderWrapper, " mb30")
// labelAlign="left"
,
labelCol: {
flex: '62px'
span: 24
},
style: {
marginTop: currentItemType === 'PROGRAM' ? 0 : 60
marginTop: currentItemType === 'PROGRAM' ? 0 : 30
},
name: "course",
label: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u65B9\u5411", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "&\u8BFE\u7A0B"]
}),
rules: [{
required: true,
message: '请选择课程'
@ -4787,10 +4805,10 @@ var NewItem = function NewItem(_ref2) {
showArrow: true,
placeholder: "\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",
allowClear: false,
options: problemset.courseOptions,
style: {
width: 490
}
options: problemset.courseOptions
// style={{
// width: 490
// }}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewItemmodules.unfold,

@ -144,12 +144,6 @@
.formWrap___ydPvR .difficultyWrapper___W9ML_ .difficultyRadio___z9UyX label[class~='ant-radio-button-wrapper-checked'].hard___Hrees span {
color: #EE6F1A;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O div[class~='ant-form-item-label'] {
line-height: 46px !important;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O div[class~='ant-form-item-label'] label {
height: 46px !important;
}
.formWrap___ydPvR .cascaderWrapper___AUd1O div[class~='ant-form-item-label'] label span {
line-height: 22px;
}

@ -403,7 +403,7 @@ var FormSearch = function FormSearch(_ref) {
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
label: "\u521B\u5EFA\u8005",
label: "\u521B\u5EFA\u8005/\u5408\u4F5C\u8005",
name: "creator",
initialValue: "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
@ -6525,7 +6525,7 @@ var es_form = __webpack_require__(25159);
var divider = __webpack_require__(96074);
;// CONCATENATED MODULE: ./src/pages/Problemset/components/SelectShixuns/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SelectShixunsmodules = ({"flex_box_center":"flex_box_center___orONc","flex_space_between":"flex_space_between___xUKga","flex_box_vertical_center":"flex_box_vertical_center___QeVIN","flex_box_center_end":"flex_box_center_end___mXGLP","flex_box_column":"flex_box_column___CHytA","wrp":"wrp___xbLol","drawer":"drawer___Bi9wT","menu":"menu___t0_fV","actived":"actived___zWm74","actived2":"actived2___RRfRj","subTag":"subTag___EczBy","directionName":"directionName___H9hFf","menuDirection":"menuDirection___JkwbJ","listItem":"listItem___kNMPl","info":"info___QKQMx","title":"title___eGYd4","titleLeft":"titleLeft___ltIGt","titleRight":"titleRight___zsSPc","search":"search___oRdeh","description":"description___zs7Ow","menuCourse":"menuCourse___PygX2","paginationWrap":"paginationWrap___sYmqt"});
/* harmony default export */ var SelectShixunsmodules = ({"flex_box_center":"flex_box_center___orONc","flex_space_between":"flex_space_between___xUKga","flex_box_vertical_center":"flex_box_vertical_center___QeVIN","flex_box_center_end":"flex_box_center_end___mXGLP","flex_box_column":"flex_box_column___CHytA","wrp":"wrp___xbLol","drawer":"drawer___Bi9wT","menu":"menu___t0_fV","actived":"actived___zWm74","actived2":"actived2___RRfRj","subTag":"subTag___EczBy","directionName":"directionName___H9hFf","menuDirection":"menuDirection___JkwbJ","listItem":"listItem___kNMPl","info":"info___QKQMx","title":"title___eGYd4","titleLeft":"titleLeft___ltIGt","titleRight":"titleRight___zsSPc","search":"search___oRdeh","description":"description___zs7Ow","menuCourse":"menuCourse___PygX2","paginationWrap":"paginationWrap___sYmqt","authorname":"authorname___D4gcN"});
// EXTERNAL MODULE: ./src/service/shixuns.ts
var shixuns = __webpack_require__(56088);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
@ -7065,25 +7065,42 @@ var PublishShixun = function PublishShixun(_ref) {
dashed: true
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "c-light-black mt20 font12",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u96BE\u5EA6\u7CFB\u6570 ", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml15 mr15",
children: "|"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5B66\u4E60\u4EBA\u6570 "
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: v.study_count
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(v === null || v === void 0 ? void 0 : v.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SelectShixunsmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: v.author_name.join('、')
}
})
})
}), v.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: v.author_school_name
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u96BE\u5EA6\u7CFB\u6570 \xA0", v.level]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", v.study_count]
})]
})]
})]
})]

@ -1937,6 +1937,14 @@ span[class~='ant-checkbox-checked'] span[class~='ant-checkbox-inner']::after {
.paginationWrap___sYmqt button {
height: 32px;
}
.authorname___D4gcN {
max-width: 300px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FormSearch/index.less?modules ***!

@ -5190,9 +5190,7 @@ function reducer(state, action) {
case Types.PLUS_DISCUSS:
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
case Types.SET_PAGE:
return objectSpread2_default()(objectSpread2_default()({}, state), {}, {
page: action.payload
});
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
case Types.ACTIVE_DISCUSS_INDEX:
return objectSpread2_default()(objectSpread2_default()({}, state), action.payload);
default:
@ -5215,6 +5213,7 @@ function reducer(state, action) {
count = state.count,
actionType = state.actionType,
activeDiscussIndex = state.activeDiscussIndex;
console.log('---', state);
var initData = (0,react.useCallback)( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var response, comments, disscuss_count;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
@ -5254,7 +5253,9 @@ function reducer(state, action) {
function onPaginationChange(value) {
dispatch({
type: Types.SET_PAGE,
page: value
payload: {
page: value
}
});
}
function onSetActionType(value) {
@ -5472,24 +5473,38 @@ function reducer(state, action) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "discuss-panel",
children: [data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}) : data.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(discuss_item, {
onReplyDiscuss: onReplyDiscuss,
onPlusDiscuss: onPlusDiscuss,
onSetActiveDiscussIndex: onSetActiveDiscussIndex,
onSetActionType: onSetActionType,
data: item,
index: index,
user: user,
activeDiscussIndex: activeDiscussIndex
});
children: [data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading,
children: data.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(discuss_item, {
onReplyDiscuss: onReplyDiscuss,
onPlusDiscuss: onPlusDiscuss,
onSetActiveDiscussIndex: onSetActiveDiscussIndex,
onSetActionType: onSetActionType,
data: item,
index: index,
user: user,
activeDiscussIndex: activeDiscussIndex
});
})
}), count > 10 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "pagination-container",
className: "pagination-container mt10 mb10",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showQuickJumper: true,
onChange: onPaginationChange,
current: page,
total: count
total: count,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
});
}
})
}) : null]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(discuss_input_editor, {

@ -88,6 +88,8 @@ var col = __webpack_require__(15746);
var es_checkbox = __webpack_require__(84567);
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 11 modules
var pagination = __webpack_require__(83338);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(83062);
// EXTERNAL MODULE: ./node_modules/antd/es/tag/index.js + 3 modules
var tag = __webpack_require__(51904);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
@ -96,7 +98,7 @@ var SearchOutlined = __webpack_require__(68795);
var _umi_production_exports = __webpack_require__(89214);
;// CONCATENATED MODULE: ./src/pages/Search/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Searchmodules = ({"flex_box_center":"flex_box_center___HEr9e","flex_space_between":"flex_space_between____iKBP","flex_box_vertical_center":"flex_box_vertical_center___OEtzz","flex_box_center_end":"flex_box_center_end___B6rgq","flex_box_column":"flex_box_column___QNsfK","search-container":"search-container___RW2SM","btn-search":"btn-search___YrTXV","navs-container":"navs-container___vuvs0","navs":"navs___FjRDm","active":"active___FwSXe","search-result-container":"search-result-container___yKXfF","search-panel":"search-panel___OJsfs","search-course-item":"search-course-item___K21lH","lock-search-course-item":"lock-search-course-item___Yy132","desc":"desc___OBHVW","title":"title___OG0X8","mt20":"mt20___etArC","detail":"detail___qf02i","info":"info___ZWG6X","sum":"sum___kgJ8Y","label-red":"label-red___mk7qt","search-footer":"search-footer___H2H20","search-result-body":"search-result-body___xkFWj","tip":"tip___UcZlD"});
/* harmony default export */ var Searchmodules = ({"flex_box_center":"flex_box_center___HEr9e","flex_space_between":"flex_space_between____iKBP","flex_box_vertical_center":"flex_box_vertical_center___OEtzz","flex_box_center_end":"flex_box_center_end___B6rgq","flex_box_column":"flex_box_column___QNsfK","search-container":"search-container___RW2SM","btn-search":"btn-search___YrTXV","navs-container":"navs-container___vuvs0","navs":"navs___FjRDm","active":"active___FwSXe","search-result-container":"search-result-container___yKXfF","search-panel":"search-panel___OJsfs","search-course-item":"search-course-item___K21lH","lock-search-course-item":"lock-search-course-item___Yy132","desc":"desc___OBHVW","title":"title___OG0X8","mt20":"mt20___etArC","detail":"detail___qf02i","info":"info___ZWG6X","sum":"sum___kgJ8Y","label-red":"label-red___mk7qt","search-footer":"search-footer___H2H20","search-result-body":"search-result-body___xkFWj","tip":"tip___UcZlD","authorname":"authorname___nsmz0"});
;// CONCATENATED MODULE: ./src/pages/Search/bg.jpg
var bg_namespaceObject = __webpack_require__.p + "static/bg.c9d9c3ca.jpg";
// EXTERNAL MODULE: ./src/assets/images/icons/lockclose.svg
@ -666,7 +668,7 @@ function MemoPanel(_ref2) {
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: item.author_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u8BBF\u95EE\u4EBA\u6570\uFF1A", item.visits_count]
children: ["\u8BBF\u95EE\u4EBA\u6570 \xA0", item.visits_count]
})]
})
})]
@ -680,7 +682,7 @@ function CoursePanel(_ref3) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
var _item$content3, _item$content4, _item$content4$author, _item$content5, _item$content6, _item$content6$author;
var _item$content3, _item$content4, _item$content4$author;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: Searchmodules["search-course-item"],
children: [!item.is_accessible && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -700,26 +702,33 @@ function CoursePanel(_ref3) {
className: "".concat(Searchmodules.detail, " mt20"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules.sum,
children: [item !== null && item !== void 0 && (_item$content3 = item.content) !== null && _item$content3 !== void 0 && _item$content3.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content4 = item.content) === null || _item$content4 === void 0 ? void 0 : (_item$content4$author = _item$content4.author_name) === null || _item$content4$author === void 0 ? void 0 : _item$content4$author[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: item.author_name
}), item !== null && item !== void 0 && (_item$content5 = item.content) !== null && _item$content5 !== void 0 && _item$content5.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
children: [(item === null || item === void 0 ? void 0 : item.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
})
}), item !== null && item !== void 0 && (_item$content3 = item.content) !== null && _item$content3 !== void 0 && _item$content3.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content6 = item.content) === null || _item$content6 === void 0 ? void 0 : (_item$content6$author = _item$content6.author_school_name) === null || _item$content6$author === void 0 ? void 0 : _item$content6$author[0]
__html: item === null || item === void 0 ? void 0 : (_item$content4 = item.content) === null || _item$content4 === void 0 ? void 0 : (_item$content4$author = _item$content4.author_school_name) === null || _item$content4$author === void 0 ? void 0 : _item$content4$author[0]
}
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
children: item === null || item === void 0 ? void 0 : item.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u6210\u5458\u6570\uFF1A", item.members_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u6210\u5458\u6570 \xA0", item.members_count]
})]
})
})]
@ -733,7 +742,7 @@ function SubjectPanel(_ref4) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
var _item$content7, _item$content8, _item$content8$author, _item$content9, _item$content10, _item$content10$autho;
var _item$content5, _item$content6, _item$content6$author;
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
target: "_blank",
@ -747,28 +756,44 @@ function SubjectPanel(_ref4) {
className: "".concat(Searchmodules.detail, " mt20"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules.sum,
children: [item !== null && item !== void 0 && (_item$content7 = item.content) !== null && _item$content7 !== void 0 && _item$content7.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content8 = item.content) === null || _item$content8 === void 0 ? void 0 : (_item$content8$author = _item$content8.author_name) === null || _item$content8$author === void 0 ? void 0 : _item$content8$author[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: item.author_name
}), item !== null && item !== void 0 && (_item$content9 = item.content) !== null && _item$content9 !== void 0 && _item$content9.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content10 = item.content) === null || _item$content10 === void 0 ? void 0 : (_item$content10$autho = _item$content10.author_school_name) === null || _item$content10$autho === void 0 ? void 0 : _item$content10$autho[0]
}
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
children: item === null || item === void 0 ? void 0 : item.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u6848\u4F8B\u6570 \uFF1A", item.shixuns_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u5B66\u4E60\u4EBA\u6570\uFF1A", item.myshixuns_count]
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(item === null || item === void 0 ? void 0 : item.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
})
}), item !== null && item !== void 0 && (_item$content5 = item.content) !== null && _item$content5 !== void 0 && _item$content5.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content6 = item.content) === null || _item$content6 === void 0 ? void 0 : (_item$content6$author = _item$content6.author_school_name) === null || _item$content6$author === void 0 ? void 0 : _item$content6$author[0]
}
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
children: item === null || item === void 0 ? void 0 : item.author_school_name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u6848\u4F8B\u6570 \xA0", item.shixuns_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", item.myshixuns_count]
})]
})]
})
})]
@ -782,7 +807,7 @@ function ShiXunPanel(_ref5) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
className: Searchmodules["search-panel"],
children: data === null || data === void 0 ? void 0 : data.map(function (item) {
var _item$content11, _item$content11$chall, _item$content12, _item$content12$tag_n, _item$content13, _item$content14, _item$content14$autho, _item$content15, _item$content16, _item$content16$autho;
var _item$content7, _item$content7$challe, _item$content8, _item$content8$tag_na, _item$content9, _item$content10, _item$content10$autho;
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
target: "_blank",
@ -812,7 +837,7 @@ function ShiXunPanel(_ref5) {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules.info,
children: [!item.content.challenge_names ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: item === null || item === void 0 ? void 0 : (_item$content11 = item.content) === null || _item$content11 === void 0 ? void 0 : (_item$content11$chall = _item$content11.challenge_names) === null || _item$content11$chall === void 0 ? void 0 : _item$content11$chall.map(function (value) {
children: item === null || item === void 0 ? void 0 : (_item$content7 = item.content) === null || _item$content7 === void 0 ? void 0 : (_item$content7$challe = _item$content7.challenge_names) === null || _item$content7$challe === void 0 ? void 0 : _item$content7$challe.map(function (value) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "flex-container",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -823,11 +848,11 @@ function ShiXunPanel(_ref5) {
}, value);
})
}), !item.content.tag_names ? null : /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
children: item === null || item === void 0 ? void 0 : (_item$content12 = item.content) === null || _item$content12 === void 0 ? void 0 : (_item$content12$tag_n = _item$content12.tag_names) === null || _item$content12$tag_n === void 0 ? void 0 : _item$content12$tag_n.map(function (value) {
children: item === null || item === void 0 ? void 0 : (_item$content8 = item.content) === null || _item$content8 === void 0 ? void 0 : (_item$content8$tag_na = _item$content8.tag_names) === null || _item$content8$tag_na === void 0 ? void 0 : _item$content8$tag_na.map(function (value) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "flex-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5173\u5361\u6807\u7B7E\uFF1A"
children: "\u5173\u5361\u6807\u7B7E \xA0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: value
@ -838,30 +863,47 @@ function ShiXunPanel(_ref5) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Searchmodules.sum,
children: [item !== null && item !== void 0 && (_item$content13 = item.content) !== null && _item$content13 !== void 0 && _item$content13.author_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content14 = item.content) === null || _item$content14 === void 0 ? void 0 : (_item$content14$autho = _item$content14.author_name) === null || _item$content14$autho === void 0 ? void 0 : _item$content14$autho[0]
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: item.author_name
}), item !== null && item !== void 0 && (_item$content15 = item.content) !== null && _item$content15 !== void 0 && _item$content15.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content16 = item.content) === null || _item$content16 === void 0 ? void 0 : (_item$content16$autho = _item$content16.author_school_name) === null || _item$content16$autho === void 0 ? void 0 : _item$content16$autho[0]
}
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
style: {
marginLeft: -13
},
children: item === null || item === void 0 ? void 0 : item.author_school_name
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u4EFB\u52A1\uFF1A", item.challenges_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u5B66\u4E60\u4EBA\u6570\uFF1A", item.study_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: ["\u8BC4\u5206\uFF1A", item.star]
style: {
display: 'flex',
justifyContent: 'space-between'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [(item === null || item === void 0 ? void 0 : item.author_name) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Searchmodules.authorname,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item.author_name.join('、')
}
})
})
}), item !== null && item !== void 0 && (_item$content9 = item.content) !== null && _item$content9 !== void 0 && _item$content9.author_school_name ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
dangerouslySetInnerHTML: {
__html: item === null || item === void 0 ? void 0 : (_item$content10 = item.content) === null || _item$content10 === void 0 ? void 0 : (_item$content10$autho = _item$content10.author_school_name) === null || _item$content10$autho === void 0 ? void 0 : _item$content10$autho[0]
}
}) : !!item.author_school_name && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "mr30",
children: item === null || item === void 0 ? void 0 : item.author_school_name
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u4EFB\u52A1 \xA0", item.challenges_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "mr30",
children: ["\u5B66\u4E60\u4EBA\u6570 \xA0", item.study_count]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u8BC4\u5206 \xA0", item.star]
})]
})]
})]
})]

@ -183,6 +183,14 @@
.search-result-body___xkFWj .tip___UcZlD span {
color: #0152d9;
}
.authorname___nsmz0 {
max-width: 300px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Spinner/index.less?modules ***!

@ -270,6 +270,8 @@ var es_button = __webpack_require__(71577);
var col = __webpack_require__(15746);
// EXTERNAL MODULE: ./node_modules/antd/es/cascader/index.js + 63 modules
var cascader = __webpack_require__(80316);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/components/Banner/util.ts
var formatOperationToText = function formatOperationToText() {
var operation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@ -2362,7 +2364,8 @@ var Banner = function Banner(_ref) {
children: "\u9700\u586B\u5199\u5B9E\u8DF5\u9879\u76EE\u7684\u65B9\u5411&\u8BFE\u7A0B\u540E\uFF0C\u624D\u80FD\u7533\u8BF7\u516C\u5F00"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
display: 'flex',
alignItems: "center"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
@ -2381,12 +2384,12 @@ var Banner = function Banner(_ref) {
setsub_discipline_id(e[1]);
},
style: {
width: '438px'
width: '422px'
},
options: problemset.courseOptions
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
style: {
display: 'flex',
marginTop: '5px'
@ -2397,13 +2400,15 @@ var Banner = function Banner(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
style: {
marginLeft: '102px',
marginRight: '263px'
marginLeft: '81px',
marginRight: '271px'
},
children: "\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: !isOpen ? '#666666' : '#999999'
color: !isOpen ? '#666666' : '#999999',
display: "inline-flex",
alignItems: "center"
},
onClick: function onClick() {
// setIsopen(!isOpen)
@ -2547,8 +2552,6 @@ var FirstEntryModal = function FirstEntryModal() {
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___yLE9I","flex_space_between":"flex_space_between___oiROA","flex_box_vertical_center":"flex_box_vertical_center___EAVkE","flex_box_center_end":"flex_box_center_end___Y4sRU","flex_box_column":"flex_box_column___SSP3m","bg":"bg___UgpNC","tabs":"tabs___BSqmb","wrap":"wrap___NcfkY","check":"check___XPhyn","activeCheck":"activeCheck___gPjei"});
// EXTERNAL MODULE: ./node_modules/antd/es/drawer/index.js + 16 modules
var drawer = __webpack_require__(35479);
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
var row = __webpack_require__(71230);
// EXTERNAL MODULE: ./node_modules/antd/es/progress/index.js + 11 modules
var progress = __webpack_require__(69814);
// EXTERNAL MODULE: ./node_modules/antd/es/collapse/index.js + 8 modules

@ -869,6 +869,8 @@ function reducer(state, action) {
showClipBoardBox = state.showClipBoardBox,
isLarge = state.isLarge,
transferContent = state.transferContent;
var heartbeatTimerRef = (0,react.useRef)();
var loadingRef = (0,react.useRef)();
var _useState3 = (0,react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
percent = _useState4[0],
@ -880,8 +882,12 @@ function reducer(state, action) {
var _guacaRef$current, _guacaRef$current$dis;
(_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
clearTimeout(reConnectRef.current);
clearInterval(heartbeatTimerRef.current);
};
}, []);
(0,react.useEffect)(function () {
loadingRef.current = state.loading;
}, [state.loading]);
var fullChange = function fullChange() {
var _rfbRef$current;
if (instance_startup_type === 2) {
@ -1055,6 +1061,10 @@ function reducer(state, action) {
payload: false
});
}, 1300);
clearTimeout(heartbeatTimerRef.current);
heartbeatTimerRef.current = setInterval(function () {
sendRFBMessage();
}, 10 * 1000);
// mediator.unsubscribe(`send-ctrl-alt-delete-${index_tab}`)
// mediator.subscribe(`send-ctrl-alt-delete-${index_tab}`, () => {
// rfbRef.current?.sendCtrlAltDel()
@ -1104,7 +1114,7 @@ function reducer(state, action) {
setLinkNum(linkNum + 1);
} else {
clearTimeout(reConnectRef.current);
if (loading) return;
if (loadingRef.current) return;
reConnectRef.current = setTimeout(function () {
setLinkNum(linkNum + 1);
}, 6000);
@ -1219,12 +1229,16 @@ function reducer(state, action) {
};
}
}, [vnc_url, window_vnc_url, linux_vnc, linkNum, shixun_environment_id, tab_type]);
function sendRFBMessage() {
var _rfbRef$current7, _rfbRef$current7$send;
(_rfbRef$current7 = rfbRef.current) === null || _rfbRef$current7 === void 0 ? void 0 : (_rfbRef$current7$send = _rfbRef$current7.sendKey) === null || _rfbRef$current7$send === void 0 ? void 0 : _rfbRef$current7$send.call(_rfbRef$current7, 135);
}
function clipboardSend(_x3) {
return _clipboardSend.apply(this, arguments);
}
function _clipboardSend() {
_clipboardSend = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(content) {
var s, res, _rfbRef$current7;
var s, res, _rfbRef$current8;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
@ -1254,7 +1268,7 @@ function reducer(state, action) {
_context5.next = 12;
break;
case 8:
(_rfbRef$current7 = rfbRef.current) === null || _rfbRef$current7 === void 0 ? void 0 : _rfbRef$current7.clipboardPasteFrom(content);
(_rfbRef$current8 = rfbRef.current) === null || _rfbRef$current8 === void 0 ? void 0 : _rfbRef$current8.clipboardPasteFrom(content);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: content

@ -1228,7 +1228,8 @@ var List = function List(_ref) {
dispatch({
type: 'videoDetail/getStageData',
payload: {
subject_id: subject_id
subject_id: subject_id,
page_type: 'video'
}
});
} else {

@ -12408,7 +12408,7 @@ var TIMETICKET = 3000;
var csstag = document.createElement('link');
csstag.setAttribute('rel', 'stylesheet');
csstag.href = item;
iframe.contentWindow.document.body.appendChild(csstag);
iframe.contentWindow.document.head.appendChild(csstag);
});
// jsArr.map(item => {
// const jstag = document.createElement('script');
@ -12420,7 +12420,7 @@ var TIMETICKET = 3000;
cssConArr.map(function (item) {
var csstag2 = document.createElement('style');
csstag2.innerHTML = item;
iframe.contentWindow.document.body.appendChild(csstag2);
iframe.contentWindow.document.head.appendChild(csstag2);
});
setTimeout(function () {
// try {
@ -20536,6 +20536,8 @@ function reducer(state, action) {
showClipBoardBox = state.showClipBoardBox,
isLarge = state.isLarge,
transferContent = state.transferContent;
var heartbeatTimerRef = (0,react.useRef)();
var loadingRef = (0,react.useRef)();
var _useState3 = (0,react.useState)(0),
_useState4 = slicedToArray_default()(_useState3, 2),
percent = _useState4[0],
@ -20547,8 +20549,12 @@ function reducer(state, action) {
var _guacaRef$current, _guacaRef$current$dis;
(_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
clearTimeout(reConnectRef.current);
clearInterval(heartbeatTimerRef.current);
};
}, []);
(0,react.useEffect)(function () {
loadingRef.current = state.loading;
}, [state.loading]);
var fullChange = function fullChange() {
var _rfbRef$current;
if (instance_startup_type === 2) {
@ -20722,6 +20728,10 @@ function reducer(state, action) {
payload: false
});
}, 1300);
clearTimeout(heartbeatTimerRef.current);
heartbeatTimerRef.current = setInterval(function () {
sendRFBMessage();
}, 10 * 1000);
// mediator.unsubscribe(`send-ctrl-alt-delete-${index_tab}`)
// mediator.subscribe(`send-ctrl-alt-delete-${index_tab}`, () => {
// rfbRef.current?.sendCtrlAltDel()
@ -20771,7 +20781,7 @@ function reducer(state, action) {
setLinkNum(linkNum + 1);
} else {
clearTimeout(reConnectRef.current);
if (loading) return;
if (loadingRef.current) return;
reConnectRef.current = setTimeout(function () {
setLinkNum(linkNum + 1);
}, 6000);
@ -20886,12 +20896,16 @@ function reducer(state, action) {
};
}
}, [vnc_url, window_vnc_url, linux_vnc, linkNum, shixun_environment_id, tab_type]);
function sendRFBMessage() {
var _rfbRef$current7, _rfbRef$current7$send;
(_rfbRef$current7 = rfbRef.current) === null || _rfbRef$current7 === void 0 ? void 0 : (_rfbRef$current7$send = _rfbRef$current7.sendKey) === null || _rfbRef$current7$send === void 0 ? void 0 : _rfbRef$current7$send.call(_rfbRef$current7, 135);
}
function clipboardSend(_x3) {
return _clipboardSend.apply(this, arguments);
}
function _clipboardSend() {
_clipboardSend = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(content) {
var s, res, _rfbRef$current7;
var s, res, _rfbRef$current8;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
@ -20921,7 +20935,7 @@ function reducer(state, action) {
_context5.next = 12;
break;
case 8:
(_rfbRef$current7 = rfbRef.current) === null || _rfbRef$current7 === void 0 ? void 0 : _rfbRef$current7.clipboardPasteFrom(content);
(_rfbRef$current8 = rfbRef.current) === null || _rfbRef$current8 === void 0 ? void 0 : _rfbRef$current8.clipboardPasteFrom(content);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: content

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -292,10 +292,10 @@ mark {
\*************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.b78ea8d1.woff2) format('woff2'),
url(./static/iconfont.fbeb5374.woff) format('woff'),
url(./static/iconfont.52534fed.ttf) format('truetype'),
url(./static/iconfont.0a9b112c.svg#iconfont) format('svg');
src: url(./static/iconfont.b4dfa063.woff2) format('woff2'),
url(./static/iconfont.9bda7eee.woff) format('woff'),
url(./static/iconfont.5c4db138.ttf) format('truetype'),
url(./static/iconfont.2ff4a59e.svg#iconfont) format('svg');
}
.iconfont {
@ -306,6 +306,14 @@ mark {
-moz-osx-font-smoothing: grayscale;
}
.icon-tuichuquanping3:before {
content: "\e724";
}
.icon-shangchuanfujian:before {
content: "\ebbd";
}
.icon-charuzhishidian1:before {
content: "\ebcb";
}
@ -5022,10 +5030,6 @@ mark {
content: "\e723";
}
.icon-yiguanbi:before {
content: "\e724";
}
.icon-yiguanbi1:before {
content: "\e725";
}
@ -10505,23 +10509,23 @@ p {
padding: 0;
}
#educoder .ant-modal .ant-modal-content .ant-modal-header {
padding: 25px 25px 0 25px;
margin-bottom: 10px;
padding: 20px 25px 0 25px;
margin-bottom: 5px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title {
font-weight: 500;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body {
padding: 20px 25px 10px 25px;
padding: 10px 25px 10px 25px;
font-size: 14px;
overflow: auto;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .anticon-exclamation-circle {
margin-bottom: 15px;
margin-bottom: 5px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-title {
margin-top: 5px;
margin-bottom: 20px;
margin-top: 10px;
margin-bottom: 15px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body > .anticon {
margin-top: 5px;
@ -10529,7 +10533,7 @@ p {
margin-right: 12px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-body .ant-modal-confirm-content {
margin-top: 10px;
margin-top: 0px;
width: 100%;
max-width: 100%;
}
@ -10575,8 +10579,8 @@ p {
border: 0;
}
#educoder .ant-modal .ant-modal-content .ant-modal-close {
top: 20px;
right: 20px;
top: 22px;
right: 22px;
}
#educoder .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-icon::before,
#educoder .ant-modal .ant-modal-content .ant-modal-close .ant-modal-close-icon::after {

1267
umi.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save