|
|
|
|
@ -1719,8 +1719,9 @@ var Comment_excluded = ["shixunHomeworks", "globalSetting", "loading", "classroo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
var _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat, _shixunWorkReport$cat6, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$dat4, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat23, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26;
|
|
|
|
|
var _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3, _shixunWorkReport$cat4, _shixunWorkReport$cat5, _shixunWorkReport$dat4, _shixunWorkReport$cat6, _shixunWorkReport$dat5, _shixunWorkReport$dat6, _shixunWorkReport$dat7, _shixunWorkReport$dat8, _shixunWorkReport$dat9, _shixunWorkReport$dat10, _shixunWorkReport$dat11, _shixunWorkReport$dat12, _shixunWorkReport$dat13, _shixunWorkReport$dat14, _shixunWorkReport$dat15, _shixunWorkReport$dat16, _shixunWorkReport$dat17, _shixunWorkReport$dat18, _shixunWorkReport$dat19, _shixunWorkReport$dat20, _shixunWorkReport$dat21, _shixunWorkReport$dat22, _shixunWorkReport$dat24, _shixunWorkReport$dat25, _shixunWorkReport$dat26, _shixunWorkReport$dat27, _shixunWorkReport$dat28, _shixunWorkReport$dat29;
|
|
|
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -1798,7 +1799,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
if (shixunHomeworks.actionTabs.key === '导出实训报告' && allStudentWorks.length > 0) {
|
|
|
|
|
if (shixunHomeworks.actionTabs.key === '导出编程报告' && allStudentWorks.length > 0) {
|
|
|
|
|
exportReport('all');
|
|
|
|
|
}
|
|
|
|
|
}, [allStudentWorks]);
|
|
|
|
|
@ -1829,7 +1830,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
// setSpinning(false);
|
|
|
|
|
setAllStudentWorks(res['all_student_works']);
|
|
|
|
|
key = (_res$all_student_work = res['all_student_works']) === null || _res$all_student_work === void 0 ? void 0 : _res$all_student_work.map(function (item) {
|
|
|
|
|
return String(item.user_id);
|
|
|
|
|
return String(item.student_work_id);
|
|
|
|
|
}).indexOf(params.homeworkId);
|
|
|
|
|
if (key === ((_res$all_student_work2 = res['all_student_works']) === null || _res$all_student_work2 === void 0 ? void 0 : _res$all_student_work2.length) - 1) {
|
|
|
|
|
setNextComment({
|
|
|
|
|
@ -1867,7 +1868,8 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
};
|
|
|
|
|
var exportReport = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(type) {
|
|
|
|
|
var nums, modal, opt, next, _next, _shixunWorkReport$shi, pages, worker, folder, _loop, i, codeF;
|
|
|
|
|
var _shixunWorkReport$dat;
|
|
|
|
|
var nums, modal, opt, next, _next, _shixunWorkReport$dat2, _shixunWorkReport$dat3, _shixunWorkReport$hac, pages, worker, folder, _loop, i, codeF;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
@ -1880,22 +1882,24 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
_context6.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'shixunHomeworks/getShixunWorkReports',
|
|
|
|
|
payload: {
|
|
|
|
|
homeworkId: allStudentWorks[nums]['user_id']
|
|
|
|
|
}
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
homeworkId: allStudentWorks[nums]['student_work_id'],
|
|
|
|
|
user_id: allStudentWorks[nums]['user_id'],
|
|
|
|
|
id: params.categoryId
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context6.sent;
|
|
|
|
|
scrollView();
|
|
|
|
|
nums++;
|
|
|
|
|
setTimeout( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
var _res$shixun_detail;
|
|
|
|
|
var _res$data, _res$hack;
|
|
|
|
|
var folders, pages, worker, _loop2, _i, codesF;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context5) {
|
|
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
handleRemoveSurplusCanvas();
|
|
|
|
|
folders = zip.folder("".concat(res === null || res === void 0 ? void 0 : res.username));
|
|
|
|
|
folders = zip.folder("".concat(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.user_name));
|
|
|
|
|
pages = document.querySelector('#export-all').children;
|
|
|
|
|
worker = html2pdf_default()();
|
|
|
|
|
_loop2 = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop2(_i) {
|
|
|
|
|
@ -1945,11 +1949,11 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
folders.file("".concat(allStudentWorks[nums - 1]['student_work_user_name']).concat(nums, ".pdf"), worker.output("blob"));
|
|
|
|
|
// folder.file(`${shixunWorkReport.username}.pdf`, worker.output("blob"), { base64: false });
|
|
|
|
|
codesF = folders.folder("代码文件");
|
|
|
|
|
res === null || res === void 0 || (_res$shixun_detail = res.shixun_detail) === null || _res$shixun_detail === void 0 || _res$shixun_detail.map(function (item, index) {
|
|
|
|
|
var _item$game_codes2;
|
|
|
|
|
var codesG = codesF.folder("\u7B2C".concat(index + 1, "\u5173-").concat(item.subject, "-").concat(item.id));
|
|
|
|
|
item === null || item === void 0 || (_item$game_codes2 = item.game_codes) === null || _item$game_codes2 === void 0 || _item$game_codes2.map(function (i) {
|
|
|
|
|
codesG.file("".concat(i.filename, ".txt"), i === null || i === void 0 ? void 0 : i.content);
|
|
|
|
|
res === null || res === void 0 || (_res$hack = res.hack) === null || _res$hack === void 0 || _res$hack.map(function (item, index) {
|
|
|
|
|
var _item$languages2;
|
|
|
|
|
var codesG = codesF.folder("\u7B2C".concat(index + 1, "\u5173-").concat(item.name, "-").concat(item.id));
|
|
|
|
|
item === null || item === void 0 || (_item$languages2 = item.languages) === null || _item$languages2 === void 0 || _item$languages2.map(function (i) {
|
|
|
|
|
codesG.file("".concat(i.language, ".txt"), base64.Base64.decode(i === null || i === void 0 ? void 0 : i.code));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -1992,7 +1996,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
modal = es_modal/* default */.Z.info({
|
|
|
|
|
width: 460,
|
|
|
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: ["\u6B63\u5728\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A,", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-red",
|
|
|
|
|
children: "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3"
|
|
|
|
|
})]
|
|
|
|
|
@ -2009,7 +2013,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
});
|
|
|
|
|
opt = {
|
|
|
|
|
margin: [0, 0],
|
|
|
|
|
filename: "".concat(shixunWorkReport.username, ".pdf"),
|
|
|
|
|
filename: "".concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat = shixunWorkReport.data) === null || _shixunWorkReport$dat === void 0 ? void 0 : _shixunWorkReport$dat.user_name, ".pdf"),
|
|
|
|
|
// image: {
|
|
|
|
|
// type: 'jpeg',
|
|
|
|
|
// quality: 0.98
|
|
|
|
|
@ -2042,7 +2046,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
// });
|
|
|
|
|
pages = reportElementInfo.current.children;
|
|
|
|
|
worker = html2pdf_default()();
|
|
|
|
|
folder = zip.folder("".concat(shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.username));
|
|
|
|
|
folder = zip.folder("".concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat2 = shixunWorkReport.data) === null || _shixunWorkReport$dat2 === void 0 ? void 0 : _shixunWorkReport$dat2.user_name));
|
|
|
|
|
_loop = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop(i) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _loop$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
@ -2090,15 +2094,15 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
setIsExportLoading(false);
|
|
|
|
|
|
|
|
|
|
// zip.file(`${shixunWorkReport.username}.pdf`, pdfUrl);
|
|
|
|
|
folder.file("".concat(shixunWorkReport.username, ".pdf"), worker.output("blob"), {
|
|
|
|
|
folder.file("".concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat3 = shixunWorkReport.data) === null || _shixunWorkReport$dat3 === void 0 ? void 0 : _shixunWorkReport$dat3.user_name, ".pdf"), worker.output("blob"), {
|
|
|
|
|
base64: false
|
|
|
|
|
});
|
|
|
|
|
codeF = folder.folder("代码文件");
|
|
|
|
|
shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$shi = shixunWorkReport.shixun_detail) === null || _shixunWorkReport$shi === void 0 || _shixunWorkReport$shi.map(function (item, index) {
|
|
|
|
|
var _item$game_codes;
|
|
|
|
|
var codesG = codeF.folder("\u7B2C".concat(index + 1, "\u5173-").concat(item.subject, "-").concat(item.id));
|
|
|
|
|
item === null || item === void 0 || (_item$game_codes = item.game_codes) === null || _item$game_codes === void 0 || _item$game_codes.map(function (i) {
|
|
|
|
|
codesG.file("".concat(i.filename, ".txt"), i === null || i === void 0 ? void 0 : i.content);
|
|
|
|
|
shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$hac = shixunWorkReport.hack) === null || _shixunWorkReport$hac === void 0 || _shixunWorkReport$hac.map(function (item, index) {
|
|
|
|
|
var _item$languages;
|
|
|
|
|
var codesG = codeF.folder("\u7B2C".concat(index + 1, "\u5173-").concat(item.name, "-").concat(item.id));
|
|
|
|
|
item === null || item === void 0 || (_item$languages = item.languages) === null || _item$languages === void 0 || _item$languages.map(function (i) {
|
|
|
|
|
codesG.file("".concat(i.language, ".txt"), base64.Base64.decode(i === null || i === void 0 ? void 0 : i.code));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// worker.save()
|
|
|
|
|
@ -2123,7 +2127,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}).then(function (content) {
|
|
|
|
|
var link = document.createElement('a');
|
|
|
|
|
link.href = window.URL.createObjectURL(content);
|
|
|
|
|
link.download = shixunWorkReport.course_name + '.zip';
|
|
|
|
|
link.download = shixunWorkReport.category.course_name + '.zip';
|
|
|
|
|
//此写法兼容可火狐浏览器
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
var evt = document.createEvent("MouseEvents");
|
|
|
|
|
@ -2348,14 +2352,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
children: "\u4F5C\u4E1A\u8BE6\u60C5"
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat = shixunWorkReport.data) === null || _shixunWorkReport$dat === void 0 ? void 0 : _shixunWorkReport$dat.user_name
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat4 = shixunWorkReport.data) === null || _shixunWorkReport$dat4 === void 0 ? void 0 : _shixunWorkReport$dat4.user_name
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: [Commentmodules.title1, 'mt20'].join(' '),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
flex: 1,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: "/classrooms/".concat(params.coursesId, "/program_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/detail"),
|
|
|
|
|
@ -2369,7 +2373,27 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
temporary: true,
|
|
|
|
|
status: shixunWorkReport.homework_status
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Commentmodules.title1_right,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return exportReport('');
|
|
|
|
|
},
|
|
|
|
|
loading: isExportLoading,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-daochu mr5"
|
|
|
|
|
}), "\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A"]
|
|
|
|
|
}), (0,authority/* isAdmin */.GJ)() && (allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return exportReport('all');
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-daochu mr5"
|
|
|
|
|
}), "\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7F16\u7A0B\u62A5\u544A"]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
@ -2403,7 +2427,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SolutionOutlined/* default */.Z, {}), shixunWorkReport !== null && shixunWorkReport !== void 0 && (_shixunWorkReport$dat2 = shixunWorkReport.data) !== null && _shixunWorkReport$dat2 !== void 0 && _shixunWorkReport$dat2.has_comment ? "更改点评" : "点评作业"]
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SolutionOutlined/* default */.Z, {}), shixunWorkReport !== null && shixunWorkReport !== void 0 && (_shixunWorkReport$dat5 = shixunWorkReport.data) !== null && _shixunWorkReport$dat5 !== void 0 && _shixunWorkReport$dat5.has_comment ? "更改点评" : "点评作业"]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
|
|
|
|
|
@ -2415,30 +2439,30 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
className: Commentmodules.userPic,
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat3 = shixunWorkReport.data) === null || _shixunWorkReport$dat3 === void 0 ? void 0 : _shixunWorkReport$dat3.image_url),
|
|
|
|
|
alt: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat4 = shixunWorkReport.data) === null || _shixunWorkReport$dat4 === void 0 ? void 0 : _shixunWorkReport$dat4.username
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat6 = shixunWorkReport.data) === null || _shixunWorkReport$dat6 === void 0 ? void 0 : _shixunWorkReport$dat6.image_url),
|
|
|
|
|
alt: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat7 = shixunWorkReport.data) === null || _shixunWorkReport$dat7 === void 0 ? void 0 : _shixunWorkReport$dat7.username
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "font16 ml40",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat5 = shixunWorkReport.data) === null || _shixunWorkReport$dat5 === void 0 ? void 0 : _shixunWorkReport$dat5.user_name
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat8 = shixunWorkReport.data) === null || _shixunWorkReport$dat8 === void 0 ? void 0 : _shixunWorkReport$dat8.user_name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(util/* HomeWorkDetailStatus */.UQ, {
|
|
|
|
|
status: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat6 = shixunWorkReport.data) === null || _shixunWorkReport$dat6 === void 0 ? void 0 : _shixunWorkReport$dat6.compelete_status
|
|
|
|
|
status: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat9 = shixunWorkReport.data) === null || _shixunWorkReport$dat9 === void 0 ? void 0 : _shixunWorkReport$dat9.compelete_status
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
|
|
|
className: Commentmodules.userInfo,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: ["\u5B66\u53F7\uFF1A", (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat7 = shixunWorkReport.data) === null || _shixunWorkReport$dat7 === void 0 ? void 0 : _shixunWorkReport$dat7.student_id) || '--']
|
|
|
|
|
children: ["\u5B66\u53F7\uFF1A", (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat10 = shixunWorkReport.data) === null || _shixunWorkReport$dat10 === void 0 ? void 0 : _shixunWorkReport$dat10.student_id) || '--']
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: ["\u5206\u73ED\uFF1A", (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat8 = shixunWorkReport.data) === null || _shixunWorkReport$dat8 === void 0 ? void 0 : _shixunWorkReport$dat8.course_group) || '--']
|
|
|
|
|
children: ["\u5206\u73ED\uFF1A", (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat11 = shixunWorkReport.data) === null || _shixunWorkReport$dat11 === void 0 ? void 0 : _shixunWorkReport$dat11.course_group) || '--']
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: ["\u622A\u6B62\u524D\u5B8C\u6210\u5237\u9898\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-red",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat9 = shixunWorkReport.data) === null || _shixunWorkReport$dat9 === void 0 ? void 0 : _shixunWorkReport$dat9.finish_do
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat12 = shixunWorkReport.data) === null || _shixunWorkReport$dat12 === void 0 ? void 0 : _shixunWorkReport$dat12.finish_do
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: ["\u6700\u65B0\u5B8C\u6210\u5237\u9898\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-red",
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat10 = shixunWorkReport.data) === null || _shixunWorkReport$dat10 === void 0 ? void 0 : _shixunWorkReport$dat10.latest_do) || '-'
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat13 = shixunWorkReport.data) === null || _shixunWorkReport$dat13 === void 0 ? void 0 : _shixunWorkReport$dat13.latest_do) || '-'
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
@ -2449,7 +2473,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
children: "\u5B8C\u6210\u65F6\u95F4"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-light-black mt20",
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.data) && (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat11 = shixunWorkReport.data) === null || _shixunWorkReport$dat11 === void 0 ? void 0 : _shixunWorkReport$dat11.finish_time)
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.data) && (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat14 = shixunWorkReport.data) === null || _shixunWorkReport$dat14 === void 0 ? void 0 : _shixunWorkReport$dat14.finish_time)
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("strong", {
|
|
|
|
|
@ -2470,14 +2494,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-light-black mt20",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat12 = shixunWorkReport.data) === null || _shixunWorkReport$dat12 === void 0 ? void 0 : _shixunWorkReport$dat12.finish_time_long
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat15 = shixunWorkReport.data) === null || _shixunWorkReport$dat15 === void 0 ? void 0 : _shixunWorkReport$dat15.finish_time_long
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
children: "\u8BC4\u6D4B\u6B21\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat13 = shixunWorkReport.data) === null || _shixunWorkReport$dat13 === void 0 ? void 0 : _shixunWorkReport$dat13.submit_count
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat16 = shixunWorkReport.data) === null || _shixunWorkReport$dat16 === void 0 ? void 0 : _shixunWorkReport$dat16.submit_count
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
|
|
|
@ -2485,7 +2509,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat14 = shixunWorkReport.data) === null || _shixunWorkReport$dat14 === void 0 ? void 0 : _shixunWorkReport$dat14.pass_rate) || '- -'
|
|
|
|
|
children: (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat17 = shixunWorkReport.data) === null || _shixunWorkReport$dat17 === void 0 ? void 0 : _shixunWorkReport$dat17.pass_rate) || '- -'
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
@ -2495,7 +2519,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-orange",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat15 = shixunWorkReport.data) === null || _shixunWorkReport$dat15 === void 0 ? void 0 : _shixunWorkReport$dat15.score
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat18 = shixunWorkReport.data) === null || _shixunWorkReport$dat18 === void 0 ? void 0 : _shixunWorkReport$dat18.score
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
@ -2505,7 +2529,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-orange",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat16 = shixunWorkReport.data) === null || _shixunWorkReport$dat16 === void 0 ? void 0 : _shixunWorkReport$dat16.total_rank
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat19 = shixunWorkReport.data) === null || _shixunWorkReport$dat19 === void 0 ? void 0 : _shixunWorkReport$dat19.total_rank
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
|
|
|
@ -2515,7 +2539,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
className: "mt20",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-orange",
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat17 = shixunWorkReport.data) === null || _shixunWorkReport$dat17 === void 0 ? void 0 : _shixunWorkReport$dat17.class_rank
|
|
|
|
|
children: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat20 = shixunWorkReport.data) === null || _shixunWorkReport$dat20 === void 0 ? void 0 : _shixunWorkReport$dat20.class_rank
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
@ -2524,7 +2548,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
margin: 0
|
|
|
|
|
}
|
|
|
|
|
}), ((shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat18 = shixunWorkReport.data) === null || _shixunWorkReport$dat18 === void 0 ? void 0 : _shixunWorkReport$dat18.work_comment_hidden) || (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat19 = shixunWorkReport.data) === null || _shixunWorkReport$dat19 === void 0 ? void 0 : _shixunWorkReport$dat19.work_comment)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), ((shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat21 = shixunWorkReport.data) === null || _shixunWorkReport$dat21 === void 0 ? void 0 : _shixunWorkReport$dat21.work_comment_hidden) || (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat22 = shixunWorkReport.data) === null || _shixunWorkReport$dat22 === void 0 ? void 0 : _shixunWorkReport$dat22.work_comment)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
@ -2549,14 +2573,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
content: '是否确认删除?',
|
|
|
|
|
onOk: function onOk() {
|
|
|
|
|
return asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
var _shixunWorkReport$dat20;
|
|
|
|
|
var _shixunWorkReport$dat23;
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context9.next = 2;
|
|
|
|
|
return (0,service_shixunHomeworks/* deleteStudentWorkScoreCommit */.gZ)({
|
|
|
|
|
comment_id: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat20 = shixunWorkReport.data) === null || _shixunWorkReport$dat20 === void 0 ? void 0 : _shixunWorkReport$dat20.comment_id,
|
|
|
|
|
comment_id: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat23 = shixunWorkReport.data) === null || _shixunWorkReport$dat23 === void 0 ? void 0 : _shixunWorkReport$dat23.comment_id,
|
|
|
|
|
homeworkId: params.homeworkId
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
@ -2589,21 +2613,21 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
style: {
|
|
|
|
|
margin: 0
|
|
|
|
|
}
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat21 = shixunWorkReport.data) === null || _shixunWorkReport$dat21 === void 0 ? void 0 : _shixunWorkReport$dat21.work_comment) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat24 = shixunWorkReport.data) === null || _shixunWorkReport$dat24 === void 0 ? void 0 : _shixunWorkReport$dat24.work_comment) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
|
|
className: "pl30 pr30 mt20",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-light-black font12",
|
|
|
|
|
children: "# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat22 = shixunWorkReport.data) === null || _shixunWorkReport$dat22 === void 0 ? void 0 : _shixunWorkReport$dat22.work_comment
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat25 = shixunWorkReport.data) === null || _shixunWorkReport$dat25 === void 0 ? void 0 : _shixunWorkReport$dat25.work_comment
|
|
|
|
|
})]
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat23 = shixunWorkReport.data) === null || _shixunWorkReport$dat23 === void 0 ? void 0 : _shixunWorkReport$dat23.work_comment_hidden) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat26 = shixunWorkReport.data) === null || _shixunWorkReport$dat26 === void 0 ? void 0 : _shixunWorkReport$dat26.work_comment_hidden) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
|
|
className: "pl30 pr30 mt20",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "c-light-black font12",
|
|
|
|
|
children: "# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat24 = shixunWorkReport.data) === null || _shixunWorkReport$dat24 === void 0 ? void 0 : _shixunWorkReport$dat24.work_comment_hidden
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat27 = shixunWorkReport.data) === null || _shixunWorkReport$dat27 === void 0 ? void 0 : _shixunWorkReport$dat27.work_comment_hidden
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
|
|
|
|
|
@ -2616,14 +2640,14 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
pagination: false,
|
|
|
|
|
columns: columns
|
|
|
|
|
})
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat25 = shixunWorkReport.data) === null || _shixunWorkReport$dat25 === void 0 ? void 0 : _shixunWorkReport$dat25.work_description) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
}), (shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat28 = shixunWorkReport.data) === null || _shixunWorkReport$dat28 === void 0 ? void 0 : _shixunWorkReport$dat28.work_description) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
|
|
|
|
|
className: Commentmodules.title,
|
|
|
|
|
children: "\u4E2A\u4EBA\u603B\u7ED3"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: "pl30 pr30",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat26 = shixunWorkReport.data) === null || _shixunWorkReport$dat26 === void 0 ? void 0 : _shixunWorkReport$dat26.work_description
|
|
|
|
|
value: shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$dat29 = shixunWorkReport.data) === null || _shixunWorkReport$dat29 === void 0 ? void 0 : _shixunWorkReport$dat29.work_description
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
|
|
|
|
|
|