|
|
|
|
@ -190,7 +190,7 @@ var _excluded = ["shixunHomeworks", "classroomList", "globalSetting", "loading",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
var _shixunWorkReport$shi2;
|
|
|
|
|
var _shixunWorkReport$cat, _shixunWorkReport$cat2, _shixunWorkReport$cat3;
|
|
|
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
|
|
|
classroomList = _ref.classroomList,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
@ -375,14 +375,14 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
return _getData.apply(this, arguments);
|
|
|
|
|
} // 解决导出 bug: DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D'
|
|
|
|
|
function _getData() {
|
|
|
|
|
_getData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
_getData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}));
|
|
|
|
|
return _getData.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
@ -867,11 +867,11 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "edu-container",
|
|
|
|
|
children: [shixunWorkReport.course_id && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
|
|
children: [!shixunWorkReport.course_id && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
|
|
|
className: "animated fadeIn",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: "",
|
|
|
|
|
children: shixunWorkReport.category && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
|
|
|
|
|
children: !shixunWorkReport.category && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
|
|
|
|
|
separator: ">",
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
@ -880,8 +880,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: "/classrooms/".concat(shixunWorkReport.course_id, "/shixun_homework/").concat(!shixunWorkReport.category.main ? shixunWorkReport.category.category_id : ''),
|
|
|
|
|
children: shixunWorkReport.category.category_name
|
|
|
|
|
to: "/classrooms/".concat(shixunWorkReport.course_id, "/shixun_homework/").concat(!((_shixunWorkReport$cat = shixunWorkReport.category) !== null && _shixunWorkReport$cat !== void 0 && _shixunWorkReport$cat.main) ? (_shixunWorkReport$cat2 = shixunWorkReport.category) === null || _shixunWorkReport$cat2 === void 0 ? void 0 : _shixunWorkReport$cat2.category_id : ''),
|
|
|
|
|
children: (_shixunWorkReport$cat3 = shixunWorkReport.category) === null || _shixunWorkReport$cat3 === void 0 ? void 0 : _shixunWorkReport$cat3.category_name
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
@ -912,42 +912,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
|
|
|
className: Reportmodules.title1_right,
|
|
|
|
|
children: [shixunWorkReport.view_tpi && !(shixunWorkReport !== null && shixunWorkReport !== void 0 && shixunWorkReport.need_reservation) && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-yijiandianping mr5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
className: "c-black",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
to: "/tasks/".concat(shixunWorkReport === null || shixunWorkReport === void 0 || (_shixunWorkReport$shi2 = shixunWorkReport.shixun_detail) === null || _shixunWorkReport$shi2 === void 0 || (_shixunWorkReport$shi2 = _shixunWorkReport$shi2[0]) === null || _shixunWorkReport$shi2 === void 0 ? void 0 : _shixunWorkReport$shi2['game_identifier']),
|
|
|
|
|
children: "\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"
|
|
|
|
|
})]
|
|
|
|
|
}), (0,authority/* isAdmin */.GJ)() && shixunWorkReport.homework_end === false && !!shixunWorkReport.myshixun_id && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context11.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: 'shixunHomeworks/setActionTabs',
|
|
|
|
|
payload: {
|
|
|
|
|
key: '打回重做',
|
|
|
|
|
selectArrs: {
|
|
|
|
|
myshixun_identifier: shixunWorkReport.myshixun_identifier
|
|
|
|
|
},
|
|
|
|
|
homework_common_id: _params.categoryId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
})),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "iconfont icon-dahuizhongzuo3x mr5"
|
|
|
|
|
}), "\u6253\u56DE\u91CD\u505A"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
|
|
|
className: "ml10",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return exportReport('');
|
|
|
|
|
@ -1090,7 +1055,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
return r === null || r === void 0 ? void 0 : r.challenge_id;
|
|
|
|
|
},
|
|
|
|
|
pagination: false,
|
|
|
|
|
columns: columns
|
|
|
|
|
columns: columns1
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -1100,12 +1065,12 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Report = ((0,_umi_production_exports.connect)(function (_ref10) {
|
|
|
|
|
var shixunHomeworks = _ref10.shixunHomeworks,
|
|
|
|
|
classroomList = _ref10.classroomList,
|
|
|
|
|
loading = _ref10.loading,
|
|
|
|
|
globalSetting = _ref10.globalSetting,
|
|
|
|
|
user = _ref10.user;
|
|
|
|
|
/* harmony default export */ var Report = ((0,_umi_production_exports.connect)(function (_ref9) {
|
|
|
|
|
var shixunHomeworks = _ref9.shixunHomeworks,
|
|
|
|
|
classroomList = _ref9.classroomList,
|
|
|
|
|
loading = _ref9.loading,
|
|
|
|
|
globalSetting = _ref9.globalSetting,
|
|
|
|
|
user = _ref9.user;
|
|
|
|
|
return {
|
|
|
|
|
shixunHomeworks: shixunHomeworks,
|
|
|
|
|
classroomList: classroomList,
|