webpackJsonp([66,78,79,83,150],{ /***/ 1000: /***/ (function(module, exports, __webpack_require__) { "use strict"; var $defineProperty = __webpack_require__(38); var createDesc = __webpack_require__(93); module.exports = function (object, index, value) { if (index in object) $defineProperty.f(object, index, createDesc(0, value)); else object[index] = value; }; /***/ }), /***/ 1001: /***/ (function(module, exports, __webpack_require__) { var ITERATOR = __webpack_require__(36)('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal Array.from(riter, function () { throw 2; }); } catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; var safe = false; try { var arr = [7]; var iter = arr[ITERATOR](); iter.next = function () { return { done: safe = true }; }; arr[ITERATOR] = function () { return iter; }; exec(arr); } catch (e) { /* empty */ } return safe; }; /***/ }), /***/ 1002: /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _from = __webpack_require__(993); 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); } }; /***/ }), /***/ 1003: /***/ (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__(1004); 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 ); /***/ }), /***/ 1004: /***/ (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__(60); var emptyObject = __webpack_require__(1005); var _invariant = __webpack_require__(1006); 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; /***/ }), /***/ 1005: /***/ (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; /***/ }), /***/ 1006: /***/ (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; /***/ }), /***/ 1007: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _util = __webpack_require__(862); var _validator = __webpack_require__(1008); var _validator2 = _interopRequireDefault(_validator); var _messages2 = __webpack_require__(1028); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Encapsulates a validation schema. * * @param descriptor An object declaring validation rules * for this schema. */ function Schema(descriptor) { this.rules = null; this._messages = _messages2.messages; this.define(descriptor); } Schema.prototype = { messages: function messages(_messages) { if (_messages) { this._messages = (0, _util.deepMerge)((0, _messages2.newMessages)(), _messages); } return this._messages; }, define: function define(rules) { if (!rules) { throw new Error('Cannot configure a schema with no rules'); } if ((typeof rules === 'undefined' ? 'undefined' : _typeof(rules)) !== 'object' || Array.isArray(rules)) { throw new Error('Rules must be an object'); } this.rules = {}; var z = void 0; var item = void 0; for (z in rules) { if (rules.hasOwnProperty(z)) { item = rules[z]; this.rules[z] = Array.isArray(item) ? item : [item]; } } }, validate: function validate(source_) { var _this = this; var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var oc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {}; var source = source_; var options = o; var callback = oc; if (typeof options === 'function') { callback = options; options = {}; } if (!this.rules || Object.keys(this.rules).length === 0) { if (callback) { callback(); } return Promise.resolve(); } function complete(results) { var i = void 0; var errors = []; var fields = {}; function add(e) { if (Array.isArray(e)) { var _errors; errors = (_errors = errors).concat.apply(_errors, e); } else { errors.push(e); } } for (i = 0; i < results.length; i++) { add(results[i]); } if (!errors.length) { errors = null; fields = null; } else { fields = (0, _util.convertFieldsError)(errors); } callback(errors, fields); } if (options.messages) { var messages = this.messages(); if (messages === _messages2.messages) { messages = (0, _messages2.newMessages)(); } (0, _util.deepMerge)(messages, options.messages); options.messages = messages; } else { options.messages = this.messages(); } var arr = void 0; var value = void 0; var series = {}; var keys = options.keys || Object.keys(this.rules); keys.forEach(function (z) { arr = _this.rules[z]; value = source[z]; arr.forEach(function (r) { var rule = r; if (typeof rule.transform === 'function') { if (source === source_) { source = _extends({}, source); } value = source[z] = rule.transform(value); } if (typeof rule === 'function') { rule = { validator: rule }; } else { rule = _extends({}, rule); } rule.validator = _this.getValidationMethod(rule); rule.field = z; rule.fullField = rule.fullField || z; rule.type = _this.getType(rule); if (!rule.validator) { return; } series[z] = series[z] || []; series[z].push({ rule: rule, value: value, source: source, field: z }); }); }); var errorFields = {}; return (0, _util.asyncMap)(series, options, function (data, doIt) { var rule = data.rule; var deep = (rule.type === 'object' || rule.type === 'array') && (_typeof(rule.fields) === 'object' || _typeof(rule.defaultField) === 'object'); deep = deep && (rule.required || !rule.required && data.value); rule.field = data.field; function addFullfield(key, schema) { return _extends({}, schema, { fullField: rule.fullField + '.' + key }); } function cb() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; var errors = e; if (!Array.isArray(errors)) { errors = [errors]; } if (!options.suppressWarning && errors.length) { Schema.warning('async-validator:', errors); } if (errors.length && rule.message) { errors = [].concat(rule.message); } errors = errors.map((0, _util.complementError)(rule)); if (options.first && errors.length) { errorFields[rule.field] = 1; return doIt(errors); } if (!deep) { doIt(errors); } else { // if rule is required but the target object // does not exist fail at the rule level and don't // go deeper if (rule.required && !data.value) { if (rule.message) { errors = [].concat(rule.message).map((0, _util.complementError)(rule)); } else if (options.error) { errors = [options.error(rule, (0, _util.format)(options.messages.required, rule.field))]; } else { errors = []; } return doIt(errors); } var fieldsSchema = {}; if (rule.defaultField) { for (var k in data.value) { if (data.value.hasOwnProperty(k)) { fieldsSchema[k] = rule.defaultField; } } } fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); for (var f in fieldsSchema) { if (fieldsSchema.hasOwnProperty(f)) { var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]]; fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f)); } } var schema = new Schema(fieldsSchema); schema.messages(options.messages); if (data.rule.options) { data.rule.options.messages = options.messages; data.rule.options.error = options.error; } schema.validate(data.value, data.rule.options || options, function (errs) { var finalErrors = []; if (errors && errors.length) { finalErrors.push.apply(finalErrors, errors); } if (errs && errs.length) { finalErrors.push.apply(finalErrors, errs); } doIt(finalErrors.length ? finalErrors : null); }); } } var res = void 0; if (rule.asyncValidator) { res = rule.asyncValidator(rule, data.value, cb, data.source, options); } else if (rule.validator) { res = rule.validator(rule, data.value, cb, data.source, options); if (res === true) { cb(); } else if (res === false) { cb(rule.message || rule.field + ' fails'); } else if (res instanceof Array) { cb(res); } else if (res instanceof Error) { cb(res.message); } } if (res && res.then) { res.then(function () { return cb(); }, function (e) { return cb(e); }); } }, function (results) { complete(results); }); }, getType: function getType(rule) { if (rule.type === undefined && rule.pattern instanceof RegExp) { rule.type = 'pattern'; } if (typeof rule.validator !== 'function' && rule.type && !_validator2['default'].hasOwnProperty(rule.type)) { throw new Error((0, _util.format)('Unknown rule type %s', rule.type)); } return rule.type || 'string'; }, getValidationMethod: function getValidationMethod(rule) { if (typeof rule.validator === 'function') { return rule.validator; } var keys = Object.keys(rule); var messageIndex = keys.indexOf('message'); if (messageIndex !== -1) { keys.splice(messageIndex, 1); } if (keys.length === 1 && keys[0] === 'required') { return _validator2['default'].required; } return _validator2['default'][this.getType(rule)] || false; } }; Schema.register = function register(type, validator) { if (typeof validator !== 'function') { throw new Error('Cannot register a validator by type, validator is not a function'); } _validator2['default'][type] = validator; }; Schema.warning = _util.warning; Schema.messages = _messages2.messages; exports['default'] = Schema; /***/ }), /***/ 1008: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _string = __webpack_require__(1009); var _string2 = _interopRequireDefault(_string); var _method = __webpack_require__(1015); var _method2 = _interopRequireDefault(_method); var _number = __webpack_require__(1016); var _number2 = _interopRequireDefault(_number); var _boolean = __webpack_require__(1017); var _boolean2 = _interopRequireDefault(_boolean); var _regexp = __webpack_require__(1018); var _regexp2 = _interopRequireDefault(_regexp); var _integer = __webpack_require__(1019); var _integer2 = _interopRequireDefault(_integer); var _float = __webpack_require__(1020); var _float2 = _interopRequireDefault(_float); var _array = __webpack_require__(1021); var _array2 = _interopRequireDefault(_array); var _object = __webpack_require__(1022); var _object2 = _interopRequireDefault(_object); var _enum = __webpack_require__(1023); var _enum2 = _interopRequireDefault(_enum); var _pattern = __webpack_require__(1024); var _pattern2 = _interopRequireDefault(_pattern); var _date = __webpack_require__(1025); var _date2 = _interopRequireDefault(_date); var _required = __webpack_require__(1026); var _required2 = _interopRequireDefault(_required); var _type = __webpack_require__(1027); var _type2 = _interopRequireDefault(_type); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { string: _string2['default'], method: _method2['default'], number: _number2['default'], boolean: _boolean2['default'], regexp: _regexp2['default'], integer: _integer2['default'], float: _float2['default'], array: _array2['default'], object: _object2['default'], 'enum': _enum2['default'], pattern: _pattern2['default'], date: _date2['default'], url: _type2['default'], hex: _type2['default'], email: _type2['default'], required: _required2['default'] }; /***/ }), /***/ 1009: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Performs validation for string types. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function string(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, 'string'); if (!(0, _util.isEmptyValue)(value, 'string')) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); _rule2['default'].pattern(rule, value, source, errors, options); if (rule.whitespace === true) { _rule2['default'].whitespace(rule, value, source, errors, options); } } } callback(errors); } exports['default'] = string; /***/ }), /***/ 1010: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(862); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating whitespace. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function whitespace(rule, value, source, errors, options) { if (/^\s+$/.test(value) || value === '') { errors.push(util.format(options.messages.whitespace, rule.fullField)); } } exports['default'] = whitespace; /***/ }), /***/ 1011: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _util = __webpack_require__(862); var util = _interopRequireWildcard(_util); var _required = __webpack_require__(904); var _required2 = _interopRequireDefault(_required); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /* eslint max-len:0 */ var pattern = { // http://emailregex.com/ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'), hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i }; var types = { integer: function integer(value) { return types.number(value) && parseInt(value, 10) === value; }, float: function float(value) { return types.number(value) && !types.integer(value); }, array: function array(value) { return Array.isArray(value); }, regexp: function regexp(value) { if (value instanceof RegExp) { return true; } try { return !!new RegExp(value); } catch (e) { return false; } }, date: function date(value) { return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function'; }, number: function number(value) { if (isNaN(value)) { return false; } return typeof value === 'number'; }, object: function object(value) { return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !types.array(value); }, method: function method(value) { return typeof value === 'function'; }, email: function email(value) { return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255; }, url: function url(value) { return typeof value === 'string' && !!value.match(pattern.url); }, hex: function hex(value) { return typeof value === 'string' && !!value.match(pattern.hex); } }; /** * Rule for validating the type of a value. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function type(rule, value, source, errors, options) { if (rule.required && value === undefined) { (0, _required2['default'])(rule, value, source, errors, options); return; } var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; var ruleType = rule.type; if (custom.indexOf(ruleType) > -1) { if (!types[ruleType](value)) { errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); } // straight typeof check } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) !== rule.type) { errors.push(util.format(options.messages.types[ruleType], rule.fullField, rule.type)); } } exports['default'] = type; /***/ }), /***/ 1012: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(862); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating minimum and maximum allowed values. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function range(rule, value, source, errors, options) { var len = typeof rule.len === 'number'; var min = typeof rule.min === 'number'; var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane) var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; var val = value; var key = null; var num = typeof value === 'number'; var str = typeof value === 'string'; var arr = Array.isArray(value); if (num) { key = 'number'; } else if (str) { key = 'string'; } else if (arr) { key = 'array'; } // if the value is not of a supported type for range validation // the validation rule rule should use the // type property to also test for a particular type if (!key) { return false; } if (arr) { val = value.length; } if (str) { // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3 val = value.replace(spRegexp, '_').length; } if (len) { if (val !== rule.len) { errors.push(util.format(options.messages[key].len, rule.fullField, rule.len)); } } else if (min && !max && val < rule.min) { errors.push(util.format(options.messages[key].min, rule.fullField, rule.min)); } else if (max && !min && val > rule.max) { errors.push(util.format(options.messages[key].max, rule.fullField, rule.max)); } else if (min && max && (val < rule.min || val > rule.max)) { errors.push(util.format(options.messages[key].range, rule.fullField, rule.min, rule.max)); } } exports['default'] = range; /***/ }), /***/ 1013: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(862); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } var ENUM = 'enum'; /** * Rule for validating a value exists in an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function enumerable(rule, value, source, errors, options) { rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; if (rule[ENUM].indexOf(value) === -1) { errors.push(util.format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); } } exports['default'] = enumerable; /***/ }), /***/ 1014: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(862); var util = _interopRequireWildcard(_util); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } /** * Rule for validating a regular expression pattern. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param source The source object being validated. * @param errors An array of errors that this rule may add * validation errors to. * @param options The validation options. * @param options.messages The validation messages. */ function pattern(rule, value, source, errors, options) { if (rule.pattern) { if (rule.pattern instanceof RegExp) { // if a RegExp instance is passed, reset `lastIndex` in case its `global` // flag is accidentally set to `true`, which in a validation scenario // is not necessary and the result might be misleading rule.pattern.lastIndex = 0; if (!rule.pattern.test(value)) { errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } else if (typeof rule.pattern === 'string') { var _pattern = new RegExp(rule.pattern); if (!_pattern.test(value)) { errors.push(util.format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern)); } } } } exports['default'] = pattern; /***/ }), /***/ 1015: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a function. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function method(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = method; /***/ }), /***/ 1016: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function number(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if (value === '') { value = undefined; } if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = number; /***/ }), /***/ 1017: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(862); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a boolean. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function boolean(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = boolean; /***/ }), /***/ 1018: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates the regular expression type. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function regexp(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value)) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = regexp; /***/ }), /***/ 1019: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number is an integer. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function integer(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = integer; /***/ }), /***/ 1020: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a number is a floating point number. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function floatFn(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = floatFn; /***/ }), /***/ 1021: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates an array. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function array(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'array') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, 'array'); if (!(0, _util.isEmptyValue)(value, 'array')) { _rule2['default'].type(rule, value, source, errors, options); _rule2['default'].range(rule, value, source, errors, options); } } callback(errors); } exports['default'] = array; /***/ }), /***/ 1022: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates an object. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function object(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value !== undefined) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = object; /***/ }), /***/ 1023: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ENUM = 'enum'; /** * Validates an enumerable list. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function enumerable(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (value) { _rule2['default'][ENUM](rule, value, source, errors, options); } } callback(errors); } exports['default'] = enumerable; /***/ }), /***/ 1024: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } /** * Validates a regular expression pattern. * * Performs validation when a rule only contains * a pattern property but is not declared as a string type. * * @param rule The validation rule. * @param value The value of the field on the source object. * @param callback The callback function. * @param source The source object being validated. * @param options The validation options. * @param options.messages The validation messages. */ function pattern(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value, 'string')) { _rule2['default'].pattern(rule, value, source, errors, options); } } callback(errors); } exports['default'] = pattern; /***/ }), /***/ 1025: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function date(rule, value, callback, source, options) { // console.log('integer rule called %j', rule); var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value); if (validate) { if ((0, _util.isEmptyValue)(value) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options); if (!(0, _util.isEmptyValue)(value)) { var dateObject = void 0; if (typeof value === 'number') { dateObject = new Date(value); } else { dateObject = value; } _rule2['default'].type(rule, dateObject, source, errors, options); if (dateObject) { _rule2['default'].range(rule, dateObject.getTime(), source, errors, options); } } } callback(errors); } exports['default'] = date; /***/ }), /***/ 1026: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function required(rule, value, callback, source, options) { var errors = []; var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : _typeof(value); _rule2['default'].required(rule, value, source, errors, options, type); callback(errors); } exports['default'] = required; /***/ }), /***/ 1027: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rule = __webpack_require__(863); var _rule2 = _interopRequireDefault(_rule); var _util = __webpack_require__(862); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function type(rule, value, callback, source, options) { var ruleType = rule.type; var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if ((0, _util.isEmptyValue)(value, ruleType) && !rule.required) { return callback(); } _rule2['default'].required(rule, value, source, errors, options, ruleType); if (!(0, _util.isEmptyValue)(value, ruleType)) { _rule2['default'].type(rule, value, source, errors, options); } } callback(errors); } exports['default'] = type; /***/ }), /***/ 1028: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.newMessages = newMessages; function newMessages() { return { 'default': 'Validation error on field %s', required: '%s is required', 'enum': '%s must be one of %s', whitespace: '%s cannot be empty', date: { format: '%s date %s is invalid for format %s', parse: '%s date could not be parsed, %s is invalid ', invalid: '%s date %s is invalid' }, types: { string: '%s is not a %s', method: '%s is not a %s (function)', array: '%s is not an %s', object: '%s is not an %s', number: '%s is not a %s', date: '%s is not a %s', boolean: '%s is not a %s', integer: '%s is not an %s', float: '%s is not a %s', regexp: '%s is not a valid %s', email: '%s is not a valid %s', url: '%s is not a valid %s', hex: '%s is not a valid %s' }, string: { len: '%s must be exactly %s characters', min: '%s must be at least %s characters', max: '%s cannot be longer than %s characters', range: '%s must be between %s and %s characters' }, number: { len: '%s must equal %s', min: '%s cannot be less than %s', max: '%s cannot be greater than %s', range: '%s must be between %s and %s' }, array: { len: '%s must be exactly %s in length', min: '%s cannot be less than %s in length', max: '%s cannot be greater than %s in length', range: '%s must be between %s and %s in length' }, pattern: { mismatch: '%s value %s does not match pattern %s' }, clone: function clone() { var cloned = JSON.parse(JSON.stringify(this)); cloned.clone = this.clone; return cloned; } }; } var messages = exports.messages = newMessages(); /***/ }), /***/ 1029: /***/ (function(module, exports, __webpack_require__) { var assignValue = __webpack_require__(917), castPath = __webpack_require__(874), isIndex = __webpack_require__(873), isObject = __webpack_require__(171), toKey = __webpack_require__(871); /** * The base implementation of `_.set`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { if (!isObject(object)) { return object; } path = castPath(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), newValue = value; if (index != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : undefined; if (newValue === undefined) { newValue = isObject(objValue) ? objValue : (isIndex(path[index + 1]) ? [] : {}); } } assignValue(nested, key, newValue); nested = nested[key]; } return object; } module.exports = baseSet; /***/ }), /***/ 1030: /***/ (function(module, exports, __webpack_require__) { "use strict"; var reactIs = __webpack_require__(181); /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 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; TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; function getStatics(component) { // React v16.11 and below if (reactIs.isMemo(component)) { return MEMO_STATICS; } // React v16.12 and above 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; } module.exports = hoistNonReactStatics; /***/ }), /***/ 1032: /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(872); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }), /***/ 1033: /***/ (function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }), /***/ 1034: /***/ (function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }), /***/ 1035: /***/ (function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }), /***/ 1036: /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(872), Map = __webpack_require__(876), MapCache = __webpack_require__(877); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }), /***/ 1037: /***/ (function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }), /***/ 1038: /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(304), isLength = __webpack_require__(875), isObjectLike = __webpack_require__(302); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }), /***/ 1039: /***/ (function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }), /***/ 1043: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a // //
  • // //
  • //
  • 分数不能为空
  • //
    // {this.props.Cancelname || '取消'} // {this.props.Savesname || '保存'} {/*
    */}{/**/} /***/ }), /***/ 1871: /***/ (function(module, exports, __webpack_require__) { "use strict"; var replace = String.prototype.replace; var percentTwenties = /%20/g; var util = __webpack_require__(1645); var Format = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' }; module.exports = util.assign( { 'default': Format.RFC3986, formatters: { RFC1738: function (value) { return replace.call(value, percentTwenties, '+'); }, RFC3986: function (value) { return String(value); } } }, Format ); /***/ }), /***/ 1880: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(27); /* 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__(28); /* 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__(76); /* 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__(77); /* 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__(115); /* 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__(116); /* 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__(48); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios__ = __webpack_require__(8); /* 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__(175); 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} //
  • //
    // // : /***/ }), /***/ 1973: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__ = __webpack_require__(173); /* 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__(172); /* 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__(1075); /* 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__(1076); /* 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__(307); /* 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__(303); /* 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__(57); /* 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__(58); /* 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__(314); /* 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__(1078); /* 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__(1358); /* 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__(70); /* 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__(182); /* 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();console.log(flagPageEdit);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:_this2.props.isAdmin()===true?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:true},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:_this2.props.isAdmin()===true?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:true,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:_this2.props.isAdmin()===true?_this2.props.type==="Shixun"?!flagPageEdit:_this2.props.type==="Exercise"||_this2.props.type==="polls"?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()()?_this2.props.isAdmin()?!flagPageEdit:true:!flagPageEdit:rule.e_timeflag==true?_this2.props.isAdmin()?!flagPageEdit:true:!flagPageEdit: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:true,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?_this2.props.isAdmin()?__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__["W" /* 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__["W" /* 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__["W" /* 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 : ''; }; /***/ }), /***/ 2252: /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(1645); var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; 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, 'key'); val = options.strictNullHandling ? null : ''; } else { key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); val = options.decoder(part.slice(pos + 1), defaults.decoder, charset, 'value'); } if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { val = val.split(','); } if (part.indexOf('[]=') > -1) { val = isArray(val) ? [val] : val; } 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 = options.depth > 0 && 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 (options.depth > 0 && (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, // eslint-disable-next-line no-implicit-coercion, no-extra-parens depth: (typeof opts.depth === 'number' || opts.depth === false) ? +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); }; /***/ }), /***/ 2431: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__ = __webpack_require__(901); /* 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__(903); /* 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__(1175); /* 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__(8); /* 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__(1682); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__forums_Post_css__ = __webpack_require__(1508); /* 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__(1685); /* 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__(1674); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__comment_Comments__ = __webpack_require__(1524); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__common_courseMessage_css__ = __webpack_require__(1563); /* 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__(1775); 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 */],Object.assign({ref:"editor",memo:memo,usingMockInput:true,placeholder:"\u8BF4\u70B9\u4EC0\u4E48",height:160,showError:true,imageExpand:true,replyComment:this.replyComment},this.props,{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)); /***/ }), /***/ 2496: /***/ (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 ? "" : }*/}{/* */}{/**/} /***/ }), /***/ 3296: /***/ (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__(901); /* 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__(903); /* 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__(1183); /* 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__(1184); /* 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__(76); /* 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__(77); /* 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__(179); /* 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__(173); /* 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__(172); /* 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__(39); /* 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__(40); /* 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__(307); /* 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__(303); /* 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__(308); /* 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__(305); /* 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__(178); /* 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__(176); /* 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__(57); /* 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__(58); /* 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__(1122); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__style_css__ = __webpack_require__(1476); /* 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__(1615); /* 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__(8); /* 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__(70); /* 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__(314); /* 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__(1078); /* 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__(1358); /* 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__(2496); /* 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__(3297); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__modals_DownloadMessageysl__ = __webpack_require__(1346); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__coursesPublic_Startshixuntask__ = __webpack_require__(1880); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__coursesPublic_ModulationModal__ = __webpack_require__(1776); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__coursesPublic_HomeworkModal__ = __webpack_require__(1176); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__coursesPublic_OneSelfOrderModal__ = __webpack_require__(1368); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__Shixunworkdetails_ShixunWorkModal__ = __webpack_require__(1890); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__modules_courses_coursesPublic_NoneData__ = __webpack_require__(313); 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__["_7" /* 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__["_7" /* 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);}},record.has_comment===true?"详情":"评阅 "):__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);}},record.has_comment===true?"详情":"评阅 "));}}],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__["_7" /* 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__["_7" /* 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);}},record.has_comment===true?"详情":"评阅"):__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);}},record.has_comment===true?"详情":"评阅"));}}],yslpros:false,datajs:[],homework_status:undefined};return _this;}_createClass(Listofworksstudentone,[{key:'componentDidCatch',value:function componentDidCatch(error,info){}},{key:'componentDidMount',value:function componentDidMount(){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 //搜索学生 文字输入 //搜索学生按钮输入 // 输入关键字后按回车,自动提交 // 调分 // 查看学员实训信息 // 关闭调分 // 关闭查看 // 调分 //确定 //立即发布 //立即截止 // 立即发布 //立即截止确定按钮 },{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(Object(__WEBPACK_IMPORTED_MODULE_22_educoder__["P" /* getRandomcode */])(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