Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent 33394f47e2
commit ae087171a9

@ -5488,8 +5488,10 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
_ref5$combination_que = _ref5.combination_questions_count,
combination_questions_count = _ref5$combination_que === void 0 ? 0 : _ref5$combination_que,
_ref5$program_complet = _ref5.program_completion_questions_count,
program_completion_questions_count = _ref5$program_complet === void 0 ? 0 : _ref5$program_complet;
var total = completion_questions_count + judgement_questions_count + multiple_questions_count + practical_questions_count + program_questions_count + single_questions_count + subjective_questions_count + combination_questions_count + program_completion_questions_count;
program_completion_questions_count = _ref5$program_complet === void 0 ? 0 : _ref5$program_complet,
_ref5$program_correct = _ref5.program_correction_questions_count,
program_correction_questions_count = _ref5$program_correct === void 0 ? 0 : _ref5$program_correct;
var total = completion_questions_count + judgement_questions_count + multiple_questions_count + program_correction_questions_count + practical_questions_count + program_questions_count + single_questions_count + subjective_questions_count + combination_questions_count + program_completion_questions_count;
setBasketTotal(total);
}, [problemset.basketData]);
@ -6078,7 +6080,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
item_type = gather.item_type; //程序设计题
item_type = gather.item_type; //程序设计题、程序改错题、程序填空题
if (!typeArr.includes(item_type)) {
_context11.next = 12;
break;
@ -6759,7 +6761,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
okText: '确定',
cancelText: '取消',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F53\u524D\u5DF2\u9009\u62E9", preIds.length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165 "]
children: ["\u5F53\u524D\u5DF2\u9009\u62E9", preIds.length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165 "]
}),
onOk: function () {
var _onOk5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee23() {
@ -7264,7 +7266,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var _x$program_attr;
return typeArr.includes(x.item_type) && ((_x$program_attr = x.program_attr) === null || _x$program_attr === void 0 ? void 0 : _x$program_attr.status) === 0;
})) {
return message/* default */.ZP.info('已选题中存在未发布的程序设计题');
return message/* default */.ZP.info('已选题中存在未发布的程序设计题/程序改错题/程序填空题');
}
window.localStorage.getItem('problemset-set-public-hint-flag') === "1" || user.userInfo.professional_certification ? handleBatchSetPublicRequest() : modal/* default */.Z.confirm({
centered: true,
@ -7521,7 +7523,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14 ".concat(Problemsetmodules.overflow),
children: ["\u5DF2\u9009\u4E2D", selectIds === null || selectIds === void 0 ? void 0 : selectIds.length, "\u9053\u9898\uFF0C\u5176\u4E2D\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u4E0E\u5B9E\u8BAD\u9898\u6682\u4E0D\u652F\u6301\u5BFC\u51FA\u3002"]
children: ["\u5DF2\u9009\u4E2D", selectIds === null || selectIds === void 0 ? void 0 : selectIds.length, "\u9053\u9898\uFF0C\u5176\u4E2D\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u4E0E\u5B9E\u8BAD\u9898\u6682\u4E0D\u652F\u6301\u5BFC\u51FA\u3002"]
}),
onOk: function onOk() {
(0,utils_export/* ExportProblemset */.rQ)({
@ -7547,7 +7549,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
modal/* default */.Z.error({
title: '错误',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u53D1\u5E03\u9519\u8BEF\uFF01\u8BF7\u9009\u62E9\u5C1A\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u8FDB\u884C\u53D1\u5E03"
children: "\u53D1\u5E03\u9519\u8BEF\uFF01\u8BF7\u9009\u62E9\u5C1A\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898/\u7A0B\u5E8F\u6539\u9519\u9898/\u7A0B\u5E8F\u586B\u7A7A\u9898\u8FDB\u884C\u53D1\u5E03"
}),
centered: true,
okText: '确认'
@ -7556,7 +7558,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
modal/* default */.Z.confirm({
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5F53\u524D\u9009\u4E2D", total_item_banks, "\u9898\uFF0C\u5176\u4E2D\u5305\u542B", unpublish_program_question_count, "\u9053\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\uFF0C \u8BF7\u786E\u8BA4\u662F\u5426\u53D1\u5E03\uFF1F"]
children: ["\u5F53\u524D\u9009\u4E2D", total_item_banks, "\u9898\uFF0C\u5176\u4E2D\u5305\u542B", unpublish_program_question_count, "\u9053\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\uFF0C \u8BF7\u786E\u8BA4\u662F\u5426\u53D1\u5E03\uFF1F"]
}),
centered: true,
onOk: function () {
@ -7743,7 +7745,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
3: "困难"
};
var renderActionBtns = function renderActionBtns(v, r) {
var _r$program_attr;
var _r$program_attr, _questionType$find;
var domBtn = r.id < 0 ? '--' : !showSelectButton ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {}) : r[params.exercise_id ? 'added' : 'choosed'] ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Problemsetmodules.btnAdd,
onClick: function onClick(e) {
@ -7757,7 +7759,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
})
}, 1) : typeArr.includes(r.item_type) && ((_r$program_attr = r.program_attr) === null || _r$program_attr === void 0 ? void 0 : _r$program_attr.status) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "top",
title: "\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u672A\u53D1\u5E03\uFF0C\u4E0D\u80FD\u52A0\u5165\uFF01",
title: "".concat((_questionType$find = questionType.find(function (item) {
return item.type === r.item_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name, "\u672A\u53D1\u5E03\uFF0C\u4E0D\u80FD\u52A0\u5165\uFF01"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Problemsetmodules.btnAdd,
style: {
@ -7851,7 +7855,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
document.getElementById("topicdom").scrollIntoView({
behavior: "smooth"
});
message/* default */.ZP.info('请选择程序设计题');
message/* default */.ZP.info('请选择程序设计题/程序改错题/程序填空题');
return _context37.abrupt("return");
case 8:
setAddLoading(true);
@ -8125,7 +8129,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
overflow: 'auto'
},
children: selectitem === null || selectitem === void 0 ? void 0 : selectitem.map(function (v, index) {
var _v$author, _v$author2, _v$author3, _v$author4;
var _questionType$find2, _v$author, _v$author2, _v$author3, _v$author4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Problemsetmodules.sendModal,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -8136,7 +8140,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
className: Problemsetmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333",
children: "\u7A0B\u5E8F\u8BBE\u8BA1\u9898"
children: (_questionType$find2 = questionType.find(function (item) {
return item.type === v.item_type;
})) === null || _questionType$find2 === void 0 ? void 0 : _questionType$find2.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: Problemsetmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
@ -8220,7 +8226,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
size: 'middle',
spinning: loading['problemset/getItemBanks'],
children: problemsetList.map(function (v, index) {
var _questionType$find, _v$author5, _v$author6, _v$author7, _v$author8;
var _questionType$find3, _v$author5, _v$author6, _v$author7, _v$author8;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Problemsetmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -8237,9 +8243,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
children: ["No.", v === null || v === void 0 ? void 0 : v.id]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "".concat(Problemsetmodules.actionLeftItem, " ").concat(Problemsetmodules.questionTypeName),
children: (_questionType$find = questionType.find(function (item) {
children: (_questionType$find3 = questionType.find(function (item) {
return item.type === v.item_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
})) === null || _questionType$find3 === void 0 ? void 0 : _questionType$find3.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Problemsetmodules.actionLeftItem,
children: difficultyMapping[v.difficulty]

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.a117a834.js"></script>
<script src="/react/build/umi.adae138a.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -5488,8 +5488,10 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
_ref5$combination_que = _ref5.combination_questions_count,
combination_questions_count = _ref5$combination_que === void 0 ? 0 : _ref5$combination_que,
_ref5$program_complet = _ref5.program_completion_questions_count,
program_completion_questions_count = _ref5$program_complet === void 0 ? 0 : _ref5$program_complet;
var total = completion_questions_count + judgement_questions_count + multiple_questions_count + practical_questions_count + program_questions_count + single_questions_count + subjective_questions_count + combination_questions_count + program_completion_questions_count;
program_completion_questions_count = _ref5$program_complet === void 0 ? 0 : _ref5$program_complet,
_ref5$program_correct = _ref5.program_correction_questions_count,
program_correction_questions_count = _ref5$program_correct === void 0 ? 0 : _ref5$program_correct;
var total = completion_questions_count + judgement_questions_count + multiple_questions_count + program_correction_questions_count + practical_questions_count + program_questions_count + single_questions_count + subjective_questions_count + combination_questions_count + program_completion_questions_count;
setBasketTotal(total);
}, [problemset.basketData]);
@ -6078,7 +6080,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
item_type = gather.item_type; //程序设计题
item_type = gather.item_type; //程序设计题、程序改错题、程序填空题
if (!typeArr.includes(item_type)) {
_context11.next = 12;
break;
@ -6759,7 +6761,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
okText: '确定',
cancelText: '取消',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F53\u524D\u5DF2\u9009\u62E9", preIds.length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165 "]
children: ["\u5F53\u524D\u5DF2\u9009\u62E9", preIds.length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165 "]
}),
onOk: function () {
var _onOk5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee23() {
@ -7264,7 +7266,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
var _x$program_attr;
return typeArr.includes(x.item_type) && ((_x$program_attr = x.program_attr) === null || _x$program_attr === void 0 ? void 0 : _x$program_attr.status) === 0;
})) {
return message/* default */.ZP.info('已选题中存在未发布的程序设计题');
return message/* default */.ZP.info('已选题中存在未发布的程序设计题/程序改错题/程序填空题');
}
window.localStorage.getItem('problemset-set-public-hint-flag') === "1" || user.userInfo.professional_certification ? handleBatchSetPublicRequest() : modal/* default */.Z.confirm({
centered: true,
@ -7521,7 +7523,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
icon: null,
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "font14 ".concat(Problemsetmodules.overflow),
children: ["\u5DF2\u9009\u4E2D", selectIds === null || selectIds === void 0 ? void 0 : selectIds.length, "\u9053\u9898\uFF0C\u5176\u4E2D\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u4E0E\u5B9E\u8BAD\u9898\u6682\u4E0D\u652F\u6301\u5BFC\u51FA\u3002"]
children: ["\u5DF2\u9009\u4E2D", selectIds === null || selectIds === void 0 ? void 0 : selectIds.length, "\u9053\u9898\uFF0C\u5176\u4E2D\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u4E0E\u5B9E\u8BAD\u9898\u6682\u4E0D\u652F\u6301\u5BFC\u51FA\u3002"]
}),
onOk: function onOk() {
(0,utils_export/* ExportProblemset */.rQ)({
@ -7547,7 +7549,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
modal/* default */.Z.error({
title: '错误',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u53D1\u5E03\u9519\u8BEF\uFF01\u8BF7\u9009\u62E9\u5C1A\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u8FDB\u884C\u53D1\u5E03"
children: "\u53D1\u5E03\u9519\u8BEF\uFF01\u8BF7\u9009\u62E9\u5C1A\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898/\u7A0B\u5E8F\u6539\u9519\u9898/\u7A0B\u5E8F\u586B\u7A7A\u9898\u8FDB\u884C\u53D1\u5E03"
}),
centered: true,
okText: '确认'
@ -7556,7 +7558,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
modal/* default */.Z.confirm({
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5F53\u524D\u9009\u4E2D", total_item_banks, "\u9898\uFF0C\u5176\u4E2D\u5305\u542B", unpublish_program_question_count, "\u9053\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\uFF0C \u8BF7\u786E\u8BA4\u662F\u5426\u53D1\u5E03\uFF1F"]
children: ["\u5F53\u524D\u9009\u4E2D", total_item_banks, "\u9898\uFF0C\u5176\u4E2D\u5305\u542B", unpublish_program_question_count, "\u9053\u672A\u53D1\u5E03\u7684\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u3001\u7A0B\u5E8F\u6539\u9519\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\uFF0C \u8BF7\u786E\u8BA4\u662F\u5426\u53D1\u5E03\uFF1F"]
}),
centered: true,
onOk: function () {
@ -7743,7 +7745,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
3: "困难"
};
var renderActionBtns = function renderActionBtns(v, r) {
var _r$program_attr;
var _r$program_attr, _questionType$find;
var domBtn = r.id < 0 ? '--' : !showSelectButton ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {}) : r[params.exercise_id ? 'added' : 'choosed'] ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Problemsetmodules.btnAdd,
onClick: function onClick(e) {
@ -7757,7 +7759,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
})
}, 1) : typeArr.includes(r.item_type) && ((_r$program_attr = r.program_attr) === null || _r$program_attr === void 0 ? void 0 : _r$program_attr.status) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "top",
title: "\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u672A\u53D1\u5E03\uFF0C\u4E0D\u80FD\u52A0\u5165\uFF01",
title: "".concat((_questionType$find = questionType.find(function (item) {
return item.type === r.item_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name, "\u672A\u53D1\u5E03\uFF0C\u4E0D\u80FD\u52A0\u5165\uFF01"),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Problemsetmodules.btnAdd,
style: {
@ -7851,7 +7855,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
document.getElementById("topicdom").scrollIntoView({
behavior: "smooth"
});
message/* default */.ZP.info('请选择程序设计题');
message/* default */.ZP.info('请选择程序设计题/程序改错题/程序填空题');
return _context37.abrupt("return");
case 8:
setAddLoading(true);
@ -8125,7 +8129,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
overflow: 'auto'
},
children: selectitem === null || selectitem === void 0 ? void 0 : selectitem.map(function (v, index) {
var _v$author, _v$author2, _v$author3, _v$author4;
var _questionType$find2, _v$author, _v$author2, _v$author3, _v$author4;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Problemsetmodules.sendModal,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -8136,7 +8140,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
className: Problemsetmodules.bottom,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-grey-333",
children: "\u7A0B\u5E8F\u8BBE\u8BA1\u9898"
children: (_questionType$find2 = questionType.find(function (item) {
return item.type === v.item_type;
})) === null || _questionType$find2 === void 0 ? void 0 : _questionType$find2.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: Problemsetmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
@ -8220,7 +8226,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
size: 'middle',
spinning: loading['problemset/getItemBanks'],
children: problemsetList.map(function (v, index) {
var _questionType$find, _v$author5, _v$author6, _v$author7, _v$author8;
var _questionType$find3, _v$author5, _v$author6, _v$author7, _v$author8;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Problemsetmodules.li,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -8237,9 +8243,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
children: ["No.", v === null || v === void 0 ? void 0 : v.id]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: "".concat(Problemsetmodules.actionLeftItem, " ").concat(Problemsetmodules.questionTypeName),
children: (_questionType$find = questionType.find(function (item) {
children: (_questionType$find3 = questionType.find(function (item) {
return item.type === v.item_type;
})) === null || _questionType$find === void 0 ? void 0 : _questionType$find.name
})) === null || _questionType$find3 === void 0 ? void 0 : _questionType$find3.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Problemsetmodules.actionLeftItem,
children: difficultyMapping[v.difficulty]

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