|
|
webpackJsonp([163],{
|
|
|
|
|
|
/***/ 1067:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
__webpack_require__(27);
|
|
|
|
|
|
__webpack_require__(1205);
|
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1068:
|
|
|
/***/ (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__(1207));
|
|
|
|
|
|
var _icon = _interopRequireDefault(__webpack_require__(25));
|
|
|
|
|
|
var _configProvider = __webpack_require__(9);
|
|
|
|
|
|
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) { 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
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1205:
|
|
|
/***/ (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__(1206);
|
|
|
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__(291)(content, options);
|
|
|
if(content.locals) module.exports = content.locals;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1206:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
|
// 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-placeholder{color:#bfbfbf}.ant-input-number-input:placeholder-shown{-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-input-number-input[type=number]::-webkit-inner-spin-button,.ant-input-number-input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.ant-input-number-lg{padding:0;font-size:16px}.ant-input-number-lg input{height:38px}.ant-input-number-sm{padding:0}.ant-input-number-sm input{height:22px;padding:0 7px}.ant-input-number-handler-wrap{position:absolute;top:0;right:0;width:22px;height:100%;background:#fff;border-left:1px solid #d9d9d9;border-radius:0 4px 4px 0;opacity:0;-webkit-transition:opacity .24s linear .1s;-o-transition:opacity .24s linear .1s;transition:opacity .24s linear .1s}.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner,.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner{display:inline-block;font-size:12px;font-size:7px\\9;-webkit-transform:scale(.58333333) rotate(0deg);-ms-transform:scale(.58333333) rotate(0deg);transform:scale(.58333333) rotate(0deg);min-width:auto;margin-right:0}:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner,:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner{font-size:12px}.ant-input-number-handler-wrap:hover .ant-input-number-handler{height:40%}.ant-input-number:hover .ant-input-number-handler-wrap{opacity:1}.ant-input-number-handler-up{border-top-right-radius:4px;cursor:pointer}.ant-input-number-handler-up-inner{top:50%;margin-top:-5px;text-align:center}.ant-input-number-handler-up:hover{height:60%!important}.ant-input-number-handler-down{top:0;border-top:1px solid #d9d9d9;border-bottom-right-radius:4px;cursor:pointer}.ant-input-number-handler-down-inner{top:50%;margin-top:-6px;text-align:center}.ant-input-number-handler-down:hover{height:60%!important}.ant-input-number-handler-down-disabled,.ant-input-number-handler-up-disabled{cursor:not-allowed}.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:rgba(0,0,0,.25)}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/node_modules/_antd@3.26.4@antd/lib/input-number/style/index.css"],"names":[],"mappings":"AAIA,kBACE,8BAA+B,AACvB,sBAAuB,AAC/B,0BAA2B,AAC3B,gBAAiB,AACjB,qCAAsC,AAC9B,6BAA8B,AACtC,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,iBAAkB,AAClB,sBAA2B,AAC3B,eAAgB,AAChB,gBAAiB,AACjB,sBAAuB,AACvB,sBAAuB,AACvB,2BAA6B,AAC7B,sBAAwB,AACxB,mBAAqB,AACrB,qBAAsB,AACtB,WAAY,AACZ,SAAU,AACV,UAAW,AACX,yBAA0B,AAC1B,iBAAmB,CACpB,AACD,oCACE,cAAe,AACf,SAAW,CACZ,AACD,wCACE,aAAe,CAChB,AACD,6CACE,aAAe,CAChB,AACD,oCACE,0BAA2B,AACxB,sBAAwB,CAC5B,AAKD,wBACE,qBAAsB,AACtB,iCAAmC,AACnC,UAAW,AACX,iDAAsD,AAC9C,wCAA8C,CACvD,AAWD,4BACE,sBAA2B,AAC3B,yBAA0B,AAC1B,mBAAoB,AACpB,SAAW,CACZ,AACD,kCACE,qBAAsB,AACtB,gCAAmC,CACpC,AACD,0BACE,eAAgB,AAChB,YAAa,AACb,gBAAiB,AACjB,gBAAiB,AACjB,sBAAuB,AACvB,qCAAwC,AACxC,gCAAmC,AACnC,4BAAgC,CACjC,AACD,qBACE,YAAa,AACb,gBAAkB,CAEnB,AACD,qBACE,YAAa,AACb,eAAiB,CAClB,AACD,0BACE,kBAAmB,AACnB,cAAe,AACf,WAAY,AACZ,WAAY,AACZ,gBAAiB,AACjB,sBAA2B,AAC3B,gBAAkB,AAClB,cAAe,AACf,kBAAmB,AACnB,kCAAoC,AACpC,6BAA+B,AAC/B,yBAA4B,CAC7B,AACD,iCACE,kBAAoB,CACrB,AACD,wIAEE,aAAe,CAChB,AACD,wEAEE,qBAAsB,AACtB,cAAe,AACf,kBAAmB,AACnB,cAAe,AACf,kBAAmB,AACnB,oBAAqB,AACrB,uBAAyB,AACzB,kCAAmC,AACnC,mCAAoC,AACpC,kCAAmC,AACnC,kBAAmB,AACnB,UAAW,AACX,WAAY,AACZ,YAAa,AACb,sBAA2B,AAC3B,iBAAkB,AAClB,kCAAoC,AACpC,6BAA+B,AAC/B,0BAA4B,AAC5B,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC3B,AACD,4EAEE,aAAe,CAChB,AACD,gFAEE,oBAAsB,CACvB,AACD,sFAEE,YAAc,CACf,AACD,oTAIE,aAAe,CAChB,AAKD,kDAHE,qBAAsB,AACtB,gCAAmC,CAQpC,AAND,0BAGE,UAAW,AACX,iDAAsD,AAC9C,wCAA8C,CACvD,AACD,2BACE,sBAA2B,AAC3B,yBAA0B,AAC1B,mBAAoB,AACpB,SAAW,CACZ,AACD,iCACE,qBAAsB,AACtB,gCAAmC,CACpC,AACD,mDACE,kBAAoB,CACrB,AACD,0DACE,YAAc,CACf,AACD,wBACE,WAAY,AACZ,YAAa,AACb,eAAgB,AAChB,gBAAiB,AACjB,6BAA8B,AAC9B,SAAU,AACV,kBAAmB,AACnB,UAAW,AACX,kCAAoC,AACpC,6BAA+B,AAC/B,0BAA4B,AAC5B,mCAAsC,CACvC,AACD,0CACE,cAAe,AACf,SAAW,CACZ,AACD,8CACE,aAAe,CAChB,AACD,mDACE,aAAe,CAChB,AACD,0CACE,0BAA2B,AACxB,sBAAwB,CAC5B,AACD,gIAEE,SAAU,AACV,uBAAyB,CAC1B,AACD,qBACE,UAAW,AACX,cAAgB,CACjB,AACD,2BACE,WAAa,CACd,AACD,qBACE,SAAW,CACZ,AACD,2BACE,YAAa,AACb,aAAe,CAChB,AACD,+BACE,kBAAmB,AACnB,MAAO,AACP,QAAS,AACT,WAAY,AACZ,YAAa,AACb,gBAAiB,AACjB,8BAA+B,AAC/B,0BAA2B,AAC3B,UAAW,AACX,2CAA8C,AAC9C,sCAAyC,AACzC,kCAAsC,CACvC,AACD,0LAEE,qBAAsB,AACtB,eAAgB,AAChB,gBAAkB,AAClB,gDAAkD,AAC9C,4CAA8C,AAC1C,wCAA0C,AAClD,eAAgB,AAChB,cAAgB,CACjB,AACD,sMAEE,cAAgB,CACjB,AACD,+DACE,UAAY,CACb,AACD,uDACE,SAAW,CACZ,AACD,6BACE,4BAA6B,AAC7B,cAAgB,CACjB,AACD,mCACE,QAAS,AACT,gBAAiB,AACjB,iBAAmB,CACpB,AACD,mCACE,oBAAuB,CACxB,AACD,+BACE,MAAO,AACP,6BAA8B,AAC9B,+BAAgC,AAChC,cAAgB,CACjB,AACD,qCACE,QAAS,AACT,gBAAiB,AACjB,iBAAmB,CACpB,AACD,qCACE,oBAAuB,CACxB,AACD,8EAEE,kBAAoB,CACrB,AACD,kKAEE,qBAA2B,CAC5B","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-input-number {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-variant: tabular-nums;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n position: relative;\n width: 100%;\n height: 32px;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n line-height: 1.5;\n background-color: #fff;\n background-image: none;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n display: inline-block;\n width: 90px;\n margin: 0;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.ant-input-number::-moz-placeholder {\n color: #bfbfbf;\n opacity: 1;\n}\n.ant-input-number:-ms-input-placeholder {\n color: #bfbfbf;\n}\n.ant-input-number::-webkit-input-placeholder {\n color: #bfbfbf;\n}\n.ant-input-number:placeholder-shown {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-input-number:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-input-number:focus {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\ntextarea.ant-input-number {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5;\n vertical-align: bottom;\n -webkit-transition: all 0.3s, height 0s;\n -o-transition: all 0.3s, height 0s;\n transition: all 0.3s, height 0s;\n}\n.ant-input-number-lg {\n height: 40px;\n padding: 6px 11px;\n font-size: 16px;\n}\n.ant-input-number-sm {\n height: 24px;\n padding: 1px 7px;\n}\n.ant-input-number-handler {\n position: relative;\n display: block;\n width: 100%;\n height: 50%;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n line-height: 0;\n text-align: center;\n -webkit-transition: all 0.1s linear;\n -o-transition: all 0.1s linear;\n transition: all 0.1s linear;\n}\n.ant-input-number-handler:active {\n background: #f4f4f4;\n}\n.ant-input-number-handler:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler:hover .ant-input-number-handler-down-inner {\n color: #40a9ff;\n}\n.ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-inner {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n right: 4px;\n width: 12px;\n height: 12px;\n color: rgba(0, 0, 0, 0.45);\n line-height: 12px;\n -webkit-transition: all 0.1s linear;\n -o-transition: all 0.1s linear;\n transition: all 0.1s linear;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ant-input-number-handler-up-inner > *,\n.ant-input-number-handler-down-inner > * {\n line-height: 1;\n}\n.ant-input-number-handler-up-inner svg,\n.ant-input-number-handler-down-inner svg {\n display: inline-block;\n}\n.ant-input-number-handler-up-inner::before,\n.ant-input-number-handler-down-inner::before {\n display: none;\n}\n.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon {\n display: block;\n}\n.ant-input-number:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-input-number-focused {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number-disabled .ant-input-number-input {\n cursor: not-allowed;\n}\n.ant-input-number-disabled .ant-input-number-handler-wrap {\n display: none;\n}\n.ant-input-number-input {\n width: 100%;\n height: 30px;\n padding: 0 11px;\n text-align: left;\n background-color: transparent;\n border: 0;\n border-radius: 4px;\n outline: 0;\n -webkit-transition: all 0.3s linear;\n -o-transition: all 0.3s linear;\n transition: all 0.3s linear;\n -moz-appearance: textfield !important;\n}\n.ant-input-number-input::-moz-placeholder {\n color: #bfbfbf;\n opacity: 1;\n}\n.ant-input-number-input:-ms-input-placeholder {\n color: #bfbfbf;\n}\n.ant-input-number-input::-webkit-input-placeholder {\n color: #bfbfbf;\n}\n.ant-input-number-input:placeholder-shown {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-input-number-input[type='number']::-webkit-inner-spin-button,\n.ant-input-number-input[type='number']::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.ant-input-number-lg {\n padding: 0;\n font-size: 16px;\n}\n.ant-input-number-lg input {\n height: 38px;\n}\n.ant-input-number-sm {\n padding: 0;\n}\n.ant-input-number-sm input {\n height: 22px;\n padding: 0 7px;\n}\n.ant-input-number-handler-wrap {\n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 100%;\n background: #fff;\n border-left: 1px solid #d9d9d9;\n border-radius: 0 4px 4px 0;\n opacity: 0;\n -webkit-transition: opacity 0.24s linear 0.1s;\n -o-transition: opacity 0.24s linear 0.1s;\n transition: opacity 0.24s linear 0.1s;\n}\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner,\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner {\n display: inline-block;\n font-size: 12px;\n font-size: 7px \\9;\n -webkit-transform: scale(0.58333333) rotate(0deg);\n -ms-transform: scale(0.58333333) rotate(0deg);\n transform: scale(0.58333333) rotate(0deg);\n min-width: auto;\n margin-right: 0;\n}\n:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner,\n:root .ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner {\n font-size: 12px;\n}\n.ant-input-number-handler-wrap:hover .ant-input-number-handler {\n height: 40%;\n}\n.ant-input-number:hover .ant-input-number-handler-wrap {\n opacity: 1;\n}\n.ant-input-number-handler-up {\n border-top-right-radius: 4px;\n cursor: pointer;\n}\n.ant-input-number-handler-up-inner {\n top: 50%;\n margin-top: -5px;\n text-align: center;\n}\n.ant-input-number-handler-up:hover {\n height: 60% !important;\n}\n.ant-input-number-handler-down {\n top: 0;\n border-top: 1px solid #d9d9d9;\n border-bottom-right-radius: 4px;\n cursor: pointer;\n}\n.ant-input-number-handler-down-inner {\n top: 50%;\n margin-top: -6px;\n text-align: center;\n}\n.ant-input-number-handler-down:hover {\n height: 60% !important;\n}\n.ant-input-number-handler-up-disabled,\n.ant-input-number-handler-down-disabled {\n cursor: not-allowed;\n}\n.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner {\n color: rgba(0, 0, 0, 0.25);\n}\n"],"sourceRoot":""}]);
|
|
|
|
|
|
// exports
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1207:
|
|
|
/***/ (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__(74);
|
|
|
/* 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__(26);
|
|
|
/* 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__(11);
|
|
|
/* 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__(13);
|
|
|
/* 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__(14);
|
|
|
/* 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__(50);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__InputHandler__ = __webpack_require__(1208);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
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);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1208:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(74);
|
|
|
/* 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__(11);
|
|
|
/* 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__(13);
|
|
|
/* 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__(14);
|
|
|
/* 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__(1209);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1209:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TouchFeedback__ = __webpack_require__(1210);
|
|
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TouchFeedback__["a"]; });
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1210:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(26);
|
|
|
/* 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__(11);
|
|
|
/* 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__(44);
|
|
|
/* 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__(13);
|
|
|
/* 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__(14);
|
|
|
/* 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
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1292:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(30);
|
|
|
/* 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__(31);
|
|
|
/* 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_2_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (DownloadMessageysl);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1362:
|
|
|
/***/ (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__(1363);
|
|
|
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__(291)(content, options);
|
|
|
if(content.locals) module.exports = content.locals;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1363:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
|
// 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{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:169px!important;border:none;display:block}.WordNumberTextarea-count{display:inline-block;float:right;font-size:16px;color:#adadad;padding-right:.25rem}.borerinput{border:1px solid #dd1717!important}.borerinputs{border:1px solid #eee!important}.mexertwo{display:-ms-flexbox;display:flex;-ms-flex-direction:initial;flex-direction:row}.mexeheigth,.mexeheigth2{line-height:40px}.mexeheigth2{width:74px}.minbuttionte{margin-top:20px;width:100%;margin-bottom:17px;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.initialflex,.minbuttionte{display:-ms-flexbox;display:flex;-ms-flex-direction:initial;flex-direction:row}.newshixunheadersear,.newshixunmodels{margin:0 auto}.myysljupyter{width:54px;height:24px;text-align:center;border-radius:5px;border:1px solid #ff6802}.myysljupytertest{width:54px;height:16px;font-size:12px;color:#ff6802;line-height:16px}.intermediatecenter{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.intermediatecenter,.intermediatecenterysls{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.spacearound{-ms-flex-pack:distribute;justify-content:space-around}.spacearound,.spacebetween{display:-ms-flexbox;display:flex}.spacebetween{-ms-flex-pack:justify;justify-content:space-between}.topcenter{display:-webkit-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.sortinxdirection{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.xaxisreverseorder{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.verticallayout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.reversedirection{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.nandu{width:42px;height:19px;font-size:14px;color:#000;line-height:19px;margin-left:6px}.clickbuts{text-align:center;width:60px;height:32px;background:#4cacff;border-radius:16px;line-height:30px;color:#fff;cursor:pointer}.clickbutst{height:19px;font-size:14px;color:#505050;line-height:19px;cursor:pointer}.clickbutstwo{text-align:center;width:85px;height:32px;background:#4cacff;border-radius:16px;line-height:30px;color:#fff;cursor:pointer}.clickbutstwos{height:19px;font-size:14px;color:#505050;line-height:19px;cursor:pointer}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/src/modules/courses/coursesPublic/Newshixunmodel.css"],"names":[],"mappings":"AAAA,aACI,YAAa,AACb,eAAiB,CACpB,AACD,qBACI,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AAClB,sBAAwB,CAE/B,AACD,sBACI,YAAa,AACb,sBAAuB,AACvB,eAAgB,AAEhB,+BAAiC,AACjC,iBAAmB,CACtB,AAED,2CACI,sBAAuB,AACvB,eAAgB,AAChB,YAAa,AACb,kBAA8B,CAEjC,AACD,UAEI,sDAA6D,AACrD,8CAAqD,AAC7D,kBAAmB,AAEnB,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AAClB,sBAAwB,CAC/B,AACD,sBAVI,sBAAwB,AAIxB,eAAiB,CAUpB,AAJD,YAGI,YAAc,CACjB,AAED,YACI,sBAAwB,AACxB,0BAA6B,CAEhC,AAID,WACI,0BAA6B,CAEhC,AAGD,UACI,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AAClB,sBAAwB,CAC/B,AAED,cACI,gBAAiB,AACjB,aAAc,AACd,YAAa,AACb,WAAe,AACf,eAAgB,AAChB,eAAiB,CAGpB,AACD,eACI,wBAA0B,AAC1B,cAAgB,CACnB,AAED,OACI,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AAClB,uBAAwB,AAC5B,eAAiB,CACpB,AAID,sBACI,oBAAqB,AACrB,aAAc,AACd,0BAA0B,AACtB,sBAAsB,AAC1B,mBAAoB,AACpB,aAAc,AACd,eAAkB,CAGrB,AAOD,QACI,eAAiB,CACpB,AAID,UACI,eAAgB,AAChB,eAAiB,CACpB,AAED,cACI,UAAgB,CACnB,AACD,MACI,gBAAkB,CACrB,AAID,OACI,kBAAoB,CACvB,AACD,IACI,gBAAgB,AAChB,0BAA0B,AACvB,uBAAuB,AAC1B,kBAAkB,CACrB,AACD,SACI,WAAe,AACf,cAAgB,CACnB,AACD,SACI,gBAAiB,AACjB,oBAAqB,AACrB,aAAc,AACd,uBAAuB,AACnB,kBAAmB,CAC1B,AAED,cAKI,mBAAmB,AACnB,yBAA2B,AAC3B,gBAAiB,AACjB,oBAAmC,CACtC,AAGD,qCAXI,iBAAkB,AAClB,gBAAgB,AAChB,0BAA0B,AACvB,sBAAuB,CAoB7B,AAZD,uBACI,eAAgB,AAEhB,WAAe,AAOf,oBAAqB,AACrB,oBAAsB,CACzB,AAED,8CAZI,gBAAiB,AAEjB,gBAAiB,AACjB,gBAAkB,CAerB,AAND,uBACI,eAAe,AAEf,UAA0B,CAG7B,AAED,eACI,iBAAiB,AACjB,YAAc,CACjB,AAED,WACI,YAAa,AACb,yBAA0B,AAC1B,qBAAsB,AACtB,kBAAoB,CACvB,AAED,gBACI,cAAkB,CACrB,AAED,UACI,sBAAwB,CAC3B,AAED,iBACI,eAAgB,AAChB,cAA0B,AAC1B,gBAAkB,CACrB,AAED,eACI,YAAa,AACb,YAAa,AACb,iBAAmB,CAEtB,AAED,QACI,kBAAmB,AACnB,QAAU,CACb,AAED,cACI,kBAAmB,AACnB,WAAa,CAChB,AAED,kCACI,wBAA2B,CAC9B,AAED,OACI,WAAY,AACZ,iBAAmB,CACtB,AAED,4BACI,qBAAsB,AACtB,iBAAmB,CACtB,AAED,cACI,gBAAkB,CACrB,AAED,qBACI,mDAAwD,AAChD,2CAAgD,AACxD,UAAW,AACX,iBAAmB,CACtB,AAED,cACI,gBAAiB,AACjB,gBAAiB,AACjB,0BAA2B,AAC3B,uBAAwB,AACxB,kBAAoB,CACvB,AAED,KACI,wBAA2B,CAC9B,AAED,WACI,aAAe,CAClB,AAED,oBACI,eAAgB,AAChB,aAAc,AACd,SAAY,AACZ,WAAY,AACZ,YAAa,AACb,gBAAgC,AAChC,gDAAsD,AAC9C,uCAA8C,CACzD,AAGD,YACI,4BAA+B,CAClC,AAED,cACI,kBAAmB,AACnB,8BAA+B,AACvB,qBAAuB,CAClC,AAED,gBACI,oBAAqB,AACrB,aAAc,AACd,qBAAsB,AACtB,0BAA2B,AACvB,sBAAuB,AAC3B,sBAAuB,AACnB,kBAAoB,CAC3B,AAED,oBACI,aAAc,AACd,gBAAiB,AACjB,wBAAyB,AACzB,qBAAsB,AACtB,sBAAwB,AACxB,iBAAkB,AAClB,6CAA+C,AAC/C,0CAA8C,AAC9C,YAAa,AAEb,WAAY,AACZ,aAAc,AACd,YAAa,AACb,aAAe,CAClB,AAED,gBACI,UAAW,AACX,SAAU,AACV,gBAAiB,AACjB,qBAAsB,AACtB,8BAA+B,AACvB,sBAAuB,AAC/B,gBAAiB,AACjB,YAAa,AACb,yBAAyC,AACzC,sBAAwB,AACxB,mBAA2B,AAC3B,sBAA4B,AAC5B,kBAAkC,AAClC,YAAa,AACb,iBAAkB,AAClB,gBAAiB,AACjB,sBAAyB,CAC5B,AAED,oCACI,aAAc,AACd,gBAAiB,AACjB,wBAAyB,AACzB,qBAAsB,AACtB,sBAAwB,AACxB,iBAAkB,AAClB,6CAA+C,AAC/C,0CAA8C,AAC9C,YAAa,AAEb,WAAY,AACZ,uBAAyB,AACzB,YAAa,AACb,aAAe,CAClB,AAED,0BACI,qBAAsB,AACtB,YAAa,AACb,eAAgB,AAChB,cAAe,AACf,oBAAuB,CAC1B,AAED,YACI,kCAAqC,CACxC,AAED,aACI,+BAAkC,CACrC,AAGD,UACI,oBAAqB,AACrB,aAAc,AACd,2BAA4B,AACxB,kBAAwB,CAC/B,AAMD,yBAHI,gBAAkB,CAMrB,AAHD,aAEI,UAAY,CACf,AAED,cAEI,gBAAiB,AACjB,WAAY,AAEZ,mBAAoB,AAGpB,0BAA2B,AACvB,sBAAuB,AAC3B,sBAAuB,AACnB,mBAAoB,AACxB,qBAAsB,AAClB,sBAAwB,CAG/B,AAED,2BAZI,oBAAqB,AACrB,aAAc,AAOd,2BAA4B,AACxB,kBAAwB,CAQ/B,AAMD,sCACI,aAAe,CAClB,AACD,cACI,WAAW,AACX,YAAY,AACZ,kBAAmB,AACnB,kBAAkB,AAClB,wBAAyB,CAC5B,AACD,kBACI,WAAW,AACX,YAAY,AAEZ,eAAe,AACf,cAAc,AACd,gBAAiB,CACpB,AAcD,oBAGI,0BAA2B,AACvB,sBAAuB,AAG3B,qBAAsB,AAClB,sBAAwB,CAC/B,AAED,4CAVI,oBAAqB,AACrB,aAAc,AAGd,sBAAuB,AACnB,kBAAoB,CAU3B,AACD,aAGI,yBAA0B,AACtB,4BAA8B,CAErC,AACD,2BANI,oBAAqB,AACrB,YAAc,CAUjB,AALD,cAGI,sBAAuB,AACnB,6BAA+B,CACtC,AAED,WACI,qBAAsB,AACtB,0BAA2B,AACvB,sBAAuB,AAC3B,sBAAuB,AACnB,kBAAoB,CAE3B,AAKD,kBACI,oBAAqB,AACrB,aAAc,AACd,uBAAuB,AACnB,kBAAmB,CAC1B,AAGD,mBACI,oBAAqB,AACrB,aAAc,AACd,+BAA+B,AAC3B,0BAA2B,CAClC,AAUD,gBACI,oBAAqB,AACrB,aAAc,AACd,0BAA0B,AACtB,qBAAsB,CAC7B,AAED,kBACI,oBAAqB,AACrB,aAAc,AACd,kCAAkC,AAC9B,6BAA8B,CACrC,AAED,OACI,WAAY,AACZ,YAAa,AACb,eAAgB,AAChB,WAAe,AACf,iBAAkB,AAClB,eAAiB,CACpB,AAED,WACI,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,mBAAoB,AACpB,mBAAoB,AACpB,iBAAkB,AAClB,WAAe,AACf,cAAe,CAClB,AACD,YACI,YAAY,AACZ,eAAe,AACf,cAAc,AACd,iBAAiB,AACjB,cAAe,CAClB,AAED,cACI,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,mBAAoB,AACpB,mBAAoB,AACpB,iBAAkB,AAClB,WAAe,AACf,cAAe,CAClB,AACD,eACI,YAAY,AACZ,eAAe,AACf,cAAc,AACd,iBAAiB,AACjB,cAAe,CAClB","file":"Newshixunmodel.css","sourcesContent":[".searchinput{\n width: 800px;\n margin-top: 53px;\n}\n.newshixunheadersear{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n margin: 0 auto;\n}\n.packinput .ant-input{\n height: 55px;\n width:663px !important;\n font-size: 14px;\n /*color: #681616 !important;*/\n border-color: #E1EDF8 !important;\n padding-left: 20px;\n}\n\n.packinput .ant-input-group-addon .ant-btn{\n width:137px !important;\n font-size: 18px;\n height: 53px;\n background:rgba(76,172,255,1);\n\n}\n.tabtitle{\n height: 62px !important;\n -webkit-box-shadow: 3px 10px 21px 0px rgba(76, 76, 76, 0.15);\n box-shadow: 3px 10px 21px 0px rgba(76, 76, 76, 0.15);\n border-radius: 6px;\n background: #fff;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.tabtitles2{\n background: #fff;\n height: 62px !important;\n width: 1200px;\n}\n\n.tabtitless{\n height: 62px !important;\n line-height: 62px !important;\n\n}\n.tabtitle1{\n\n}\n.tabtitle2{\n margin-left: 30px !important;\n\n}\n\n\n.counttit{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.counttittext{\n text-align: left;\n width: 1200px;\n height: 18px;\n color: #888888;\n font-size: 13px;\n margin-top: 24px;\n\n\n}\n.counttittexts{\n color: #4CACFF !important;\n font-size: 13px;\n}\n\n.mainx{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n margin-top: 17px;\n}\n.project-packages-list{\n\n}\n.project-package-item{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:column;\n flex-direction:column;\n margin-bottom: 20px;\n padding: 20px;\n background: white;\n /* box-shadow: 1px 3px 3px 1px rgba(156,156,156,0.16); */\n\n}\n.xuxianpro{\n height: 20px;\n border-bottom: 1px dashed;\n border-color: #EAEAEA;\n margin-bottom: 18px;\n}\n.magr11{\n margin-top: 11px;\n}\n.highlight{\n color: #4CACFF;\n}\n.fonttext{\n font-size: 20px;\n font-weight:bold;\n}\n\n.fontextcolor{\n color: #777777;\n}\n.tzbq{\n margin-left: 68px;\n}\n.tzbqx{\n /* margin-left: 24px; */\n}\n.bjyss{\n background: #F8F8F8;\n}\n.zj{\n overflow:hidden;\n -o-text-overflow:ellipsis;\n text-overflow:ellipsis;\n white-space:nowrap\n}\n.ziticor{\n color: #777777;\n font-size: 13px;\n}\n.foohter{\n margin-top: 20px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:row;\n flex-direction:row;\n}\n\n.maxwidth1100{\n max-width: 1100px;\n overflow:hidden;\n -o-text-overflow:ellipsis;\n text-overflow:ellipsis;\n white-space:nowrap;\n font-size: 18px !important;\n font-weight: 500;\n color: rgba(51,51,51,1) !important;\n}\n\n\n.newshixunmodelmidfont{\n font-size: 14px;\n font-weight: 400;\n color: #999999;\n margin-top: 15px;\n margin-left: 30px;\n max-width: 1100px;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n}\n\n.newshixunmodelbotfont{\n font-size:12px;\n font-weight:400;\n color:rgba(102,102,102,1);\n margin-top: 15px;\n margin-left: 30px;\n}\n\n.newshixunlist{\n max-height:227px;\n width: 1200px;\n}\n\n.xuxianpro {\n height: 20px;\n border-bottom: 1px dashed;\n border-color: #eaeaea;\n margin-bottom: 18px;\n}\n\n.newshixunpd030{\n padding: 0px 30px;\n}\n\n.pd303010{\n padding: 30px 30px 10px;\n}\n\n.newshixunfont12{\n font-size: 12px;\n color: rgba(76,172,255,1);\n line-height: 21px;\n}\n\n.newshixunmode{\n width: 100px;\n height: 38px;\n border-radius: 3px;\n /*border: 1px solid rgba(191,191,191,1);*/\n}\n\n.ntopsj {\n position: absolute;\n top: -4px;\n}\n\n.nyslbottomsj {\n position: absolute;\n bottom: -6px;\n}\n\n.inherits .ant-dropdown-menu-item{\n cursor: inherit !important;\n}\n\n.menus{\n width: 91px;\n text-align: center;\n}\n\n.newshixunmodelbotfont span{\n display: inline-block;\n margin-right: 34px;\n}\n\n.minhegiht300{\n min-height: 300px;\n}\n\n.newshixunlist:hover{\n -webkit-box-shadow: 1px 6px 16px rgba(156,156,156,0.16);\n box-shadow: 1px 6px 16px rgba(156,156,156,0.16);\n opacity: 1;\n border-radius: 2px;\n}\n\n.newshixun500{\n max-width: 500px;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mt3 {\n margin-top: 3px !important;\n}\n\n.highlight{\n color: #4CACFF;\n}\n\n.newshixunbottombtn{\n position: fixed;\n z-index: 1000;\n bottom: 0px;\n width: 100%;\n height: 63px;\n background: rgba(255,255,255,1);\n -webkit-box-shadow: 0px -4px 4px 0px rgba(0,0,0,0.05);\n box-shadow: 0px -4px 4px 0px rgba(0,0,0,0.05);\n}\n\n\n.mb60shixun{\n margin-bottom: 60px !important;\n}\n\n.padding13-30 {\n padding: 13px 30px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.displaymodulat {\n display: -ms-flexbox;\n display: flex;\n display: -webkit-flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.WordNumberTextarea {\n outline: none; /* 去掉输入字符时的默认样式 */\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n background-color: white;\n text-shadow: none;\n -webkit-writing-mode: horizontal-tb !important;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n resize: none; /*禁止拉伸*/\n border: none; /*去掉默认边框*/\n width: 100%;\n height: 130px;\n border: none;\n display: block;\n}\n\n.WordNumbernote {\n padding: 0;\n margin: 0;\n list-style: none;\n text-decoration: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n height: auto;\n border: 1px solid rgba(234, 234, 234, 1);\n border-radius: 0.125rem;\n margin: 10px 10px 0px 10px;\n padding: 10px 10px 5px 10px;\n backgroud: rgba(234, 234, 234, 1);\n width: 530px;\n margin-left: 10px;\n margin-top: 25px;\n height: 214px !important;\n}\n\n.WordNumbernote .WordNumberTextarea {\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n background-color: white;\n text-shadow: none;\n -webkit-writing-mode: horizontal-tb !important;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n resize: none;\n border: none;\n width: 100%;\n height: 169px !important;\n border: none;\n display: block;\n}\n\n.WordNumberTextarea-count {\n display: inline-block;\n float: right;\n font-size: 16px;\n color: #adadad;\n padding-right: 0.25rem;\n}\n\n.borerinput {\n border: 1px solid #DD1717 !important;\n}\n\n.borerinputs {\n border: 1px solid #eee !important;\n}\n\n\n.mexertwo {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: initial;\n flex-direction: initial;\n}\n\n.mexeheigth {\n line-height: 40px;\n}\n\n.mexeheigth2 {\n line-height: 40px;\n width: 74px;\n}\n\n.minbuttionte {\n /* display: flex; */\n margin-top: 20px;\n width: 100%;\n /* align-items: center; */\n margin-bottom: 17px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-direction: initial;\n flex-direction: initial;\n}\n\n.initialflex{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:initial;\n flex-direction:initial;\n}\n\n.newshixunheadersear{\n margin: 0 auto;\n}\n\n.newshixunmodels{\n margin: 0 auto;\n}\n.myysljupyter{\n width:54px;\n height:24px;\n text-align: center;\n border-radius:5px;\n border:1px solid #FF6802;\n}\n.myysljupytertest{\n width:54px;\n height:16px;\n line-height:16px;\n font-size:12px;\n color:#FF6802;\n line-height:16px;\n}\n.intermediatecenter{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n\n\n/* 中间居中 */\n.intermediatecenter{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n/* 简单居中 */\n.intermediatecenterysls{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n.spacearound{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n\n}\n.spacebetween{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n/* 头顶部居中 */\n.topcenter{\n display: -webkit-flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n\n}\n\n\n/* x轴正方向排序 */\n/* 一 二 三 四 五 六 七 八 */\n.sortinxdirection{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:row;\n flex-direction:row;\n}\n/* x轴反方向排序 */\n/* 八 七 六 五 四 三 二 一 */\n.xaxisreverseorder{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:row-reverse;\n flex-direction:row-reverse;\n}\n/* 垂直布局 正方向*/\n/* 一\n 二\n 三\n 四\n 五\n 六\n 七\n 八 */\n.verticallayout{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:column;\n flex-direction:column;\n}\n/* 垂直布局 反方向*/\n.reversedirection{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction:column-reverse;\n flex-direction:column-reverse;\n}\n\n.nandu{\n width: 42px;\n height: 19px;\n font-size: 14px;\n color: #000000;\n line-height: 19px;\n margin-left: 6px;\n}\n\n.clickbuts{\n text-align: center;\n width: 60px;\n height: 32px;\n background: #4CACFF;\n border-radius: 16px;\n line-height: 30px;\n color: #FFFFFF;\n cursor:pointer;\n}\n.clickbutst{\n height:19px;\n font-size:14px;\n color:#505050;\n line-height:19px;\n cursor:pointer;\n}\n\n.clickbutstwo{\n text-align: center;\n width: 85px;\n height: 32px;\n background: #4CACFF;\n border-radius: 16px;\n line-height: 30px;\n color: #FFFFFF;\n cursor:pointer;\n}\n.clickbutstwos{\n height:19px;\n font-size:14px;\n color:#505050;\n line-height:19px;\n cursor:pointer;\n}\n"],"sourceRoot":""}]);
|
|
|
|
|
|
// exports
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1608:
|
|
|
/***/ (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) {
|
|
|
/* eslint no-param-reassign: 0 */
|
|
|
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 = str;
|
|
|
if (typeof str === 'symbol') {
|
|
|
string = Symbol.prototype.toString.call(str);
|
|
|
} else if (typeof str !== 'string') {
|
|
|
string = String(str);
|
|
|
}
|
|
|
|
|
|
if (charset === 'iso-8859-1') {
|
|
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
|
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var out = '';
|
|
|
for (var i = 0; i < string.length; ++i) {
|
|
|
var c = string.charCodeAt(i);
|
|
|
|
|
|
if (
|
|
|
c === 0x2D // -
|
|
|
|| c === 0x2E // .
|
|
|
|| c === 0x5F // _
|
|
|
|| c === 0x7E // ~
|
|
|
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
|
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
|
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
|
) {
|
|
|
out += string.charAt(i);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (c < 0x80) {
|
|
|
out = out + hexTable[c];
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (c < 0x800) {
|
|
|
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (c < 0xD800 || c >= 0xE000) {
|
|
|
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
i += 1;
|
|
|
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
|
out += hexTable[0xF0 | (c >> 18)]
|
|
|
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
|
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
|
+ hexTable[0x80 | (c & 0x3F)];
|
|
|
}
|
|
|
|
|
|
return out;
|
|
|
};
|
|
|
|
|
|
var compact = function compact(value) {
|
|
|
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
|
var refs = [];
|
|
|
|
|
|
for (var i = 0; i < queue.length; ++i) {
|
|
|
var item = queue[i];
|
|
|
var obj = item.obj[item.prop];
|
|
|
|
|
|
var keys = Object.keys(obj);
|
|
|
for (var j = 0; j < keys.length; ++j) {
|
|
|
var key = keys[j];
|
|
|
var val = obj[key];
|
|
|
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
|
queue.push({ obj: obj, prop: key });
|
|
|
refs.push(val);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
compactQueue(queue);
|
|
|
|
|
|
return value;
|
|
|
};
|
|
|
|
|
|
var isRegExp = function isRegExp(obj) {
|
|
|
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
|
};
|
|
|
|
|
|
var isBuffer = function isBuffer(obj) {
|
|
|
if (!obj || typeof obj !== 'object') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
|
};
|
|
|
|
|
|
var combine = function combine(a, b) {
|
|
|
return [].concat(a, b);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
arrayToObject: arrayToObject,
|
|
|
assign: assign,
|
|
|
combine: combine,
|
|
|
compact: compact,
|
|
|
decode: decode,
|
|
|
encode: encode,
|
|
|
isBuffer: isBuffer,
|
|
|
isRegExp: isRegExp,
|
|
|
merge: merge
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1657:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(30);
|
|
|
/* 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__(31);
|
|
|
/* 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__(1067);
|
|
|
/* 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__(1068);
|
|
|
/* 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__(1362);
|
|
|
/* 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___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_educoder__["z" /* WordNumberTextarea */],{style:{width:"100%"},placeholder:"请填写您对作品调分的原因(选填)",onInput:function onInput(e){return _this2.settextarea(e);},value:textareaval,maxlength:100})),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{style:{marginTop:"15px",width:"82%",marginLeft:"70px",marginBottom:"29px",display:"flex",flexDirection:"row-reverse"}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",{className:"task-btn task-btn-orange ",style:{width:"72px",borderRadius:"5px"},onClick:this.Saves},this.props.Savesname||'确认'),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",{className:"task-btn color-white mr30",style:{width:"72px",borderRadius:"5px"},onClick:this.props.Cancel},this.props.Cancelname||'取消')))));}}]);return ModulationModal;}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (ModulationModal);// <div className="task-popup-content">
|
|
|
// <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>*/}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 1747:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var replace = String.prototype.replace;
|
|
|
var percentTwenties = /%20/g;
|
|
|
|
|
|
var util = __webpack_require__(1608);
|
|
|
|
|
|
var Format = {
|
|
|
RFC1738: 'RFC1738',
|
|
|
RFC3986: 'RFC3986'
|
|
|
};
|
|
|
|
|
|
module.exports = util.assign(
|
|
|
{
|
|
|
'default': Format.RFC3986,
|
|
|
formatters: {
|
|
|
RFC1738: function (value) {
|
|
|
return replace.call(value, percentTwenties, '+');
|
|
|
},
|
|
|
RFC3986: function (value) {
|
|
|
return String(value);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
Format
|
|
|
);
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 2095:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var stringify = __webpack_require__(2096);
|
|
|
var parse = __webpack_require__(2097);
|
|
|
var formats = __webpack_require__(1747);
|
|
|
|
|
|
module.exports = {
|
|
|
formats: formats,
|
|
|
parse: parse,
|
|
|
stringify: stringify
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 2096:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var utils = __webpack_require__(1608);
|
|
|
var formats = __webpack_require__(1747);
|
|
|
var has = Object.prototype.hasOwnProperty;
|
|
|
|
|
|
var arrayPrefixGenerators = {
|
|
|
brackets: function brackets(prefix) {
|
|
|
return prefix + '[]';
|
|
|
},
|
|
|
comma: 'comma',
|
|
|
indices: function indices(prefix, key) {
|
|
|
return prefix + '[' + key + ']';
|
|
|
},
|
|
|
repeat: function repeat(prefix) {
|
|
|
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 defaultFormat = formats['default'];
|
|
|
var defaults = {
|
|
|
addQueryPrefix: false,
|
|
|
allowDots: false,
|
|
|
charset: 'utf-8',
|
|
|
charsetSentinel: false,
|
|
|
delimiter: '&',
|
|
|
encode: true,
|
|
|
encoder: utils.encode,
|
|
|
encodeValuesOnly: false,
|
|
|
format: defaultFormat,
|
|
|
formatter: formats.formatters[defaultFormat],
|
|
|
// deprecated
|
|
|
indices: false,
|
|
|
serializeDate: function serializeDate(date) {
|
|
|
return toISO.call(date);
|
|
|
},
|
|
|
skipNulls: false,
|
|
|
strictNullHandling: false
|
|
|
};
|
|
|
|
|
|
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
|
return typeof v === 'string'
|
|
|
|| typeof v === 'number'
|
|
|
|| typeof v === 'boolean'
|
|
|
|| typeof v === 'symbol'
|
|
|
|| typeof v === 'bigint';
|
|
|
};
|
|
|
|
|
|
var stringify = function stringify(
|
|
|
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, 'key') : prefix;
|
|
|
}
|
|
|
|
|
|
obj = '';
|
|
|
}
|
|
|
|
|
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
|
if (encoder) {
|
|
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key');
|
|
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value'))];
|
|
|
}
|
|
|
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('✓'), 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 : '';
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 2097:
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var utils = __webpack_require__(1608);
|
|
|
|
|
|
var has = Object.prototype.hasOwnProperty;
|
|
|
var isArray = Array.isArray;
|
|
|
|
|
|
var defaults = {
|
|
|
allowDots: false,
|
|
|
allowPrototypes: false,
|
|
|
arrayLimit: 20,
|
|
|
charset: 'utf-8',
|
|
|
charsetSentinel: false,
|
|
|
comma: false,
|
|
|
decoder: utils.decode,
|
|
|
delimiter: '&',
|
|
|
depth: 5,
|
|
|
ignoreQueryPrefix: false,
|
|
|
interpretNumericEntities: false,
|
|
|
parameterLimit: 1000,
|
|
|
parseArrays: true,
|
|
|
plainObjects: false,
|
|
|
strictNullHandling: false
|
|
|
};
|
|
|
|
|
|
var interpretNumericEntities = function (str) {
|
|
|
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
|
return String.fromCharCode(parseInt(numberStr, 10));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
// This is what browsers will submit when the ✓ character occurs in an
|
|
|
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
|
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
|
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
|
// the ✓ character, such as us-ascii.
|
|
|
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
|
|
|
|
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
|
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
|
|
|
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
|
var obj = {};
|
|
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
|
var i;
|
|
|
|
|
|
var charset = options.charset;
|
|
|
if (options.charsetSentinel) {
|
|
|
for (i = 0; i < parts.length; ++i) {
|
|
|
if (parts[i].indexOf('utf8=') === 0) {
|
|
|
if (parts[i] === charsetSentinel) {
|
|
|
charset = 'utf-8';
|
|
|
} else if (parts[i] === isoSentinel) {
|
|
|
charset = 'iso-8859-1';
|
|
|
}
|
|
|
skipIndex = i;
|
|
|
i = parts.length; // The eslint settings do not allow break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < parts.length; ++i) {
|
|
|
if (i === skipIndex) {
|
|
|
continue;
|
|
|
}
|
|
|
var part = parts[i];
|
|
|
|
|
|
var bracketEqualsPos = part.indexOf(']=');
|
|
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
|
|
|
|
var key, val;
|
|
|
if (pos === -1) {
|
|
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
|
val = options.strictNullHandling ? null : '';
|
|
|
} else {
|
|
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
|
val = options.decoder(part.slice(pos + 1), defaults.decoder, charset, 'value');
|
|
|
}
|
|
|
|
|
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
|
val = interpretNumericEntities(val);
|
|
|
}
|
|
|
|
|
|
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
|
val = val.split(',');
|
|
|
}
|
|
|
|
|
|
if (part.indexOf('[]=') > -1) {
|
|
|
val = isArray(val) ? [val] : val;
|
|
|
}
|
|
|
|
|
|
if (has.call(obj, key)) {
|
|
|
obj[key] = utils.combine(obj[key], val);
|
|
|
} else {
|
|
|
obj[key] = val;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return obj;
|
|
|
};
|
|
|
|
|
|
var parseObject = function (chain, val, options) {
|
|
|
var leaf = val;
|
|
|
|
|
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
|
var obj;
|
|
|
var root = chain[i];
|
|
|
|
|
|
if (root === '[]' && options.parseArrays) {
|
|
|
obj = [].concat(leaf);
|
|
|
} else {
|
|
|
obj = options.plainObjects ? Object.create(null) : {};
|
|
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
|
var index = parseInt(cleanRoot, 10);
|
|
|
if (!options.parseArrays && cleanRoot === '') {
|
|
|
obj = { 0: leaf };
|
|
|
} else if (
|
|
|
!isNaN(index)
|
|
|
&& root !== cleanRoot
|
|
|
&& String(index) === cleanRoot
|
|
|
&& index >= 0
|
|
|
&& (options.parseArrays && index <= options.arrayLimit)
|
|
|
) {
|
|
|
obj = [];
|
|
|
obj[index] = leaf;
|
|
|
} else {
|
|
|
obj[cleanRoot] = leaf;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
leaf = obj;
|
|
|
}
|
|
|
|
|
|
return leaf;
|
|
|
};
|
|
|
|
|
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
|
|
|
if (!givenKey) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// Transform dot notation to bracket notation
|
|
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
|
|
|
|
// The regex chunks
|
|
|
|
|
|
var brackets = /(\[[^[\]]*])/;
|
|
|
var child = /(\[[^[\]]*])/g;
|
|
|
|
|
|
// Get the parent
|
|
|
|
|
|
var segment = options.depth > 0 && brackets.exec(key);
|
|
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
|
|
|
|
// Stash the parent if it exists
|
|
|
|
|
|
var keys = [];
|
|
|
if (parent) {
|
|
|
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
|
if (!options.allowPrototypes) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
keys.push(parent);
|
|
|
}
|
|
|
|
|
|
// Loop through children appending to the array until we hit depth
|
|
|
|
|
|
var i = 0;
|
|
|
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
|
i += 1;
|
|
|
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
|
if (!options.allowPrototypes) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
keys.push(segment[1]);
|
|
|
}
|
|
|
|
|
|
// If there's a remainder, just add whatever is left
|
|
|
|
|
|
if (segment) {
|
|
|
keys.push('[' + key.slice(segment.index) + ']');
|
|
|
}
|
|
|
|
|
|
return parseObject(keys, val, options);
|
|
|
};
|
|
|
|
|
|
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
if (!opts) {
|
|
|
return defaults;
|
|
|
}
|
|
|
|
|
|
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
|
throw new TypeError('Decoder has to be a function.');
|
|
|
}
|
|
|
|
|
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
|
throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
|
}
|
|
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
|
|
|
|
return {
|
|
|
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
|
charset: charset,
|
|
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
|
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
|
parseArrays: opts.parseArrays !== false,
|
|
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
|
};
|
|
|
};
|
|
|
|
|
|
module.exports = function (str, opts) {
|
|
|
var options = normalizeParseOptions(opts);
|
|
|
|
|
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
|
return options.plainObjects ? Object.create(null) : {};
|
|
|
}
|
|
|
|
|
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
|
var obj = options.plainObjects ? Object.create(null) : {};
|
|
|
|
|
|
// Iterate over the keys and setup the new object
|
|
|
|
|
|
var keys = Object.keys(tempObj);
|
|
|
for (var i = 0; i < keys.length; ++i) {
|
|
|
var key = keys[i];
|
|
|
var newObj = parseKeys(key, tempObj[key], options);
|
|
|
obj = utils.merge(obj, newObj, options);
|
|
|
}
|
|
|
|
|
|
return utils.compact(obj);
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 4427:
|
|
|
/***/ (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__(848);
|
|
|
/* 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__(849);
|
|
|
/* 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__(1141);
|
|
|
/* 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__(1142);
|
|
|
/* 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__(165);
|
|
|
/* 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__(164);
|
|
|
/* 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__(67);
|
|
|
/* 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__(68);
|
|
|
/* 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__(295);
|
|
|
/* 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__(292);
|
|
|
/* 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__(45);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_educoder__ = __webpack_require__(5);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_axios__ = __webpack_require__(12);
|
|
|
/* 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__(85);
|
|
|
/* 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__(1055);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__modals_Modals__ = __webpack_require__(166);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__coursesPublic_CoursesListType__ = __webpack_require__(961);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__modals_DownloadMessageysl__ = __webpack_require__(1292);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__coursesPublic_ModulationModal__ = __webpack_require__(1657);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__coursesPublic_AllocationModal__ = __webpack_require__(4428);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__coursesPublic_Associationmodel__ = __webpack_require__(1763);
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__coursesPublic_AccessoryModal__ = __webpack_require__(1319);
|
|
|
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__(2095);//毕设任务列表
|
|
|
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===""?"--":__WEBPACK_IMPORTED_MODULE_14_moment___default()(record.turnovertime).format('YYYY-MM-DD HH:mm')));}},{title:'教师评分',key:'teacherrating',dataIndex:'teacherrating',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(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{placement:"bottom",title:record.teacherrating==="--"||record.teacherrating==="未批阅"?"未评阅":""},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:parseInt(record.teacherrating)>90?'#DD1717':parseInt(record.teacherrating)>60&&parseInt(record.teacherrating)<90?"#FF6800":'#747A7F'}},record.teacherrating==="--"||record.teacherrating==="未批阅"?"--":record.teacherrating)));}},{title:'交叉评分',key:'crossrating',dataIndex:'crossrating',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(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{placement:"bottom",title:record.crossrating.cross_comment_score==="--"||record.crossrating.cross_comment_score==="未批阅"?"未评阅":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("pre",null,record.crossrating.cross_comment_num,"\u540D\u8001\u5E08\u8FDB\u884C\u4E86\u4EA4\u53C9\u8BC4\u9605",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),"\u6709\u6548\u5E73\u5747\u5206\uFF1A",record.crossrating.cross_comment_score,"\u5206")},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:parseInt(record.crossrating.cross_comment_score)>90?'#DD1717':parseInt(record.crossrating.cross_comment_score)>60&&parseInt(record.crossrating.cross_comment_score)<90?"#FF6800":'#747A7F'}},record.crossrating.cross_comment_score==="--"||record.crossrating.cross_comment_score==="未批阅"?"--":record.crossrating.cross_comment_score)));}},{title:'最终成绩',key:'finalscore',dataIndex:'finalscore',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(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{placement:"right",title:record.finalscore.work_score==="--"?"未评阅":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("pre",null,record.finalscore.final_score.username,"(",record.finalscore.final_score.login,")",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),record.finalscore.ultimate_score===true?"":"教师评分:"+record.finalscore.teacher_comment_score+"分",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),record.finalscore.cross_comment_score===undefined||record.finalscore.cross_comment_score==="未批阅"?"交叉评分:--":"交叉评分:"+record.finalscore.cross_comment_score+"分",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),record.finalscore.late_penalty===undefined?"":"迟交扣分:"+record.finalscore.late_penalty+"分",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),"\u6700\u7EC8\u6210\u7EE9\uFF1A",record.finalscore.work_score,"\u5206",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null))},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:parseInt(record.finalscore.work_score)>90?'#DD1717':parseInt(record.finalscore.work_score)>60&&parseInt(record.finalscore.work_score)<90?"#FF6800":'#747A7F'}},record.finalscore.work_score==="--"?"--":record.finalscore.work_score)));}},{title:'操作',key:'operation',width:'100px',dataIndex:'operation',className:'edu-txt-center',render:function render(operation){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{style:{cursor:'pointer'}},_this3.props.isAdmin()?operation.map(function(tag,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,tag.name&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{key:key,placement:"bottom",title:tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"指定该作品的交叉评阅人":tag.name==="调分"?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("pre",null,"\u8C03\u6574\u5B66\u751F\u6700\u7EC8\u6210\u7EE9",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("br",null),"\u5176\u5B83\u5386\u53F2\u8BC4\u5206\u5C06\u5168\u90E8\u5931\u6548"):""},tag.name==="评阅"?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{target:"_blank",style:{color:'#4CACFF',padding:"0px 5px"},href:"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"},tag.name):__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{style:{color:tag.name==="调分"?"#4CACFF":'#4CACFF',padding:"0px 5px"},onClick:tag.name==="调分"?function(){return _this3.showModulationtype(tag.id);}:tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":""},tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":tag.name)));}):"",_this3.props.isStudent()?operation.map(function(tag,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{key:key},tag.view_work===false?"--":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{style:{color:'#4CACFF'},target:"_blank",href:"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"},"\u67E5\u770B"));}):"");}}];var courseId=this.props.match.params.coursesId;var position=this.props.match.params.position;var category_id=this.props.match.params.category_id;var task_Id=this.props.match.params.task_Id;if(this.props.isStudent()===true){columns.some(function(item,key){if(item.title==="学号"){columns.splice(key,1);return true;}});}if(taskslistdata&&taskslistdata.course_group_count<=0){columns.some(function(item,key){if(item.title==="分班"){columns.splice(key,1);return true;}});}if(taskslistdata&&taskslistdata.cross_comment===false){columns.some(function(item,key){if(item.title==="交叉评分"){columns.splice(key,1);return true;}});}if(taskslistdata&&taskslistdata.have_project===false){columns.some(function(item,key){if(item.title==="关联项目"){columns.splice(key,1);return true;}});}if(taskslistdata&&taskslistdata.have_grouping===false){columns.some(function(item,key){if(item.title==="分组"){columns.splice(key,1);return true;}});}return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n\t\t\t\t \t\t.projectsdiv{\n\t width: 100px;\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t }\n\t\t\t\t\t .ant-table-tbody>tr>td, .ant-table-thead>tr>th{\n\t\t\t\t\t\t padding:16px 5px;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t"),taskslistdata&&taskslistdata.have_grouping===true||taskslistdata&&taskslistdata.have_project===true||taskslistdata&&taskslistdata.cross_comment===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n\t\t\t\t\t\t .studentnumber{\n\t\t\t\t\t\t text-overflow: ellipsis;\n\t\t\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\t\t\twidth: 105px;\n\t\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\t\t\tmargin: 0px auto;\n\t\t\t\t\t\t\t\t\tcursor: default;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t .studentname{\n\t\t\t\t\t overflow: hidden;\n\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\twidth: 90px;\n\t\t\t\t\t\t\tmargin: 0px auto;\n\t\t\t\t\t\t }\n\n\t\t\t\t\t"):"",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__modals_Modals__["a" /* default */],{modalsType:Modalstype,modalsTopval:Modalstopval,modalCancel:ModalCancel,modalSave:ModalSave,closable:false,footer:null,destroyOnClose:true,centered:true}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__coursesPublic_HomeworkModal__["a" /* default */],{starttimes:this.state.starttimes,typs:this.state.typs,modalname:modalname,visible:visible,Topval:Topval,Topvalright:Topvalright,Botvalleft:Botvalleft,Botval:Botval,starttime:starttime,endtime:endtime,Cancelname:Cancelname,Savesname:Savesname,Cancel:Cancel,Saves:Saves,course_groups:course_groups,modaltype:this.state.modaltype,getcourse_groupslist:function getcourse_groupslist(id){return _this3.getcourse_groupslist(id);}}),Allocationtype===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_20__coursesPublic_AllocationModal__["a" /* default */],{modalname:"交叉评阅分配",visible:Allocationtype,teacherlist:taskslistdata&&taskslistdata.teacher_list,Cancelname:"取消",Savesname:"保存",Cancel:this.cancelmodel,Saves:function Saves(value){return _this3.saveAllocationModal(value);},closable:false,footer:null,destroyOnClose:true,centered:true}):"",Modulationtype===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_19__coursesPublic_ModulationModal__["a" /* default */],{modalname:"调分",visible:Modulationtype,Cancelname:"取消",Savesname:"保存",Cancel:this.cancelmodel,Saves:function Saves(value,num){return _this3.saveModulationModal(value,num);},closable:false,footer:null,destroyOnClose:true,centered:true}):"",visibles===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_21__coursesPublic_Associationmodel__["a" /* default */],{modalname:"关联项目",visible:visibles,Cancel:function Cancel(){return _this3.Cancel();},taskid:taskslistdata&&taskslistdata.task_id,funlist:function funlist(){return _this3.searchValue();}}):"",this.state.avisible===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_22__coursesPublic_AccessoryModal__["a" /* default */],Object.assign({},this.props,{modalname:"补交附件",visible:this.state.avisible,Cancelname:"取消",Savesname:"确认",Cancel:this.Cancelvisible,categoryid:taskslistdata.work_id,setupdate:this.setupdate})):"",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_18__modals_DownloadMessageysl__["a" /* default */],Object.assign({},this.props,{value:this.state.DownloadMessageval,modalCancel:this.Downloadcal,modalsType:this.state.DownloadType})),taskslistdata&&taskslistdata?// 教师列表
|
|
|
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.groupgroup([]);}},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"fl groupList",style:{maxWidth:'945px'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(CheckboxGroup,{value:course_group,onChange:function onChange(e){return _this3.groupgroup(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.length);},style:{width:'1000px',paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{key:key,className:"mt10"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_checkbox___default.a,{value:item.course_group_id,key:item.course_group_id,className:"fl "},item.group_group_name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));})))):"",taskslistdata.search_assistants&&taskslistdata.search_assistants.cross_comment.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"},"\u4EA4\u53C9\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",value:null,className:cross_comment==null?"pl10 pr10 check_on":"pl10 pr10",onClick:this.funcross_comment},"\u5168\u90E8")),taskslistdata.search_assistants&&taskslistdata.search_assistants.cross_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,className:"fl",checked:parseInt(cross_comment)===item.id?true:false,onClick:_this3.funcross_comment},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));}))),this.props.questionslist&&this.props.questionslist.status===0?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{id:"graduation_work_list",style:{padding:'0px 30px 10px 30px'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.edu-menu-lists li:hover {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: #f0f0f0 !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.edu-menu-lists li:hover a{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: #666 !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix"},this.props.isAdmin()===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"fl color-grey-6 font-12"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-orange-tip"},taskslistdata&&taskslistdata.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",taskslistdata&&taskslistdata.all_work_count," \u5B66\u751F\uFF09"):""),this.props.isStudent()===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-orange"},taskslistdata&&taskslistdata.commit_count)," \u5DF2\u4EA4"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-orange"},taskslistdata&&taskslistdata.uncommit_count)," \u672A\u4EA4"),taskslistdata&&taskslistdata.left_time.status===null?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{title:taskslistdata&&taskslistdata.left_time.status,placement:"bottom"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},taskslistdata&&taskslistdata.left_time.status," :",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"ml10 color-orange"},taskslistdata&&taskslistdata.left_time.time)))):""),JSON.stringify(data)==="[]"?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12_educoder__["u" /* NoneData */],null):__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"justify break_full_word new_li edu-back-white",style:{minHeight:"480px"}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n \t \t\t.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 72%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \t"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"edu-table edu-back-white "},data===undefined?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_table___default.a,{dataSource:data,columns:columns// pagination={{ //分页
|
|
|
// 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___default.a.createElement(CheckboxGroup,{value:course_group,onChange:function onChange(e){return _this3.groupgroup(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.length);},style:{paddingTop:'4px'}},taskslistdata.search_assistants&&taskslistdata.search_assistants.course_group_info.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.course_group_id,key:item.course_group_id,className:"fl "},item.group_group_name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));}))):"",taskslistdata.search_assistants&&taskslistdata.search_assistants.cross_comment.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"},"\u4EA4\u53C9\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",value:null,className:cross_comment==null?"pl10 pr10 check_on":"pl10 pr10",onClick:this.funcross_comment},"\u5168\u90E8")),taskslistdata.search_assistants&&taskslistdata.search_assistants.cross_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,className:"fl",checked:parseInt(cross_comment)===item.id?true:false,onClick:_this3.funcross_comment},item.name,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",null,"(",item.count,")")));}))):"",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{id:"graduation_work_list",style:{padding:'18px 40px 10px',height:'56px'}},this.props.isStudent()===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-orange"},taskslistdata&&taskslistdata.commit_count)," \u5DF2\u4EA4"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-orange"},taskslistdata&&taskslistdata.uncommit_count)," \u672A\u4EA4"),taskslistdata&&taskslistdata.left_time.status===null?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{title:taskslistdata&&taskslistdata.left_time.status,placement:"bottom"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"mr15 color-grey9"},taskslistdata&&taskslistdata.left_time.status," :",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"ml10 color-orange"},taskslistdata&&taskslistdata.left_time.time)))):""),JSON.stringify(data)==="[]"?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{id:"forum_list",className:"forum_table"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"mh650 edu-back-white"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(__WEBPACK_IMPORTED_MODULE_12_educoder__["M" /* getImageUrl */])("images/educoder/nodata.png")}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("p",{className:"edu-nodata-p mb30"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6\uFF01")))):__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"justify break_full_word new_li edu-back-white",style:{minHeight:"480px"}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n \t .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t top: 72%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t .ant-table-thead > tr > th, .ant-table-tbody > tr > td{\n text-align: center;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t "),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"edu-table edu-back-white "},data===undefined?"":__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_table___default.a,{dataSource:data,columns:columns,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})):""):"":""));}}]);return GraduationTaskssettinglist;}(__WEBPACK_IMPORTED_MODULE_10_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (GraduationTaskssettinglist);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 4428:
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(30);
|
|
|
/* 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__(31);
|
|
|
/* 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__(298);
|
|
|
/* 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__(293);
|
|
|
/* 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);
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}); |