webpackJsonp([60,74,75,78,143],{ /***/ 1000: /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _classCallCheck2 = __webpack_require__(9); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _possibleConstructorReturn2 = __webpack_require__(10); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = __webpack_require__(11); var _inherits3 = _interopRequireDefault(_inherits2); var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); var _reactDom = __webpack_require__(4); var _reactDom2 = _interopRequireDefault(_reactDom); var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); var _reactLifecyclesCompat = __webpack_require__(7); var _createChainedFunction = __webpack_require__(1325); var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction); var _KeyCode = __webpack_require__(944); var _KeyCode2 = _interopRequireDefault(_KeyCode); var _placements = __webpack_require__(1326); var _placements2 = _interopRequireDefault(_placements); var _rcTrigger = __webpack_require__(89); var _rcTrigger2 = _interopRequireDefault(_rcTrigger); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function noop() {} function refFn(field, component) { this[field] = component; } var Picker = function (_React$Component) { (0, _inherits3['default'])(Picker, _React$Component); function Picker(props) { (0, _classCallCheck3['default'])(this, Picker); var _this = (0, _possibleConstructorReturn3['default'])(this, _React$Component.call(this, props)); _initialiseProps.call(_this); var open = void 0; if ('open' in props) { open = props.open; } else { open = props.defaultOpen; } var value = props.value || props.defaultValue; _this.saveCalendarRef = refFn.bind(_this, 'calendarInstance'); _this.state = { open: open, value: value }; return _this; } Picker.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) { if (!prevState.open && this.state.open) { // setTimeout is for making sure saveCalendarRef happen before focusCalendar this.focusTimeout = setTimeout(this.focusCalendar, 0, this); } }; Picker.prototype.componentWillUnmount = function componentWillUnmount() { clearTimeout(this.focusTimeout); }; Picker.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { var newState = {}; var value = nextProps.value, open = nextProps.open; if ('value' in nextProps) { newState.value = value; } if (open !== undefined) { newState.open = open; } return newState; }; Picker.prototype.render = function render() { var props = this.props; var prefixCls = props.prefixCls, placement = props.placement, style = props.style, getCalendarContainer = props.getCalendarContainer, align = props.align, animation = props.animation, disabled = props.disabled, dropdownClassName = props.dropdownClassName, transitionName = props.transitionName, children = props.children; var state = this.state; return _react2['default'].createElement( _rcTrigger2['default'], { popup: this.getCalendarElement(), popupAlign: align, builtinPlacements: _placements2['default'], popupPlacement: placement, action: disabled && !state.open ? [] : ['click'], destroyPopupOnHide: true, getPopupContainer: getCalendarContainer, popupStyle: style, popupAnimation: animation, popupTransitionName: transitionName, popupVisible: state.open, onPopupVisibleChange: this.onVisibleChange, prefixCls: prefixCls, popupClassName: dropdownClassName }, _react2['default'].cloneElement(children(state, props), { onKeyDown: this.onKeyDown }) ); }; return Picker; }(_react2['default'].Component); Picker.propTypes = { animation: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].string]), disabled: _propTypes2['default'].bool, transitionName: _propTypes2['default'].string, onChange: _propTypes2['default'].func, onOpenChange: _propTypes2['default'].func, children: _propTypes2['default'].func, getCalendarContainer: _propTypes2['default'].func, calendar: _propTypes2['default'].element, style: _propTypes2['default'].object, open: _propTypes2['default'].bool, defaultOpen: _propTypes2['default'].bool, prefixCls: _propTypes2['default'].string, placement: _propTypes2['default'].any, value: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].array]), defaultValue: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].array]), align: _propTypes2['default'].object, dateRender: _propTypes2['default'].func, onBlur: _propTypes2['default'].func }; Picker.defaultProps = { prefixCls: 'rc-calendar-picker', style: {}, align: {}, placement: 'bottomLeft', defaultOpen: false, onChange: noop, onOpenChange: noop, onBlur: noop }; var _initialiseProps = function _initialiseProps() { var _this2 = this; this.onCalendarKeyDown = function (event) { if (event.keyCode === _KeyCode2['default'].ESC) { event.stopPropagation(); _this2.close(_this2.focus); } }; this.onCalendarSelect = function (value) { var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var props = _this2.props; if (!('value' in props)) { _this2.setState({ value: value }); } if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') { _this2.close(_this2.focus); } props.onChange(value); }; this.onKeyDown = function (event) { if (!_this2.state.open && (event.keyCode === _KeyCode2['default'].DOWN || event.keyCode === _KeyCode2['default'].ENTER)) { _this2.open(); event.preventDefault(); } }; this.onCalendarOk = function () { _this2.close(_this2.focus); }; this.onCalendarClear = function () { _this2.close(_this2.focus); }; this.onCalendarBlur = function () { _this2.setOpen(false); }; this.onVisibleChange = function (open) { _this2.setOpen(open); }; this.getCalendarElement = function () { var props = _this2.props; var state = _this2.state; var calendarProps = props.calendar.props; var value = state.value; var defaultValue = value; var extraProps = { ref: _this2.saveCalendarRef, defaultValue: defaultValue || calendarProps.defaultValue, selectedValue: value, onKeyDown: _this2.onCalendarKeyDown, onOk: (0, _createChainedFunction2['default'])(calendarProps.onOk, _this2.onCalendarOk), onSelect: (0, _createChainedFunction2['default'])(calendarProps.onSelect, _this2.onCalendarSelect), onClear: (0, _createChainedFunction2['default'])(calendarProps.onClear, _this2.onCalendarClear), onBlur: (0, _createChainedFunction2['default'])(calendarProps.onBlur, _this2.onCalendarBlur) }; return _react2['default'].cloneElement(props.calendar, extraProps); }; this.setOpen = function (open, callback) { var onOpenChange = _this2.props.onOpenChange; if (_this2.state.open !== open) { if (!('open' in _this2.props)) { _this2.setState({ open: open }, callback); } onOpenChange(open); } }; this.open = function (callback) { _this2.setOpen(true, callback); }; this.close = function (callback) { _this2.setOpen(false, callback); }; this.focus = function () { if (!_this2.state.open) { _reactDom2['default'].findDOMNode(_this2).focus(); } }; this.focusCalendar = function () { if (_this2.state.open && !!_this2.calendarInstance) { _this2.calendarInstance.focus(); } }; }; (0, _reactLifecyclesCompat.polyfill)(Picker); exports['default'] = Picker; module.exports = exports['default']; /***/ }), /***/ 1001: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(__webpack_require__(0)); var PropTypes = _interopRequireWildcard(__webpack_require__(1)); var _rcMenu = __webpack_require__(172); var _classnames = _interopRequireDefault(__webpack_require__(3)); var _MenuContext = _interopRequireDefault(__webpack_require__(889)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var SubMenu = /*#__PURE__*/ function (_React$Component) { _inherits(SubMenu, _React$Component); function SubMenu() { var _this; _classCallCheck(this, SubMenu); _this = _possibleConstructorReturn(this, _getPrototypeOf(SubMenu).apply(this, arguments)); _this.onKeyDown = function (e) { _this.subMenu.onKeyDown(e); }; _this.saveSubMenu = function (subMenu) { _this.subMenu = subMenu; }; return _this; } _createClass(SubMenu, [{ key: "render", value: function render() { var _this2 = this; var _this$props = this.props, rootPrefixCls = _this$props.rootPrefixCls, popupClassName = _this$props.popupClassName; return React.createElement(_MenuContext["default"].Consumer, null, function (_ref) { var antdMenuTheme = _ref.antdMenuTheme; return React.createElement(_rcMenu.SubMenu, _extends({}, _this2.props, { ref: _this2.saveSubMenu, popupClassName: (0, _classnames["default"])("".concat(rootPrefixCls, "-").concat(antdMenuTheme), popupClassName) })); }); } }]); return SubMenu; }(React.Component); SubMenu.contextTypes = { antdMenuTheme: PropTypes.string }; // fix issue:https://github.com/ant-design/ant-design/issues/8666 SubMenu.isSubMenu = 1; var _default = SubMenu; exports["default"] = _default; //# sourceMappingURL=SubMenu.js.map /***/ }), /***/ 1002: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(__webpack_require__(0)); var _rcMenu = __webpack_require__(172); var _MenuContext = _interopRequireDefault(__webpack_require__(889)); var _tooltip = _interopRequireDefault(__webpack_require__(168)); var _Sider = __webpack_require__(905); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var __rest = void 0 && (void 0).__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; } if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var MenuItem = /*#__PURE__*/ function (_React$Component) { _inherits(MenuItem, _React$Component); function MenuItem() { var _this; _classCallCheck(this, MenuItem); _this = _possibleConstructorReturn(this, _getPrototypeOf(MenuItem).apply(this, arguments)); _this.onKeyDown = function (e) { _this.menuItem.onKeyDown(e); }; _this.saveMenuItem = function (menuItem) { _this.menuItem = menuItem; }; _this.renderItem = function (_ref) { var siderCollapsed = _ref.siderCollapsed; var _this$props = _this.props, level = _this$props.level, children = _this$props.children, rootPrefixCls = _this$props.rootPrefixCls; var _a = _this.props, title = _a.title, rest = __rest(_a, ["title"]); return React.createElement(_MenuContext["default"].Consumer, null, function (_ref2) { var inlineCollapsed = _ref2.inlineCollapsed; var tooltipProps = { title: title || (level === 1 ? children : '') }; if (!siderCollapsed && !inlineCollapsed) { tooltipProps.title = null; // Reset `visible` to fix control mode tooltip display not correct // ref: https://github.com/ant-design/ant-design/issues/16742 tooltipProps.visible = false; } return React.createElement(_tooltip["default"], _extends({}, tooltipProps, { placement: "right", overlayClassName: "".concat(rootPrefixCls, "-inline-collapsed-tooltip") }), React.createElement(_rcMenu.Item, _extends({}, rest, { title: title, ref: _this.saveMenuItem }))); }); }; return _this; } _createClass(MenuItem, [{ key: "render", value: function render() { return React.createElement(_Sider.SiderContext.Consumer, null, this.renderItem); } }]); return MenuItem; }(React.Component); exports["default"] = MenuItem; MenuItem.isMenuItem = true; //# sourceMappingURL=MenuItem.js.map /***/ }), /***/ 1003: /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { module.exports = __webpack_require__(1027); } else { module.exports = require('./cjs/react-is.development.js'); } /***/ }), /***/ 1020: /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(334), __esModule: true }; /***/ }), /***/ 1021: /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _from = __webpack_require__(1020); var _from2 = _interopRequireDefault(_from); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return (0, _from2.default)(arr); } }; /***/ }), /***/ 1022: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ var React = __webpack_require__(0); var factory = __webpack_require__(1023); if (typeof React === 'undefined') { throw Error( 'create-react-class could not find the React object. If you are using script tags, ' + 'make sure that React is being loaded before create-react-class.' ); } // Hack to grab NoopUpdateQueue from isomorphic React var ReactNoopUpdateQueue = new React.Component().updater; module.exports = factory( React.Component, React.isValidElement, ReactNoopUpdateQueue ); /***/ }), /***/ 1023: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ var _assign = __webpack_require__(76); var emptyObject = __webpack_require__(1024); var _invariant = __webpack_require__(1025); if (false) { var warning = require('fbjs/lib/warning'); } var MIXINS_KEY = 'mixins'; // Helper function to allow the creation of anonymous functions which do not // have .name set to the name of the variable being assigned to. function identity(fn) { return fn; } var ReactPropTypeLocationNames; if (false) { ReactPropTypeLocationNames = { prop: 'prop', context: 'context', childContext: 'child context' }; } else { ReactPropTypeLocationNames = {}; } function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { /** * Policies that describe methods in `ReactClassInterface`. */ var injectedMixins = []; /** * Composite components are higher-level components that compose other composite * or host components. * * To create a new type of `ReactClass`, pass a specification of * your new class to `React.createClass`. The only requirement of your class * specification is that you implement a `render` method. * * var MyComponent = React.createClass({ * render: function() { * return
Hello World
; * } * }); * * The class specification supports a specific protocol of methods that have * special meaning (e.g. `render`). See `ReactClassInterface` for * more the comprehensive protocol. Any other properties and methods in the * class specification will be available on the prototype. * * @interface ReactClassInterface * @internal */ var ReactClassInterface = { /** * An array of Mixin objects to include when defining your component. * * @type {array} * @optional */ mixins: 'DEFINE_MANY', /** * An object containing properties and methods that should be defined on * the component's constructor instead of its prototype (static methods). * * @type {object} * @optional */ statics: 'DEFINE_MANY', /** * Definition of prop types for this component. * * @type {object} * @optional */ propTypes: 'DEFINE_MANY', /** * Definition of context types for this component. * * @type {object} * @optional */ contextTypes: 'DEFINE_MANY', /** * Definition of context types this component sets for its children. * * @type {object} * @optional */ childContextTypes: 'DEFINE_MANY', // ==== Definition methods ==== /** * Invoked when the component is mounted. Values in the mapping will be set on * `this.props` if that prop is not specified (i.e. using an `in` check). * * This method is invoked before `getInitialState` and therefore cannot rely * on `this.state` or use `this.setState`. * * @return {object} * @optional */ getDefaultProps: 'DEFINE_MANY_MERGED', /** * Invoked once before the component is mounted. The return value will be used * as the initial value of `this.state`. * * getInitialState: function() { * return { * isOn: false, * fooBaz: new BazFoo() * } * } * * @return {object} * @optional */ getInitialState: 'DEFINE_MANY_MERGED', /** * @return {object} * @optional */ getChildContext: 'DEFINE_MANY_MERGED', /** * Uses props from `this.props` and state from `this.state` to render the * structure of the component. * * No guarantees are made about when or how often this method is invoked, so * it must not have side effects. * * render: function() { * var name = this.props.name; * return
Hello, {name}!
; * } * * @return {ReactComponent} * @required */ render: 'DEFINE_ONCE', // ==== Delegate methods ==== /** * Invoked when the component is initially created and about to be mounted. * This may have side effects, but any external subscriptions or data created * by this method must be cleaned up in `componentWillUnmount`. * * @optional */ componentWillMount: 'DEFINE_MANY', /** * Invoked when the component has been mounted and has a DOM representation. * However, there is no guarantee that the DOM node is in the document. * * Use this as an opportunity to operate on the DOM when the component has * been mounted (initialized and rendered) for the first time. * * @param {DOMElement} rootNode DOM element representing the component. * @optional */ componentDidMount: 'DEFINE_MANY', /** * Invoked before the component receives new props. * * Use this as an opportunity to react to a prop transition by updating the * state using `this.setState`. Current props are accessed via `this.props`. * * componentWillReceiveProps: function(nextProps, nextContext) { * this.setState({ * likesIncreasing: nextProps.likeCount > this.props.likeCount * }); * } * * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop * transition may cause a state change, but the opposite is not true. If you * need it, you are probably looking for `componentWillUpdate`. * * @param {object} nextProps * @optional */ componentWillReceiveProps: 'DEFINE_MANY', /** * Invoked while deciding if the component should be updated as a result of * receiving new props, state and/or context. * * Use this as an opportunity to `return false` when you're certain that the * transition to the new props/state/context will not require a component * update. * * shouldComponentUpdate: function(nextProps, nextState, nextContext) { * return !equal(nextProps, this.props) || * !equal(nextState, this.state) || * !equal(nextContext, this.context); * } * * @param {object} nextProps * @param {?object} nextState * @param {?object} nextContext * @return {boolean} True if the component should update. * @optional */ shouldComponentUpdate: 'DEFINE_ONCE', /** * Invoked when the component is about to update due to a transition from * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` * and `nextContext`. * * Use this as an opportunity to perform preparation before an update occurs. * * NOTE: You **cannot** use `this.setState()` in this method. * * @param {object} nextProps * @param {?object} nextState * @param {?object} nextContext * @param {ReactReconcileTransaction} transaction * @optional */ componentWillUpdate: 'DEFINE_MANY', /** * Invoked when the component's DOM representation has been updated. * * Use this as an opportunity to operate on the DOM when the component has * been updated. * * @param {object} prevProps * @param {?object} prevState * @param {?object} prevContext * @param {DOMElement} rootNode DOM element representing the component. * @optional */ componentDidUpdate: 'DEFINE_MANY', /** * Invoked when the component is about to be removed from its parent and have * its DOM representation destroyed. * * Use this as an opportunity to deallocate any external resources. * * NOTE: There is no `componentDidUnmount` since your component will have been * destroyed by that point. * * @optional */ componentWillUnmount: 'DEFINE_MANY', /** * Replacement for (deprecated) `componentWillMount`. * * @optional */ UNSAFE_componentWillMount: 'DEFINE_MANY', /** * Replacement for (deprecated) `componentWillReceiveProps`. * * @optional */ UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', /** * Replacement for (deprecated) `componentWillUpdate`. * * @optional */ UNSAFE_componentWillUpdate: 'DEFINE_MANY', // ==== Advanced methods ==== /** * Updates the component's currently mounted DOM representation. * * By default, this implements React's rendering and reconciliation algorithm. * Sophisticated clients may wish to override this. * * @param {ReactReconcileTransaction} transaction * @internal * @overridable */ updateComponent: 'OVERRIDE_BASE' }; /** * Similar to ReactClassInterface but for static methods. */ var ReactClassStaticInterface = { /** * This method is invoked after a component is instantiated and when it * receives new props. Return an object to update state in response to * prop changes. Return null to indicate no change to state. * * If an object is returned, its keys will be merged into the existing state. * * @return {object || null} * @optional */ getDerivedStateFromProps: 'DEFINE_MANY_MERGED' }; /** * Mapping from class specification keys to special processing functions. * * Although these are declared like instance properties in the specification * when defining classes using `React.createClass`, they are actually static * and are accessible on the constructor instead of the prototype. Despite * being static, they must be defined outside of the "statics" key under * which all other static methods are defined. */ var RESERVED_SPEC_KEYS = { displayName: function(Constructor, displayName) { Constructor.displayName = displayName; }, mixins: function(Constructor, mixins) { if (mixins) { for (var i = 0; i < mixins.length; i++) { mixSpecIntoComponent(Constructor, mixins[i]); } } }, childContextTypes: function(Constructor, childContextTypes) { if (false) { validateTypeDef(Constructor, childContextTypes, 'childContext'); } Constructor.childContextTypes = _assign( {}, Constructor.childContextTypes, childContextTypes ); }, contextTypes: function(Constructor, contextTypes) { if (false) { validateTypeDef(Constructor, contextTypes, 'context'); } Constructor.contextTypes = _assign( {}, Constructor.contextTypes, contextTypes ); }, /** * Special case getDefaultProps which should move into statics but requires * automatic merging. */ getDefaultProps: function(Constructor, getDefaultProps) { if (Constructor.getDefaultProps) { Constructor.getDefaultProps = createMergedResultFunction( Constructor.getDefaultProps, getDefaultProps ); } else { Constructor.getDefaultProps = getDefaultProps; } }, propTypes: function(Constructor, propTypes) { if (false) { validateTypeDef(Constructor, propTypes, 'prop'); } Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); }, statics: function(Constructor, statics) { mixStaticSpecIntoComponent(Constructor, statics); }, autobind: function() {} }; function validateTypeDef(Constructor, typeDef, location) { for (var propName in typeDef) { if (typeDef.hasOwnProperty(propName)) { // use a warning instead of an _invariant so components // don't show up in prod but only in __DEV__ if (false) { warning( typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName ); } } } } function validateMethodOverride(isAlreadyDefined, name) { var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null; // Disallow overriding of base class methods unless explicitly allowed. if (ReactClassMixin.hasOwnProperty(name)) { _invariant( specPolicy === 'OVERRIDE_BASE', 'ReactClassInterface: You are attempting to override ' + '`%s` from your class specification. Ensure that your method names ' + 'do not overlap with React methods.', name ); } // Disallow defining methods more than once unless explicitly allowed. if (isAlreadyDefined) { _invariant( specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', 'ReactClassInterface: You are attempting to define ' + '`%s` on your component more than once. This conflict may be due ' + 'to a mixin.', name ); } } /** * Mixin helper which handles policy validation and reserved * specification keys when building React classes. */ function mixSpecIntoComponent(Constructor, spec) { if (!spec) { if (false) { var typeofSpec = typeof spec; var isMixinValid = typeofSpec === 'object' && spec !== null; if (process.env.NODE_ENV !== 'production') { warning( isMixinValid, "%s: You're attempting to include a mixin that is either null " + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec ); } } return; } _invariant( typeof spec !== 'function', "ReactClass: You're attempting to " + 'use a component class or function as a mixin. Instead, just use a ' + 'regular object.' ); _invariant( !isValidElement(spec), "ReactClass: You're attempting to " + 'use a component as a mixin. Instead, just use a regular object.' ); var proto = Constructor.prototype; var autoBindPairs = proto.__reactAutoBindPairs; // By handling mixins before any other properties, we ensure the same // chaining order is applied to methods with DEFINE_MANY policy, whether // mixins are listed before or after these methods in the spec. if (spec.hasOwnProperty(MIXINS_KEY)) { RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); } for (var name in spec) { if (!spec.hasOwnProperty(name)) { continue; } if (name === MIXINS_KEY) { // We have already handled mixins in a special case above. continue; } var property = spec[name]; var isAlreadyDefined = proto.hasOwnProperty(name); validateMethodOverride(isAlreadyDefined, name); if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { RESERVED_SPEC_KEYS[name](Constructor, property); } else { // Setup methods on prototype: // The following member methods should not be automatically bound: // 1. Expected ReactClass methods (in the "interface"). // 2. Overridden methods (that were mixed in). var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); var isFunction = typeof property === 'function'; var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false; if (shouldAutoBind) { autoBindPairs.push(name, property); proto[name] = property; } else { if (isAlreadyDefined) { var specPolicy = ReactClassInterface[name]; // These cases should already be caught by validateMethodOverride. _invariant( isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY'), 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name ); // For methods which are defined more than once, call the existing // methods before calling the new property, merging if appropriate. if (specPolicy === 'DEFINE_MANY_MERGED') { proto[name] = createMergedResultFunction(proto[name], property); } else if (specPolicy === 'DEFINE_MANY') { proto[name] = createChainedFunction(proto[name], property); } } else { proto[name] = property; if (false) { // Add verbose displayName to the function, which helps when looking // at profiling tools. if (typeof property === 'function' && spec.displayName) { proto[name].displayName = spec.displayName + '_' + name; } } } } } } } function mixStaticSpecIntoComponent(Constructor, statics) { if (!statics) { return; } for (var name in statics) { var property = statics[name]; if (!statics.hasOwnProperty(name)) { continue; } var isReserved = name in RESERVED_SPEC_KEYS; _invariant( !isReserved, 'ReactClass: You are attempting to define a reserved ' + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + 'as an instance property instead; it will still be accessible on the ' + 'constructor.', name ); var isAlreadyDefined = name in Constructor; if (isAlreadyDefined) { var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) ? ReactClassStaticInterface[name] : null; _invariant( specPolicy === 'DEFINE_MANY_MERGED', 'ReactClass: You are attempting to define ' + '`%s` on your component more than once. This conflict may be ' + 'due to a mixin.', name ); Constructor[name] = createMergedResultFunction(Constructor[name], property); return; } Constructor[name] = property; } } /** * Merge two objects, but throw if both contain the same key. * * @param {object} one The first object, which is mutated. * @param {object} two The second object * @return {object} one after it has been mutated to contain everything in two. */ function mergeIntoWithNoDuplicateKeys(one, two) { _invariant( one && two && typeof one === 'object' && typeof two === 'object', 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' ); for (var key in two) { if (two.hasOwnProperty(key)) { _invariant( one[key] === undefined, 'mergeIntoWithNoDuplicateKeys(): ' + 'Tried to merge two objects with the same key: `%s`. This conflict ' + 'may be due to a mixin; in particular, this may be caused by two ' + 'getInitialState() or getDefaultProps() methods returning objects ' + 'with clashing keys.', key ); one[key] = two[key]; } } return one; } /** * Creates a function that invokes two functions and merges their return values. * * @param {function} one Function to invoke first. * @param {function} two Function to invoke second. * @return {function} Function that invokes the two argument functions. * @private */ function createMergedResultFunction(one, two) { return function mergedResult() { var a = one.apply(this, arguments); var b = two.apply(this, arguments); if (a == null) { return b; } else if (b == null) { return a; } var c = {}; mergeIntoWithNoDuplicateKeys(c, a); mergeIntoWithNoDuplicateKeys(c, b); return c; }; } /** * Creates a function that invokes two functions and ignores their return vales. * * @param {function} one Function to invoke first. * @param {function} two Function to invoke second. * @return {function} Function that invokes the two argument functions. * @private */ function createChainedFunction(one, two) { return function chainedFunction() { one.apply(this, arguments); two.apply(this, arguments); }; } /** * Binds a method to the component. * * @param {object} component Component whose method is going to be bound. * @param {function} method Method to be bound. * @return {function} The bound method. */ function bindAutoBindMethod(component, method) { var boundMethod = method.bind(component); if (false) { boundMethod.__reactBoundContext = component; boundMethod.__reactBoundMethod = method; boundMethod.__reactBoundArguments = null; var componentName = component.constructor.displayName; var _bind = boundMethod.bind; boundMethod.bind = function(newThis) { for ( var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++ ) { args[_key - 1] = arguments[_key]; } // User is trying to bind() an autobound method; we effectively will // ignore the value of "this" that the user is trying to use, so // let's warn. if (newThis !== component && newThis !== null) { if (process.env.NODE_ENV !== 'production') { warning( false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName ); } } else if (!args.length) { if (process.env.NODE_ENV !== 'production') { warning( false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName ); } return boundMethod; } var reboundMethod = _bind.apply(boundMethod, arguments); reboundMethod.__reactBoundContext = component; reboundMethod.__reactBoundMethod = method; reboundMethod.__reactBoundArguments = args; return reboundMethod; }; } return boundMethod; } /** * Binds all auto-bound methods in a component. * * @param {object} component Component whose method is going to be bound. */ function bindAutoBindMethods(component) { var pairs = component.__reactAutoBindPairs; for (var i = 0; i < pairs.length; i += 2) { var autoBindKey = pairs[i]; var method = pairs[i + 1]; component[autoBindKey] = bindAutoBindMethod(component, method); } } var IsMountedPreMixin = { componentDidMount: function() { this.__isMounted = true; } }; var IsMountedPostMixin = { componentWillUnmount: function() { this.__isMounted = false; } }; /** * Add more to the ReactClass base class. These are all legacy features and * therefore not already part of the modern ReactComponent. */ var ReactClassMixin = { /** * TODO: This will be deprecated because state should always keep a consistent * type signature and the only use case for this, is to avoid that. */ replaceState: function(newState, callback) { this.updater.enqueueReplaceState(this, newState, callback); }, /** * Checks whether or not this composite component is mounted. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function() { if (false) { warning( this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' + 'subscriptions and pending requests in componentWillUnmount to ' + 'prevent memory leaks.', (this.constructor && this.constructor.displayName) || this.name || 'Component' ); this.__didWarnIsMounted = true; } return !!this.__isMounted; } }; var ReactClassComponent = function() {}; _assign( ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin ); /** * Creates a composite component class given a class specification. * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass * * @param {object} spec Class specification (which must define `render`). * @return {function} Component constructor function. * @public */ function createClass(spec) { // To keep our warnings more understandable, we'll use a little hack here to // ensure that Constructor.name !== 'Constructor'. This makes sure we don't // unnecessarily identify a class without displayName as 'Constructor'. var Constructor = identity(function(props, context, updater) { // This constructor gets overridden by mocks. The argument is used // by mocks to assert on what gets mounted. if (false) { warning( this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory' ); } // Wire up auto-binding if (this.__reactAutoBindPairs.length) { bindAutoBindMethods(this); } this.props = props; this.context = context; this.refs = emptyObject; this.updater = updater || ReactNoopUpdateQueue; this.state = null; // ReactClasses doesn't have constructors. Instead, they use the // getInitialState and componentWillMount methods for initialization. var initialState = this.getInitialState ? this.getInitialState() : null; if (false) { // We allow auto-mocks to proceed as if they're returning null. if ( initialState === undefined && this.getInitialState._isMockFunction ) { // This is probably bad practice. Consider warning here and // deprecating this convenience. initialState = null; } } _invariant( typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent' ); this.state = initialState; }); Constructor.prototype = new ReactClassComponent(); Constructor.prototype.constructor = Constructor; Constructor.prototype.__reactAutoBindPairs = []; injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); mixSpecIntoComponent(Constructor, IsMountedPreMixin); mixSpecIntoComponent(Constructor, spec); mixSpecIntoComponent(Constructor, IsMountedPostMixin); // Initialize the defaultProps property after all mixins have been merged. if (Constructor.getDefaultProps) { Constructor.defaultProps = Constructor.getDefaultProps(); } if (false) { // This is a tag to indicate that the use of these method names is ok, // since it's used with createClass. If it's not, then it's likely a // mistake so we'll warn you to use the static property, property // initializer or constructor respectively. if (Constructor.getDefaultProps) { Constructor.getDefaultProps.isReactClassApproved = {}; } if (Constructor.prototype.getInitialState) { Constructor.prototype.getInitialState.isReactClassApproved = {}; } } _invariant( Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.' ); if (false) { warning( !Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component' ); warning( !Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component' ); warning( !Constructor.prototype.UNSAFE_componentWillRecieveProps, '%s has a method called UNSAFE_componentWillRecieveProps(). ' + 'Did you mean UNSAFE_componentWillReceiveProps()?', spec.displayName || 'A component' ); } // Reduce time spent doing lookups by setting these on the prototype. for (var methodName in ReactClassInterface) { if (!Constructor.prototype[methodName]) { Constructor.prototype[methodName] = null; } } return Constructor; } return createClass; } module.exports = factory; /***/ }), /***/ 1024: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ var emptyObject = {}; if (false) { Object.freeze(emptyObject); } module.exports = emptyObject; /***/ }), /***/ 1025: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /** * Use invariant() to assert state which your program assumes to be true. * * Provide sprintf-style format (only %s is supported) and arguments * to provide information about what broke and what you were * expecting. * * The invariant message will be stripped in production, but the invariant * will remain to ensure logic does not differ in production. */ var validateFormat = function validateFormat(format) {}; if (false) { validateFormat = function validateFormat(format) { if (format === undefined) { throw new Error('invariant requires an error message argument'); } }; } function invariant(condition, format, a, b, c, d, e, f) { validateFormat(format); if (!condition) { var error; if (format === undefined) { error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); } else { var args = [a, b, c, d, e, f]; var argIndex = 0; error = new Error(format.replace(/%s/g, function () { return args[argIndex++]; })); error.name = 'Invariant Violation'; } error.framesToPop = 1; // we don't care about invariant's own frame throw error; } } module.exports = invariant; /***/ }), /***/ 1026: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var ReactIs = __webpack_require__(1003); var REACT_STATICS = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }; var KNOWN_STATICS = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }; var FORWARD_REF_STATICS = { '$$typeof': true, render: true, defaultProps: true, displayName: true, propTypes: true }; var MEMO_STATICS = { '$$typeof': true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }; var TYPE_STATICS = {}; TYPE_STATICS[ReactIs.ForwardRef] = FORWARD_REF_STATICS; function getStatics(component) { if (ReactIs.isMemo(component)) { return MEMO_STATICS; } return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; } var defineProperty = Object.defineProperty; var getOwnPropertyNames = Object.getOwnPropertyNames; var getOwnPropertySymbols = Object.getOwnPropertySymbols; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var getPrototypeOf = Object.getPrototypeOf; var objectPrototype = Object.prototype; function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components if (objectPrototype) { var inheritedComponent = getPrototypeOf(sourceComponent); if (inheritedComponent && inheritedComponent !== objectPrototype) { hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); } } var keys = getOwnPropertyNames(sourceComponent); if (getOwnPropertySymbols) { keys = keys.concat(getOwnPropertySymbols(sourceComponent)); } var targetStatics = getStatics(targetComponent); var sourceStatics = getStatics(sourceComponent); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { var descriptor = getOwnPropertyDescriptor(sourceComponent, key); try { // Avoid failures from read-only properties defineProperty(targetComponent, key, descriptor); } catch (e) {} } } return targetComponent; } return targetComponent; } module.exports = hoistNonReactStatics; /***/ }), /***/ 1027: /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @license React v16.8.6 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(exports,"__esModule",{value:!0}); var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"): 60115,r=b?Symbol.for("react.lazy"):60116;function t(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n; exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k}; exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f}; exports.isSuspense=function(a){return t(a)===p}; /***/ }), /***/ 1028: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a // //
  • // //
  • //
  • 分数不能为空
  • //
    // {this.props.Cancelname || '取消'} // {this.props.Savesname || '保存'} {/*
    */}{/**/} /***/ }), /***/ 1885: /***/ (function(module, exports, __webpack_require__) { "use strict"; var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var hexTable = (function () { var array = []; for (var i = 0; i < 256; ++i) { array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); } return array; }()); var compactQueue = function compactQueue(queue) { while (queue.length > 1) { var item = queue.pop(); var obj = item.obj[item.prop]; if (isArray(obj)) { var compacted = []; for (var j = 0; j < obj.length; ++j) { if (typeof obj[j] !== 'undefined') { compacted.push(obj[j]); } } item.obj[item.prop] = compacted; } } }; var arrayToObject = function arrayToObject(source, options) { var obj = options && options.plainObjects ? Object.create(null) : {}; for (var i = 0; i < source.length; ++i) { if (typeof source[i] !== 'undefined') { obj[i] = source[i]; } } return obj; }; var merge = function merge(target, source, options) { if (!source) { return target; } if (typeof source !== 'object') { if (isArray(target)) { target.push(source); } else if (target && typeof target === 'object') { if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { target[source] = true; } } else { return [target, source]; } return target; } if (!target || typeof target !== 'object') { return [target].concat(source); } var mergeTarget = target; if (isArray(target) && !isArray(source)) { mergeTarget = arrayToObject(target, options); } if (isArray(target) && isArray(source)) { source.forEach(function (item, i) { if (has.call(target, i)) { var targetItem = target[i]; if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { target[i] = merge(targetItem, item, options); } else { target.push(item); } } else { target[i] = item; } }); return target; } return Object.keys(source).reduce(function (acc, key) { var value = source[key]; if (has.call(acc, key)) { acc[key] = merge(acc[key], value, options); } else { acc[key] = value; } return acc; }, mergeTarget); }; var assign = function assignSingleSource(target, source) { return Object.keys(source).reduce(function (acc, key) { acc[key] = source[key]; return acc; }, target); }; var decode = function (str, decoder, charset) { var strWithoutPlus = str.replace(/\+/g, ' '); if (charset === 'iso-8859-1') { // unescape never throws, no try...catch needed: return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); } // utf-8 try { return decodeURIComponent(strWithoutPlus); } catch (e) { return strWithoutPlus; } }; var encode = function encode(str, defaultEncoder, charset) { // This code was originally written by Brian White (mscdex) for the io.js core querystring library. // It has been adapted here for stricter adherence to RFC 3986 if (str.length === 0) { return str; } var string = typeof str === 'string' ? str : String(str); if (charset === 'iso-8859-1') { return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; }); } var out = ''; for (var i = 0; i < string.length; ++i) { var c = string.charCodeAt(i); if ( c === 0x2D // - || c === 0x2E // . || c === 0x5F // _ || c === 0x7E // ~ || (c >= 0x30 && c <= 0x39) // 0-9 || (c >= 0x41 && c <= 0x5A) // a-z || (c >= 0x61 && c <= 0x7A) // A-Z ) { out += string.charAt(i); continue; } if (c < 0x80) { out = out + hexTable[c]; continue; } if (c < 0x800) { out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); continue; } if (c < 0xD800 || c >= 0xE000) { out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); continue; } i += 1; c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; } return out; }; var compact = function compact(value) { var queue = [{ obj: { o: value }, prop: 'o' }]; var refs = []; for (var i = 0; i < queue.length; ++i) { var item = queue[i]; var obj = item.obj[item.prop]; var keys = Object.keys(obj); for (var j = 0; j < keys.length; ++j) { var key = keys[j]; var val = obj[key]; if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { queue.push({ obj: obj, prop: key }); refs.push(val); } } } compactQueue(queue); return value; }; var isRegExp = function isRegExp(obj) { return Object.prototype.toString.call(obj) === '[object RegExp]'; }; var isBuffer = function isBuffer(obj) { if (!obj || typeof obj !== 'object') { return false; } return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); }; var combine = function combine(a, b) { return [].concat(a, b); }; module.exports = { arrayToObject: arrayToObject, assign: assign, combine: combine, compact: compact, decode: decode, encode: encode, isBuffer: isBuffer, isRegExp: isRegExp, merge: merge }; /***/ }), /***/ 1886: /***/ (function(module, exports, __webpack_require__) { "use strict"; var replace = String.prototype.replace; var percentTwenties = /%20/g; module.exports = { 'default': 'RFC3986', formatters: { RFC1738: function (value) { return replace.call(value, percentTwenties, '+'); }, RFC3986: function (value) { return value; } }, RFC1738: 'RFC1738', RFC3986: 'RFC3986' }; /***/ }), /***/ 1895: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(32); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__ = __webpack_require__(33); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__ = __webpack_require__(72); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__ = __webpack_require__(73); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css__ = __webpack_require__(184); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_message__ = __webpack_require__(185); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_message__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_router_dom__ = __webpack_require__(44); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_axios__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__modals_Modals__ = __webpack_require__(173); var _createClass=function(){function defineProperties(target,props){for(var i=0;i0){response.data.group_list.map(function(item,key){newgroup_list.push(item);_this.setState({course_groups:response.data,group_list:newgroup_list,page:newpage});});}if(response.data.ungroup_list===undefined||response.data.ungroup_list===null){}else{newgroup_list.push(response.data.ungroup_list);_this.setState({course_groups:response.data,group_list:newgroup_list,page:newpage});}}}).catch(function(error){console.log(error);});}};_this.onChange=function(e){var group_list=_this.state.group_list;var data=_this.props.data;if(e.target.checked===true){if(data&&data.length===0){var id=[];group_list.forEach(function(item,key){if(item.works_count!=0){id.push(item.id);}});_this.setState({group_ids:id,onChangetype:e.target.checked});}else{var _id=[];group_list.forEach(function(item,key){if(item.works_count!=0){_id.push(item.id);}});_this.setState({group_ids:_id,onChangetype:e.target.checked});}}else{_this.setState({group_ids:[],onChangetype:e.target.checked});}};_this.isSave=function(){var group_ids=_this.state.group_ids;if(group_ids&&group_ids.length===0){_this.props.showNotification("\u8BF7\u5148\u9009\u62E9\u5206\u73ED");return;}// if(group_ids&&group_ids.length < 2){ // this.props.showNotification(`有效作品数少于2个,无法查重`); // return // } var url="/homework_commons/"+_this.props.match.params.homeworkid+"/homework_code_repeat.json";__WEBPACK_IMPORTED_MODULE_7_axios___default.a.post(url,{group_ids:group_ids}).then(function(response){// console.log(this.props) if(response.data.status===0){_this.props.updatas();_this.props.issCancel();// notification.open({ // message:"提示", // description: response.data.message // }); window.location.href="/courses/"+_this.props.match.params.coursesId+"/shixun_homeworks/"+_this.props.match.params.homeworkid+"/student_work?tab=2";}else if(response.data.status===-1){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-2){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-3){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-4){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}}).catch(function(error){console.log(error);});};_this.issCancel=function(){_this.props.issCancel();};_this.state={course_groups:undefined,limit:10,page:1,group_ids:undefined,group_list:undefined};return _this;}_createClass(ShixunWorkModal,[{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var group_list=this.state.group_list;var url="/homework_commons/"+this.props.match.params.homeworkid+"/group_list.json";__WEBPACK_IMPORTED_MODULE_7_axios___default.a.get(url,{params:{limit:10,page:1}}).then(function(response){if(response.data.group_list===undefined){_this2.setState({course_groups:response.data,group_list:undefined});}else{var newgroup_list=[];response.data.group_list.map(function(item,key){newgroup_list.push(item);});if(response.data.ungroup_list===undefined){}else{newgroup_list.push(response.data.ungroup_list);}_this2.setState({course_groups:response.data,group_list:newgroup_list});}}).catch(function(error){console.log(error);});}//勾选实训 },{key:"render",value:function render(){var _state=this.state,course_groups=_state.course_groups,group_ids=_state.group_ids,onChangetype=_state.onChangetype,group_list=_state.group_list;// let {data}=this.props; // console.log(group_list) // console.log(group_list) return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default.a,{keyboard:false,className:"HomeworkModal",title:this.props.modalname,visible:this.props.visible,closable:false,footer:null,destroyOnClose:true},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"task-popup-content"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("style",null,"\n .greybackHead{\n padding:0px 30px;\n }\n .fontlefts{text-align: left;}\n "),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("ul",{className:"clearfix edu-txt-center"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl paddingleft22 fontlefts",style:{width:'260px'}},"\u5206\u73ED\u540D\u79F0"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl edu-txt-left",style:{width:'117px'}},"\u6709\u6548\u4F5C\u54C1\u6570"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'100px'}},"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4")),course_groups===undefined?"":group_list===undefined||JSON.stringify(group_list)==="[]"?__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{id:"forum_list",className:"forum_table"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:" edu-back-white"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(__WEBPACK_IMPORTED_MODULE_8_educoder__["M" /* getImageUrl */])("images/educoder/nodata.png")}),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("p",{className:"edu-nodata-p mb30"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6\uFF01")))):__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("ul",{className:"upload_select_box fl clearfix mt10 mb10",style:{"overflow-y":"auto"},id:"search_not_members_list",onScroll:this.contentViewScroll},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a.Group,{style:{width:'100%'},onChange:this.shixunhomeworkedit,value:group_ids},group_list===undefined||JSON.stringify(group_list)==="[]"?"":group_list&&group_list.length===0?"":group_list.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix edu-txt-center lineh-40 bor-bottom-greyE",key:key},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl task-hide",style:{width:'240px',paddingLeft:'10px'}},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a,{className:"fl task-hide edu-txt-left",name:"shixun_homework[]",value:item===undefined?"":item.id,key:item===undefined?"":item.id},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("label",{style:{"textAlign":"left","color":"#05101A"},className:"task-hide color-grey-name",title:item===undefined?"":item.name},item===undefined?"":item.name))),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'100px'}},item===undefined?"":item.works_count===undefined?item.work_count:item.works_count),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'160px'}},item===undefined?"":item.last_review_time));}))),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a,{checked:onChangetype,onChange:this.onChange,className:"ml10"},onChangetype===true?"清除":"全选")),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix mt30 edu-txt-center mb10"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("a",{className:"task-btn color-white mr30",onClick:this.issCancel},"\u53D6\u6D88"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("a",{className:"task-btn task-btn-orange",onClick:this.isSave},"\u786E\u8BA4")))));}}]);return ShixunWorkModal;}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (ShixunWorkModal);// course_groups.ungroup_list.work_count===0?"": // //
    //
  • // // // //
  • //
  • // {course_groups.ungroup_list.work_count} //
  • //
  • // {course_groups.ungroup_list.last_review_time} //
  • //
    // // : /***/ }), /***/ 1961: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__ = __webpack_require__(169); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__ = __webpack_require__(168); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_date_picker_style_css__ = __webpack_require__(1078); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_date_picker_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_date_picker_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_date_picker__ = __webpack_require__(1079); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_date_picker___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_date_picker__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_select_style_css__ = __webpack_require__(318); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_select_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_select__ = __webpack_require__(315); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_select__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css__ = __webpack_require__(68); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_input__ = __webpack_require__(69); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_input__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_members_css__ = __webpack_require__(330); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_members_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__css_members_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__css_busyWork_css__ = __webpack_require__(1072); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__css_busyWork_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__css_busyWork_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pollStyle_css__ = __webpack_require__(1434); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pollStyle_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__pollStyle_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_moment__ = __webpack_require__(86); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_moment__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_date_picker_locale_zh_CN__ = __webpack_require__(181); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_date_picker_locale_zh_CN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_antd_lib_date_picker_locale_zh_CN__); var _createClass=function(){function defineProperties(target,props){for(var i=0;i range(1,60) };}function disabledDate(current){return current&¤t<__WEBPACK_IMPORTED_MODULE_13_moment___default()().endOf('day').subtract(1,'days');}var PollDetailTabForthRules=function(_Component){_inherits(PollDetailTabForthRules,_Component);function PollDetailTabForthRules(props){_classCallCheck(this,PollDetailTabForthRules);var _this=_possibleConstructorReturn(this,(PollDetailTabForthRules.__proto__||Object.getPrototypeOf(PollDetailTabForthRules)).call(this,props));_initialiseProps.call(_this);var list=[{course_group_id:[],course_group_name:[],publish_time:undefined,end_time:undefined,publish_flag:"",end_flag:"",class_flag:"",course_search:"",poll_status:0,p_timeflag:false,e_timeflag:false}];_this.state={rules:_this.props.rules&&_this.props.rules.length==0?list:_this.props.rules,course_group:_this.props.course_group,selectedCourse:[],flagPageEdit:_this.props.flagPageEdit};return _this;}_createClass(PollDetailTabForthRules,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){if(JSON.stringify(this.props.rules)!=JSON.stringify(prevProps.rules)){this.setState({rules:this.props.rules});this.unitChoose(this.props.rules);}if(this.props.flagPageEdit!=prevProps.flagPageEdit){this.setState({flagPageEdit:this.props.flagPageEdit});}}// 添加发布规则 //删除发布规则 //修改发布规则里面的结束时间 //修改发布规则里面的发布时间 // changeOpen=(e,index)=>{ // let arr=Object.assign({}, this.state.rules[parseInt(index)]); // arr.open= true; // let rules=this.state.rules; // rules[index]=arr; // this.setState({ // rules // }) // } // changeClose=(e,index)=>{ // let arr=Object.assign({}, this.state.rules[parseInt(index)]); // arr.open= false; // let rules=this.state.rules; // rules[index]=arr; // this.setState({ // rules // }) // } // 选择分班 //整合所有已经选择了的course_group_id // 输入搜索分班 //搜索 },{key:"render",value:function render(){var _this2=this;var _state=this.state,rules=_state.rules,course_group=_state.course_group,flagPageEdit=_state.flagPageEdit;var isAdmin=this.props.isAdmin();return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"bor-top-greyE pt20"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("p",{className:"clearfix mb10"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl with40 pr20"},"\xA0"),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl pr20 color-grey-c with25"},"(\u5B66\u751F\u6536\u5230",this.props.moduleName||(this.props.type==="Exercise"?"试卷":"问卷"),"\u7684\u65F6\u95F4)"),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl color-grey-c"},"(",this.props.moduleName=='作业'?'学生“按时”提交作品的时间截点':'学生可以答题的时间截点',")")),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("style",null,"\n .setInfo .ant-select-selection--multiple .ant-select-selection__choice__content {\n max-width:280px;\n }\n "),rules&&rules.length>0&&rules.map(function(rule,r){var courseGroup=rule.course_search!=""?course_group.filter(function(item){return item.course_group_name.indexOf(rule.course_search)!=-1;}):course_group;return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"clearfix mb5",key:r},flagPageEdit===undefined?"":flagPageEdit===true?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("style",null,"\n .yskspickersy\n .ant-input, .ant-input .ant-input-suffix{\n background-color: #fff !important;\n }\n\t\t\t\t\t\t\t\t\t \t"):"",__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"with40 fl pr20 df"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"font-16 pr20 fl mt8"},"\u53D1\u5E03\u89C4\u5219",r+1),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"flex1"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("style",null,".ant-select{\n min-width:200px,\n }\n "),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_select___default.a,{placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",className:rule.class_flag&&rule.class_flag!=""?"noticeTip setInfo":"setInfo",mode:"multiple",filterOption:function filterOption(input,option){return option.props.children.toLowerCase().indexOf(input.toLowerCase())>=0;},value:rule.course_group_id,onChange:function onChange(value,option){return _this2.changeClasses(value,option,r);},disabled:rule.p_timeflag===undefined?__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.publish_time,dataformat)<=__WEBPACK_IMPORTED_MODULE_13_moment___default()()?true:!flagPageEdit:rule.e_timeflag===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag==true?true:!flagPageEdit},courseGroup&&courseGroup.length>0&&courseGroup.map(function(team,t){return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(Option,{value:team.course_group_id,key:t,style:{display:""+(team.course_choosed==0?"":"none")}},team.course_group_name);})),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("p",{className:"color-orange-tip lineh-25 clearfix",style:{height:"25px"}},rule.class_flag&&rule.class_flag!=""?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl color-red"},rule.class_flag):""))),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"fl pr20 with25 yskspickersy"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{placement:"bottom",title:rule.p_timeflag===undefined?__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.publish_time,dataformat)<=__WEBPACK_IMPORTED_MODULE_13_moment___default()()?isAdmin===true?"发布时间已过,不能再修改":"":"":rule.e_timeflag===undefined?rule.publish_time===null?"":!flagPageEdit:rule.p_timeflag==true?isAdmin===true?"发布时间已过,不能再修改":"":""},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_date_picker___default.a,{showToday:false,dropdownClassName:"hideDisable",placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",locale:__WEBPACK_IMPORTED_MODULE_14_antd_lib_date_picker_locale_zh_CN___default.a,className:rule.publish_flag&&rule.publish_flag!=""?"noticeTip winput-240-40":"winput-240-40",value:rule.publish_time&&__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.publish_time,dataformat),onChange:function onChange(e,date){return _this2.changeRulePublishTime(e,date,r);},showTime:{format:'HH:mm'},format:"YYYY-MM-DD HH:mm",disabledTime:disabledDateTime,disabledDate:disabledDate,disabled:rule.p_timeflag===undefined?__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.publish_time,dataformat)<=__WEBPACK_IMPORTED_MODULE_13_moment___default()()?true:!flagPageEdit:rule.e_timeflag===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag==true?true:!flagPageEdit,style:{"height":"42px",width:'100%'}}))),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("p",{className:"color-orange-tip lineh-25 clearfix",style:{height:"25px"}},rule.publish_flag&&rule.publish_flag!=""?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl color-red mt10"},rule.publish_flag):"")),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("div",{className:"fl mr20 yskspickersy"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{placement:"bottom",title:rule.e_timeflag?_this2.props.isAdmin()?"截止时间已过,不能再修改":"":""},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_date_picker___default.a,{showToday:false,dropdownClassName:"hideDisable",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",locale:__WEBPACK_IMPORTED_MODULE_14_antd_lib_date_picker_locale_zh_CN___default.a,className:rule.end_flag&&rule.end_flag!=""?"noticeTip winput-240-40":"winput-240-40",value:rule.end_time&&__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.end_time,dataformat),onChange:function onChange(e,date){return _this2.changeRuleEndTime(e,date,r);},showTime:{format:'HH:mm'},format:"YYYY-MM-DD HH:mm",disabledTime:disabledDateTime,disabledDate:disabledDate,disabled:rule.e_timeflag===undefined?rule.publish_time===null?false:__WEBPACK_IMPORTED_MODULE_13_moment___default()(rule.end_time,dataformat)<=__WEBPACK_IMPORTED_MODULE_13_moment___default()()?true:!flagPageEdit:rule.e_timeflag==true?true:!flagPageEdit,style:{"height":"42px"}}))),__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("p",{className:"color-orange-tip lineh-25 clearfix",style:{height:"25px"}},rule.end_flag&&rule.end_flag!=""?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("span",{className:"fl color-red mt10"},rule.end_flag):"")),flagPageEdit?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("li",{className:"fl pt5"},rule.p_timeflag===undefined?r>0&&rule.publish_time===null?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{title:"\u5220\u9664"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("a",{className:"mr20",onClick:function onClick(){return _this2.removeRules(""+r);}},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("i",{className:"iconfont icon-shanchu color-grey-9 font-18"}))):_this2.props.Commonheadofthetestpaper?_this2.props.Commonheadofthetestpaper.exercise_status===1&&r>0?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{title:"\u5220\u9664"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("a",{className:"mr20",onClick:function onClick(){return _this2.removeRules(""+r);}},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("i",{className:"iconfont icon-shanchu color-grey-9 font-18"}))):"":_this2.props.teacherdatapage?_this2.props.teacherdatapage.homework_status[0]==="未发布"&&r>0?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{title:"\u5220\u9664"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("a",{className:"mr20",onClick:function onClick(){return _this2.removeRules(""+r);}},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("i",{className:"iconfont icon-shanchu color-grey-9 font-18"}))):"":"":r>0&&rule.p_timeflag==false?__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{title:"\u5220\u9664"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("a",{className:"mr20",onClick:function onClick(){return _this2.removeRules(""+r);}},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("i",{className:"iconfont icon-shanchu color-grey-9 font-18"}))):"",__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default.a,{title:"\u65B0\u589E"},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("a",{className:"mt6",onClick:_this2.AddRules},__WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement("i",{className:"iconfont icon-tianjiafangda color-green font-18"}))," ")):"");}));}}]);return PollDetailTabForthRules;}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);var _initialiseProps=function _initialiseProps(){var _this3=this;this.componentDidMount=function(){_this3.unitChoose(_this3.props.rules);};this.AddRules=function(){var rules=_this3.state.rules;var newrules=rules;var list={course_group_id:[],course_group_name:[],publish_time:undefined,end_time:undefined,publish_flag:"",end_flag:"",class_flag:"",course_search:"",poll_status:0,e_timeflag:false,p_timeflag:false};newrules.push(list);_this3.setState({rules:newrules});_this3.props.rulesCheckInfo&&_this3.props.rulesCheckInfo(rules);};this.removeRules=function(index){var rules=_this3.state.rules;var lists=rules;var num=parseInt(index);lists.splice(num,1);_this3.setState({rules:lists});_this3.unitChoose(lists);_this3.props.rulesCheckInfo&&_this3.props.rulesCheckInfo(lists);};this.changeRuleEndTime=function(e,date,index){var arr=Object.assign({},_this3.state.rules[parseInt(index)]);arr.end_time=Object(__WEBPACK_IMPORTED_MODULE_9_educoder__["T" /* handleDateString */])(date);if(date!=""&&date!=undefined&&__WEBPACK_IMPORTED_MODULE_13_moment___default()(date,dataformat)>__WEBPACK_IMPORTED_MODULE_13_moment___default()()&&__WEBPACK_IMPORTED_MODULE_13_moment___default()(date,dataformat)>__WEBPACK_IMPORTED_MODULE_13_moment___default()(arr.publish_time,dataformat)){arr.end_flag="";}var rules=_this3.state.rules;rules[index]=arr;_this3.setState({rules:rules});_this3.props.rulesCheckInfo&&_this3.props.rulesCheckInfo(rules);};this.changeRulePublishTime=function(e,date,index){// debugger var arr=Object.assign({},_this3.state.rules[parseInt(index)]);arr.publish_time=date===""?"":__WEBPACK_IMPORTED_MODULE_13_moment___default()(Object(__WEBPACK_IMPORTED_MODULE_9_educoder__["T" /* handleDateString */])(date)).format("YYYY-MM-DD HH:mm");if(!arr.end_time){if(e!=null){arr.end_time=__WEBPACK_IMPORTED_MODULE_13_moment___default()(__WEBPACK_IMPORTED_MODULE_13_moment___default()(Object(__WEBPACK_IMPORTED_MODULE_9_educoder__["T" /* handleDateString */])(date)).add(1,'months')).format("YYYY-MM-DD HH:mm");}}if(date!=""&&date!=undefined&&__WEBPACK_IMPORTED_MODULE_13_moment___default()(date,dataformat)>__WEBPACK_IMPORTED_MODULE_13_moment___default()()){arr.publish_flag="";}var rules=_this3.state.rules;rules[index]=arr;_this3.setState({rules:rules});_this3.props.rulesCheckInfo&&_this3.props.rulesCheckInfo(rules);};this.changeClasses=function(value,option,index){var arr=Object.assign({},_this3.state.rules[parseInt(index)]);arr.course_group_id=value;arr.class_flag="";var rules=_this3.state.rules;rules[index]=arr;//修改选择分班下拉选项(是否被选中) //let course_group = this.state.course_group; _this3.unitChoose(rules);_this3.setState({rules:rules//course_group:course_group });_this3.props.rulesCheckInfo&&_this3.props.rulesCheckInfo(rules);};this.unitChoose=function(rules){var arr=[];if(rules){rules.forEach(function(ele){var Arraytype=Array.isArray(ele.course_group_id);if(Arraytype===true){ele.course_group_id.forEach(function(e){arr.push(e);});}else{arr.push(ele.course_group_id);}});}var course_group=_this3.state.course_group;course_group.forEach(function(ele){if(arr.indexOf(ele.course_group_id)!=-1){ele.course_choosed=1;}else{ele.course_choosed=0;}});_this3.setState({course_group:course_group});};this.fouceThis=function(e){e.preventDefault();};this.inputSearchCourse=function(e,index){_this3.inputSearch(e,index);};this.ActionSearchCourse=function(e,index){_this3.inputSearch(e,index);};this.inputSearch=function(e,index){var arr=Object.assign({},_this3.state.rules[parseInt(index)]);arr.course_search=e.target.value;var rules=_this3.state.rules;rules[index]=arr;_this3.setState({rules:rules});};this.notUnifiedSettingCheck=function(rules){var flag=void 0,flag1=void 0,flag2=true;var myRules=[];if(rules.length==0){myRules=_this3.state.rules.slice(0);}else{myRules=rules;}for(var i=0;i 0 ? prefix + joined : ''; }; /***/ }), /***/ 2240: /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(1885); var has = Object.prototype.hasOwnProperty; var defaults = { allowDots: false, allowPrototypes: false, arrayLimit: 20, charset: 'utf-8', charsetSentinel: false, comma: false, decoder: utils.decode, delimiter: '&', depth: 5, ignoreQueryPrefix: false, interpretNumericEntities: false, parameterLimit: 1000, parseArrays: true, plainObjects: false, strictNullHandling: false }; var interpretNumericEntities = function (str) { return str.replace(/&#(\d+);/g, function ($0, numberStr) { return String.fromCharCode(parseInt(numberStr, 10)); }); }; // This is what browsers will submit when the ✓ character occurs in an // application/x-www-form-urlencoded body and the encoding of the page containing // the form is iso-8859-1, or when the submitted form has an accept-charset // attribute of iso-8859-1. Presumably also with other charsets that do not contain // the ✓ character, such as us-ascii. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') var parseValues = function parseQueryStringValues(str, options) { var obj = {}; var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; var parts = cleanStr.split(options.delimiter, limit); var skipIndex = -1; // Keep track of where the utf8 sentinel was found var i; var charset = options.charset; if (options.charsetSentinel) { for (i = 0; i < parts.length; ++i) { if (parts[i].indexOf('utf8=') === 0) { if (parts[i] === charsetSentinel) { charset = 'utf-8'; } else if (parts[i] === isoSentinel) { charset = 'iso-8859-1'; } skipIndex = i; i = parts.length; // The eslint settings do not allow break; } } } for (i = 0; i < parts.length; ++i) { if (i === skipIndex) { continue; } var part = parts[i]; var bracketEqualsPos = part.indexOf(']='); var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; var key, val; if (pos === -1) { key = options.decoder(part, defaults.decoder, charset); val = options.strictNullHandling ? null : ''; } else { key = options.decoder(part.slice(0, pos), defaults.decoder, charset); val = options.decoder(part.slice(pos + 1), defaults.decoder, charset); } if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } if (val && options.comma && val.indexOf(',') > -1) { val = val.split(','); } if (has.call(obj, key)) { obj[key] = utils.combine(obj[key], val); } else { obj[key] = val; } } return obj; }; var parseObject = function (chain, val, options) { var leaf = val; for (var i = chain.length - 1; i >= 0; --i) { var obj; var root = chain[i]; if (root === '[]' && options.parseArrays) { obj = [].concat(leaf); } else { obj = options.plainObjects ? Object.create(null) : {}; var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; var index = parseInt(cleanRoot, 10); if (!options.parseArrays && cleanRoot === '') { obj = { 0: leaf }; } else if ( !isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit) ) { obj = []; obj[index] = leaf; } else { obj[cleanRoot] = leaf; } } leaf = obj; } return leaf; }; var parseKeys = function parseQueryStringKeys(givenKey, val, options) { if (!givenKey) { return; } // Transform dot notation to bracket notation var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; // The regex chunks var brackets = /(\[[^[\]]*])/; var child = /(\[[^[\]]*])/g; // Get the parent var segment = brackets.exec(key); var parent = segment ? key.slice(0, segment.index) : key; // Stash the parent if it exists var keys = []; if (parent) { // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties if (!options.plainObjects && has.call(Object.prototype, parent)) { if (!options.allowPrototypes) { return; } } keys.push(parent); } // Loop through children appending to the array until we hit depth var i = 0; while ((segment = child.exec(key)) !== null && i < options.depth) { i += 1; if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { if (!options.allowPrototypes) { return; } } keys.push(segment[1]); } // If there's a remainder, just add whatever is left if (segment) { keys.push('[' + key.slice(segment.index) + ']'); } return parseObject(keys, val, options); }; var normalizeParseOptions = function normalizeParseOptions(opts) { if (!opts) { return defaults; } if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { throw new TypeError('Decoder has to be a function.'); } if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); } var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; return { allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, charset: charset, charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth, ignoreQueryPrefix: opts.ignoreQueryPrefix === true, interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, parseArrays: opts.parseArrays !== false, plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling }; }; module.exports = function (str, opts) { var options = normalizeParseOptions(opts); if (str === '' || str === null || typeof str === 'undefined') { return options.plainObjects ? Object.create(null) : {}; } var tempObj = typeof str === 'string' ? parseValues(str, options) : str; var obj = options.plainObjects ? Object.create(null) : {}; // Iterate over the keys and setup the new object var keys = Object.keys(tempObj); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; var newObj = parseKeys(key, tempObj[key], options); obj = utils.merge(obj, newObj, options); } return utils.compact(obj); }; /***/ }), /***/ 2416: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__ = __webpack_require__(903); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__ = __webpack_require__(904); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_immutability_helper__ = __webpack_require__(1226); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_immutability_helper___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_immutability_helper__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_axios__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_axios__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__forums_MemoDetailMDEditor__ = __webpack_require__(1765); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__forums_Post_css__ = __webpack_require__(1590); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__forums_Post_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__forums_Post_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__forums_RightSection_css__ = __webpack_require__(1768); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__forums_RightSection_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__forums_RightSection_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__page_layers_ImageLayerOfCommentHOC__ = __webpack_require__(1788); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__comment_Comments__ = __webpack_require__(1598); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__common_courseMessage_css__ = __webpack_require__(1658); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__common_courseMessage_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__common_courseMessage_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__common_CommentsHelper__ = __webpack_require__(1790); var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:[];var isAdmin=_this.props.isAdmin();var isSuperAdmin=_this.props.isSuperAdmin();return{admin:isAdmin,// isSuperAdmin:isSuperAdmin,permission:true,// children:children,hidden:reply.hidden,id:reply.id,image_url:reply.author.image_url,reward:null,// time:reply.time,// moment(reply.created_on).fromNow(), user_id:reply.author.id,user_login:reply.author.login,user_praise:reply.user_praise,username:reply.author.name,content:reply.content,praise_count:reply.praise_count,child_message_count:reply.child_message_count};};_this.deleteComment=function(parrentComment,childCommentId){Object(__WEBPACK_IMPORTED_MODULE_11__common_CommentsHelper__["i" /* handleDeleteComment */])(_this,parrentComment,childCommentId,'journals_for_message');};_this.commentPraise=function(discussId){Object(__WEBPACK_IMPORTED_MODULE_11__common_CommentsHelper__["f" /* handleCommentPraise */])(_this,discussId,'journals_for_message');};_this.hiddenComment=function(item,childCommentId){Object(__WEBPACK_IMPORTED_MODULE_11__common_CommentsHelper__["j" /* handleHiddenComment */])(_this,item,childCommentId,'journals_for_message');};_this.showCommentInput=function(){_this.refs.editor.showEditor();};_this.initReply=function(parent){if(!parent.isAllChildrenLoaded){_this.loadMoreChildComments(parent);}};_this.state={pageCount:1};return _this;}_createClass(CommonReply,[{key:"componentDidMount",value:function componentDidMount(){this.fetchReplies();}},{key:"_getUser",value:function _getUser(){var current_user=this.props.current_user;current_user.user_url="/users/"+current_user.login;return current_user;}// 公共接口 --- 删除回复 // 公共接口 --- 回复点赞 // 公共接口 --- 隐藏回复 },{key:"render",value:function render(){var _state=this.state,total_count=_state.total_count,comments=_state.comments,pageCount=_state.pageCount;var _props=this.props,current_user=_props.current_user,memo=_props.memo;return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{style:{background:'rgb(255, 255, 255)',marginTop:'20px'},className:"course-message"},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("style",null,"\n .course-message .commentInput {\n padding-bottom: 56px !important;\n }\n .course-message .commentInput.mockInputWrapper {\n padding-bottom: 20px !important;\n } \n .course-message .memoReplies {\n /* border-top: 1px solid #EDEDED; */\n padding-bottom: 30px;\n }\n "),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__forums_MemoDetailMDEditor__["a" /* default */],{ref:"editor",memo:memo,usingMockInput:true,placeholder:"\u8BF4\u70B9\u4EC0\u4E48",height:160,showError:true,imageExpand:true,replyComment:this.replyComment,commentsLength:comments?comments.length:0}),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:"padding40 memoReplies commentsDelegateParent",style:{display:comments&&!!comments.length?'block':'none'}},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:"replies_count"},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{className:"labal"},"\u5168\u90E8\u56DE\u590D"),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{className:"count"},total_count)),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__comment_Comments__["a" /* default */],{comments:comments,user:current_user,replyComment:this.replyComment,deleteComment:this.deleteComment,commentPraise:this.commentPraise,rewardCode:this.rewardCode,hiddenComment:this.hiddenComment,usingAntdModal:true,isChildCommentPagination:true,loadMoreChildComments:this.loadMoreChildComments,initReply:this.initReply,showRewardButton:false,onlySuperAdminCouldHide:true})),total_count>REPLY_PAGE_COUNT&&__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:"memoMore"},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default.a,{showQuickJumper:true,onChange:this.onPaginationChange,current:pageCount,total:total_count,pageSize:10}),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:"writeCommentBtn",onClick:this.showCommentInput},"\u5199\u8BC4\u8BBA")));}}]);return CommonReply;}(__WEBPACK_IMPORTED_MODULE_2_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__page_layers_ImageLayerOfCommentHOC__["a" /* ImageLayerOfCommentHOC */])()(CommonReply)); /***/ }), /***/ 2506: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a */}{/* {this.props.isAdmin() ?*/}{/*
  • */}{/* 导出*/}{/* */}{/*
  • : ""}*/}{/* {this.props.isAdmin() ? jobsettingsdata && jobsettingsdata.data.end_immediately === true ?*/}{/* 立即截止*/}{/* :""*/}{/* : ""}*/}{/* {this.props.isAdmin() ? jobsettingsdata && jobsettingsdata.data.publish_immediately === true ?*/}{/* 立即发布*/}{/* : ""*/}{/* : ""}*/}{/* {this.props.isAdmin() ?*/}{/* jobsettingsdata && jobsettingsdata.data.code_review === true ?*/}{/* 代码查重*/}{/* : "" : ""}*/}{/* {*/}{/* jobsettingsdata&& jobsettingsdata.data === undefined ? ""*/}{/* : jobsettingsdata&& jobsettingsdata.data.commit_des === null || jobsettingsdata&& jobsettingsdata.data.commit_des === undefined ? "" :*/}{/* { jobsettingsdata&& jobsettingsdata.data.commit_des}*/}{/* }*/}{/* { jobsettingsdata&&jobsettingsdata.data === undefined ? "" : }*/}{/* */}{/**/} /***/ }), /***/ 3259: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__ = __webpack_require__(903); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__ = __webpack_require__(904); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_table_style_css__ = __webpack_require__(1219); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_table_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_table_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_table__ = __webpack_require__(1220); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_table___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_table__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_spin_style_css__ = __webpack_require__(72); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_spin_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_spin__ = __webpack_require__(73); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_spin__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_icon_style_css__ = __webpack_require__(176); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_icon_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_icon__ = __webpack_require__(26); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_icon__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_tooltip_style_css__ = __webpack_require__(169); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_tooltip_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip__ = __webpack_require__(168); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_notification_style_css__ = __webpack_require__(45); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_notification_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_antd_lib_notification_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_notification__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_notification___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_antd_lib_notification__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css__ = __webpack_require__(318); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_select_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_select__ = __webpack_require__(315); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_antd_lib_select__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_checkbox_style_css__ = __webpack_require__(317); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_antd_lib_checkbox_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_checkbox__ = __webpack_require__(314); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_antd_lib_checkbox__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_antd_lib_radio_style_css__ = __webpack_require__(177); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_antd_lib_radio_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_antd_lib_radio__ = __webpack_require__(175); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_17_antd_lib_radio__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18_antd_lib_input_style_css__ = __webpack_require__(68); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18_antd_lib_input_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_antd_lib_input__ = __webpack_require__(69); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19_antd_lib_input__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__coursesPublic_CoursesListType__ = __webpack_require__(1077); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__style_css__ = __webpack_require__(1544); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_23__style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24_moment_locale_zh_cn__ = __webpack_require__(1681); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24_moment_locale_zh_cn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_24_moment_locale_zh_cn__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25_axios__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_25_axios__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26_moment__ = __webpack_require__(86); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_26_moment__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__css_members_css__ = __webpack_require__(330); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__css_members_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_27__css_members_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__css_busyWork_css__ = __webpack_require__(1072); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__css_busyWork_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_28__css_busyWork_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__poll_pollStyle_css__ = __webpack_require__(1434); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__poll_pollStyle_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_29__poll_pollStyle_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__Challenges_css__ = __webpack_require__(2506); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__Challenges_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_30__Challenges_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__TraineetraininginformationModal__ = __webpack_require__(3260); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__modals_DownloadMessageysl__ = __webpack_require__(1426); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__coursesPublic_Startshixuntask__ = __webpack_require__(1895); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__coursesPublic_ModulationModal__ = __webpack_require__(1791); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__coursesPublic_HomeworkModal__ = __webpack_require__(1200); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__coursesPublic_OneSelfOrderModal__ = __webpack_require__(1431); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__Shixunworkdetails_ShixunWorkModal__ = __webpack_require__(1903); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__modules_courses_coursesPublic_NoneData__ = __webpack_require__(328); var _createClass=function(){function defineProperties(target,props){for(var i=0;i ( // // {record.updatetime === undefined ? "--" : record.updatetime === "" ? "--" : record.updatetime} // // ), // }, {title:'最新完成关卡',dataIndex:'curcomlevel',key:'curcomlevel',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.Curcomlevel+"/"+_this.state.challenges_count));}},{title:'截止前完成关卡',dataIndex:'completion',key:'completion',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.completion+"/"+_this.state.challenges_count));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u622A\u6B62\u524D\u5B66\u5458\u5B8C\u6210\u7684\u5173\u5361\u624D\u6709\u6210\u7EE9',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'final_score',key:'final_score',align:'center',className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.final_score)<=60?{color:'#747A7F',textAlign:"center",width:'99px'}:parseInt(record.final_score)<90?{color:'#FF6800',textAlign:"center",width:'99px'}:parseInt(record.final_score)>=90?{color:'#DD1717',textAlign:"center",width:'99px'}:{color:'#747A7F',textAlign:"center",width:'99px'}},record.final_score));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:allow_lates===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8865\u4EA4\u7ED3\u675F\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u4F5C\u4E1A\u622A\u6B62\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'efficiencyscore',key:'efficiencyscore',align:'center',className:'font-14',width:'80px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'80px'}},record.efficiencyscore&&record.efficiencyscore==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A",width:'80px'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.efficiencyscore)<=60?{color:'#747A7F',textAlign:"center",width:'80px'}:parseInt(record.efficiencyscore)<90?{color:'#FF6800',textAlign:"center",width:'80px'}:parseInt(record.efficiencyscore)>=90?{color:'#DD1717',textAlign:"center",width:'80px'}:{color:'#747A7F',textAlign:"center",width:'80px'}},record.efficiencyscore));}},{title:'当前成绩',dataIndex:'work_score',key:'work_score',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'99px'}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)>=90?{color:'#DD1717',textAlign:"center",width:'99px'}:parseInt(record.work_score)<=60?{color:'#FF6800',textAlign:"center",width:'99px'}:{color:'#747A7F',textAlign:"center",width:'99px'}},record.work_score));}},{title:'操作',dataIndex:'operating',key:'operating',align:"center",className:'font-14',width:'40px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'40px'}},record.submitstate==="未开启"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center"},className:'color-blue',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformation(record);}},record.operating));}}],orders:"update_time",columnsstu2:[{title:'序号',dataIndex:'number',key:'number',align:"center",className:'font-14',width:'100px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'100px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'100px'}},' \u6211'));}},{title:'姓名',dataIndex:'name',key:'name',align:"center",className:'font-14 maxnamewidth110',width:'100px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth110'},record.name===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'100px'}},'--'):record.name===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'100px'}},'--'):record.name===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'100px'}},'--'):record.name==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'100px'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:'maxnamewidth110',title:record.name,style:{color:'#07111B',textAlign:"center",width:'100px'}},record.name));}},{title:'学号',dataIndex:'stduynumber',key:'stduynumber',align:"center",className:'font-14 maxnamewidth145',width:'145px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth145',style:{width:'145px'}},record.stduynumber===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center",width:'145px'}},'--'):record.stduynumber===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center",width:'145px'}},'--'):record.stduynumber===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center",width:'145px'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{title:record.stduynumber,className:'maxnamewidth145',style:{color:'#000',textAlign:"center",width:'145px'}},record.stduynumber));}},{title:'分班',key:'classroom',dataIndex:'classroom',align:"center",className:'font-14 maxnamewidth145',width:'145px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'font-14 maxnamewidth145',style:{width:'145px'}},record.classroom===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:' font-14 maxnamewidth145',style:{color:'#9A9A9A',textAlign:"center",width:'145px'}},'--'):record.classroom===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:' font-14 maxnamewidth145',style:{color:'#9A9A9A',textAlign:"center",width:'145px'}},'--'):record.classroom===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:' font-14 maxnamewidth145',style:{color:'#9A9A9A',textAlign:"center",width:'145px'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:' font-14 maxnamewidth145',title:record.classroom,style:{color:'#9A9A9A',textAlign:"center",width:'145px'}},record.classroom));}},{title:'作品状态',dataIndex:'submitstate',key:'submitstate',align:"center",className:'font-14',width:'98px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'98px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:record.submitstate==="迟交通关"?{color:'#DD1717',textAlign:"center",width:'98px'}:record.submitstate==="按时通关"?{color:'#29BD8B',textAlign:"center",width:'98px'}:record.submitstate==="未通关"?{color:'#F69707',textAlign:"center",width:'98px'}:{color:'#747A7F',textAlign:"center",width:'98px'}},record.submitstate===undefined?"--":record.submitstate===""?"--":record.submitstate===null?"--":record.submitstate));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5B9E\u8BAD\u603B\u8017\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u5458\u79BB\u5F00\u5B9E\u8BAD\u5B66\u4E60\u754C\u9762\u505C\u6B62\u8BA1\u65F6\uFF1B',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u8BC4\u6D4B\u9996\u6B21\u901A\u8FC7\u4E4B\u540E\uFF0C\u505C\u6B62\u8BA1\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'cost_time',key:'cost_time',align:'center',className:'font-14',width:'145px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#747A7F',textAlign:"center",width:'145px'}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time==="--"?"--":__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#747A7F',textAlign:"center",width:'145px'}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time));}},// { // title: '更新时间', // dataIndex: 'updatetime', // key: 'updatetime', // align: "center", // className:'font-14', // render: (text, record) => ( // // {record.updatetime === undefined ? "--" : record.updatetime === "" ? "--" : record.updatetime} // // ), // }, {title:'最新完成关卡',dataIndex:'curcomlevel',key:'curcomlevel',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.Curcomlevel+"/"+_this.state.challenges_count));}},{title:'截止前完成关卡',dataIndex:'completion',key:'completion',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.completion+"/"+_this.state.challenges_count));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u622A\u6B62\u524D\u5B66\u5458\u5B8C\u6210\u7684\u5173\u5361\u624D\u6709\u6210\u7EE9',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'final_score',key:'final_score',align:'center',className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.final_score)<=60?{color:'#747A7F',textAlign:"center",width:'99px'}:parseInt(record.final_score)<90?{color:'#FF6800',textAlign:"center",width:'99px'}:parseInt(record.final_score)>=90?{color:'#DD1717',textAlign:"center",width:'99px'}:{color:'#747A7F',textAlign:"center",width:'99px'}},record.final_score));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:allow_lates===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8865\u4EA4\u7ED3\u675F\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u4F5C\u4E1A\u622A\u6B62\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'efficiencyscore',key:'efficiencyscore',align:'center',className:'font-14',width:'80px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'80px'}},record.efficiencyscore&&record.efficiencyscore==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A",width:'80px'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.efficiencyscore)<=60?{color:'#747A7F',textAlign:"center",width:'80px'}:parseInt(record.efficiencyscore)<90?{color:'#FF6800',textAlign:"center",width:'80px'}:parseInt(record.efficiencyscore)>=90?{color:'#DD1717',textAlign:"center",width:'80px'}:{color:'#747A7F',textAlign:"center",width:'80px'}},record.efficiencyscore));}},{title:'当前成绩',dataIndex:'work_score',key:'work_score',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center",width:'99px'}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)>=90?{color:'#DD1717',textAlign:"center",width:'99px'}:parseInt(record.work_score)<=60?{color:'#FF6800',textAlign:"center",width:'99px'}:{color:'#747A7F',textAlign:"center",width:'99px'}},record.work_score));}},{title:'操作',dataIndex:'operating',key:'operating',align:"center",className:'font-14',width:'40px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'40px'}},record.submitstate==="未开启"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A'}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center"},className:'color-blue',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformation(record);}},record.operating));}}],b_order:"desc",myorders:"desc",allow_late:false,checkedValuesine:undefined,checkedValuesineinfo:[],work_efficiency:false,resultint:0,teacherlist:undefined,searchtext:"",course_groupysls:undefined,course_groupyslstwo:[],visible:false,userid:0,course_group:null,publish_immediately:undefined,end_immediately:undefined,mystyle:{"display":"block",color:'#07111B',textAlign:"center"},mystyles:{"display":"none",color:'#07111B',textAlign:"center"},mystyle1:{"display":"block"},mystyles1:{"display":"none"},unlimited:0,unlimitedtwo:1,code_review:false,boolgalist:true,challenges_count:0,experience:0,columns:[{title:'序号',dataIndex:'number',key:'number',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center"}},record.number);}},{title:'姓名',dataIndex:'name',key:'name',align:'center',className:'font-14 maxnamewidth100',width:'100px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:'maxnamewidth100',title:record.name,style:{color:'#07111B',textAlign:"center"}},record.name);}},{title:'学号',dataIndex:'stduynumber',key:'stduynumber',align:"center",className:'font-14 maxnamewidth110',sorter:true,sortDirections:__WEBPACK_IMPORTED_MODULE_22_educoder__["_2" /* sortDirections */],render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth110'},record.stduynumber===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center"}},'--'):record.stduynumber===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center"}},'--'):record.stduynumber===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',textAlign:"center"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{title:record.stduynumber,className:'maxnamewidth110',style:{color:'#000',textAlign:"center"}},record.stduynumber));}},{title:'分班',key:'classroom',dataIndex:'classroom',align:'center',className:'font-14 maxnamewidth120',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth120'},record.classroom===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable',style:{color:'#07111B',textAlign:"center"}},' --'):record.classroom===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable',style:{color:'#07111B',textAlign:"center"}},'--'):record.classroom===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable',style:{color:'#07111B',textAlign:"center"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:'ysltable maxnamewidth120',title:record.classroom,style:{color:'#07111B',textAlign:"center"}},record.classroom));}},{title:'作品状态',dataIndex:'submitstate',key:'submitstate',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:record.submitstate==="迟交通关"?{color:'#DD1717',textAlign:"center"}:record.submitstate==="按时通关"?{color:'#29BD8B',textAlign:"center"}:record.submitstate==="未通关"?{color:'#F69707',textAlign:"center",width:'98px'}:{color:'#747A7F',textAlign:"center"}},record.submitstate);}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5B9E\u8BAD\u603B\u8017\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u5458\u79BB\u5F00\u5B9E\u8BAD\u5B66\u4E60\u754C\u9762\u505C\u6B62\u8BA1\u65F6\uFF1B',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u8BC4\u6D4B\u9996\u6B21\u901A\u8FC7\u4E4B\u540E\uFF0C\u505C\u6B62\u8BA1\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'cost_time',key:'cost_time',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#747A7F',textAlign:"center"}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time==="--"?"--":__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{color:'#747A7F',textAlign:"center"}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time))// {record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } // ;}},// { // title: '更新时间', // dataIndex: 'updatetime', // key: 'updatetime', // align: 'center', // className:'font-14', // render: (text, record) => ( // {record.updatetime} // ), // }, {title:'最新完成关卡',dataIndex:'curcomlevel',key:'curcomlevel',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.Curcomlevel+"/"+_this.state.challenges_count));}},{title:'截止前完成关卡',dataIndex:'completion',key:'completion',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',"text-align":"center"}},record.completion+"/"+_this.state.challenges_count,' '));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u622A\u6B62\u524D\u5B66\u5458\u5B8C\u6210\u7684\u5173\u5361\u624D\u6709\u6210\u7EE9',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'final_score',key:'final_score',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.final_score)<=60?{color:'#747A7F',"text-align":"center"}:parseInt(record.final_score)<90?{color:'#FF6800',"text-align":"center"}:parseInt(record.final_score)>=90?{color:'#DD1717',"text-align":"center"}:{color:'#747A7F',"text-align":"center"}},record.final_score));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:allow_lates===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8865\u4EA4\u7ED3\u675F\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u4F5C\u4E1A\u622A\u6B62\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'efficiencyscore',key:'efficiencyscore',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,record.efficiencyscore&&record.efficiencyscore==="--"?_this.state.allow_late&&_this.state.allow_late===false?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):_this.state.allow_late&&_this.state.allow_late===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.efficiencyscore)<=60?{color:'#747A7F',"text-align":"center"}:parseInt(record.efficiencyscore)<90?{color:'#FF6800',"text-align":"center"}:parseInt(record.efficiencyscore)>=90?{color:'#DD1717',"text-align":"center"}:{color:'#747A7F',"text-align":"center"}},record.efficiencyscore));}},{title:'当前成绩',dataIndex:'work_score',key:'work_score',align:'center',className:'font-14',sorter:true,sortDirections:__WEBPACK_IMPORTED_MODULE_22_educoder__["_2" /* sortDirections */],defaultSortOrder:'descend',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,record.ultimate_score===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'bottom',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A',record.work_score,'\u5206')))},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',"text-align":"center"}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)<=60?{color:'#747A7F',"text-align":"center"}:parseInt(record.work_score)<90?{color:'#FF6800',"text-align":"center"}:parseInt(record.work_score)>=90?{color:'#DD1717',"text-align":"center"}:{color:'#747A7F',"text-align":"center"}},record.work_score)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'bottom',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.final_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206\uFF1A',record.final_score,'\u5206')),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.efficiencyscore==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u8BC4\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u8BC4\u5206\uFF1A',record.efficiencyscore,'\u5206')),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.late_penalty==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u8FDF\u4EA4\u6263\u5206\uFF1A',record.late_penalty,'\u5206')),answer_open_evaluation===true?"":__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,'\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A',record.view_answer_count,'\u5173'),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u6210\u7EE9\uFF1A',record.work_score,'\u5206')))},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',"text-align":"center"}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)<=60?{color:'#747A7F',"text-align":"center"}:parseInt(record.work_score)<90?{color:'#FF6800',"text-align":"center"}:parseInt(record.work_score)>=90?{color:'#DD1717',"text-align":"center"}:{color:'#747A7F',"text-align":"center"}},record.work_score)));}},{title:'操作',dataIndex:'operating',key:'operating',display:'block',align:'center',className:'font-14',width:'40px',render:function render(text,record){return record.submitstate==="未开启"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center",width:'40px'},className:'color-blue',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformationt(record);}},'\u8BC4\u9605'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center"},className:'color-blue maxnamewidth120',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformationt(record);}},'\u8BC4\u9605'));}}],columnss:[{title:'序号',dataIndex:'number',key:'number',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',"text-align":"center"}},record.number);}},{title:'姓名',dataIndex:'name',key:'name',align:'center',className:'font-14 maxnamewidth100',width:'100px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:'maxnamewidth100',title:record.name,style:{color:'#07111B',"text-align":"center"}},record.name);}},{title:'学号',dataIndex:'stduynumber',key:'stduynumber',align:"center",className:'font-14 maxnamewidth110',sorter:true,sortDirections:__WEBPACK_IMPORTED_MODULE_22_educoder__["_2" /* sortDirections */],render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth110'},record.stduynumber===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',"text-align":"center"}},'--'):record.stduynumber===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',"text-align":"center"}},'--'):record.stduynumber===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#000',"text-align":"center"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{title:record.stduynumber,className:'maxnamewidth110',style:{color:'#000',textAlign:"center"}},record.stduynumber));}},{title:'分班',key:'classroom',dataIndex:'classroom',align:'center',className:'font-14 maxnamewidth120',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'maxnamewidth120'},record.classroom===undefined?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable',style:{color:'#07111B',textAlign:"center"}},' --'):record.classroom===""?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable',style:{color:'#07111B',textAlign:"center"}},'--'):record.classroom===null?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{className:'ysltable ',style:{color:'#07111B',textAlign:"center"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{className:'ysltable maxnamewidth120',title:record.classroom,style:{color:'#07111B',textAlign:"center"}},record.classroom));}},{title:'作品状态',dataIndex:'submitstate',key:'submitstate',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:record.submitstate==="迟交通关"?{color:'#DD1717',textAlign:"center"}:record.submitstate==="按时通关"?{color:'#29BD8B',textAlign:"center"}:record.submitstate==="未通关"?{color:'#F69707',textAlign:"center",width:'98px'}:{color:'#747A7F',textAlign:"center"}},record.submitstate);}},// { // title: '更新时间', // dataIndex: 'updatetime', // key: 'updatetime', // align: 'center', // className:'font-14', // render: (text, record) => ( // {record.updatetime} // ), // }, {title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5B9E\u8BAD\u603B\u8017\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u5458\u79BB\u5F00\u5B9E\u8BAD\u5B66\u4E60\u754C\u9762\u505C\u6B62\u8BA1\u65F6\uFF1B',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u8BC4\u6D4B\u9996\u6B21\u901A\u8FC7\u4E4B\u540E\uFF0C\u505C\u6B62\u8BA1\u65F6',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'cost_time',key:'cost_time',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#747A7F',textAlign:"center"}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time==="--"?"--":__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{color:'#747A7F',textAlign:"center"}},record.cost_time===null?"--":record.cost_time===undefined?"--":record.cost_time));}},{title:'最新完成关卡',dataIndex:'curcomlevel',key:'curcomlevel',align:"center",className:'font-14',width:'99px',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{width:'99px'}},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center",width:'99px'}},record.Curcomlevel+"/"+_this.state.challenges_count));}},{title:'截止前完成关卡',dataIndex:'completion',key:'completion',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#07111B',textAlign:"center"}},record.completion+"/"+_this.state.challenges_count,' '));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u622A\u6B62\u524D\u5B66\u5458\u5B8C\u6210\u7684\u5173\u5361\u624D\u6709\u6210\u7EE9',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'final_score',key:'final_score',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.final_score)<=60?{color:'#747A7F',textAlign:"center"}:parseInt(record.final_score)<90?{color:'#FF6800',textAlign:"center"}:parseInt(record.final_score)>=90?{color:'#DD1717',textAlign:"center"}:{color:'#747A7F',textAlign:"center"}},record.final_score));}},{title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u5206',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'top',title:allow_lates===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u8865\u4EA4\u7ED3\u675F\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('pre',null,'\u4F5C\u4E1A\u622A\u6B62\u65F6\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B66\u751F\u5728\u8BFE\u5802\u6210\u5458\u4E2D\u7684',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u6548\u7387\u8868\u73B0\u81EA\u52A8\u8BC4\u5206\u3002\u8BA1\u7B97\u89C4\u5219:',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u5DE5\u4F5C\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5DE5\u4F5C\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null),'\u5DE5\u4F5C\u6548\u7387 * \u5206\u503C',__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('br',null))},__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["M" /* getImageUrl */])("images/educoder/problem.png"),className:"ml2"}))),dataIndex:'efficiencyscore',key:'efficiencyscore',align:'center',className:'font-14',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,record.efficiencyscore&&record.efficiencyscore==="--"?_this.state.allow_late&&_this.state.allow_late===false?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):_this.state.allow_late&&_this.state.allow_late===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:"#9A9A9A"}},'--'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.efficiencyscore)<=60?{color:'#747A7F',textAlign:"center"}:parseInt(record.efficiencyscore)<90?{color:'#FF6800',textAlign:"center"}:parseInt(record.efficiencyscore)>=90?{color:'#DD1717',textAlign:"center"}:{color:'#747A7F',textAlign:"center"}},record.efficiencyscore));}},{title:'当前成绩',dataIndex:'work_score',key:'work_score',align:'center',className:'font-14',sorter:true,sortDirections:__WEBPACK_IMPORTED_MODULE_22_educoder__["_2" /* sortDirections */],defaultSortOrder:'descend',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,record.ultimate_score===true?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'bottom',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A',record.work_score,'\u5206')))},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center"}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)<=60?{color:'#747A7F',textAlign:"center"}:parseInt(record.work_score)<90?{color:'#FF6800',textAlign:"center"}:parseInt(record.work_score)>=90?{color:'#DD1717',textAlign:"center"}:{color:'#747A7F',textAlign:"center"}},record.work_score)):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_tooltip___default.a,{placement:'bottom',title:__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.final_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u5173\u5361\u5F97\u5206\uFF1A',record.final_score,'\u5206')),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.efficiencyscore==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u8BC4\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6548\u7387\u8BC4\u5206\uFF1A',record.efficiencyscore,'\u5206')),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.late_penalty==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u8FDF\u4EA4\u6263\u5206\uFF1A',record.late_penalty,'\u5206')),answer_open_evaluation===true?"":__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,'\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A',record.view_answer_count,'\u5173'),__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('div',null,record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,'\u6700\u7EC8\u6210\u7EE9\uFF1A',record.work_score,'\u5206')))},record.work_score&&record.work_score==="--"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:{color:'#9A9A9A',textAlign:"center"}},record.work_score):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',{style:parseInt(record.work_score)<=60?{color:'#747A7F',textAlign:"center"}:parseInt(record.work_score)<90?{color:'#FF6800',textAlign:"center"}:parseInt(record.work_score)>=90?{color:'#DD1717',textAlign:"center"}:{color:'#747A7F',textAlign:"center"}},record.work_score)));}},{title:'操作',dataIndex:'operating',key:'operating',display:'block',align:'center',className:'font-14',width:'40px',render:function render(text,record){return record.submitstate==="未开启"?__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center",width:'40px'},className:'color-blue',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformationt(record);}},'\u8BC4\u9605'):__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('span',null,__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement('a',{style:{textAlign:"center"},className:'color-blue',onMouseDown:function onMouseDown(e){return _this.Viewstudenttraininginformationtysl2(e,record);},onClick:function onClick(){return _this.Viewstudenttraininginformationt(record);}},'\u8BC4\u9605'));}}],yslpros:false,datajs:[],homework_status:[]};return _this;}_createClass(Listofworksstudentone,[{key:'componentDidCatch',value:function componentDidCatch(error,info){}// console.log("-----------------------------905错误信息"); // console.log(error); // console.log(info); // componentWillReceiveProps(nextProps) { // console.log("+++++++++916"); // console.log(nextProps); // console.log(this.props) // // console.log(this.props.isAdmin()); // if (nextProps.code_review != this.props.code_review) { // if (nextProps.code_review !== undefined) { // console.log("diaoyonglwangluo1"); // if(this.props.isAdmin() === true){ // this.tearchar(); // }else{ // this.student(); // } // } // } // // } },{key:'componentDidMount',value:function componentDidMount(){// console.log("componentDidMount "); // console.log("调用子组件 "); // console.log(this.props); // console.log(this.props.isAdmin()) this.student();}//实训作业tbale 列表塞选数据 /////////老师操作 // tearchar=()=>{ // var homeworkid = this.props.match.params.homeworkid; // // console.log(homeworkid) // // this.Gettitleinformation(homeworkid); // this.Getalistofworkst(homeworkid); // let query = this.props.location.pathname; // const type = query.split('/'); // this.setState({ // shixuntypes: type[3] // }) // this.props.triggerRef(this) // } },{key:'componentWillUnmount',//卸载组件取消倒计时 value:function componentWillUnmount(){}// clearInterval(this.timer); // 获取作品列表 // 获取作品列表 // 设置数据 // 查看学员实训信息 // 关闭调分 //排序 //计算成绩 //开始排序操作 // 设置数据 老师列表数据处理 //作品状态 //作品状态2 //搜索学生 文字输入 //搜索学生按钮输入 // 输入关键字后按回车,自动提交 // 调分 // 查看学员实训信息 // 关闭调分 // 关闭查看 // 调分 //确定 //立即发布 //立即截止 // 立即发布 //立即截止确定按钮 // // setComputeTime=()=>{ // this.setState({ // computeTimetype:false // }) // let homeworkid = this.props.match.params.homeworkid; // let url = "/homework_commons/"+homeworkid+"/update_score.json"; // // axios.get(url).then((response) => { // if(response){ // this.props.showNotification(response.data.message); // this.setState({ // loadingstate: true // }) // this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit); // } // }).catch((error) => { // console.log(error) // }); // // } },{key:'confirmysl',value:function confirmysl(url){var _this2=this;__WEBPACK_IMPORTED_MODULE_25_axios___default.a.get(url+'&export=true').then(function(response){if(response===undefined){return;}if(response.data.status&&response.data.status===-1){}else if(response.data.status&&response.data.status===-2){if(response.data.message==="100"){// 已超出文件导出的上限数量(100 ),建议: _this2.setState({DownloadType:true,DownloadMessageval:100});}else{//因附件资料超过500M _this2.setState({DownloadType:true,DownloadMessageval:500});}}else{// this.props.showNotification(`正在下载中`); // window.open("/api"+url, '_blank'); _this2.props.slowDownload(url);}}).catch(function(error){console.log(error);});}},{key:'render',value:function render(){var _this3=this;var _state=this.state,columns=_state.columns,columnss=_state.columnss,course_groupysls=_state.course_groupysls,datajs=_state.datajs,isAdmin=_state.isAdmin,homework_status=_state.homework_status,course_groupyslstwo=_state.course_groupyslstwo,unlimited=_state.unlimited,unlimitedtwo=_state.unlimitedtwo,course_group_info=_state.course_group_info,orders=_state.orders,task_status=_state.task_status,checkedValuesine=_state.checkedValuesine,searchtext=_state.searchtext,teacherlist=_state.teacherlist,visible=_state.visible,visibles=_state.visibles,game_list=_state.game_list,columnsstu=_state.columnsstu,columnsstu2=_state.columnsstu2,limit=_state.limit,experience=_state.experience,boolgalist=_state.boolgalist,viewtrainingdata=_state.viewtrainingdata,teacherdata=_state.teacherdata,page=_state.page,data=_state.data,jobsettingsdata=_state.jobsettingsdata,styletable=_state.styletable,datas=_state.datas,order=_state.order,loadingstate=_state.loadingstate,computeTimetype=_state.computeTimetype;var antIcon=__WEBPACK_IMPORTED_MODULE_20_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_icon___default.a,{type:'loading',style:{fontSize:24},spin:true});var course_is_end=this.props.current_user&&this.props.current_user.course_is_end;// console.log("Listofworksstudentone.js"); // console.log(orders); var homewrok=false;if(homework_status&&homework_status.length>0){for(var i=0;i