Auto Submit

dev_aliyun_xibeigongye
autosubmit 3 years ago
parent f146d8786e
commit 9c09f16abd

@ -364,16 +364,16 @@ var RecordScreen = function RecordScreen(_ref) {
var exitEndTimeRef = (0,react.useRef)(0);
var exitHistory = (0,react.useRef)([]);
var exitFullScreenTip = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(usedNumber) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(usedNumber) {
var _exercise$exerciseUse7;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if (!submittedFlag.current) {
_context7.next = 2;
_context6.next = 2;
break;
}
return _context7.abrupt("return");
return _context6.abrupt("return");
case 2:
// 切屏提示
es_modal/* default.destroyAll */.Z.destroyAll();
@ -445,31 +445,18 @@ var RecordScreen = function RecordScreen(_ref) {
}), "\u5185\u56DE\u5230\u8003\u8BD5\uFF0C\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002"]
})]
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
recordExitTimes();
(0,fullscreen/* requestFullScreen */.Dj)(document.body);
modals.current.destroy();
case 3:
case "end":
return _context6.stop();
}
}, _callee6);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
onOk: function onOk() {
recordExitTimes();
(0,fullscreen/* requestFullScreen */.Dj)(document.body);
modals.current.destroy();
modals.current = null;
}
});
case 5:
case "end":
return _context7.stop();
return _context6.stop();
}
}, _callee7);
}, _callee6);
}));
return function exitFullScreenTip(_x2) {
return _ref6.apply(this, arguments);
@ -480,19 +467,19 @@ var RecordScreen = function RecordScreen(_ref) {
};
// 自动交卷处理
var autoSubmit = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
es_modal/* default.destroyAll */.Z.destroyAll();
_context8.next = 3;
_context7.next = 3;
return (0,service_exercise/* submitExerciseAnswer */.VL)({
categoryId: params.categoryId,
commit_method: 1
});
case 3:
res = _context8.sent;
res = _context7.sent;
if (res) {
try {
socket.send(JSON.stringify({
@ -509,25 +496,25 @@ var RecordScreen = function RecordScreen(_ref) {
}
case 5:
case "end":
return _context8.stop();
return _context7.stop();
}
}, _callee8);
}, _callee7);
}));
return function autoSubmit() {
return _ref7.apply(this, arguments);
};
}();
var autoSubmitToDetail = /*#__PURE__*/function () {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
var isForced,
_exercise$exerciseUse8,
_exercise$exerciseUse9,
res,
_args9 = arguments;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
_args8 = arguments;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
isForced = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : false;
isForced = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : false;
document.removeEventListener((0,fullscreen/* fullscreenChange */.gH)(), fullscreenchangeIn, false);
(0,fullscreen/* exitFull */.BU)();
es_modal/* default.destroyAll */.Z.destroyAll();
@ -544,15 +531,15 @@ var RecordScreen = function RecordScreen(_ref) {
} catch (_unused2) {}
;
if (!isForced) {
_context9.next = 14;
_context8.next = 14;
break;
}
_context9.next = 10;
_context8.next = 10;
return (0,service_exercise/* getScreenRecordList */.Yu)(params.categoryId, {
exercise_user_id: (_exercise$exerciseUse8 = exercise.exerciseUserInfo) === null || _exercise$exerciseUse8 === void 0 ? void 0 : _exercise$exerciseUse8.exercise_user_id
});
case 10:
res = _context9.sent;
res = _context8.sent;
modal.info({
icon: null,
closable: true,
@ -598,7 +585,7 @@ var RecordScreen = function RecordScreen(_ref) {
handleToDetail();
}
});
_context9.next = 15;
_context8.next = 15;
break;
case 14:
modal.info({
@ -612,9 +599,9 @@ var RecordScreen = function RecordScreen(_ref) {
});
case 15:
case "end":
return _context9.stop();
return _context8.stop();
}
}, _callee9);
}, _callee8);
}));
return function autoSubmitToDetail() {
return _ref8.apply(this, arguments);
@ -629,74 +616,74 @@ var RecordScreen = function RecordScreen(_ref) {
};
var handleFinish = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
var _exercise$exerciseUse10;
var res, resUser;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
if (!((_exercise$exerciseUse10 = exercise.exerciseUserInfo) !== null && _exercise$exerciseUse10 !== void 0 && _exercise$exerciseUse10.screen_at)) {
_context10.next = 3;
_context9.next = 3;
break;
}
_context10.next = 3;
_context9.next = 3;
return (0,service_exercise/* commitScreenAt */.ck)(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
reset: true
}));
case 3:
_context10.next = 5;
_context9.next = 5;
return (0,service_exercise/* recordScreen */.oy)({
id: params.categoryId
});
case 5:
res = _context10.sent;
res = _context9.sent;
if (!(res !== null && res !== void 0 && res.is_commit)) {
_context10.next = 9;
_context9.next = 9;
break;
}
autoSubmitToDetail();
return _context10.abrupt("return");
return _context9.abrupt("return");
case 9:
_context10.next = 11;
_context9.next = 11;
return getExerciseUserInfo();
case 11:
resUser = _context10.sent;
return _context10.abrupt("return", resUser);
resUser = _context9.sent;
return _context9.abrupt("return", resUser);
case 13:
case "end":
return _context10.stop();
return _context9.stop();
}
}, _callee10);
}, _callee9);
}));
return function handleFinish() {
return _ref9.apply(this, arguments);
};
}();
var fullscreenchangeIn = /*#__PURE__*/function () {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var _ref10 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var showHeader, _exercise$exerciseUse11, res;
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
showHeader = false;
if (!(0,fullscreen/* IsFull */.vp)()) {
_context11.next = 5;
_context10.next = 5;
break;
}
if ((_exercise$exerciseUse11 = exercise.exerciseUserInfo) !== null && _exercise$exerciseUse11 !== void 0 && _exercise$exerciseUse11.screen_at) (0,service_exercise/* commitScreenAt */.ck)(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
reset: true
}));
_context11.next = 13;
_context10.next = 13;
break;
case 5:
showHeader = true;
_context11.next = 8;
_context10.next = 8;
return (0,service_exercise/* commitScreenAt */.ck)(objectSpread2_default()({}, params));
case 8:
_context11.next = 10;
_context10.next = 10;
return getExerciseUserInfo();
case 10:
res = _context11.sent;
res = _context10.sent;
exitFullScreenTip(res.used_screen_num + 1);
if (window.frames.length != parent.frames.length) {
window.parent.postMessage('backExercise', '*');
@ -708,36 +695,34 @@ var RecordScreen = function RecordScreen(_ref) {
});
case 14:
case "end":
return _context11.stop();
return _context10.stop();
}
}, _callee11);
}, _callee10);
}));
return function fullscreenchangeIn() {
return _ref10.apply(this, arguments);
};
}();
var cuttingScreenChangeIn = /*#__PURE__*/function () {
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
var _ref11 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
var res;
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
while (1) switch (_context12.prev = _context12.next) {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
_context12.next = 2;
return (0,service_exercise/* commitScreenAt */.ck)(objectSpread2_default()({}, params));
case 2:
_context12.next = 4;
(0,service_exercise/* commitScreenAt */.ck)(objectSpread2_default()({}, params));
_context11.next = 3;
return getExerciseUserInfo();
case 4:
res = _context12.sent;
case 3:
res = _context11.sent;
exitFullScreenTip(res.used_screen_num + 1);
if (window.frames.length != parent.frames.length) {
window.parent.postMessage('backExercise', '*');
}
case 7:
case 6:
case "end":
return _context12.stop();
return _context11.stop();
}
}, _callee12);
}, _callee11);
}));
return function cuttingScreenChangeIn() {
return _ref11.apply(this, arguments);

@ -563,10 +563,10 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-comment-actions > li > span {color: @text-color-secondary;}
.ant-comment-actions > li > span:hover {color: #595959;}
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @error-color;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{error-color}", 5)`);}
.ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @warning-color;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{warning-color}", 5)`);}
.ant-picker {color: @text-color;background: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;}
@ -788,16 +788,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.anticon.ant-input-clear-icon:hover, .ant-input-clear-icon:hover {color: @text-color-secondary;}
.anticon.ant-input-clear-icon:active, .ant-input-clear-icon:active {color: @text-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @error-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-input-status-error .ant-input-prefix {color: @error-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @warning-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-input-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error .ant-input-prefix {color: @error-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-group-wrapper-status-error .ant-input-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-group-wrapper-status-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;}
@ -894,16 +894,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-affix-wrapper > div.ant-input-number {border: none;}
.ant-input-number-affix-wrapper > div.ant-input-number.ant-input-number-focused {box-shadow: none !important;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @error-color;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-input-number-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon {color: @warning-color;border-color: @warning-color;}
@ -1024,10 +1024,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-list-grid .ant-col > .ant-list-item {border-bottom: none;}
.ant-list-bordered {border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @error-color;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-mentions-status-error .ant-input-prefix {color: @error-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @warning-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning .ant-input-prefix {color: @warning-color;}
.ant-mentions {color: @text-color;background-color: #fff;background-image: none;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions::placeholder {color: #bfbfbf;}
@ -1360,9 +1360,9 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-select-multiple .ant-select-selection-item-remove {color: inherit;color: @text-color-secondary;}
.ant-select-multiple .ant-select-selection-item-remove:hover {color: rgba(0, 0, 0, 0.75);}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @error-color !important;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(77, 39, 166, 0.2);border-right-width: 1px;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(11, 16, 203, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @warning-color !important;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(36, 94, 168, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(14, 85, 151, 0.2);border-right-width: 1px;}
.ant-select {color: @text-color;}
.ant-select:not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);border-right-width: 1px;}
@ -1636,9 +1636,9 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;}
.ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;}
.ant-tag-checkable-checked {background-color: @primary-color;}
.ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);}
.ant-tag-pink {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;}
.ant-tag-pink {color: #c41d7f;background: color(~`colorPalette("@{modal-close-color}", 2)`);border-color: #ffadd2;}
.ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;}
.ant-tag-magenta {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;}
.ant-tag-magenta {color: #c41d7f;background: color(~`colorPalette("@{modal-close-color}", 2)`);border-color: #ffadd2;}
.ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;}
.ant-tag-red {color: #cf1322;background: #fff1f0;border-color: #ffa39e;}
.ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;}
@ -1658,7 +1658,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;}
.ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;}
.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;}
.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
.ant-tag-geekblue {color: #1d39c4;background: color(~`colorPalette("@{layout-body-background}", 1)`);border-color: #adc6ff;}
.ant-tag-geekblue {color: #1d39c4;background: #f0f5ff;border-color: #adc6ff;}
.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
.ant-tag-purple {color: #531dab;background: #f9f0ff;border-color: #d3adf7;}
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}

@ -16,7 +16,7 @@
</head>
<body>
<div id="root"></div><link rel="stylesheet/less" type="text/css" href="https://www-cdn.educoder.net/color.less"><script>window.ENV = 'newBuild'</script><script src="https://www-cdn.educoder.net/js/less.min.js"></script><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="https://www-cdn.educoder.net/umi.27b079e3.js"></script>
<script src="https://www-cdn.educoder.net/umi.b009a660.js"></script>
<script src="https://www-cdn.educoder.net/js/officeapi.js"></script>
<script src="https://www-cdn.educoder.net/js/public.js"></script>

@ -2681,7 +2681,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
});
}
setMoveVisible(false);
}, [paramsFromRouter, user === null || user === void 0 ? void 0 : (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login, location.pathname]);
}, [user === null || user === void 0 ? void 0 : (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login, location.pathname]);
(0,react.useEffect)(function () {
if (classroomList.actionTabs.key === '目录重命名成功') {
dispatch({

@ -2712,7 +2712,7 @@ var WorkList = function WorkList(_ref) {
backGroupContnet = _useState36[0],
setbackGroupContnet = _useState36[1];
(0,react.useEffect)(function () {
getData();
getData(true);
return function () {
setWorkList([]);
setStudentList([]);
@ -2740,20 +2740,16 @@ var WorkList = function WorkList(_ref) {
type: 'shixunHomeworks/getWorkList',
payload: params
});
// if (bool) {
// res.then((t: any) => {
// // ["进行中","提交中", "补交中"].includes(t?.homework_status?.[0]
// if (
// (t?.homework_status?.includes('进行中') ||
// t?.homework_status?.includes('补交中') ||
// t?.homework_status?.includes('提交中')) &&
// !isStudent()
// ) {
// handleUpdateScore();
// }
// });
// return res;
// }
if (bool) {
res.then(function (t) {
var _t$homework_status, _t$homework_status2, _t$homework_status3;
// ["进行中","提交中", "补交中"].includes(t?.homework_status?.[0]
if ((t !== null && t !== void 0 && (_t$homework_status = t.homework_status) !== null && _t$homework_status !== void 0 && _t$homework_status.includes('进行中') || t !== null && t !== void 0 && (_t$homework_status2 = t.homework_status) !== null && _t$homework_status2 !== void 0 && _t$homework_status2.includes('补交中') || t !== null && t !== void 0 && (_t$homework_status3 = t.homework_status) !== null && _t$homework_status3 !== void 0 && _t$homework_status3.includes('提交中')) && !(0,authority/* isStudent */.dE)()) {
handleUpdateScore();
}
});
return res;
}
return res;
};
(0,react.useEffect)(function () {

@ -7428,6 +7428,7 @@ var dtFormat = 'YYYY-MM-DD HH:mm';
taskList = _ref.taskList,
onSaveTaskStar = _ref.onSaveTaskStar;
var location = (0,_umi_production_exports.useLocation)();
var params = (0,_umi_production_exports.useParams)();
function onStarChange(value) {
onSaveTaskStar(identifier, value, index);
}
@ -7441,6 +7442,12 @@ var dtFormat = 'YYYY-MM-DD HH:mm';
href: "/tasks/".concat(identifier).concat(location.search),
onClick: function onClick(e) {
e.preventDefault();
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(identifier).concat(location.search);
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(identifier).concat(location.search);
}, 300);
@ -11931,6 +11938,12 @@ var lodash = __webpack_require__(96486);
href: "/tasks/".concat(prev_game).concat(location.search),
onClick: function onClick(e) {
e.preventDefault();
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(prev_game).concat(location.search);
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(prev_game).concat(location.search);
}, 300);
@ -11942,6 +11955,12 @@ var lodash = __webpack_require__(96486);
onClick: function onClick(e) {
e.preventDefault();
if (shixun.task_pass || game.status === 2 || (user === null || user === void 0 ? void 0 : user.identity) < 5) {
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search);
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(next_game).concat(location.search);
}, 300);

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save