|
|
|
|
@ -4111,7 +4111,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
setAutoHeight(true);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
exportReport(studentexportDate);
|
|
|
|
|
}, 1000);
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
}, [isEaxmPaperOpen, exportData]);
|
|
|
|
|
var handleRemoveSurplusCanvas = function handleRemoveSurplusCanvas() {
|
|
|
|
|
@ -4259,8 +4259,6 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
return pdf.addPage();
|
|
|
|
|
case 3:
|
|
|
|
|
onChangeProgress(pdf);
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -4288,11 +4286,12 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
_context4.next = 9;
|
|
|
|
|
break;
|
|
|
|
|
case 14:
|
|
|
|
|
onChangeProgress(worker);
|
|
|
|
|
setisshowanswer(false);
|
|
|
|
|
setUserCommentVisible(false);
|
|
|
|
|
setUserScoreVisible(false);
|
|
|
|
|
setAutoHeight(false);
|
|
|
|
|
case 18:
|
|
|
|
|
case 19:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -4335,6 +4334,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
item.question_type === utils_enum/* QuestionType */.c.Single && ((_item$question_choice = item.question_choices) === null || _item$question_choice === void 0 ? void 0 : _item$question_choice.map(function (val, key) {
|
|
|
|
|
var _item$user_answer;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "pr20",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: "25px",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -4361,6 +4361,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
item.question_type === utils_enum/* QuestionType */.c.Multiple && ((_item$question_choice2 = item.question_choices) === null || _item$question_choice2 === void 0 ? void 0 : _item$question_choice2.map(function (val, key) {
|
|
|
|
|
var _item$user_answer2;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "pr20",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: "25px",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -4389,6 +4390,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
children: (_item$question_choice3 = item.question_choices) === null || _item$question_choice3 === void 0 ? void 0 : _item$question_choice3.map(function (val, key) {
|
|
|
|
|
var _item$user_answer3;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
className: "pr20",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: "25px",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -4600,6 +4602,7 @@ var StudentEaxmPaper = function StudentEaxmPaper(_ref) {
|
|
|
|
|
} finally {
|
|
|
|
|
_iterator.f();
|
|
|
|
|
}
|
|
|
|
|
console.log("newData:", newData);
|
|
|
|
|
if (newData !== null && newData !== void 0 && newData.length) return (_Array = new Array(Math.ceil((newData === null || newData === void 0 ? void 0 : newData.length) / step))) === null || _Array === void 0 || (_Array = _Array.fill([])) === null || _Array === void 0 || (_Array = _Array.map(function (item, key) {
|
|
|
|
|
return newData.slice(key * step, key * step + step);
|
|
|
|
|
})) === null || _Array === void 0 ? void 0 : _Array.map(function (i, k) {
|
|
|
|
|
@ -5853,21 +5856,25 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
return dom;
|
|
|
|
|
};
|
|
|
|
|
var handleChangeProgress = (0,_react_17_0_2_react.useCallback)(function (pdf) {
|
|
|
|
|
var num = 0;
|
|
|
|
|
var setInt = setInterval(function () {
|
|
|
|
|
if (num == 100) {
|
|
|
|
|
var _exercise$exerciseExp, _exercise$exerciseExp2, _exercise$exerciseExp3, _reviewExercise$exerc11, _reviewExercise$exerc12, _reviewExercise$exerc13;
|
|
|
|
|
var title = "".concat(exercise !== null && exercise !== void 0 && (_exercise$exerciseExp = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp !== void 0 && _exercise$exerciseExp.student_id ? "".concat(exercise === null || exercise === void 0 || (_exercise$exerciseExp2 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp2 === void 0 ? void 0 : _exercise$exerciseExp2.student_id, "+") : "").concat(exercise === null || exercise === void 0 || (_exercise$exerciseExp3 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp3 === void 0 ? void 0 : _exercise$exerciseExp3.user) || "".concat((_reviewExercise$exerc11 = reviewExercise.exercise_answer_user) !== null && _reviewExercise$exerc11 !== void 0 && _reviewExercise$exerc11.student_id ? "".concat((_reviewExercise$exerc12 = reviewExercise.exercise_answer_user) === null || _reviewExercise$exerc12 === void 0 ? void 0 : _reviewExercise$exerc12.student_id, "+") : "").concat((_reviewExercise$exerc13 = reviewExercise.exercise_answer_user) === null || _reviewExercise$exerc13 === void 0 ? void 0 : _reviewExercise$exerc13.user_name);
|
|
|
|
|
pdf.save(title);
|
|
|
|
|
setIsEaxmPaperOpen(false);
|
|
|
|
|
setProgress(0);
|
|
|
|
|
clearInterval(setInt);
|
|
|
|
|
} else {
|
|
|
|
|
num += 10;
|
|
|
|
|
setProgress(num);
|
|
|
|
|
}
|
|
|
|
|
var _exercise$exerciseExp, _exercise$exerciseExp2, _exercise$exerciseExp3, _reviewExercise$exerc11, _reviewExercise$exerc12, _reviewExercise$exerc13;
|
|
|
|
|
setProgress(100);
|
|
|
|
|
var title = "".concat(exercise !== null && exercise !== void 0 && (_exercise$exerciseExp = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp !== void 0 && _exercise$exerciseExp.student_id ? "".concat(exercise === null || exercise === void 0 || (_exercise$exerciseExp2 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp2 === void 0 ? void 0 : _exercise$exerciseExp2.student_id, "+") : "").concat(exercise === null || exercise === void 0 || (_exercise$exerciseExp3 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp3 === void 0 ? void 0 : _exercise$exerciseExp3.user) || "".concat((_reviewExercise$exerc11 = reviewExercise.exercise_answer_user) !== null && _reviewExercise$exerc11 !== void 0 && _reviewExercise$exerc11.student_id ? "".concat((_reviewExercise$exerc12 = reviewExercise.exercise_answer_user) === null || _reviewExercise$exerc12 === void 0 ? void 0 : _reviewExercise$exerc12.student_id, "+") : "").concat((_reviewExercise$exerc13 = reviewExercise.exercise_answer_user) === null || _reviewExercise$exerc13 === void 0 ? void 0 : _reviewExercise$exerc13.user_name);
|
|
|
|
|
pdf.save(title);
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
return setProgress(0);
|
|
|
|
|
}, 100);
|
|
|
|
|
setIsEaxmPaperOpen(false);
|
|
|
|
|
}, [exercise, reviewExercise]);
|
|
|
|
|
var startRunProcess = function startRunProcess() {
|
|
|
|
|
var num = 0;
|
|
|
|
|
var runTime = setInterval(function () {
|
|
|
|
|
num += 5;
|
|
|
|
|
setProgress(num);
|
|
|
|
|
if (num === 100) {
|
|
|
|
|
clearInterval(runTime);
|
|
|
|
|
}
|
|
|
|
|
}, 200);
|
|
|
|
|
};
|
|
|
|
|
var handleAnalysisCent = (0,_react_17_0_2_react.useCallback)(function (e) {
|
|
|
|
|
return setAnalysisCent(e.target.value);
|
|
|
|
|
}, []);
|
|
|
|
|
@ -6570,6 +6577,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
message/* default */.ZP.info('请选择一种导出格式');
|
|
|
|
|
return;
|
|
|
|
|
} else if (exportType == 'pdf') {
|
|
|
|
|
startRunProcess();
|
|
|
|
|
setExportDate({
|
|
|
|
|
type: "",
|
|
|
|
|
userCommentVisible: checkcomment,
|
|
|
|
|
|