You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/build/static/js/179.a56afb84.chunk.js

2398 lines
191 KiB

5 years ago
webpackJsonp([179],{
5 years ago
/***/ 1213:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(28);
5 years ago
__webpack_require__(1392);
5 years ago
//# sourceMappingURL=css.js.map
/***/ }),
/***/ 1214:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(0));
var _classnames = _interopRequireDefault(__webpack_require__(3));
var _rcInputNumber = _interopRequireDefault(__webpack_require__(1394));
5 years ago
var _icon = _interopRequireDefault(__webpack_require__(26));
5 years ago
var _configProvider = __webpack_require__(12);
5 years ago
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var __rest = void 0 && (void 0).__rest || function (s, e) {
var t = {};
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
}
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
var InputNumber =
/*#__PURE__*/
function (_React$Component) {
_inherits(InputNumber, _React$Component);
function InputNumber() {
var _this;
_classCallCheck(this, InputNumber);
_this = _possibleConstructorReturn(this, _getPrototypeOf(InputNumber).apply(this, arguments));
_this.saveInputNumber = function (inputNumberRef) {
_this.inputNumberRef = inputNumberRef;
};
_this.renderInputNumber = function (_ref) {
var _classNames;
var getPrefixCls = _ref.getPrefixCls;
var _a = _this.props,
className = _a.className,
size = _a.size,
customizePrefixCls = _a.prefixCls,
others = __rest(_a, ["className", "size", "prefixCls"]);
var prefixCls = getPrefixCls('input-number', customizePrefixCls);
var inputNumberClass = (0, _classnames["default"])((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _classNames), className);
var upIcon = React.createElement(_icon["default"], {
type: "up",
className: "".concat(prefixCls, "-handler-up-inner")
});
var downIcon = React.createElement(_icon["default"], {
type: "down",
className: "".concat(prefixCls, "-handler-down-inner")
});
return React.createElement(_rcInputNumber["default"], _extends({
ref: _this.saveInputNumber,
className: inputNumberClass,
upHandler: upIcon,
downHandler: downIcon,
prefixCls: prefixCls
}, others));
};
return _this;
}
_createClass(InputNumber, [{
key: "focus",
value: function focus() {
this.inputNumberRef.focus();
}
}, {
key: "blur",
value: function blur() {
this.inputNumberRef.blur();
}
}, {
key: "render",
value: function render() {
return React.createElement(_configProvider.ConfigConsumer, null, this.renderInputNumber);
}
}]);
return InputNumber;
}(React.Component);
exports["default"] = InputNumber;
InputNumber.defaultProps = {
step: 1
};
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 1392:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(1393);
5 years ago
if(typeof content === 'string') content = [[module.i, content, '']];
// Prepare cssTransformation
var transform;
var options = {"hmr":false}
options.transform = transform
// add the styles to the DOM
var update = __webpack_require__(313)(content, options);
5 years ago
if(content.locals) module.exports = content.locals;
/***/ }),
/***/ 1393:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(312)(true);
5 years ago
// imports
// module
exports.push([module.i, ".ant-input-number{-webkit-box-sizing:border-box;box-sizing:border-box;font-variant:tabular-nums;list-style:none;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\";position:relative;width:100%;height:32px;padding:4px 11px;color:rgba(0,0,0,.65);font-size:14px;line-height:1.5;background-color:#fff;background-image:none;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;display:inline-block;width:90px;margin:0;padding:0;border:1px solid #d9d9d9;border-radius:4px}.ant-input-number::-moz-placeholder{color:#bfbfbf;opacity:1}.ant-input-number:-ms-input-placeholder{color:#bfbfbf}.ant-input-number::-webkit-input-placeholder{color:#bfbfbf}.ant-input-number:placeholder-shown{-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-input-number:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;-webkit-box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px rgba(24,144,255,.2)}.ant-input-number[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-input-number[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;-webkit-transition:all .3s,height 0s;-o-transition:all .3s,height 0s;transition:all .3s,height 0s}.ant-input-number-lg{height:40px;padding:6px 11px}.ant-input-number-sm{height:24px;padding:1px 7px}.ant-input-number-handler{position:relative;display:block;width:100%;height:50%;overflow:hidden;color:rgba(0,0,0,.45);font-weight:700;line-height:0;text-align:center;-webkit-transition:all .1s linear;-o-transition:all .1s linear;transition:all .1s linear}.ant-input-number-handler:active{background:#f4f4f4}.ant-input-number-handler:hover .ant-input-number-handler-down-inner,.ant-input-number-handler:hover .ant-input-number-handler-up-inner{color:#40a9ff}.ant-input-number-handler-down-inner,.ant-input-number-handler-up-inner{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;right:4px;width:12px;height:12px;color:rgba(0,0,0,.45);line-height:12px;-webkit-transition:all .1s linear;-o-transition:all .1s linear;transition:all .1s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-input-number-handler-down-inner>*,.ant-input-number-handler-up-inner>*{line-height:1}.ant-input-number-handler-down-inner svg,.ant-input-number-handler-up-inner svg{display:inline-block}.ant-input-number-handler-down-inner:before,.ant-input-number-handler-up-inner:before{display:none}.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon{display:block}.ant-input-number-focused,.ant-input-number:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-number-focused{outline:0;-webkit-box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px rgba(24,144,255,.2)}.ant-input-number-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-input-number-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-number-disabled .ant-input-number-input{cursor:not-allowed}.ant-input-number-disabled .ant-input-number-handler-wrap{display:none}.ant-input-number-input{width:100%;height:30px;padding:0 11px;text-align:left;background-color:transparent;border:0;border-radius:4px;outline:0;-webkit-transition:all .3s linear;-o-transition:all .3s linear;transition:all .3s linear;-moz-appearance:textfield!important}.ant-input-number-input::-moz-placeholder{color:#bfbfbf;opacity:1}.ant-input-number-input:-ms-input-placeholder{color:#bfbfbf}.ant-input-number-input::-webkit-input-placehol
5 years ago
// exports
/***/ }),
/***/ 1394:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(75);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(18);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(9);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__ = __webpack_require__(179);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__InputHandler__ = __webpack_require__(1395);
5 years ago
function noop() {}
function preventDefault(e) {
e.preventDefault();
}
function defaultParser(input) {
return input.replace(/[^\w\.-]+/g, '');
}
/**
* When click and hold on a button - the speed of auto changin the value.
*/
var SPEED = 200;
/**
* When click and hold on a button - the delay before auto changin the value.
*/
var DELAY = 600;
/**
* Max Safe Integer -- on IE this is not available, so manually set the number in that case.
* The reason this is used, instead of Infinity is because numbers above the MSI are unstable
*/
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
var isValidProps = function isValidProps(value) {
return value !== undefined && value !== null;
};
var isEqual = function isEqual(oldValue, newValue) {
return newValue === oldValue || typeof newValue === 'number' && typeof oldValue === 'number' && isNaN(newValue) && isNaN(oldValue);
};
var InputNumber = function (_React$Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(InputNumber, _React$Component);
function InputNumber(props) {
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, InputNumber);
var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));
_initialiseProps.call(_this);
var value = void 0;
if ('value' in props) {
value = props.value;
} else {
value = props.defaultValue;
}
_this.state = {
focused: props.autoFocus
};
var validValue = _this.getValidValue(_this.toNumber(value));
_this.state = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, _this.state, {
inputValue: _this.toPrecisionAsStep(validValue),
value: validValue
});
return _this;
}
InputNumber.prototype.componentDidMount = function componentDidMount() {
this.componentDidUpdate();
};
InputNumber.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
var _props = this.props,
value = _props.value,
onChange = _props.onChange,
max = _props.max,
min = _props.min;
var focused = this.state.focused;
// Don't trigger in componentDidMount
if (prevProps) {
if (!isEqual(prevProps.value, value) || !isEqual(prevProps.max, max) || !isEqual(prevProps.min, min)) {
var validValue = focused ? value : this.getValidValue(value);
var nextInputValue = void 0;
if (this.pressingUpOrDown) {
nextInputValue = validValue;
} else if (this.inputting) {
nextInputValue = this.rawInput;
} else {
nextInputValue = this.toPrecisionAsStep(validValue);
}
this.setState({ // eslint-disable-line
value: validValue,
inputValue: nextInputValue
});
}
// Trigger onChange when max or min change
// https://github.com/ant-design/ant-design/issues/11574
var nextValue = 'value' in this.props ? value : this.state.value;
// ref: null < 20 === true
// https://github.com/ant-design/ant-design/issues/14277
if ('max' in this.props && prevProps.max !== max && typeof nextValue === 'number' && nextValue > max && onChange) {
onChange(max);
}
if ('min' in this.props && prevProps.min !== min && typeof nextValue === 'number' && nextValue < min && onChange) {
onChange(min);
}
}
// Restore cursor
try {
// Firefox set the input cursor after it get focused.
// This caused that if an input didn't init with the selection,
// set will cause cursor not correct when first focus.
// Safari will focus input if set selection. We need skip this.
if (this.cursorStart !== undefined && this.state.focused) {
// In most cases, the string after cursor is stable.
// We can move the cursor before it
if (
// If not match full str, try to match part of str
!this.partRestoreByAfter(this.cursorAfter) && this.state.value !== this.props.value) {
// If not match any of then, let's just keep the position
// TODO: Logic should not reach here, need check if happens
var pos = this.cursorStart + 1;
// If not have last string, just position to the end
if (!this.cursorAfter) {
pos = this.input.value.length;
} else if (this.lastKeyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].BACKSPACE) {
pos = this.cursorStart - 1;
} else if (this.lastKeyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DELETE) {
pos = this.cursorStart;
}
this.fixCaret(pos, pos);
} else if (this.currentValue === this.input.value) {
// Handle some special key code
switch (this.lastKeyCode) {
case __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].BACKSPACE:
this.fixCaret(this.cursorStart - 1, this.cursorStart - 1);
break;
case __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DELETE:
this.fixCaret(this.cursorStart + 1, this.cursorStart + 1);
break;
default:
// Do nothing
}
}
}
} catch (e) {}
// Do nothing
// Reset last key
this.lastKeyCode = null;
// pressingUpOrDown is true means that someone just click up or down button
if (!this.pressingUpOrDown) {
return;
}
if (this.props.focusOnUpDown && this.state.focused) {
if (document.activeElement !== this.input) {
this.focus();
}
}
this.pressingUpOrDown = false;
};
InputNumber.prototype.componentWillUnmount = function componentWillUnmount() {
this.stop();
};
InputNumber.prototype.getCurrentValidValue = function getCurrentValidValue(value) {
var val = value;
if (val === '') {
val = '';
} else if (!this.isNotCompleteNumber(parseFloat(val, 10))) {
val = this.getValidValue(val);
} else {
val = this.state.value;
}
return this.toNumber(val);
};
InputNumber.prototype.getRatio = function getRatio(e) {
var ratio = 1;
if (e.metaKey || e.ctrlKey) {
ratio = 0.1;
} else if (e.shiftKey) {
ratio = 10;
}
return ratio;
};
InputNumber.prototype.getValueFromEvent = function getValueFromEvent(e) {
// optimize for chinese input expierence
// https://github.com/ant-design/ant-design/issues/8196
var value = e.target.value.trim().replace(/。/g, '.');
if (isValidProps(this.props.decimalSeparator)) {
value = value.replace(this.props.decimalSeparator, '.');
}
return value;
};
InputNumber.prototype.getValidValue = function getValidValue(value) {
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props.min;
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.props.max;
var val = parseFloat(value, 10);
// https://github.com/ant-design/ant-design/issues/7358
if (isNaN(val)) {
return value;
}
if (val < min) {
val = min;
}
if (val > max) {
val = max;
}
return val;
};
InputNumber.prototype.setValue = function setValue(v, callback) {
// trigger onChange
var precision = this.props.precision;
var newValue = this.isNotCompleteNumber(parseFloat(v, 10)) ? null : parseFloat(v, 10);
var _state = this.state,
_state$value = _state.value,
value = _state$value === undefined ? null : _state$value,
_state$inputValue = _state.inputValue,
inputValue = _state$inputValue === undefined ? null : _state$inputValue;
// https://github.com/ant-design/ant-design/issues/7363
// https://github.com/ant-design/ant-design/issues/16622
var newValueInString = typeof newValue === 'number' ? newValue.toFixed(precision) : '' + newValue;
var changed = newValue !== value || newValueInString !== '' + inputValue;
if (!('value' in this.props)) {
this.setState({
value: newValue,
inputValue: this.toPrecisionAsStep(v)
}, callback);
} else {
// always set input value same as value
this.setState({
inputValue: this.toPrecisionAsStep(this.state.value)
}, callback);
}
if (changed) {
this.props.onChange(newValue);
}
return newValue;
};
InputNumber.prototype.getPrecision = function getPrecision(value) {
if (isValidProps(this.props.precision)) {
return this.props.precision;
}
var valueString = value.toString();
if (valueString.indexOf('e-') >= 0) {
return parseInt(valueString.slice(valueString.indexOf('e-') + 2), 10);
}
var precision = 0;
if (valueString.indexOf('.') >= 0) {
precision = valueString.length - valueString.indexOf('.') - 1;
}
return precision;
};
// step={1.0} value={1.51}
// press +
// then value should be 2.51, rather than 2.5
// if this.props.precision is undefined
// https://github.com/react-component/input-number/issues/39
InputNumber.prototype.getMaxPrecision = function getMaxPrecision(currentValue) {
var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var _props2 = this.props,
precision = _props2.precision,
step = _props2.step;
if (isValidProps(precision)) {
return precision;
}
var ratioPrecision = this.getPrecision(ratio);
var stepPrecision = this.getPrecision(step);
var currentValuePrecision = this.getPrecision(currentValue);
if (!currentValue) {
return ratioPrecision + stepPrecision;
}
return Math.max(currentValuePrecision, ratioPrecision + stepPrecision);
};
InputNumber.prototype.getPrecisionFactor = function getPrecisionFactor(currentValue) {
var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var precision = this.getMaxPrecision(currentValue, ratio);
return Math.pow(10, precision);
};
InputNumber.prototype.fixCaret = function fixCaret(start, end) {
if (start === undefined || end === undefined || !this.input || !this.input.value) {
return;
}
try {
var currentStart = this.input.selectionStart;
var currentEnd = this.input.selectionEnd;
if (start !== currentStart || end !== currentEnd) {
this.input.setSelectionRange(start, end);
}
} catch (e) {
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}
};
InputNumber.prototype.focus = function focus() {
this.input.focus();
this.recordCursorPosition();
};
InputNumber.prototype.blur = function blur() {
this.input.blur();
};
InputNumber.prototype.formatWrapper = function formatWrapper(num) {
// http://2ality.com/2012/03/signedzero.html
// https://github.com/ant-design/ant-design/issues/9439
if (this.props.formatter) {
return this.props.formatter(num);
}
return num;
};
InputNumber.prototype.toPrecisionAsStep = function toPrecisionAsStep(num) {
if (this.isNotCompleteNumber(num) || num === '') {
return num;
}
var precision = Math.abs(this.getMaxPrecision(num));
if (!isNaN(precision)) {
return Number(num).toFixed(precision);
}
return num.toString();
};
// '1.' '1x' 'xx' '' => are not complete numbers
InputNumber.prototype.isNotCompleteNumber = function isNotCompleteNumber(num) {
return isNaN(num) || num === '' || num === null || num && num.toString().indexOf('.') === num.toString().length - 1;
};
InputNumber.prototype.toNumber = function toNumber(num) {
var precision = this.props.precision;
var focused = this.state.focused;
// num.length > 16 => This is to prevent input of large numbers
var numberIsTooLarge = num && num.length > 16 && focused;
if (this.isNotCompleteNumber(num) || numberIsTooLarge) {
return num;
}
if (isValidProps(precision)) {
return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
}
return Number(num);
};
InputNumber.prototype.upStep = function upStep(val, rat) {
var step = this.props.step;
var precisionFactor = this.getPrecisionFactor(val, rat);
var precision = Math.abs(this.getMaxPrecision(val, rat));
var result = ((precisionFactor * val + precisionFactor * step * rat) / precisionFactor).toFixed(precision);
return this.toNumber(result);
};
InputNumber.prototype.downStep = function downStep(val, rat) {
var step = this.props.step;
var precisionFactor = this.getPrecisionFactor(val, rat);
var precision = Math.abs(this.getMaxPrecision(val, rat));
var result = ((precisionFactor * val - precisionFactor * step * rat) / precisionFactor).toFixed(precision);
return this.toNumber(result);
};
InputNumber.prototype.step = function step(type, e) {
var _this2 = this;
var ratio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
var recursive = arguments[3];
this.stop();
if (e) {
e.persist();
e.preventDefault();
}
var props = this.props;
if (props.disabled) {
return;
}
var value = this.getCurrentValidValue(this.state.inputValue) || 0;
if (this.isNotCompleteNumber(value)) {
return;
}
var val = this[type + 'Step'](value, ratio);
var outOfRange = val > props.max || val < props.min;
if (val > props.max) {
val = props.max;
} else if (val < props.min) {
val = props.min;
}
this.setValue(val);
this.setState({
focused: true
});
if (outOfRange) {
return;
}
this.autoStepTimer = setTimeout(function () {
_this2[type](e, ratio, true);
}, recursive ? SPEED : DELAY);
};
InputNumber.prototype.render = function render() {
var _classNames;
var props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, this.props);
var prefixCls = props.prefixCls,
disabled = props.disabled,
readOnly = props.readOnly,
useTouch = props.useTouch,
autoComplete = props.autoComplete,
upHandler = props.upHandler,
downHandler = props.downHandler,
rest = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(props, ['prefixCls', 'disabled', 'readOnly', 'useTouch', 'autoComplete', 'upHandler', 'downHandler']);
var classes = __WEBPACK_IMPORTED_MODULE_7_classnames___default()((_classNames = {}, _classNames[prefixCls] = true, _classNames[props.className] = !!props.className, _classNames[prefixCls + '-disabled'] = disabled, _classNames[prefixCls + '-focused'] = this.state.focused, _classNames));
var upDisabledClass = '';
var downDisabledClass = '';
var value = this.state.value;
if (value || value === 0) {
if (!isNaN(value)) {
var val = Number(value);
if (val >= props.max) {
upDisabledClass = prefixCls + '-handler-up-disabled';
}
if (val <= props.min) {
downDisabledClass = prefixCls + '-handler-down-disabled';
}
} else {
upDisabledClass = prefixCls + '-handler-up-disabled';
downDisabledClass = prefixCls + '-handler-down-disabled';
}
}
var dataOrAriaAttributeProps = {};
for (var key in props) {
if (props.hasOwnProperty(key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) {
dataOrAriaAttributeProps[key] = props[key];
}
}
var editable = !props.readOnly && !props.disabled;
// focus state, show input value
// unfocus state, show valid value
var inputDisplayValue = this.getInputDisplayValue();
var upEvents = void 0;
var downEvents = void 0;
if (useTouch) {
upEvents = {
onTouchStart: editable && !upDisabledClass ? this.up : noop,
onTouchEnd: this.stop
};
downEvents = {
onTouchStart: editable && !downDisabledClass ? this.down : noop,
onTouchEnd: this.stop
};
} else {
upEvents = {
onMouseDown: editable && !upDisabledClass ? this.up : noop,
onMouseUp: this.stop,
onMouseLeave: this.stop
};
downEvents = {
onMouseDown: editable && !downDisabledClass ? this.down : noop,
onMouseUp: this.stop,
onMouseLeave: this.stop
};
}
var isUpDisabled = !!upDisabledClass || disabled || readOnly;
var isDownDisabled = !!downDisabledClass || disabled || readOnly;
// ref for test
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
'div',
{
className: classes,
style: props.style,
title: props.title,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onMouseOver: props.onMouseOver,
onMouseOut: props.onMouseOut
},
__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
'div',
{ className: prefixCls + '-handler-wrap' },
__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
__WEBPACK_IMPORTED_MODULE_9__InputHandler__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
ref: this.saveUp,
disabled: isUpDisabled,
prefixCls: prefixCls,
unselectable: 'unselectable'
}, upEvents, {
role: 'button',
'aria-label': 'Increase Value',
'aria-disabled': !!isUpDisabled,
className: prefixCls + '-handler ' + prefixCls + '-handler-up ' + upDisabledClass
}),
upHandler || __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span', {
unselectable: 'unselectable',
className: prefixCls + '-handler-up-inner',
onClick: preventDefault
})
),
__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
__WEBPACK_IMPORTED_MODULE_9__InputHandler__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
ref: this.saveDown,
disabled: isDownDisabled,
prefixCls: prefixCls,
unselectable: 'unselectable'
}, downEvents, {
role: 'button',
'aria-label': 'Decrease Value',
'aria-disabled': !!isDownDisabled,
className: prefixCls + '-handler ' + prefixCls + '-handler-down ' + downDisabledClass
}),
downHandler || __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span', {
unselectable: 'unselectable',
className: prefixCls + '-handler-down-inner',
onClick: preventDefault
})
)
),
__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
'div',
{
className: prefixCls + '-input-wrap'
},
__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('input', __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
role: 'spinbutton',
'aria-valuemin': props.min,
'aria-valuemax': props.max,
'aria-valuenow': value,
required: props.required,
type: props.type,
placeholder: props.placeholder,
onClick: props.onClick,
onMouseUp: this.onMouseUp,
className: prefixCls + '-input',
tabIndex: props.tabIndex,
autoComplete: autoComplete,
onFocus: this.onFocus,
onBlur: this.onBlur,
onKeyDown: editable ? this.onKeyDown : noop,
onKeyUp: editable ? this.onKeyUp : noop,
autoFocus: props.autoFocus,
maxLength: props.maxLength,
readOnly: props.readOnly,
disabled: props.disabled,
max: props.max,
min: props.min,
step: props.step,
name: props.name,
id: props.id,
onChange: this.onChange,
ref: this.saveInput,
value: inputDisplayValue,
pattern: props.pattern
}, dataOrAriaAttributeProps))
)
);
};
return InputNumber;
}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
InputNumber.propTypes = {
value: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),
defaultValue: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),
focusOnUpDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
autoFocus: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
onChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onPressEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onKeyDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onKeyUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
prefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
tabIndex: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number]),
disabled: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
onFocus: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
readOnly: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
max: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
min: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
step: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),
upHandler: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node,
downHandler: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node,
useTouch: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
formatter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
parser: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onMouseOver: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onMouseOut: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
onMouseUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
precision: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
required: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
pattern: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
decimalSeparator: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string
};
InputNumber.defaultProps = {
focusOnUpDown: true,
useTouch: false,
prefixCls: 'rc-input-number',
min: -MAX_SAFE_INTEGER,
step: 1,
style: {},
onChange: noop,
onKeyDown: noop,
onPressEnter: noop,
onFocus: noop,
onBlur: noop,
parser: defaultParser,
required: false,
autoComplete: 'off'
};
var _initialiseProps = function _initialiseProps() {
var _this3 = this;
this.onKeyDown = function (e) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
var _props3 = _this3.props,
onKeyDown = _props3.onKeyDown,
onPressEnter = _props3.onPressEnter;
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].UP) {
var ratio = _this3.getRatio(e);
_this3.up(e, ratio);
_this3.stop();
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DOWN) {
var _ratio = _this3.getRatio(e);
_this3.down(e, _ratio);
_this3.stop();
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].ENTER && onPressEnter) {
onPressEnter(e);
}
// Trigger user key down
_this3.recordCursorPosition();
_this3.lastKeyCode = e.keyCode;
if (onKeyDown) {
onKeyDown.apply(undefined, [e].concat(args));
}
};
this.onKeyUp = function (e) {
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
var onKeyUp = _this3.props.onKeyUp;
_this3.stop();
_this3.recordCursorPosition();
// Trigger user key up
if (onKeyUp) {
onKeyUp.apply(undefined, [e].concat(args));
}
};
this.onChange = function (e) {
var onChange = _this3.props.onChange;
if (_this3.state.focused) {
_this3.inputting = true;
}
_this3.rawInput = _this3.props.parser(_this3.getValueFromEvent(e));
_this3.setState({ inputValue: _this3.rawInput });
onChange(_this3.toNumber(_this3.rawInput)); // valid number or invalid string
};
this.onMouseUp = function () {
var onMouseUp = _this3.props.onMouseUp;
_this3.recordCursorPosition();
if (onMouseUp) {
onMouseUp.apply(undefined, arguments);
}
};
this.onFocus = function () {
var _props4;
_this3.setState({
focused: true
});
(_props4 = _this3.props).onFocus.apply(_props4, arguments);
};
this.onBlur = function (e) {
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
args[_key3 - 1] = arguments[_key3];
}
var onBlur = _this3.props.onBlur;
_this3.inputting = false;
_this3.setState({
focused: false
});
var value = _this3.getCurrentValidValue(_this3.state.inputValue);
e.persist(); // fix https://github.com/react-component/input-number/issues/51
var newValue = _this3.setValue(value);
if (onBlur) {
var originValue = _this3.input.value;
var inputValue = _this3.getInputDisplayValue({ focus: false, value: newValue });
_this3.input.value = inputValue;
onBlur.apply(undefined, [e].concat(args));
_this3.input.value = originValue;
}
};
this.getInputDisplayValue = function (state) {
var _ref = state || _this3.state,
focused = _ref.focused,
inputValue = _ref.inputValue,
value = _ref.value;
var inputDisplayValue = void 0;
if (focused) {
inputDisplayValue = inputValue;
} else {
inputDisplayValue = _this3.toPrecisionAsStep(value);
}
if (inputDisplayValue === undefined || inputDisplayValue === null) {
inputDisplayValue = '';
}
var inputDisplayValueFormat = _this3.formatWrapper(inputDisplayValue);
if (isValidProps(_this3.props.decimalSeparator)) {
inputDisplayValueFormat = inputDisplayValueFormat.toString().replace('.', _this3.props.decimalSeparator);
}
return inputDisplayValueFormat;
};
this.recordCursorPosition = function () {
// Record position
try {
_this3.cursorStart = _this3.input.selectionStart;
_this3.cursorEnd = _this3.input.selectionEnd;
_this3.currentValue = _this3.input.value;
_this3.cursorBefore = _this3.input.value.substring(0, _this3.cursorStart);
_this3.cursorAfter = _this3.input.value.substring(_this3.cursorEnd);
} catch (e) {
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}
};
this.restoreByAfter = function (str) {
if (str === undefined) return false;
var fullStr = _this3.input.value;
var index = fullStr.lastIndexOf(str);
if (index === -1) return false;
var prevCursorPos = _this3.cursorBefore.length;
if (_this3.lastKeyCode === __WEBPACK_IMPORTED_MODULE_8_rc_util_es_KeyCode__["a" /* default */].DELETE && _this3.cursorBefore.charAt(prevCursorPos - 1) === str[0]) {
_this3.fixCaret(prevCursorPos, prevCursorPos);
return true;
}
5 years ago
if (index + str.length === fullStr.length) {
_this3.fixCaret(index, index);
return true;
}
return false;
};
this.partRestoreByAfter = function (str) {
if (str === undefined) return false;
// For loop from full str to the str with last char to map. e.g. 123
// -> 123
// -> 23
// -> 3
return Array.prototype.some.call(str, function (_, start) {
var partStr = str.substring(start);
return _this3.restoreByAfter(partStr);
});
};
this.stop = function () {
if (_this3.autoStepTimer) {
clearTimeout(_this3.autoStepTimer);
}
};
this.down = function (e, ratio, recursive) {
_this3.pressingUpOrDown = true;
_this3.step('down', e, ratio, recursive);
};
this.up = function (e, ratio, recursive) {
_this3.pressingUpOrDown = true;
_this3.step('up', e, ratio, recursive);
};
this.saveUp = function (node) {
_this3.upHandler = node;
};
this.saveDown = function (node) {
_this3.downHandler = node;
};
this.saveInput = function (node) {
_this3.input = node;
};
};
/* harmony default export */ __webpack_exports__["default"] = (InputNumber);
/***/ }),
/***/ 1395:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(75);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(9);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(11);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rmc_feedback__ = __webpack_require__(1396);
5 years ago
var InputHandler = function (_Component) {
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(InputHandler, _Component);
function InputHandler() {
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, InputHandler);
return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments));
}
InputHandler.prototype.render = function render() {
var _props = this.props,
prefixCls = _props.prefixCls,
disabled = _props.disabled,
otherProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['prefixCls', 'disabled']);
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
__WEBPACK_IMPORTED_MODULE_6_rmc_feedback__["a" /* default */],
{
disabled: disabled,
activeClassName: prefixCls + '-handler-active'
},
__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('span', otherProps)
);
};
return InputHandler;
}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);
InputHandler.propTypes = {
prefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,
onTouchStart: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
onTouchEnd: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
onMouseDown: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
onMouseUp: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
onMouseLeave: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func
};
/* harmony default export */ __webpack_exports__["a"] = (InputHandler);
/***/ }),
/***/ 1396:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TouchFeedback__ = __webpack_require__(1397);
5 years ago
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TouchFeedback__["a"]; });
/***/ }),
/***/ 1397:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(18);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(9);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(31);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(10);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
var TouchFeedback = function (_React$Component) {
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TouchFeedback, _React$Component);
function TouchFeedback() {
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TouchFeedback);
var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (TouchFeedback.__proto__ || Object.getPrototypeOf(TouchFeedback)).apply(this, arguments));
_this.state = {
active: false
};
_this.onTouchStart = function (e) {
_this.triggerEvent('TouchStart', true, e);
};
_this.onTouchMove = function (e) {
_this.triggerEvent('TouchMove', false, e);
};
_this.onTouchEnd = function (e) {
_this.triggerEvent('TouchEnd', false, e);
};
_this.onTouchCancel = function (e) {
_this.triggerEvent('TouchCancel', false, e);
};
_this.onMouseDown = function (e) {
// pc simulate mobile
_this.triggerEvent('MouseDown', true, e);
};
_this.onMouseUp = function (e) {
_this.triggerEvent('MouseUp', false, e);
};
_this.onMouseLeave = function (e) {
_this.triggerEvent('MouseLeave', false, e);
};
return _this;
}
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(TouchFeedback, [{
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.disabled && this.state.active) {
this.setState({
active: false
});
}
}
}, {
key: 'triggerEvent',
value: function triggerEvent(type, isActive, ev) {
var eventType = 'on' + type;
var children = this.props.children;
if (children.props[eventType]) {
children.props[eventType](ev);
}
if (isActive !== this.state.active) {
this.setState({
active: isActive
});
}
}
}, {
key: 'render',
value: function render() {
var _props = this.props,
children = _props.children,
disabled = _props.disabled,
activeClassName = _props.activeClassName,
activeStyle = _props.activeStyle;
var events = disabled ? undefined : {
onTouchStart: this.onTouchStart,
onTouchMove: this.onTouchMove,
onTouchEnd: this.onTouchEnd,
onTouchCancel: this.onTouchCancel,
onMouseDown: this.onMouseDown,
onMouseUp: this.onMouseUp,
onMouseLeave: this.onMouseLeave
};
var child = __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.only(children);
if (!disabled && this.state.active) {
var _child$props = child.props,
style = _child$props.style,
className = _child$props.className;
if (activeStyle !== false) {
if (activeStyle) {
style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, style, activeStyle);
}
className = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, activeClassName);
}
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ className: className,
style: style }, events));
}
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(child, events);
}
}]);
return TouchFeedback;
}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
/* harmony default export */ __webpack_exports__["a"] = (TouchFeedback);
TouchFeedback.defaultProps = {
disabled: false
};
/***/ }),
/***/ 1427:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(32);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__ = __webpack_require__(33);
5 years ago
/* 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_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var DownloadMessageysl=function(_Component){_inherits(DownloadMessageysl,_Component);function DownloadMessageysl(props){_classCallCheck(this,DownloadMessageysl);var _this=_possibleConstructorReturn(this,(DownloadMessageysl.__proto__||Object.getPrototypeOf(DownloadMessageysl)).call(this,props));_this.setDownload=function(){_this.props.modalCancel();window.open('/messages/'+_this.props.user.login+'/message_detail?target_ids=1');};_this.state={funmodalsType:false,istype:false};return _this;}_createClass(DownloadMessageysl,[{key:'render',value:function render(){return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default.a,{keyboard:false,title:'\u63D0\u793A',visible:this.props.modalsType===undefined?false:this.props.modalsType,closable:false,footer:null,destroyOnClose:true,centered:true,width:'530px'},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('div',{className:'task-popup-content'},this.props.value===500?__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',null,__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',{className:'task-popup-text-center font-16'},'\u56E0\u9644\u4EF6\u8D44\u6599\u8D85\u8FC7500M\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7\u68C0\u7D22\u5206\u6279\u4E0B\u8F7D'),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',{className:'task-popup-text-center font-16 mt5'},'\u6216\u8005\u901A\u8FC7\u5FAE\u4FE1\u6216\u8005QQ\u8054\u7CFB\u7BA1\u7406\u5458\u8F85\u52A9\u60A8\u6253\u5305\u4E0B\u8F7D')):this.props.value===100?__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',null,__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',{className:'task-popup-text-center font-16'},'\u5DF2\u8D85\u51FA\u6587\u4EF6\u5BFC\u51FA\u7684\u4E0A\u9650\u6570\u91CF\uFF08 ',__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('span',{className:"color-orange-tip"},'100'),' \uFF09\uFF0C\u5EFA\u8BAE\uFF1A'),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',{className:'task-popup-text-center font-16 mt20'},'1.\u901A\u8FC7\u68C0\u7D22\u5206\u6279\u6B21\u4E0B\u8F7D'),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('p',{className:'task-popup-text-center font-16 mt5'},'2.\u8054\u7CFB\u7BA1\u7406\u5458\u8F85\u52A9\u4E0B\u8F7D')):"",__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('div',{className:'clearfix mt30 edu-txt-center'},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('a',{className:'task-btn mr30',onClick:this.props.modalCancel},'\u53D6\u6D88'),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement('a',{className:'task-btn task-btn-orange',onClick:this.setDownload},'\u7ACB\u5373\u8054\u7CFB'))));}}]);return DownloadMessageysl;}(__WEBPACK_IMPORTED_MODULE_
/***/ }),
/***/ 1500:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(1501);
5 years ago
if(typeof content === 'string') content = [[module.i, content, '']];
// Prepare cssTransformation
var transform;
var options = {"hmr":false}
options.transform = transform
// add the styles to the DOM
var update = __webpack_require__(313)(content, options);
5 years ago
if(content.locals) module.exports = content.locals;
/***/ }),
/***/ 1501:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(312)(true);
5 years ago
// imports
// module
exports.push([module.i, ".searchinput{width:800px;margin-top:53px}.newshixunheadersear{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.packinput .ant-input{height:55px;width:663px!important;font-size:14px;border-color:#e1edf8!important;padding-left:20px}.packinput .ant-input-group-addon .ant-btn{width:137px!important;font-size:18px;height:53px;background:#4cacff}.tabtitle{-webkit-box-shadow:3px 10px 21px 0 rgba(76,76,76,.15);box-shadow:3px 10px 21px 0 rgba(76,76,76,.15);border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tabtitle,.tabtitles2{height:62px!important;background:#fff}.tabtitles2{width:1200px}.tabtitless{height:62px!important;line-height:62px!important}.tabtitle2{margin-left:30px!important}.counttit{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.counttittext{text-align:left;width:1200px;height:18px;color:#888;font-size:13px;margin-top:24px}.counttittexts{color:#4cacff!important;font-size:13px}.mainx{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-top:17px}.project-package-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-bottom:20px;padding:20px;background:#fff}.magr11{margin-top:11px}.fonttext{font-size:20px;font-weight:700}.fontextcolor{color:#777}.tzbq{margin-left:68px}.bjyss{background:#f8f8f8}.zj{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.ziticor{color:#777;font-size:13px}.foohter{margin-top:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.maxwidth1100{white-space:nowrap;font-size:18px!important;font-weight:500;color:#333!important}.maxwidth1100,.newshixunmodelmidfont{max-width:1100px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.newshixunmodelmidfont{font-size:14px;color:#999;display:-webkit-box;-webkit-line-clamp:2}.newshixunmodelbotfont,.newshixunmodelmidfont{font-weight:400;margin-top:15px;margin-left:30px}.newshixunmodelbotfont{font-size:12px;color:#666}.newshixunlist{max-height:227px;width:1200px}.xuxianpro{height:20px;border-bottom:1px dashed;border-color:#eaeaea;margin-bottom:18px}.newshixunpd030{padding:0 30px}.pd303010{padding:30px 30px 10px}.newshixunfont12{font-size:12px;color:#4cacff;line-height:21px}.newshixunmode{width:100px;height:38px;border-radius:3px}.ntopsj{position:absolute;top:-4px}.nyslbottomsj{position:absolute;bottom:-6px}.inherits .ant-dropdown-menu-item{cursor:inherit!important}.menus{width:91px;text-align:center}.newshixunmodelbotfont span{display:inline-block;margin-right:34px}.minhegiht300{min-height:300px}.newshixunlist:hover{-webkit-box-shadow:1px 6px 16px hsla(0,0%,61%,.16);box-shadow:1px 6px 16px hsla(0,0%,61%,.16);opacity:1;border-radius:2px}.newshixun500{max-width:500px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.mt3{margin-top:3px!important}.highlight{color:#4cacff}.newshixunbottombtn{position:fixed;z-index:1000;bottom:0;width:100%;height:63px;background:#fff;-webkit-box-shadow:0 -4px 4px 0 rgba(0,0,0,.05);box-shadow:0 -4px 4px 0 rgba(0,0,0,.05)}.mb60shixun{margin-bottom:60px!important}.padding13-30{padding:13px 30px;-webkit-box-sizing:border-box;box-sizing:border-box}.displaymodulat{display:-ms-flexbox;display:flex;display:-webkit-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.WordNumberTextarea{outline:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;text-shadow:none;-webkit-writing-mode:horizontal-tb!important;-webkit-tap-highlight-color:rgba(0,0,0,0);resize:none;width:100%;height:130px;border:none;display:block}.WordNumbernote{padding:0;margin:0;list-style:none;text-decoration:none;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;height:auto;border:1px solid #eaeaea;border-radius:.125rem;margin:10px 10px 0;padding:10px 10px 5px;backgroud:#eaeaea;width:530px;margin-left:10px;margin-top:25px;height:214px!important}.WordNumbernote .WordNumberTextarea
5 years ago
// exports
/***/ }),
/***/ 1794:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(32);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css__ = __webpack_require__(1213);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number__ = __webpack_require__(1214);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_educoder__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Newshixunmodel_css__ = __webpack_require__(1500);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Newshixunmodel_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__Newshixunmodel_css__);
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}//调分
var ModulationModal=function(_Component){_inherits(ModulationModal,_Component);function ModulationModal(props){_classCallCheck(this,ModulationModal);var _this=_possibleConstructorReturn(this,(ModulationModal.__proto__||Object.getPrototypeOf(ModulationModal)).call(this,props));_this.Saves=function(){console.log("Saves=()");var _this$state=_this.state,textareaval=_this$state.textareaval,Inputsval=_this$state.Inputsval;// if(textareaval===""||textareaval===undefined){
// this.setState({
// textareavaltype:true
// })
// return
// }
_this.setState({textareavaltype:false});if(Inputsval===undefined||Inputsval===""){_this.setState({Inputsval:"",Inputsvaltype:true,Inputsvaltest:"请填写分数"});return;}if(_this.state.Inputsvaltype===true){return;}if(Inputsval===undefined||Inputsval===null||Inputsval===""){_this.setState({borredszf:"ml10 color-grey-9 bor-reds ",Inputsval:"",Inputsvaltype:true,Inputsvaltest:"成绩不能为空"});return;}var re=/^[0-9]+.?[0-9]*$/;//判断字符串是否为数字 //判断正整数 /^[1-9]+[0-9]*]*$/
var nubmer=Inputsval;if(!re.test(nubmer)){_this.setState({borredszf:"ml10 color-grey-9 bor-reds ",Inputsval:Inputsval,Inputsvaltype:true,Inputsvaltest:"请输入0-100的分数"});return;}if(0>parseFloat(Inputsval)){_this.setState({borredszf:"ml10 color-grey-9 bor-reds ",Inputsval:Inputsval,Inputsvaltype:true,Inputsvaltest:"成绩不能小于零"});return;}else if(parseFloat(Inputsval)>100){_this.setState({borredszf:"ml10 color-grey-9 bor-reds ",Inputsval:Inputsval,Inputsvaltype:true,Inputsvaltest:"成绩不能大于100"});return;}_this.setState({Inputsvaltype:false,Inputsvaltest:""});console.log(Inputsval);_this.props.Saves(textareaval,Inputsval);};_this.settextarea=function(e){_this.setState({textareaval:e.target.value});};_this.setInputs=function(e){console.log("setInputs");console.log(e);_this.setState({Inputsval:e,Inputsvaltype:false});};_this.state={group_ids:[],fileList:[],textareaval:undefined,Inputsval:undefined};return _this;}_createClass(ModulationModal,[{key:"render",value:function render(){var _this2=this;var _state=this.state,textareaval=_state.textareaval,Inputsval=_state.Inputsval,textareavaltype=_state.textareavaltype,Inputsvaltype=_state.Inputsvaltype,Inputsvaltest=_state.Inputsvaltest;return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_4_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_4_react___default.a.createElement("div",{className:"clearfix",style:{display:"-webkit-flex",flexDirection:"column",alignItems:"center"}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{style:{display:"flex",flexDirection:"initial"}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:" mt3 font-14 ",style:{color:"#666666"}},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97")),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{style:{marginTop:" 27px",display:"flex",flexDirection:"initial",width:"100%"}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{style:{textAlign:"center",lineHeight:"40px",marginLeft:"16px"}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{style:{textAlign:"center",lineHeight:" 40px",color:" #f5222d"}},"*"),"\u6210\u7EE9\uFF1A"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t.myinputnumbers .ant-input-number-input{\n\t\t\t\t\t\t\t\t\tline-height: 40px;\n height: 35px;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t"),Inputsvaltype===true?__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t.ant-input:hover {\n\t\t\t\t\t\t\t\t\t\t\t\tborder: 1px solid #DD1717!important;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t .ant-input:focus {\n\t\t\t\t\t\t\t\t border: 1px solid #DD1717!important;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t"):""," ",__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number___default.a,{className:Inputsvaltype===true?"borerinput myinputnumbers bor-reds":"myinputnumbers",style:{width:"120px",height:"40px"},placeholder:"\u8BF7\u586B\u5199\u5206\u6570",onChange:function onChange(e){return _this2.setInputs(e);},value:Inputsval===undefined||Inputsval===null?"":Inputsval}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{style:{textAlign:"center",lineHeight:" 40px",marginLeft:"10px"}},"\u5206")),Inputsvaltype===true?__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{style:{color:"#DD1717",width:"77%",marginLeft:"1px",marginTop:"10px"}},Inputsvaltest):"",__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{style:{display:"flex",flexDirection:"initial",marginTop:"10px;"}},__WEBPACK_IMPORTED_MODULE_4_react
// <p className="task-popup-text-center font-16 mb20">
//
// <span className={"color-dark-21"}>该学生的最终成绩将不会按照评分规则进行计算</span>
//
// </p>
//
//
// <div className="clearfix">
// {/*<textarea*/}
// {/*className="winput-100-150"*/}
// {/*placeholder="请填写您对作品调分的原因"*/}
// {/*value={textareaval}*/}
// {/*onInput={this.settextarea}*/}
// {/*></textarea>*/}
//
// <WordNumberTextarea
// placeholder={"请填写您对作品调分的原因"}
// onInput={(e)=>this.settextarea(e)}
// value={textareaval}
// maxlength={100}
// />
//
// {/*<li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li>*/}
// <div style={{height:"20px",lineHeight:"20px"}}></div>
// </div>
//
// <style>
// {
//
// `
// .pdl10{
// padding-left:10px;
// }
// `
// }
// </style>
//
// <li className={"pdl10"}>
//
// </li>
// <li style={{height:"20px",lineHeight:"20px"}}><span className={Inputsvaltype===true?"color-red":"none"}>分数不能为空</span></li>
// <div className="clearfix edu-txt-center">
// <a className="task-btn color-white mr30" onClick={this.props.Cancel}>{this.props.Cancelname || '取消'}</a>
// <a className="task-btn task-btn-orange" onClick={this.Saves}>{this.props.Savesname || '保存'}</a>
{/* </div>*/}{/*</div>*/}
/***/ }),
/***/ 1886:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var has = Object.prototype.hasOwnProperty;
var isArray = Array.isArray;
var hexTable = (function () {
var array = [];
for (var i = 0; i < 256; ++i) {
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
}
return array;
}());
var compactQueue = function compactQueue(queue) {
while (queue.length > 1) {
var item = queue.pop();
var obj = item.obj[item.prop];
if (isArray(obj)) {
var compacted = [];
for (var j = 0; j < obj.length; ++j) {
if (typeof obj[j] !== 'undefined') {
compacted.push(obj[j]);
}
}
item.obj[item.prop] = compacted;
}
}
};
var arrayToObject = function arrayToObject(source, options) {
var obj = options && options.plainObjects ? Object.create(null) : {};
for (var i = 0; i < source.length; ++i) {
if (typeof source[i] !== 'undefined') {
obj[i] = source[i];
}
}
return obj;
};
var merge = function merge(target, source, options) {
if (!source) {
return target;
}
if (typeof source !== 'object') {
if (isArray(target)) {
target.push(source);
} else if (target && typeof target === 'object') {
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
target[source] = true;
}
} else {
return [target, source];
}
return target;
}
if (!target || typeof target !== 'object') {
return [target].concat(source);
}
var mergeTarget = target;
if (isArray(target) && !isArray(source)) {
mergeTarget = arrayToObject(target, options);
}
if (isArray(target) && isArray(source)) {
source.forEach(function (item, i) {
if (has.call(target, i)) {
var targetItem = target[i];
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
target[i] = merge(targetItem, item, options);
} else {
target.push(item);
}
} else {
target[i] = item;
}
});
return target;
}
return Object.keys(source).reduce(function (acc, key) {
var value = source[key];
if (has.call(acc, key)) {
acc[key] = merge(acc[key], value, options);
} else {
acc[key] = value;
}
return acc;
}, mergeTarget);
};
var assign = function assignSingleSource(target, source) {
return Object.keys(source).reduce(function (acc, key) {
acc[key] = source[key];
return acc;
}, target);
};
var decode = function (str, decoder, charset) {
var strWithoutPlus = str.replace(/\+/g, ' ');
if (charset === 'iso-8859-1') {
// unescape never throws, no try...catch needed:
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
}
// utf-8
try {
return decodeURIComponent(strWithoutPlus);
} catch (e) {
return strWithoutPlus;
}
};
var encode = function encode(str, defaultEncoder, charset) {
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
// It has been adapted here for stricter adherence to RFC 3986
if (str.length === 0) {
return str;
}
var string = typeof str === 'string' ? str : String(str);
5 years ago
if (charset === 'iso-8859-1') {
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
});
}
var out = '';
for (var i = 0; i < string.length; ++i) {
var c = string.charCodeAt(i);
if (
c === 0x2D // -
|| c === 0x2E // .
|| c === 0x5F // _
|| c === 0x7E // ~
|| (c >= 0x30 && c <= 0x39) // 0-9
|| (c >= 0x41 && c <= 0x5A) // a-z
|| (c >= 0x61 && c <= 0x7A) // A-Z
) {
out += string.charAt(i);
continue;
}
if (c < 0x80) {
out = out + hexTable[c];
continue;
}
if (c < 0x800) {
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
continue;
}
if (c < 0xD800 || c >= 0xE000) {
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
continue;
}
i += 1;
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
out += hexTable[0xF0 | (c >> 18)]
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
+ hexTable[0x80 | (c & 0x3F)];
}
return out;
};
var compact = function compact(value) {
var queue = [{ obj: { o: value }, prop: 'o' }];
var refs = [];
for (var i = 0; i < queue.length; ++i) {
var item = queue[i];
var obj = item.obj[item.prop];
var keys = Object.keys(obj);
for (var j = 0; j < keys.length; ++j) {
var key = keys[j];
var val = obj[key];
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
queue.push({ obj: obj, prop: key });
refs.push(val);
}
}
}
compactQueue(queue);
return value;
};
var isRegExp = function isRegExp(obj) {
return Object.prototype.toString.call(obj) === '[object RegExp]';
};
var isBuffer = function isBuffer(obj) {
if (!obj || typeof obj !== 'object') {
return false;
}
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
};
var combine = function combine(a, b) {
return [].concat(a, b);
};
module.exports = {
arrayToObject: arrayToObject,
assign: assign,
combine: combine,
compact: compact,
decode: decode,
encode: encode,
isBuffer: isBuffer,
isRegExp: isRegExp,
merge: merge
};
/***/ }),
/***/ 1887:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var replace = String.prototype.replace;
var percentTwenties = /%20/g;
module.exports = {
'default': 'RFC3986',
formatters: {
RFC1738: function (value) {
return replace.call(value, percentTwenties, '+');
},
RFC3986: function (value) {
return value;
}
},
5 years ago
RFC1738: 'RFC1738',
RFC3986: 'RFC3986'
};
/***/ }),
/***/ 2241:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var stringify = __webpack_require__(2242);
var parse = __webpack_require__(2243);
var formats = __webpack_require__(1887);
5 years ago
module.exports = {
formats: formats,
parse: parse,
stringify: stringify
};
/***/ }),
/***/ 2242:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__(1886);
var formats = __webpack_require__(1887);
5 years ago
var has = Object.prototype.hasOwnProperty;
var arrayPrefixGenerators = {
brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
5 years ago
return prefix + '[]';
},
comma: 'comma',
indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
5 years ago
return prefix + '[' + key + ']';
},
repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
5 years ago
return prefix;
}
};
var isArray = Array.isArray;
var push = Array.prototype.push;
var pushToArray = function (arr, valueOrArray) {
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
};
var toISO = Date.prototype.toISOString;
var defaults = {
addQueryPrefix: false,
allowDots: false,
charset: 'utf-8',
charsetSentinel: false,
delimiter: '&',
encode: true,
encoder: utils.encode,
encodeValuesOnly: false,
formatter: formats.formatters[formats['default']],
5 years ago
// deprecated
indices: false,
serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
5 years ago
return toISO.call(date);
},
skipNulls: false,
strictNullHandling: false
};
var stringify = function stringify( // eslint-disable-line func-name-matching
5 years ago
object,
prefix,
generateArrayPrefix,
strictNullHandling,
skipNulls,
encoder,
filter,
sort,
allowDots,
serializeDate,
formatter,
encodeValuesOnly,
charset
) {
var obj = object;
if (typeof filter === 'function') {
obj = filter(prefix, obj);
} else if (obj instanceof Date) {
obj = serializeDate(obj);
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
obj = obj.join(',');
}
if (obj === null) {
if (strictNullHandling) {
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset) : prefix;
5 years ago
}
obj = '';
}
if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
5 years ago
if (encoder) {
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset);
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset))];
5 years ago
}
return [formatter(prefix) + '=' + formatter(String(obj))];
}
var values = [];
if (typeof obj === 'undefined') {
return values;
}
var objKeys;
if (isArray(filter)) {
objKeys = filter;
} else {
var keys = Object.keys(obj);
objKeys = sort ? keys.sort(sort) : keys;
}
for (var i = 0; i < objKeys.length; ++i) {
var key = objKeys[i];
if (skipNulls && obj[key] === null) {
continue;
}
if (isArray(obj)) {
pushToArray(values, stringify(
obj[key],
typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix,
generateArrayPrefix,
strictNullHandling,
skipNulls,
encoder,
filter,
sort,
allowDots,
serializeDate,
formatter,
encodeValuesOnly,
charset
));
} else {
pushToArray(values, stringify(
obj[key],
prefix + (allowDots ? '.' + key : '[' + key + ']'),
generateArrayPrefix,
strictNullHandling,
skipNulls,
encoder,
filter,
sort,
allowDots,
serializeDate,
formatter,
encodeValuesOnly,
charset
));
}
}
return values;
};
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
if (!opts) {
return defaults;
}
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
throw new TypeError('Encoder has to be a function.');
}
var charset = opts.charset || defaults.charset;
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
}
var format = formats['default'];
if (typeof opts.format !== 'undefined') {
if (!has.call(formats.formatters, opts.format)) {
throw new TypeError('Unknown format option provided.');
}
format = opts.format;
}
var formatter = formats.formatters[format];
var filter = defaults.filter;
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
filter = opts.filter;
}
return {
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
charset: charset,
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
filter: filter,
formatter: formatter,
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
sort: typeof opts.sort === 'function' ? opts.sort : null,
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
};
};
module.exports = function (object, opts) {
var obj = object;
var options = normalizeStringifyOptions(opts);
var objKeys;
var filter;
if (typeof options.filter === 'function') {
filter = options.filter;
obj = filter('', obj);
} else if (isArray(options.filter)) {
filter = options.filter;
objKeys = filter;
}
var keys = [];
if (typeof obj !== 'object' || obj === null) {
return '';
}
var arrayFormat;
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
arrayFormat = opts.arrayFormat;
} else if (opts && 'indices' in opts) {
arrayFormat = opts.indices ? 'indices' : 'repeat';
} else {
arrayFormat = 'indices';
}
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
if (!objKeys) {
objKeys = Object.keys(obj);
}
if (options.sort) {
objKeys.sort(options.sort);
}
for (var i = 0; i < objKeys.length; ++i) {
var key = objKeys[i];
if (options.skipNulls && obj[key] === null) {
continue;
}
pushToArray(keys, stringify(
obj[key],
key,
generateArrayPrefix,
options.strictNullHandling,
options.skipNulls,
options.encode ? options.encoder : null,
options.filter,
options.sort,
options.allowDots,
options.serializeDate,
options.formatter,
options.encodeValuesOnly,
options.charset
));
}
var joined = keys.join(options.delimiter);
var prefix = options.addQueryPrefix === true ? '?' : '';
if (options.charsetSentinel) {
if (options.charset === 'iso-8859-1') {
// encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
prefix += 'utf8=%26%2310003%3B&';
} else {
// encodeURIComponent('✓')
prefix += 'utf8=%E2%9C%93&';
}
}
return joined.length > 0 ? prefix + joined : '';
};
/***/ }),
/***/ 2243:
5 years ago
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__(1886);
5 years ago
var has = Object.prototype.hasOwnProperty;
var defaults = {
allowDots: false,
allowPrototypes: false,
arrayLimit: 20,
charset: 'utf-8',
charsetSentinel: false,
comma: false,
decoder: utils.decode,
delimiter: '&',
depth: 5,
ignoreQueryPrefix: false,
interpretNumericEntities: false,
parameterLimit: 1000,
parseArrays: true,
plainObjects: false,
strictNullHandling: false
};
var interpretNumericEntities = function (str) {
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
return String.fromCharCode(parseInt(numberStr, 10));
});
};
// This is what browsers will submit when the ✓ character occurs in an
// application/x-www-form-urlencoded body and the encoding of the page containing
// the form is iso-8859-1, or when the submitted form has an accept-charset
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
// the ✓ character, such as us-ascii.
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
// 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);
5 years ago
val = options.strictNullHandling ? null : '';
} else {
key = options.decoder(part.slice(0, pos), defaults.decoder, charset);
val = options.decoder(part.slice(pos + 1), defaults.decoder, charset);
5 years ago
}
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
val = interpretNumericEntities(val);
}
if (val && options.comma && val.indexOf(',') > -1) {
5 years ago
val = val.split(',');
}
if (has.call(obj, key)) {
obj[key] = utils.combine(obj[key], val);
} else {
obj[key] = val;
}
}
return obj;
};
var parseObject = function (chain, val, options) {
var leaf = val;
for (var i = chain.length - 1; i >= 0; --i) {
var obj;
var root = chain[i];
if (root === '[]' && options.parseArrays) {
obj = [].concat(leaf);
} else {
obj = options.plainObjects ? Object.create(null) : {};
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
var index = parseInt(cleanRoot, 10);
if (!options.parseArrays && cleanRoot === '') {
obj = { 0: leaf };
} else if (
!isNaN(index)
&& root !== cleanRoot
&& String(index) === cleanRoot
&& index >= 0
&& (options.parseArrays && index <= options.arrayLimit)
) {
obj = [];
obj[index] = leaf;
} else {
obj[cleanRoot] = leaf;
}
}
leaf = obj;
}
return leaf;
};
var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
if (!givenKey) {
return;
}
// Transform dot notation to bracket notation
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
// The regex chunks
var brackets = /(\[[^[\]]*])/;
var child = /(\[[^[\]]*])/g;
// Get the parent
var segment = brackets.exec(key);
5 years ago
var parent = segment ? key.slice(0, segment.index) : key;
// Stash the parent if it exists
var keys = [];
if (parent) {
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
if (!options.plainObjects && has.call(Object.prototype, parent)) {
if (!options.allowPrototypes) {
return;
}
}
keys.push(parent);
}
// Loop through children appending to the array until we hit depth
var i = 0;
while ((segment = child.exec(key)) !== null && i < options.depth) {
5 years ago
i += 1;
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
if (!options.allowPrototypes) {
return;
}
}
keys.push(segment[1]);
}
// If there's a remainder, just add whatever is left
if (segment) {
keys.push('[' + key.slice(segment.index) + ']');
}
return parseObject(keys, val, options);
};
var normalizeParseOptions = function normalizeParseOptions(opts) {
if (!opts) {
return defaults;
}
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
throw new TypeError('Decoder has to be a function.');
}
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined');
}
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
return {
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
charset: charset,
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth,
5 years ago
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);
};
/***/ }),
/***/ 4654:
5 years ago
/***/ (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__(904);
5 years ago
/* 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__(905);
5 years ago
/* 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__(1227);
5 years ago
/* 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__(1228);
5 years ago
/* 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_tooltip_style_css__ = __webpack_require__(169);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_tooltip_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip__ = __webpack_require__(168);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css__ = __webpack_require__(68);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_input_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_input__ = __webpack_require__(69);
5 years ago
/* 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_antd_lib_checkbox_style_css__ = __webpack_require__(317);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox__ = __webpack_require__(314);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_router_dom__ = __webpack_require__(44);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_educoder__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_axios__ = __webpack_require__(15);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_moment__ = __webpack_require__(86);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_moment__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__coursesPublic_HomeworkModal__ = __webpack_require__(1200);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__modals_Modals__ = __webpack_require__(173);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__coursesPublic_CoursesListType__ = __webpack_require__(1084);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__modals_DownloadMessageysl__ = __webpack_require__(1427);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__coursesPublic_ModulationModal__ = __webpack_require__(1794);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__coursesPublic_AllocationModal__ = __webpack_require__(4655);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__coursesPublic_Associationmodel__ = __webpack_require__(1912);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__coursesPublic_AccessoryModal__ = __webpack_require__(1451);
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckboxGroup=__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a.Group;var Search=__WEBPACK_IMPORTED_MODULE_7_antd_lib_input___default.a.Search;var qs=__webpack_require__(2241);//毕设任务列表
5 years ago
var GraduationTaskssettinglist=function(_Component){_inherits(GraduationTaskssettinglist,_Component);function GraduationTaskssettinglist(props){_classCallCheck(this,GraduationTaskssettinglist);var _this=_possibleConstructorReturn(this,(GraduationTaskssettinglist.__proto__||Object.getPrototypeOf(GraduationTaskssettinglist)).call(this,props));_this.goback=function(){// window.history.back(-1)
// let courseId=this.props.match.params.coursesId;
// if(courseId===undefined){
// this.props.history.push("/courses");
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
// this.props.history.goBack()
_this.props.history.replace("/courses/"+_this.state.taskslistdata.course_id+"/graduation_tasks/"+_this.state.taskslistdata.graduation_id);};_this.reInit=function(){_this.setState({course_groupslist:[],checkAllValue:false});var _this$state=_this.state,teacher_comment=_this$state.teacher_comment,task_status=_this$state.task_status,course_group=_this$state.course_group,cross_comment=_this$state.cross_comment,order=_this$state.order,b_order=_this$state.b_order,search=_this$state.search;_this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,_this.state.page);};_this.seacthdata=function(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pages){var _this$state2=_this.state,page=_this$state2.page,limit=_this$state2.limit;// console.log(teacher_comment,task_status,course_group,cross_comment,order,b_order,search)
var task_Id=_this.props.match.params.task_Id;var url="/graduation_tasks/"+task_Id+"/tasks_list.json";// let user=this.props.user.user_id;
//get 数组
__WEBPACK_IMPORTED_MODULE_13_axios___default.a.get(url,{params:{teacher_comment:teacher_comment===null?undefined:teacher_comment,task_status:task_status===null?undefined:task_status,course_group:course_group===null?undefined:course_group,cross_comment:cross_comment===null?undefined:cross_comment,order:order===null?undefined:order,b_order:b_order===null?undefined:b_order,search:search===null?undefined:search,page:pages,limit:20},paramsSerializer:function paramsSerializer(params){return qs.stringify(params,{arrayFormat:'brackets'});}}).then(function(result){if(result.status===200){var datalist=[];var worklists=result.data.work_lists;if(worklists.length!=0){for(var i=0;i<worklists.length;i++){datalist.push({name:worklists[i].name,number:(parseInt(pages)-1)*parseInt(limit)+(i+1),stduynumber:worklists[i].student_id,classroom:worklists[i].class_grouping_name,grouping:result.data.have_grouping===true?worklists[i].grouping_name:null,submitstate:worklists[i].status===0?"未提交":worklists[i].status===1?"按时提交":worklists[i].status===2?"延时提交":"",turnovertime:worklists[i].update_time,associationitems:result.data.have_grouping==false?"":{name:worklists[i].project_info===undefined?"--":worklists[i].project_info.name,id:worklists[i].project_info===undefined?"":worklists[i].project_info.id},teacherrating:worklists[i].teacher_comment_score,crossrating:{cross_comment_score:worklists[i].cross_comment_score,cross_comment_num:worklists[i].cross_comment_num},finalscore:{work_score:worklists[i].final_score.work_score===null?"--":worklists[i].final_score.work_score,teacher_comment_score:worklists[i].teacher_comment_score,cross_comment_score:worklists[i].cross_comment_score,late_penalty:worklists[i].late_penalty,final_score:worklists[i].final_score,ultimate_score:worklists[i].ultimate_score},operation:_this.props.isAdmin()?[{name:worklists[i].assign===true?"分配":"",id:worklists[i].id,status:worklists[i].status},{name:"调分",id:worklists[i].id,status:worklists[i].status},{name:"评阅",id:worklists[i].id,status:worklists[i].status}]:[{name:"",id:worklists[i].id,status:worklists[i].status,view_work:worklists[i].view_work}]});}}_this.setState({taskslistdata:result.data,data:datalist,loadingstate:false,end_time:result.data.end_time});_this.props.setend_time(result.data.end_time);}}).catch(function(error){console.log(error);});};_this.TablePagination=function(pagination,filters,sorter){// console.log(e.current);
// this.setState({
// page:e.current
// })
if(JSON.stringify(sorter)==="{}"){//没有选择
}else{//stduynumber 学号
try{//学生学号排序
if(sorter.columnKey==="stduynumber"){var orderlumn="";if(sorter.order==="ascend"){//升序
orderlumn="asc";}else if(sorter.order==="descend"){//降序
orderlumn="desc";}_this.funorder("student_id",orderlumn);}}catch(e){}//turnovertime 时间
try{//学生学号排序
if(sorter.columnKey==="turnovertime"){var _orderlumn="";if(sorter.order==="ascend"){//升序
_orderlumn="asc";}else if(sorter.order==="descend"){//降序
_orderlumn="desc";}_this.funorder("update_time",_orderlumn);}}catch(e){}//finalscore 成绩
try{//学生学号排序
if(sorter.columnKey==="finalscore"){var _orderlumn2="";if(sorter.order==="ascend"){//升序
_orderlumn2="asc";}else if(sorter.order==="descend"){//降序
_orderlumn2="desc";}_this.funorder("work_score",_orderlumn2);}}catch(e){}}};_this.funteachercomment=function(list,key){// console.log(e.target.value)
var _this$state3=_this.state,teacher_comment=_this$state3.teacher_comment,task_status=_this$state3.task_status,course_group=_this$state3.course_group,cross_comment=_this$state3.cross_comment,order=_this$state3.order,b_order=_this$state3.b_order,search=_this$state3.search;var listype=list instanceof Array;if(listype===false){_this.setState({teacher_comment:null,loadingstate:true});}else{_this.setState({teacher_comment:list,loadingstate:true});}if(list.length===key){_this.seacthdata(undefined,task_status,course_group,cross_comment,order,b_order,search,_this.state.page);}else{_this.seacthdata(list[0],task_status,course_group,cross_comment,order,b_order,search,_this.state.page);}};_this.funcross_comment=function(e){var _this$state4=_this.state,teacher_comment=_this$state4.teacher_comment,task_status=_this$state4.task_status,course_group=_this$state4.course_group,order=_this$state4.order,b_order=_this$state4.b_order,search=_this$state4.search;_this.setState({cross_comment:e.target.value===undefined||e.target.value===false?null:e.target.value,loadingstate:true});_this.seacthdata(teacher_comment,task_status,course_group,e.target.value===undefined||e.target.value===false?"":e.target.value,order,b_order,search,_this.state.page);};_this.inputSearchValue=function(e){if(e.target.value===""){_this.setState({search:null});}else{_this.setState({search:e.target.value});}};_this.searchValue=function(){var _this$state5=_this.state,teacher_comment=_this$state5.teacher_comment,task_status=_this$state5.task_status,course_group=_this$state5.course_group,cross_comment=_this$state5.cross_comment,order=_this$state5.order,b_order=_this$state5.b_order,search=_this$state5.search;_this.setState({loadingstate:true});_this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,_this.state.page);};_this.funorder=function(value,newb_order){var _this$state6=_this.state,teacher_comment=_this$state6.teacher_comment,task_status=_this$state6.task_status,course_group=_this$state6.course_group,cross_comment=_this$state6.cross_comment,b_order=_this$state6.b_order,search=_this$state6.search,order=_this$state6.order;_this.setState({order:value,b_order:newb_order,loadingstate:true});_this.seacthdata(teacher_comment,task_status,course_group,cross_comment,value,newb_order,search,_this.state.page);};_this.funtaskstatus=function(checkedValues,key){// console.log(checkedValues)
var _this$state7=_this.state,teacher_comment=_this$state7.teacher_comment,course_group=_this$state7.course_group,cross_comment=_this$state7.cross_comment,order=_this$state7.order,b_order=_this$state7.b_order,search=_this$state7.search;if(JSON.stringify(checkedValues)==="[]"){// console.log(checkedValues);
// 全部没选的时候是空数组
_this.setState({task_status:undefined,loadingstate:true});_this.seacthdata(teacher_comment,null,course_group,cross_comment,order,b_order,search,_this.state.page);}// else if(checkedValues.length ===key){
// // 全部抖选中 自然就是查找全部 就是空
// this.setState({
// task_status:undefined,
// loadingstate:true
// })
// this.seacthdata(teacher_comment, null, course_group, cross_comment, order, b_order, search,this.state.page);
// }
else{//选哪个就替换那个
_this.setState({task_status:checkedValues===key?null:checkedValues,loadingstate:true});_this.seacthdata(teacher_comment,checkedValues===key?undefined:checkedValues,course_group,cross_comment,order,b_order,search,_this.state.page);}};_this.groupgroup=function(checkedValues,key){// console.log(checkedValues);
// console.log(key);
var _this$state8=_this.state,teacher_comment=_this$state8.teacher_comment,task_status=_this$state8.task_status,cross_comment=_this$state8.cross_comment,order=_this$state8.order,b_order=_this$state8.b_order,search=_this$state8.search;if(JSON.stringify(checkedValues)==="[]"){// console.log(checkedValues);
// 全部没选的时候是空数组
_this.setState({course_group:undefined,loadingstate:true});_this.seacthdata(teacher_comment,task_status,null,cross_comment,order,b_order,search,_this.state.page);}// else if(checkedValues.length ===key){
// // 全部抖选中 自然就是查找全部 就是空
// this.setState({
// course_group:undefined,
// loadingstate:true
// })
// this.seacthdata(teacher_comment, task_status, null, cross_comment, order, b_order, search,this.state.page);
//
// }
else{//选哪个就替换那个
_this.setState({course_group:checkedValues===key?null:checkedValues,loadingstate:true});_this.seacthdata(teacher_comment,task_status,checkedValues===key?undefined:checkedValues,cross_comment,order,b_order,search,_this.state.page);}};_this.end=function(){// this.homeworkstart()
_this.setState({modalname:"立即截止",visible:true,Topval:"学生将不能再提交作品",// Botvalleft:"暂不截止",
// Botval:`本操作只对"提交中"的任务有效`,
Cancelname:"暂不截止",Savesname:"立即截止",Cancel:_this.cancelmodel,Saves:_this.coursetaskend,typs:"end"});};_this.publish=function(){var starttime=_this.props.getNowFormatDates(1,1);var endtime=_this.props.getNowFormatDates(2,1);// this.homeworkstart()
_this.setState({modalname:"立即发布",visible:true,Topval:"学生将立即收到毕设任务",// Botvalleft:"点击修改",
// Botval:`本操作只对"未发布"的分班有效`,
starttime:__WEBPACK_IMPORTED_MODULE_14_moment___default()(__WEBPACK_IMPORTED_MODULE_14_moment___default()(new Date())).format("YYYY-MM-DD HH:mm"),starttimes:_this.props.getNowFormatDates(1),typs:"start",endtime:endtime,Cancelname:"暂不发布",Savesname:"立即发布",Cancel:_this.cancelmodel,Saves:_this.homepublish});};_this.homeworkstart=function(){var coursesId=_this.props.match.params.coursesId;var url="/courses/"+coursesId+"/all_course_groups.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.get(url).then(function(response){if(response.status===200){_this.setState({modaltype:response.data.course_groups===null||response.data.course_groups.length===0?2:1,course_groups:response.data.course_groups});}}).catch(function(error){console.log(error);});};_this.homepublish=function(ids,endtime){var task_Id=_this.props.match.params.task_Id;var cid=_this.props.match.params.coursesId;// let url = `/courses/${cid}/graduation_tasks/publish_task.json`;
var url="/courses/"+cid+"/graduation_tasks/publish_task.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.post(url,{task_ids:[task_Id],group_ids:_this.state.course_groupslist,end_time:endtime}).then(function(response){if(response.data.status==0){_this.props.showNotification(response.data.message);_this.searchValue();_this.cancelmodel();_this.setState({// Modalstopval:response.data.message,
// ModalSave:this.cancelmodel,
// Loadtype:true,
course_groupslist:[],checkAllValue:false});}}).catch(function(error){});};_this.cancelmodel=function(){_this.setState({Modalstype:false,Loadtype:false,visible:false,Modulationtype:false,Allocationtype:false,Modalstopval:"",ModalCancel:"",ModalSave:""});};_this.coursetaskend=function(){var coursesId=_this.props.match.params.coursesId;var task_Id=_this.props.match.params.task_Id;var url="/courses/"+coursesId+"/graduation_tasks/end_task.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.post(url,{task_ids:[task_Id],group_ids:_this.state.course_groupslist}).then(function(response){if(response.data.status==0){_this.props.showNotification(response.data.message);_this.searchValue();_this.cancelmodel();_this.setState({// Modalstopval:response.data.message,
// ModalSave:this.cancelmodel,
// Loadtype:true,
course_groupslist:[],checkAllValue:false});}}).catch(function(error){});};_this.handaccessory=function(){// let {taskslistdata}=this.state;
// let courseId=this.props.match.params.coursesId;
//
// let url="/courses/"+courseId+"/graduation_tasks/"+taskslistdata.work_id+"/appraise"
//
// window.location.href=url;
_this.setState({avisible:true});};_this.Cancelvisible=function(){_this.setState({avisible:false});};_this.setupdate=function(){_this.searchValue();};_this.showModulationtype=function(id){// console.log(id)
_this.setState({Modulationtype:true,operationId:id});};_this.showAllocationModal=function(id){_this.setState({Allocationtype:true,operationId:id});};_this.saveModulationModal=function(value,num){var _this$state9=_this.state,teacher_comment=_this$state9.teacher_comment,task_status=_this$state9.task_status,course_group=_this$state9.course_group,cross_comment=_this$state9.cross_comment,order=_this$state9.order,b_order=_this$state9.b_order,search=_this$state9.search;var operationId=_this.state.operationId;// console.log(value,num)
var url="/graduation_works/"+operationId+"/adjust_score.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.post(url,{score:num,comment:value}).then(function(result){// console.log(result)
if(result.data.status===0){_this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,_this.state.page);_this.props.showNotification(result.data.message);_this.cancelmodel();_this.setState({Modalstype:false,Allocationtype:false,// Modalstopval:result.data.message,
ModalSave:_this.cancelmodel});}}).catch(function(error){console.log(error);});};_this.saveAllocationModal=function(value){var operationId=_this.state.operationId;var userid=parseInt(value);var url="/graduation_works/"+operationId+"/assign_teacher.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.post(url,{user_id:userid}).then(function(result){// console.log(result)
if(result.data.status===0){_this.setState({Modalstype:true,Allocationtype:false,Modalstopval:result.data.message,ModalSave:_this.cancelmodel});}}).catch(function(error){console.log(error);});};_this.cannelAssociation=function(){_this.setState({Modalstype:true,Modalstopval:"确定要取消该项目关联?",ModalCancel:_this.cannerassocition,ModalSave:_this.savetassociton});};_this.cannerassocition=function(){_this.setState({Modalstype:false,Modalstopval:"",ModalCancel:"",ModalSave:"",loadtype:false,visibles:false});};_this.savetassociton=function(){_this.cannerassocition();var taskslistdata=_this.state.taskslistdata;var url="/graduation_tasks/"+taskslistdata.task_id+"/graduation_works/cancel_relate_project.json";__WEBPACK_IMPORTED_MODULE_13_axios___default.a.get(url).then(function(result){if(result.data.status===0){_this.searchValue();// this.setState({
// Modalstype:true,
// Modalstopval:result.data.message,
// ModalSave:this.cannerassocition,
// loadtype:true
// })
}}).catch(function(error){console.log(error);});};_this.AssociationItems=function(){_this.setState({visibles:true});};_this.Cancel=function(){_this.setState({visibles:false});};_this.skipTop=function(){_this.scrollToAnchor("starttime");_this.cancelmodel();};_this.getcourse_groupslist=function(id){_this.setState({course_groupslist:id});};_this.paginationonChanges=function(pageNumber){_this.setState({page:pageNumber});var _this$state10=_this.state,teacher_comment=_this$state10.teacher_comment,task_status=_this$state10.task_status,course_group=_this$state10.course_group,cross_comment=_this$state10.cross_comment,order=_this$state10.order,b_order=_this$state10.b_order,search=_this$state10.search;_this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pageNumber);};_this.Downloadcal=function(){_this.setState({DownloadType:false,DownloadMessageval:undefined});};_this.state={coursename:"",coursesearch:"",title_num:20,limit:20,title_value:"",fileList:[],contents:[{val:"",id:1}],type:true,taskslistdata:undefined,data:undefined,page:1,teacher_comment:null,task_status:undefined,cross_comment:null,search:null,order:"update_time",b_order:"desc",course_group:undefined,loadingstate:true,operationId:null,Allocationtype:false,task_Id:"",user_id:"",visibles:false,DownloadType:false,DownloadMessageval:undefined};return _this;}_createClass(GraduationTaskssettinglist,[{key:"componentDidMount",value:function componentDidMount(){var tab=this.props.tab;this.props.setTab&&this.props.setTab(tab);var _state=this.state,teacher_comment=_state.teacher_comment,task_status=_state.task_status,course_group=_state.course_group,cross_comment=_state.cross_comment,order=_state.order,b_order=_state.b_order,search=_state.search;this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,this.state.page);try{this.props.triggerRef(this);}catch(e){}}//立即发布
//立即发布
//教师下面分页搜索入口
},{key:"confirmysl",/// 确认是否下载
value:function confirmysl(url){var _this2=this;var _state2=this.state,teacher_comment=_state2.teacher_comment,task_status=_state2.task_status,course_group=_state2.course_group,cross_comment=_state2.cross_comment,order=_state2.order,b_order=_state2.b_order,search=_state2.search,page=_state2.page;var params={teacher_comment:teacher_comment,task_status:task_status,course_group:course_group,cross_comment:cross_comment,order:order,b_order:b_order,search:search};__WEBPACK_IMPORTED_MODULE_13_axios___default.a.get(url+'?export=true',{params:params}).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{_this2.props.slowDownload(url);// this.props.showNotification(`正在下载中`);
// window.open("/api"+url, '_blank');
}}).catch(function(error){console.log(error);});}},{key:"render",value:function render(){var _this3=this;var _state3=this.state,coursename=_state3.coursename,coursesearch=_state3.coursesearch,taskname=_state3.taskname,taskid=_state3.taskid,taskslistdata=_state3.taskslistdata,data=_state3.data,page=_state3.page,limit=_state3.limit,teacher_comment=_state3.teacher_comment,task_status=_state3.task_status,cross_comment=_state3.cross_comment,search=_state3.search,loadingstate=_state3.loadingstate,order=_state3.order,course_group=_state3.course_group,Modalstype=_state3.Modalstype,Modalstopval=_state3.Modalstopval,ModalCancel=_state3.ModalCancel,ModalSave=_state3.ModalSave,modalname=_state3.modalname,Modulationtype=_state3.Modulationtype,operationId=_state3.operationId,Allocationtype=_state3.Allocationtype,visibles=_state3.visibles,visible=_state3.visible,Topval=_state3.Topval,Topvalright=_state3.Topvalright,Botvalleft=_state3.Botvalleft,Botval=_state3.Botval,starttime=_state3.starttime,endtime=_state3.endtime,Cancelname=_state3.Cancelname,Savesname=_state3.Savesname,Cancel=_state3.Cancel,Saves=_state3.Saves,course_groups=_state3.course_groups;var columns=[{title:'序号',dataIndex:'number',key:'number',className:'edu-txt-center'},{title:'姓名',dataIndex:'name',key:'name',className:'edu-txt-center',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{style:{color:'#9A9A9A'},className:"studentname",title:record.name},record.name));}},{title:'学号',dataIndex:'stduynumber',key:'stduynumber',className:'edu-txt-center',sorter:true,sortDirections:__WEBPACK_IMPORTED_MODULE_12_educoder__["_2" /* sortDirections */],render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{style:{color:'#9A9A9A'},className:"studentnumber",title:record.stduynumber},record.stduynumber));}},{title:'分班',key:'classroom',dataIndex:'classroom',className:'edu-txt-center',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:'#9A9A9A'}},record.classroom==="未分班"?"--":record.classroom));}},{title:'分组',key:'grouping',dataIndex:'grouping',className:'edu-txt-center',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:'#676767'}},record.grouping));}},{title:'关联项目',dataIndex:'associationitems',key:'associationitems',className:'edu-txt-center',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:'#4CACFF'},href:"/projects/"+record.associationitems.id,target:"_blank"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"projectsdiv",title:record.associationitems.name},record.associationitems.name)));}},{title:'提交状态',dataIndex:'submitstate',key:'submitstate',className:'edu-txt-center',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:record.submitstate==="按时提交"?'#29BD8B':record.submitstate==="未提交"?"#9A9A9A":"#DD1717"}},record.submitstate));}},{title:'更新时间',dataIndex:'turnovertime',key:'turnovertime',className:'edu-txt-center',sorter:true,defaultSortOrder:'descend',sortDirections:__WEBPACK_IMPORTED_MODULE_12_educoder__["_2" /* sortDirections */],render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:'#989898'}},record.turnovertime===""?"--":__WE
this.props.isAdmin()?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"stud-class-set"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix edu-back-white"},this.props.questionslist&&this.props.questionslist.status===0?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("ul",{className:"clearfix",style:{padding:'20px 30px 10px 30px'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u6559\u5E08\u8BC4\u9605\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",alue:null,className:teacher_comment===null?"pl10 pr10 check_on":"pl10 pr10 ",onClick:this.funteachercomment},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(CheckboxGroup,{value:teacher_comment,onChange:function onChange(e){return _this3.funteachercomment(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.length);},style:{paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment&&taskslistdata.search_assistants.teacher_comment.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{key:key},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a,{value:item.id,key:item.id,className:"fl "},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"fr mr5 search-new",style:{marginBottom:'1px',marginRight:"0px"}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",id:"subject_search_input",value:search,onInput:this.inputSearchValue,onSearch:this.searchValue,autoComplete:"off"}))),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u4F5C\u54C1\u72B6\u6001\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",className:task_status===null||task_status===undefined?"pl10 pr10 check_on":"pl10 pr10 ",onClick:function onClick(){return _this3.funtaskstatus([]);}},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(CheckboxGroup,{value:task_status,onChange:function onChange(e){return _this3.funtaskstatus(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.task_status.length);},style:{paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.task_status.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{key:key},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a,{value:item.id,key:item.id,className:"fl "},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));}))),taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.length!=0?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u5206\u73ED\u60C5\u51B5\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",className:course_group===null||course_group===undefined?"pl10 pr10 check_on":"pl10 pr10 ",onClick:function onClick(){return _this3.
// total: taskslistdata&&taskslistdata.work_count, //数据总数量
// pageSize: 20, //显示几条一页
// current:page,
// }}
,pagination:false,loading:loadingstate,onChange:this.TablePagination,className:"edu-txt-center"})))),taskslistdata&&taskslistdata.work_count&&taskslistdata.work_count>limit?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"edu-txt-center mt30 mb20"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default.a,{showQuickJumper:true,current:page,onChange:this.paginationonChanges,pageSize:limit,total:taskslistdata.work_count})):""):// 学生列表
this.props.isStudent()||this.props.isNotMember()?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"stud-class-set "},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix edu-back-white"},this.props.isNotMember()?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("ul",{className:"clearfix",style:{padding:'20px 30px 10px 30px'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u6559\u5E08\u8BC4\u9605\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",alue:null,className:teacher_comment===null?"pl10 pr10 check_on":"pl10 pr10 ",onClick:this.funteachercomment},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(CheckboxGroup,{value:teacher_comment,onChange:function onChange(e){return _this3.funteachercomment(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.length);},style:{paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{key:key},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a,{value:item.id,key:item.id,className:"fl "},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"fr mr5 search-new",style:{marginBottom:'1px'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",id:"subject_search_input",value:search,onInput:this.inputSearchValue,onSearch:this.searchValue,autoComplete:"off"}))),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u4F5C\u54C1\u72B6\u6001\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",className:task_status===null||task_status===undefined?"pl10 pr10 check_on":"pl10 pr10 ",onClick:function onClick(){return _this3.funtaskstatus([]);}},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(CheckboxGroup,{value:task_status,onChange:function onChange(e){return _this3.funtaskstatus(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.task_status.length);},style:{paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.task_status.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{key:key},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a,{value:item.id,key:item.id,className:"fl "},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));}))),taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.length!=0?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},"\u5206\u73ED\u60C5\u51B5\uFF1A"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{id:"graduation_comment_no_limit",className:course_group===null||course_group===undefined?"pl10 pr10 check_on":"pl10 pr10 ",onClick:function onClick(){return _this3.groupgroup([]);}},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___defau
/***/ }),
/***/ 4655:
5 years ago
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(32);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__ = __webpack_require__(33);
5 years ago
/* 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_select_style_css__ = __webpack_require__(318);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_select_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_select__ = __webpack_require__(315);
5 years ago
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_select__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Option=__WEBPACK_IMPORTED_MODULE_3_antd_lib_select___default.a.Option;var AllocationModal=function(_Component){_inherits(AllocationModal,_Component);function AllocationModal(props){_classCallCheck(this,AllocationModal);var _this=_possibleConstructorReturn(this,(AllocationModal.__proto__||Object.getPrototypeOf(AllocationModal)).call(this,props));_this.Saves=function(){var Allocationval=_this.state.Allocationval;if(Allocationval===""||Allocationval===undefined){_this.setState({textareavaltype:true});return;}_this.props.Saves(Allocationval);};_this.handleChange=function(value){_this.setState({Allocationval:parseInt(value)});};_this.state={group_ids:[],fileList:[],textareaval:undefined,Inputsval:undefined,Allocationval:undefined};return _this;}_createClass(AllocationModal,[{key:"render",value:function render(){var _state=this.state,textareavaltype=_state.textareavaltype,Allocationval=_state.Allocationval;var teacherlist=this.props.teacherlist;// console.log(teacherlist)
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_4_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_4_react___default.a.createElement("div",{className:"task-popup-content"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{style:{width:'100%'}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{style:{marginLeft:'90px'}},"\u9009\u62E9\uFF1A",__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_select___default.a,{placeholder:"\u8BF7\u9009\u62E9\u4EA4\u53C9\u8BC4\u9605\u8001\u5E08",style:{width:300},value:Allocationval,onChange:this.handleChange},teacherlist&&teacherlist.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(Option,{value:item.id,key:key},item.name);})))),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:textareavaltype===true?"color-red ml90":"none"},"\u8BF7\u5148\u9009\u62E9\u6210\u5458")),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"clearfix mt30 edu-txt-center mb10"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",{className:"task-btn color-white mr30",onClick:this.props.Cancel},this.props.Cancelname),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",{className:"task-btn task-btn-orange",onClick:this.Saves},this.props.Savesname)))));}}]);return AllocationModal;}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (AllocationModal);
/***/ })
});