You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2091 lines
116 KiB
2091 lines
116 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17376,67319],{
|
|
|
|
/***/ 52257:
|
|
/*!************************************************************!*\
|
|
!*** ./src/components/image-preview/index.tsx + 1 modules ***!
|
|
\************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ image_preview; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(93942);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
|
|
var ReloadOutlined = __webpack_require__(32398);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
|
|
var DownloadOutlined = __webpack_require__(41464);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
|
|
var CloseOutlined = __webpack_require__(99267);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var image_preview = (function () {
|
|
var _useState = (0,_react_17_0_2_react.useState)(''),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
url = _useState2[0],
|
|
setUrl = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(0),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
deg = _useState4[0],
|
|
setDeg = _useState4[1];
|
|
var saveUrl = (0,_react_17_0_2_react.useRef)('');
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
|
|
setUrl(value);
|
|
// window.document.body
|
|
// document.body.style.height='100%'
|
|
document.body.style.overflow = 'hidden';
|
|
});
|
|
return unSub;
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
document.addEventListener('keydown', onViewEscClose);
|
|
return function () {
|
|
document.removeEventListener('keydown', onViewEscClose);
|
|
};
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
saveUrl.current = url;
|
|
}, [url]);
|
|
function onViewEscClose(e) {
|
|
if (e.keyCode == 27 && saveUrl.current) {
|
|
onClose();
|
|
}
|
|
}
|
|
|
|
// https://data.educoder.net/api/attachments/1571649
|
|
function onClose() {
|
|
// document.body.style.height='100%'
|
|
document.body.style.overflow = 'auto';
|
|
setUrl('');
|
|
}
|
|
function onRotate() {
|
|
setDeg(deg + 90);
|
|
}
|
|
var maskRef = (0,_react_17_0_2_react.useRef)();
|
|
var previewWrapperRef = (0,_react_17_0_2_react.useRef)();
|
|
var handleMaskClick = function handleMaskClick(e) {
|
|
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
|
|
onClose();
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "image-preview-container",
|
|
ref: maskRef,
|
|
onClick: handleMaskClick,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "button-group",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
onClick: onRotate,
|
|
children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
href: url,
|
|
children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
|
|
onClick: onClose,
|
|
children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "preview-wrp-group",
|
|
ref: previewWrapperRef,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: "image-preview",
|
|
src: url,
|
|
alt: "\u9884\u89C8\u5927\u56FE",
|
|
style: {
|
|
transform: "rotate(".concat(deg, "deg)")
|
|
}
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 43103:
|
|
/*!***************************************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.tsx + 3 modules ***!
|
|
\***************************************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ components_ExportSetting; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
|
|
var input = __webpack_require__(92832);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js
|
|
var upload = __webpack_require__(60028);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
|
|
var es_checkbox = __webpack_require__(24905);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
var input_number = __webpack_require__(5871);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
|
|
var PlusOutlined = __webpack_require__(62772);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var ExportSettingmodules = ({"modalWrapper":"modalWrapper___rWDvO","exportSettingWrapper":"exportSettingWrapper___pCClH","imgPreviewPart":"imgPreviewPart___PCv0Y","tips":"tips___EVeBl","pottedLine":"pottedLine___AaY68","text":"text___ho3u_"});
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(13032);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(58181);
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
|
|
var ImagesIcon = __webpack_require__(64346);
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(93942);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(17631);
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
|
|
var markdown_editor = __webpack_require__(39517);
|
|
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
|
|
var image_preview = __webpack_require__(52257);
|
|
;// CONCATENATED MODULE: ./src/assets/images/classrooms/halfDottedLine.png
|
|
var halfDottedLine_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=";
|
|
;// CONCATENATED MODULE: ./src/assets/images/classrooms/dottedLine.png
|
|
var dottedLine_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAAECAYAAAAQ9jLuAAAAAXNSR0IArs4c6QAABLVJREFUaEPtmVuIVVUYgL+1z17H0S6kliWaJdlVS7pQBHajoLAMKpjo8hKdfc7MiNmoaA8Fx4IIjMzIuZx9sijLrkRGGURQdHkJjSy7G2bqWHaTKbO99pw/ztRs9rz9ax58qHPeDnzf+tf6/7XWXmtvQ+vXykArA60MtDLQykArA60MtDLwv8iAaY5SFnKCSznGd8R2iL2mzi6tJ51MdA1O0vIjnIUDpp/PtJ48T8G9xdlaPs/Zy/nItDOkdaXCGQ4maPlsTAHbTS+/aj0pMd0VOE7LZ3FC9pm1fKf1ZBFHuoRTtHwWx3DQ9PGpj5dUOM+Hz2JNZaupkmhd6eRU1+AILZ/FEXaYGj9pPSkz1RmmafncXPjF9PKt1pNlHOYGOV3L59aRM/187ONJmXOcIfBxmqydwDazmj+1nnQxyw1xlJbPxtTG92YNP2g96WCKE2Zo+SxOgd9MD99oPanS5gaYo+Vzc65hamzx8aTCXAfWxxmuUYEvTA+/az0pMdMVmKzlszFZ9phH2dP8P+Y6G3aaPn7Uxj5kde5mvDvAbG2//tN1FnabGgPaXMhCJruUmVo+t18Oml6+1HpSpegGOEvL5znbx2ZjEK0rHcxxQpuWz82Hr02N/VpPysxwhilaPovz75lt+OCXlOgHyr6NmIBVtsZyrZdGtDeE57R8xhm2FGPO1XrSzSQ3yM9aflShLZN8DmRJaXiT9j5kBgHtYY0XtH10EatEWKblR7jA0B/GdGg9F3GlCG9o+VyNthdjZmk9qRK6XTgtP6pG4zjR5zDrIt4W4RLfWAGUwjqPaT0XcbcI92n5XO42FGNu1nquwoUyxAdafoQzsM/W/TYLF/GHyBguNpa5ppet2j66EhsFFmj5jAtYUqyxWuslZe6gwRotn8vd67bO1VpPImY78bsINds2hr9s7PfgcCUGBP9LoQm4yNZ4TzumpMRTwK1aPstdwEpbo9r87yJeFeEa3zaA7mKdh7VeErEY0fNZXw2v2Vjfv+EHfcon2n7l5tNBW2e8j+dK7BU41scZnlMh82wf72u9JGI9wi1aPjemqq2zUuulFW5rDLFOy+dq9K6NuVjrSRfHu4SdWj7P2emM83nJkER8hXCyb6zAMD+M2aT10hI9DejU8rncPWRjlo4c/BYaw1XejcBLYcwTWs+VmYewQsvnuO025k6tJ10cnjo2aPk8F1pu8rkFu2h4c/F+i0mBB3wWY3ORSIPrfccksKkY06P1mm94UtEv3pF2BQaKsf7yIFWCdDevaPs1qkYFbve5/buI+4EzvWMFPGL7eVPrpRVulIb/gxF4x8Y8qI0jZU5LhVVaPlej/cXYr38u4kVgnG+ssMAi08cOrdc8NAMXaPlsIxPqYV0/j9IKC6Shn6e5/nxoY+7V9q95I0+FtVo+xzkb+63zJOJJAxN9Y4UBK3y+pLiIJcBlvnGM8ExY/2c/dmXuQTjfuw2Iw5iNWi+NuFYg0vKHvM5CYuvc4NO/MdfZstz08Lk2liuzFOFSLZ+tRXg6jHlW67mIK4DFWj7HbbMxd2k9KXN0Kjyu5Uc9a6ZxnamSat00ok/w/+ojQrVYZ7M2TlKm0wjztXyuRi+HMev+Bu2qoBRawxtVAAAAAElFTkSuQmCC";
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TextArea = input/* default */.Z.TextArea;
|
|
var ExportSetting = function ExportSetting(_ref) {
|
|
var _data$file_list;
|
|
var exercise = _ref.exercise,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch;
|
|
var workSetting = exercise.workSetting;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
params.category = params.categoryId || params.exerciseId;
|
|
params.categoryId = params.categoryId || params.exerciseId;
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
disabled = _useState2[0],
|
|
setDisabled = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
pageLoading = _useState4[0],
|
|
setPageLoading = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)({
|
|
file_list: [],
|
|
attachment_id: '',
|
|
//卷头左角标附件id
|
|
show_title: false,
|
|
//展示试卷标题
|
|
show_body: false,
|
|
//展示考试内容
|
|
show_info: false,
|
|
//展示题量、分值、考试时长
|
|
show_table: false,
|
|
//展示得分、评分表格
|
|
show_user: false,
|
|
//密封线区域设置姓名
|
|
show_no: false,
|
|
//密封线区域设置学号
|
|
show_group: false,
|
|
//密封线区域设置专业班级
|
|
show_phone: false,
|
|
//密封线区域设置手机号
|
|
show_school_name: false,
|
|
//密封区域设置学校/单位
|
|
export_page_num: 40,
|
|
//每页导出最大试题数
|
|
show_desc: false,
|
|
//考试说明选择框
|
|
description: '' // 考试说明内容
|
|
}),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
data = _useState6[0],
|
|
setData = _useState6[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
setDefaultData();
|
|
}, [workSetting]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
dispatch({
|
|
type: 'exercise/getWorkSetting',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
}, []);
|
|
var setDefaultData = function setDefaultData() {
|
|
var _res$exercise_header2, _res$exercise_header3, _res$exercise_header4, _res$exercise_header5;
|
|
var res = JSON.parse(JSON.stringify(workSetting));
|
|
Object.keys(data).forEach(function (item) {
|
|
var _res$exercise_header;
|
|
data[item] = res === null || res === void 0 || (_res$exercise_header = res['exercise_header']) === null || _res$exercise_header === void 0 ? void 0 : _res$exercise_header[item];
|
|
});
|
|
data.file_list = res !== null && res !== void 0 && (_res$exercise_header2 = res['exercise_header']) !== null && _res$exercise_header2 !== void 0 && _res$exercise_header2.attachment_id ? [{
|
|
uid: res === null || res === void 0 || (_res$exercise_header3 = res['exercise_header']) === null || _res$exercise_header3 === void 0 ? void 0 : _res$exercise_header3.attachment_id,
|
|
id: res === null || res === void 0 || (_res$exercise_header4 = res['exercise_header']) === null || _res$exercise_header4 === void 0 ? void 0 : _res$exercise_header4.attachment_id,
|
|
url: res === null || res === void 0 || (_res$exercise_header5 = res['exercise_header']) === null || _res$exercise_header5 === void 0 ? void 0 : _res$exercise_header5.photo_url
|
|
}] : [];
|
|
setData(data);
|
|
};
|
|
var handleSubmit = function handleSubmit() {
|
|
var _bodyData$file_list;
|
|
var bodyData = JSON.parse(JSON.stringify(data));
|
|
bodyData.categoryId = params.categoryId;
|
|
bodyData.attachment_id = ((_bodyData$file_list = bodyData.file_list) === null || _bodyData$file_list === void 0 || (_bodyData$file_list = _bodyData$file_list[0]) === null || _bodyData$file_list === void 0 || (_bodyData$file_list = _bodyData$file_list.response) === null || _bodyData$file_list === void 0 ? void 0 : _bodyData$file_list.id) || null;
|
|
handleUpdate(bodyData);
|
|
};
|
|
var handleUpdate = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(bodyData) {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
setPageLoading(true);
|
|
_context.next = 3;
|
|
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.categoryId, "/foramt_settings.json"), {
|
|
method: 'post',
|
|
body: bodyData
|
|
});
|
|
case 3:
|
|
res = _context.sent;
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success('更新成功');
|
|
dispatch({
|
|
type: 'exercise/getCommonHeader',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
dispatch({
|
|
type: 'exercise/getWorkSetting',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
dispatch({
|
|
type: 'exercise/getExerciseExportHeadData',
|
|
payload: {
|
|
id: params.exerciseId || params.categoryId,
|
|
identify: params.userId || null
|
|
}
|
|
});
|
|
setPageLoading(false);
|
|
}
|
|
case 5:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleUpdate(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var uploadProps = {
|
|
disabled: disabled,
|
|
multiple: false,
|
|
listType: "picture-card",
|
|
onPreview: function onPreview(file) {
|
|
mediator/* default */.Z.publish('preview-image', file.thumbUrl || file.url);
|
|
},
|
|
withCredentials: true,
|
|
fileList: data.file_list,
|
|
beforeUpload: function beforeUpload(file) {
|
|
var fileSize = file.size / 1024;
|
|
if (fileSize > 200) {
|
|
message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20");
|
|
return false;
|
|
}
|
|
return true;
|
|
},
|
|
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
|
onChange: function onChange(info) {
|
|
var fileList = info.fileList.filter(function (file) {
|
|
return !!file.status;
|
|
});
|
|
data.file_list = fileList;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
onRemove: function () {
|
|
var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(file) {
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
data.file_list = [];
|
|
setData(Object.assign({}, data));
|
|
return _context2.abrupt("return", true);
|
|
case 3:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
function onRemove(_x2) {
|
|
return _onRemove.apply(this, arguments);
|
|
}
|
|
return onRemove;
|
|
}()
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
title: "\u5BFC\u51FA\u8BBE\u7F6E",
|
|
className: ExportSettingmodules.modalWrapper,
|
|
width: 900,
|
|
centered: true,
|
|
open: exercise.actionTabs.key === 'exportSetting',
|
|
onOk: function onOk() {
|
|
return handleSubmit();
|
|
},
|
|
onCancel: function onCancel() {
|
|
setDefaultData();
|
|
dispatch({
|
|
type: 'exercise/setActionTabs',
|
|
payload: {}
|
|
});
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: ExportSettingmodules.exportSettingWrapper,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
spinning: loading['exercise/getWorkSetting'] || pageLoading,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
wrap: false,
|
|
justify: "space-between",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5377\u5934\u5DE6\u89D2\u6807"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: ExportSettingmodules.tips,
|
|
children: "\u56FE\u7247\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A700px*500px\uFF0C\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
children: !((_data$file_list = data.file_list) !== null && _data$file_list !== void 0 && _data$file_list.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PlusOutlined/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
style: {
|
|
marginTop: 8
|
|
},
|
|
children: "\u4E0A\u4F20"
|
|
})]
|
|
})
|
|
}))
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_title,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_title = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5C55\u793A\u8BD5\u5377\u6807\u9898"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_body,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_body = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF08\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_info,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_info = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_table,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_table = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
className: "mt20 ".concat(ExportSettingmodules.pottedLine),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: halfDottedLine_namespaceObject,
|
|
alt: ""
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
className: ExportSettingmodules.text,
|
|
children: "\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: halfDottedLine_namespaceObject,
|
|
alt: ""
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: "mt15",
|
|
justify: "center",
|
|
style: {
|
|
width: 320
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
className: "pl8",
|
|
checked: data.show_user,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_user = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u59D3\u540D"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_no,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_no = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5B66\u53F7"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_group,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_group = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u4E13\u4E1A\u73ED\u7EA7"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_school_name,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_school_name = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u5B66\u6821/\u5355\u4F4D"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_phone,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_phone = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u624B\u673A\u53F7"
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: dottedLine_namespaceObject,
|
|
alt: "",
|
|
className: "mt15",
|
|
style: {
|
|
width: 320
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "mt15",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: "\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
size: 'middle',
|
|
min: 1,
|
|
value: !data.export_page_num ? 40 : data.export_page_num,
|
|
onChange: function onChange(value) {
|
|
data.export_page_num = value;
|
|
setData(objectSpread2_default()({}, data));
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: "\u9898"
|
|
})]
|
|
})
|
|
|
|
// <Col span={24} className="mt15 pl30">
|
|
// <Checkbox
|
|
// checked={data.export_page_num}
|
|
// disabled={disabled}
|
|
// onChange={e => {
|
|
// data.export_page_num = e.target.checked
|
|
// setData(Object.assign({}, data))
|
|
// }}
|
|
// >
|
|
// <div>每页导出题目数</div>
|
|
// </Checkbox>
|
|
// </Col>
|
|
, /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
className: "mt15",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
|
checked: data.show_desc,
|
|
disabled: disabled,
|
|
onChange: function onChange(e) {
|
|
data.show_desc = e.target.checked;
|
|
setData(Object.assign({}, data));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: "\u8003\u8BD5\u8BF4\u660E"
|
|
})
|
|
})
|
|
}), data.show_desc && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt15",
|
|
children:
|
|
/*#__PURE__*/
|
|
// disabled ?
|
|
// <TextArea style={{ height: 150, width: 550 }} disabled value={data.description} /> :
|
|
(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
width: 550,
|
|
height: 100,
|
|
defaultValue: data.description,
|
|
id: "exercise-detail-config-exam-description-id",
|
|
onChange: function onChange(value) {
|
|
data.description = value;
|
|
setData(Object.assign({}, data));
|
|
}
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
className: ExportSettingmodules.imgPreviewPart,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "pb10",
|
|
children: "\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: ImagesIcon/* exportExerciseTemplate */.qz
|
|
})]
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_ExportSetting = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var exercise = _ref3.exercise,
|
|
loading = _ref3.loading,
|
|
globalSetting = _ref3.globalSetting;
|
|
return {
|
|
exercise: exercise,
|
|
loading: loading.effects,
|
|
globalSetting: globalSetting
|
|
};
|
|
})(ExportSetting));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 26402:
|
|
/*!******************************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx + 1 modules ***!
|
|
\******************************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ components_Head; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
|
var toConsumableArray = __webpack_require__(37205);
|
|
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(13032);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
var table = __webpack_require__(1710);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/SettingOutlined.js + 1 modules
|
|
var SettingOutlined = __webpack_require__(4958);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Headmodules = ({"wrap":"wrap___SSpd0","img":"img___nbd2O","table":"table___fcP71","totalScore":"totalScore___YxSMe","people":"people___bf9pK","glassSeal":"glassSeal___dYhKO","paperHeader":"paperHeader___gYUbq","exportBtn":"exportBtn___nyRYQ"});
|
|
// EXTERNAL MODULE: ./src/service/exercise.ts
|
|
var service_exercise = __webpack_require__(39996);
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
|
|
var RenderHtml = __webpack_require__(95028);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(20731);
|
|
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/ExportSetting/index.tsx + 3 modules
|
|
var ExportSetting = __webpack_require__(43103);
|
|
// EXTERNAL MODULE: ./src/utils/constant.ts
|
|
var constant = __webpack_require__(43250);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Head = function Head(_ref) {
|
|
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _exercise$exerciseExp2, _exercise$commonHeade, _exercise$exerciseExp3, _exercise$commonHeade2, _exercise$exerciseExp4, _exercise$exerciseExp5;
|
|
var _ref$isPreview = _ref.isPreview,
|
|
isPreview = _ref$isPreview === void 0 ? false : _ref$isPreview,
|
|
_ref$isExportBlank = _ref.isExportBlank,
|
|
isExportBlank = _ref$isExportBlank === void 0 ? false : _ref$isExportBlank,
|
|
activeTabs = _ref.activeTabs,
|
|
exercise = _ref.exercise,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch,
|
|
_ref$showExportBtn = _ref.showExportBtn,
|
|
showExportBtn = _ref$showExportBtn === void 0 ? false : _ref$showExportBtn;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var userInfo = user.userInfo;
|
|
var _useState = (0,_react_17_0_2_react.useState)(),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
headData = _useState2[0],
|
|
setHeadData = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
tableData = _useState4[0],
|
|
setTableData = _useState4[1];
|
|
var leftheight = (0,_react_17_0_2_react.useRef)(null);
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(21),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
leftheights = _useState6[0],
|
|
setleftheights = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
questionName = _useState8[0],
|
|
setQuestionName = _useState8[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
!asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var questionName;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return (0,service_exercise/* getQuestionTypeAlias */.cV)({
|
|
id: params.exerciseId || params.categoryId
|
|
});
|
|
case 2:
|
|
questionName = _context.sent;
|
|
questionName.status == 0 && setQuestionName(questionName.data);
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
if ((0,util/* isUnOrNull */.W)(activeTabs)) {
|
|
// getData();
|
|
} else {
|
|
// 兼容试卷预览tab 切换重新获取数据
|
|
activeTabs === "2" && getData();
|
|
}
|
|
}, [params.userId, params.coursesId, params.exerciseId, params.categoryId, activeTabs]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (leftheight.current) {
|
|
setleftheights(leftheight.current.clientHeight);
|
|
}
|
|
}, [leftheight.current]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _exercise$exerciseExp;
|
|
if ((_exercise$exerciseExp = exercise.exerciseExportHeadData) !== null && _exercise$exerciseExp !== void 0 && _exercise$exerciseExp.title) {
|
|
var res = exercise.exerciseExportHeadData;
|
|
setHeadData(objectSpread2_default()({}, res || {}));
|
|
var _ref3 = res || {},
|
|
table = _ref3.table;
|
|
var total_score;
|
|
var actual_total_score;
|
|
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores || table !== null && table !== void 0 && table.total_bpros_scores) {
|
|
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_bpros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
|
|
}
|
|
if (table !== null && table !== void 0 && table.singles_scores || table !== null && table !== void 0 && table.doubles_scores || table !== null && table !== void 0 && table.nulls_scores || table !== null && table !== void 0 && table.judges_scores || table !== null && table !== void 0 && table.pros_scores || table !== null && table !== void 0 && table.bpros_scores || table !== null && table !== void 0 && table.shixuns_scores || table !== null && table !== void 0 && table.mains_scores || table !== null && table !== void 0 && table.combination_scores) {
|
|
actual_total_score = Number(table === null || table === void 0 ? void 0 : table.singles_scores) + Number(table === null || table === void 0 ? void 0 : table.doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.judges_scores) + Number(table === null || table === void 0 ? void 0 : table.pros_scores) + Number(table === null || table === void 0 ? void 0 : table.bpros_scores) + Number(table === null || table === void 0 ? void 0 : table.shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.mains_scores) + Number(table === null || table === void 0 ? void 0 : table.combination_scores);
|
|
}
|
|
var data = [{
|
|
key: '1',
|
|
name: '应得分',
|
|
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
|
|
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
|
|
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
|
|
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
|
|
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
|
|
bpros_score: (table === null || table === void 0 ? void 0 : table.total_bpros_scores) || 0,
|
|
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
|
|
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
|
|
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
|
|
total_score: total_score || 0
|
|
}, {
|
|
key: '2',
|
|
name: '实得分',
|
|
singles_score: (table === null || table === void 0 ? void 0 : table.singles_scores) || 0,
|
|
doubles_score: (table === null || table === void 0 ? void 0 : table.doubles_scores) || 0,
|
|
nulls_score: (table === null || table === void 0 ? void 0 : table.nulls_scores) || 0,
|
|
judges_score: (table === null || table === void 0 ? void 0 : table.judges_scores) || 0,
|
|
pros_score: (table === null || table === void 0 ? void 0 : table.pros_scores) || 0,
|
|
bpros_score: (table === null || table === void 0 ? void 0 : table.bpros_scores) || 0,
|
|
shixuns_score: (table === null || table === void 0 ? void 0 : table.shixuns_scores) || 0,
|
|
mains_score: (table === null || table === void 0 ? void 0 : table.mains_scores) || 0,
|
|
total_combination_scores: (table === null || table === void 0 ? void 0 : table.combination_scores) || 0,
|
|
total_score: actual_total_score || 0
|
|
}, {
|
|
key: '3',
|
|
name: '评卷人'
|
|
}];
|
|
var blankData = [{
|
|
key: '1',
|
|
name: '应得分',
|
|
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
|
|
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
|
|
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
|
|
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
|
|
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
|
|
bpros_score: (table === null || table === void 0 ? void 0 : table.total_bpros_scores) || 0,
|
|
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
|
|
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
|
|
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
|
|
total_score: total_score || 0
|
|
}, {
|
|
key: '2',
|
|
name: '实得分'
|
|
}, {
|
|
key: '3',
|
|
name: '评卷人'
|
|
}];
|
|
setTableData(toConsumableArray_default()(isExportBlank ? blankData : data));
|
|
}
|
|
}, [exercise.exerciseExportHeadData]);
|
|
var getData = /*#__PURE__*/function () {
|
|
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
var query, res, _ref5, table, total_score, actual_total_score, data, blankData;
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
query = {
|
|
id: params.exerciseId || params.categoryId,
|
|
identify: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.login) || null
|
|
};
|
|
_context2.next = 3;
|
|
return (0,service_exercise/* getExerciseExportHeadData */.iw)(query);
|
|
case 3:
|
|
res = _context2.sent;
|
|
setHeadData(res || {});
|
|
_ref5 = res || {}, table = _ref5.table;
|
|
if (table !== null && table !== void 0 && table.total_singles_scores || table !== null && table !== void 0 && table.total_doubles_scores || table !== null && table !== void 0 && table.total_nulls_scores || table !== null && table !== void 0 && table.total_judges_scores || table !== null && table !== void 0 && table.total_pros_scores || table !== null && table !== void 0 && table.total_bpros_scores || table !== null && table !== void 0 && table.total_shixuns_scores || table !== null && table !== void 0 && table.total_mains_scores || table !== null && table !== void 0 && table.total_combination_scores) {
|
|
total_score = Number(table === null || table === void 0 ? void 0 : table.total_singles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.total_nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.total_bpros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_judges_scores) + Number(table === null || table === void 0 ? void 0 : table.total_pros_scores) + Number(table === null || table === void 0 ? void 0 : table.total_shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.total_mains_scores) + Number(table === null || table === void 0 ? void 0 : table.total_combination_scores);
|
|
}
|
|
if (table !== null && table !== void 0 && table.singles_scores || table !== null && table !== void 0 && table.doubles_scores || table !== null && table !== void 0 && table.nulls_scores || table !== null && table !== void 0 && table.judges_scores || table !== null && table !== void 0 && table.pros_scores || table !== null && table !== void 0 && table.bpros_scores || table !== null && table !== void 0 && table.shixuns_scores || table !== null && table !== void 0 && table.mains_scores || table !== null && table !== void 0 && table.combination_scores) {
|
|
actual_total_score = Number(table === null || table === void 0 ? void 0 : table.singles_scores) + Number(table === null || table === void 0 ? void 0 : table.doubles_scores) + Number(table === null || table === void 0 ? void 0 : table.bpros_scores) + Number(table === null || table === void 0 ? void 0 : table.nulls_scores) + Number(table === null || table === void 0 ? void 0 : table.judges_scores) + Number(table === null || table === void 0 ? void 0 : table.pros_scores) + Number(table === null || table === void 0 ? void 0 : table.shixuns_scores) + Number(table === null || table === void 0 ? void 0 : table.mains_scores) + Number(table === null || table === void 0 ? void 0 : table.combination_scores);
|
|
}
|
|
data = [{
|
|
key: '1',
|
|
name: '应得分',
|
|
singles_score: (table === null || table === void 0 ? void 0 : table.total_singles_scores) || 0,
|
|
doubles_score: (table === null || table === void 0 ? void 0 : table.total_doubles_scores) || 0,
|
|
nulls_score: (table === null || table === void 0 ? void 0 : table.total_nulls_scores) || 0,
|
|
judges_score: (table === null || table === void 0 ? void 0 : table.total_judges_scores) || 0,
|
|
pros_score: (table === null || table === void 0 ? void 0 : table.total_pros_scores) || 0,
|
|
bpros_score: (table === null || table === void 0 ? void 0 : table.total_bpros_scores) || 0,
|
|
shixuns_score: (table === null || table === void 0 ? void 0 : table.total_shixuns_scores) || 0,
|
|
mains_score: (table === null || table === void 0 ? void 0 : table.total_mains_scores) || 0,
|
|
total_combination_scores: (table === null || table === void 0 ? void 0 : table.total_combination_scores) || 0,
|
|
total_score: total_score || 0
|
|
}, {
|
|
key: '2',
|
|
name: '实得分',
|
|
singles_score: (table === null || table === void 0 ? void 0 : table.singles_scores) || 0,
|
|
doubles_score: (table === null || table === void 0 ? void 0 : table.doubles_scores) || 0,
|
|
nulls_score: (table === null || table === void 0 ? void 0 : table.nulls_scores) || 0,
|
|
judges_score: (table === null || table === void 0 ? void 0 : table.judges_scores) || 0,
|
|
pros_score: (table === null || table === void 0 ? void 0 : table.pros_scores) || 0,
|
|
bpros_score: (table === null || table === void 0 ? void 0 : table.bpros_scores) || 0,
|
|
shixuns_score: (table === null || table === void 0 ? void 0 : table.shixuns_scores) || 0,
|
|
mains_score: (table === null || table === void 0 ? void 0 : table.mains_scores) || 0,
|
|
total_combination_scores: (table === null || table === void 0 ? void 0 : table.combination_scores) || 0,
|
|
total_score: actual_total_score || 0
|
|
}, {
|
|
key: '3',
|
|
name: '评卷人'
|
|
}];
|
|
blankData = [{
|
|
key: '1',
|
|
name: '应得分'
|
|
}, {
|
|
key: '2',
|
|
name: '实得分'
|
|
}, {
|
|
key: '3',
|
|
name: '评卷人'
|
|
}];
|
|
setTableData(isExportBlank ? blankData : data);
|
|
case 11:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function getData() {
|
|
return _ref4.apply(this, arguments);
|
|
};
|
|
}();
|
|
var columns = [{
|
|
width: '10%',
|
|
title: '题型',
|
|
align: 'center',
|
|
dataIndex: 'name',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[0].nameType;
|
|
})) === null || _questionName$find === void 0 ? void 0 : _questionName$find.name) || '单选题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'singles_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find2 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[1].nameType;
|
|
})) === null || _questionName$find2 === void 0 ? void 0 : _questionName$find2.name) || '多选题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'doubles_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find3 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[3].nameType;
|
|
})) === null || _questionName$find3 === void 0 ? void 0 : _questionName$find3.name) || '填空题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'nulls_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find4 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[2].nameType;
|
|
})) === null || _questionName$find4 === void 0 ? void 0 : _questionName$find4.name) || '判断题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'judges_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find5 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[6].nameType;
|
|
})) === null || _questionName$find5 === void 0 ? void 0 : _questionName$find5.name) || '编程题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'pros_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find6 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[5].nameType;
|
|
})) === null || _questionName$find6 === void 0 ? void 0 : _questionName$find6.name) || '实训题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'shixuns_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find7 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[4].nameType;
|
|
})) === null || _questionName$find7 === void 0 ? void 0 : _questionName$find7.name) || '画图题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'mains_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find8 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[7].nameType;
|
|
})) === null || _questionName$find8 === void 0 ? void 0 : _questionName$find8.name) || '组合题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'total_combination_scores',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
// width: '10%',
|
|
title: (questionName === null || questionName === void 0 || (_questionName$find9 = questionName.find(function (item) {
|
|
return item.value == constant/* QUESTIONTYPE */.fw[8].nameType;
|
|
})) === null || _questionName$find9 === void 0 ? void 0 : _questionName$find9.name) || '程序填空题',
|
|
align: 'center',
|
|
// ellipsis: true,
|
|
dataIndex: 'bpros_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text
|
|
});
|
|
}
|
|
}, {
|
|
width: '10%',
|
|
title: '总分',
|
|
align: 'center',
|
|
dataIndex: 'total_score',
|
|
render: function render(text) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
children: text === '0.0' ? 0 : text === null || text === void 0 ? void 0 : text.toFixed(1)
|
|
});
|
|
}
|
|
}];
|
|
var _ref6 = headData || {},
|
|
exercise_header = _ref6.exercise_header;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
children: [((exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_user) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_no) || (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_group)) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: Headmodules.glassSeal,
|
|
children: [(exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_user) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u59D3\u540D\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.user
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_no) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u5B66\u53F7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.student_id
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_group) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u4E13\u4E1A\u73ED\u7EA7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.group_name
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_school_name) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u5B66\u6821/\u5355\u4F4D\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.school_name
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_phone) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.phone
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: "".concat(Headmodules.wrap, " ").concat(isPreview ? 'pl20' : '', " "),
|
|
children: [(headData === null || headData === void 0 ? void 0 : headData.photo_url) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Headmodules.img,
|
|
src: headData === null || headData === void 0 ? void 0 : headData.photo_url
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_title) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
className: Headmodules.paperHeader,
|
|
justify: "center",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: headData === null || headData === void 0 ? void 0 : headData.title
|
|
}), showExportBtn && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(SettingOutlined/* default */.Z, {}),
|
|
className: Headmodules.exportBtn,
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'exercise/setActionTabs',
|
|
payload: {
|
|
key: 'exportSetting'
|
|
}
|
|
});
|
|
},
|
|
children: "\u5BFC\u51FA\u8BBE\u7F6E"
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_body) && ((exercise === null || exercise === void 0 || (_exercise$exerciseExp2 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp2 === void 0 ? void 0 : _exercise$exerciseExp2.exercise_description) || (exercise === null || exercise === void 0 || (_exercise$commonHeade = exercise.commonHeader) === null || _exercise$commonHeade === void 0 ? void 0 : _exercise$commonHeade.exercise_description)) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
ref: leftheight,
|
|
style: {
|
|
justifyContent: leftheights === 21 ? 'center' : 'left',
|
|
wordBreak: 'break-all',
|
|
display: 'flex',
|
|
textAlign: 'left'
|
|
},
|
|
className: "tc c-grey-333",
|
|
children: "\u8BD5\u5377\u987B\u77E5\uFF1A".concat((exercise === null || exercise === void 0 || (_exercise$exerciseExp3 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp3 === void 0 ? void 0 : _exercise$exerciseExp3.exercise_description) || (exercise === null || exercise === void 0 || (_exercise$commonHeade2 = exercise.commonHeader) === null || _exercise$commonHeade2 === void 0 ? void 0 : _exercise$commonHeade2.exercise_description))
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_info) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
className: "tc c-grey-666",
|
|
children: ["\u5171:\u3010", headData === null || headData === void 0 ? void 0 : headData.large_counts, "\u5927\u9898\u3011\u3010", headData === null || headData === void 0 ? void 0 : headData.total_count, "\u5C0F\u9898\u3011\u3010 \u6EE1\u5206", headData === null || headData === void 0 ? void 0 : headData.score, "\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010", (headData === null || headData === void 0 ? void 0 : headData.time) > -1 ? "".concat(headData === null || headData === void 0 ? void 0 : headData.time, "\u5206\u949F") : "\u4E0D\u9650", "\u3011"]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_desc) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "mt10",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "font16",
|
|
children: "\u8003\u8BD5\u8BF4\u660E\uFF1A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: headData === null || headData === void 0 ? void 0 : headData.description
|
|
})]
|
|
}), (exercise_header === null || exercise_header === void 0 ? void 0 : exercise_header.show_table) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt10",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
className: Headmodules.table,
|
|
columns: columns,
|
|
dataSource: toConsumableArray_default()(tableData || []),
|
|
bordered: true,
|
|
pagination: false
|
|
})
|
|
}), (exercise === null || exercise === void 0 || (_exercise$exerciseExp4 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp4 === void 0 ? void 0 : _exercise$exerciseExp4.analysis) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
justifyContent: 'left',
|
|
wordBreak: 'break-all',
|
|
display: 'flex',
|
|
textAlign: 'left',
|
|
marginTop: "10px"
|
|
},
|
|
className: "tc c-grey-333",
|
|
children: "\u8003\u8BD5\u8BC4\u4EF7\uFF1A".concat(exercise === null || exercise === void 0 || (_exercise$exerciseExp5 = exercise.exerciseExportHeadData) === null || _exercise$exerciseExp5 === void 0 ? void 0 : _exercise$exerciseExp5.analysis)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ExportSetting/* default */.Z, {})]
|
|
});
|
|
};
|
|
/* harmony default export */ var components_Head = ((0,_umi_production_exports.connect)(function (_ref7) {
|
|
var exercise = _ref7.exercise,
|
|
loading = _ref7.loading,
|
|
user = _ref7.user,
|
|
globalSetting = _ref7.globalSetting;
|
|
return {
|
|
exercise: exercise,
|
|
globalSetting: globalSetting,
|
|
user: user,
|
|
loading: loading.effects
|
|
};
|
|
})(Head));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 67319:
|
|
/*!*****************************!*\
|
|
!*** ./src/utils/export.ts ***!
|
|
\*****************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ AD: function() { return /* binding */ ExportCollegeStudentsInfo; },
|
|
/* harmony export */ D9: function() { return /* binding */ ExportStudentanalysis; },
|
|
/* harmony export */ IM: function() { return /* binding */ get_ecs_attachment; },
|
|
/* harmony export */ Iy: function() { return /* binding */ ExportCourseWorkListScores; },
|
|
/* harmony export */ Ne: function() { return /* binding */ getec_training_objectives; },
|
|
/* harmony export */ ON: function() { return /* binding */ exportPaperlibraryPaper; },
|
|
/* harmony export */ Uj: function() { return /* binding */ exportTaskPass; },
|
|
/* harmony export */ VY: function() { return /* binding */ getrank_list; },
|
|
/* harmony export */ YO: function() { return /* binding */ exportCommitResultWord; },
|
|
/* harmony export */ YX: function() { return /* binding */ exportClassroomsPaper; },
|
|
/* harmony export */ Zn: function() { return /* binding */ ExportCourseInfo; },
|
|
/* harmony export */ _g: function() { return /* binding */ exportMoocrecord; },
|
|
/* harmony export */ _k: function() { return /* binding */ getDownFile; },
|
|
/* harmony export */ c6: function() { return /* binding */ ExportVideoStudy; },
|
|
/* harmony export */ cr: function() { return /* binding */ ExportCourseActScore; },
|
|
/* harmony export */ eV: function() { return /* binding */ ExportCourseStudentsInfo; },
|
|
/* harmony export */ fi: function() { return /* binding */ ExportCourseMemberScores; },
|
|
/* harmony export */ gh: function() { return /* binding */ ExportAttendance; },
|
|
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
|
|
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
|
|
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
|
|
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
|
|
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
|
|
/* harmony export */ o6: function() { return /* binding */ ExportVideoStudent; },
|
|
/* harmony export */ pO: function() { return /* binding */ exportUserExerciseDetail; },
|
|
/* harmony export */ rQ: function() { return /* binding */ ExportProblemset; },
|
|
/* harmony export */ sA: function() { return /* binding */ ExportPollsScores; },
|
|
/* harmony export */ xm: function() { return /* binding */ getecyears; },
|
|
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; },
|
|
/* harmony export */ y8: function() { return /* binding */ Exportcompetitions; }
|
|
/* harmony export */ });
|
|
/* unused harmony export ExportCourseWorkListAppendix */
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/service/classrooms */ 25491);
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! umi */ 13032);
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ 20731);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 8591);
|
|
/* harmony import */ var _env__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./env */ 17631);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var showLoading = function showLoading() {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'globalSetting/setGlobalLoading',
|
|
payload: {
|
|
show: true,
|
|
text: '正在生成文件,请稍后...'
|
|
}
|
|
});
|
|
};
|
|
var hideLoading = function hideLoading() {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'globalSetting/setGlobalLoading',
|
|
payload: {
|
|
show: false,
|
|
text: ''
|
|
}
|
|
});
|
|
};
|
|
var ExportCourseInfo = /*#__PURE__*/function () {
|
|
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
showLoading();
|
|
_context.next = 3;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseInfo */ .YR)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 3:
|
|
res = _context.sent;
|
|
if (!(res.status === 0)) {
|
|
_context.next = 7;
|
|
break;
|
|
}
|
|
_context.next = 7;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params.coursesId, "/export_couser_info.json"),
|
|
query: params
|
|
}));
|
|
case 7:
|
|
hideLoading();
|
|
case 8:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function ExportCourseInfo(_x) {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCourseActScore = /*#__PURE__*/function () {
|
|
var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseActScore */ .yS)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context2.sent;
|
|
if (!(res.status === 0)) {
|
|
_context2.next = 8;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_member_act_score"));
|
|
_context2.next = 13;
|
|
break;
|
|
case 8:
|
|
if (!(res.status === -2)) {
|
|
_context2.next = 12;
|
|
break;
|
|
}
|
|
return _context2.abrupt("return", res);
|
|
case 12:
|
|
if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_member_act_score"));
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return function ExportCourseActScore(_x2) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCourseMemberScores = /*#__PURE__*/function () {
|
|
var _ref3 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
_context3.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseMemberScores */ .W0)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context3.sent;
|
|
if (!(res.status === 0)) {
|
|
_context3.next = 8;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_score"));
|
|
_context3.next = 13;
|
|
break;
|
|
case 8:
|
|
if (!(res.status === -2)) {
|
|
_context3.next = 12;
|
|
break;
|
|
}
|
|
return _context3.abrupt("return", res);
|
|
case 12:
|
|
if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_score"));
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return function ExportCourseMemberScores(_x3) {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
//试卷
|
|
var ExportCourseAndOther = /*#__PURE__*/function () {
|
|
var _ref4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
_context4.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseAndOther */ .Nl)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context4.sent;
|
|
if (!(res.status === 0)) {
|
|
_context4.next = 8;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_exercise_and_other"));
|
|
_context4.next = 13;
|
|
break;
|
|
case 8:
|
|
if (!(res.status === -2)) {
|
|
_context4.next = 12;
|
|
break;
|
|
}
|
|
return _context4.abrupt("return", res);
|
|
case 12:
|
|
if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_exercise_and_other"));
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
return function ExportCourseAndOther(_x4) {
|
|
return _ref4.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
//第三方幕课
|
|
var exportMoocrecord = /*#__PURE__*/function () {
|
|
var _ref5 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
_context5.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportMoocrecords */ .td)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context5.sent;
|
|
if (!(res.status === 0)) {
|
|
_context5.next = 8;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_exercise_and_other"));
|
|
_context5.next = 13;
|
|
break;
|
|
case 8:
|
|
if (!(res.status === -2)) {
|
|
_context5.next = 12;
|
|
break;
|
|
}
|
|
return _context5.abrupt("return", res);
|
|
case 12:
|
|
if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_exercise_and_other"));
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
return function exportMoocrecord(_x5) {
|
|
return _ref5.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
//作业
|
|
var ExportCourseTotalScore = /*#__PURE__*/function () {
|
|
var _ref6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee6(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee6$(_context6) {
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
case 0:
|
|
_context6.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseTotalScore */ .QX)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context6.sent;
|
|
if (!(res.status === 0)) {
|
|
_context6.next = 8;
|
|
break;
|
|
}
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_homework"));
|
|
_context6.next = 13;
|
|
break;
|
|
case 8:
|
|
if (!(res.status === -2)) {
|
|
_context6.next = 12;
|
|
break;
|
|
}
|
|
return _context6.abrupt("return", res);
|
|
case 12:
|
|
if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/course_total_homework"));
|
|
}
|
|
case 13:
|
|
case "end":
|
|
return _context6.stop();
|
|
}
|
|
}, _callee6);
|
|
}));
|
|
return function ExportCourseTotalScore(_x6) {
|
|
return _ref6.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCourseWorkListScores = /*#__PURE__*/function () {
|
|
var _ref7 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee7(params, type) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee7$(_context7) {
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
case 0:
|
|
_context7.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListScores */ .aP)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context7.sent;
|
|
if (res.status === 0) {
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
|
|
} else if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
|
|
}
|
|
// else if(res.status === -1){
|
|
// history.push(`/classrooms/${params.coursesId}/exportlist/${type}`)
|
|
// };
|
|
// console.log(JSON.stringify(params))
|
|
// if(res.status === 0) await downLoadFileIframe('',setUrlQuery({url:ENV.API_SERVER + `/api/homework_commons/${params.categoryId}/works_list.xlsx`,query:params}))
|
|
// hideLoading();
|
|
case 4:
|
|
case "end":
|
|
return _context7.stop();
|
|
}
|
|
}, _callee7);
|
|
}));
|
|
return function ExportCourseWorkListScores(_x7, _x8) {
|
|
return _ref7.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCourseWorkListAppendix = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
|
|
var res;
|
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
case 0:
|
|
showLoading();
|
|
_context8.next = 3;
|
|
return exportCourseWorkListAppendix(_objectSpread({}, params));
|
|
case 3:
|
|
res = _context8.sent;
|
|
if (!(res.status === 0)) {
|
|
_context8.next = 7;
|
|
break;
|
|
}
|
|
_context8.next = 7;
|
|
return downLoadFileIframe('', setUrlQuery({
|
|
url: ENV.API_SERVER + "/api/homework_commons/".concat(params.categoryId, "/works_list.zip"),
|
|
query: params
|
|
}));
|
|
case 7:
|
|
hideLoading();
|
|
case 8:
|
|
case "end":
|
|
return _context8.stop();
|
|
}
|
|
}, _callee8);
|
|
}));
|
|
return function ExportCourseWorkListAppendix(_x9) {
|
|
return _ref8.apply(this, arguments);
|
|
};
|
|
}()));
|
|
var ExportPollsScores = /*#__PURE__*/function () {
|
|
var _ref9 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
case 0:
|
|
showLoading();
|
|
_context9.next = 3;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportPollsScores */ .MJ)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 3:
|
|
res = _context9.sent;
|
|
if (!(res.status === 0)) {
|
|
_context9.next = 7;
|
|
break;
|
|
}
|
|
_context9.next = 7;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFileIframe */ .QH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params.categoryId, "/commit_result.xlsx"),
|
|
query: params
|
|
}));
|
|
case 7:
|
|
hideLoading();
|
|
case 8:
|
|
case "end":
|
|
return _context9.stop();
|
|
}
|
|
}, _callee9);
|
|
}));
|
|
return function ExportPollsScores(_x10) {
|
|
return _ref9.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportAttendance = /*#__PURE__*/function () {
|
|
var _ref10 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
case 0:
|
|
_context10.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params.coursesId, "/attendances/export_xlsx_data.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context10.stop();
|
|
}
|
|
}, _callee10);
|
|
}));
|
|
return function ExportAttendance(_x11) {
|
|
return _ref10.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportVideoStudent = /*#__PURE__*/function () {
|
|
var _ref11 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
case 0:
|
|
_context11.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params.coursesId, "/video_study_statics.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context11.stop();
|
|
}
|
|
}, _callee11);
|
|
}));
|
|
return function ExportVideoStudent(_x12) {
|
|
return _ref11.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportVideoStudy = /*#__PURE__*/function () {
|
|
var _ref12 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee12(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee12$(_context12) {
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
case 0:
|
|
_context12.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params.coursesId, "/export_video_study.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context12.stop();
|
|
}
|
|
}, _callee12);
|
|
}));
|
|
return function ExportVideoStudy(_x13) {
|
|
return _ref12.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCourseStudentsInfo = /*#__PURE__*/function () {
|
|
var _ref13 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee13(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee13$(_context13) {
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
case 0:
|
|
_context13.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params.coursesId, "/export_course_students_info.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context13.stop();
|
|
}
|
|
}, _callee13);
|
|
}));
|
|
return function ExportCourseStudentsInfo(_x14) {
|
|
return _ref13.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportCollegeStudentsInfo = /*#__PURE__*/function () {
|
|
var _ref14 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee14(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee14$(_context14) {
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
case 0:
|
|
_context14.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/school_manages/students.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context14.stop();
|
|
}
|
|
}, _callee14);
|
|
}));
|
|
return function ExportCollegeStudentsInfo(_x15) {
|
|
return _ref14.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportProblemset = /*#__PURE__*/function () {
|
|
var _ref15 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee15(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee15$(_context15) {
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
case 0:
|
|
_context15.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/item_banks/export.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context15.stop();
|
|
}
|
|
}, _callee15);
|
|
}));
|
|
return function ExportProblemset(_x16) {
|
|
return _ref15.apply(this, arguments);
|
|
};
|
|
}();
|
|
var Exportcompetitions = /*#__PURE__*/function () {
|
|
var _ref16 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee16(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee16$(_context16) {
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
case 0:
|
|
_context16.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/region_reports.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context16.stop();
|
|
}
|
|
}, _callee16);
|
|
}));
|
|
return function Exportcompetitions(_x17) {
|
|
return _ref16.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportExerciseStudentScores = /*#__PURE__*/function () {
|
|
var _ref17 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee17(params) {
|
|
var res;
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee17$(_context17) {
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
case 0:
|
|
_context17.next = 2;
|
|
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportExerciseStudentScores */ .Uy)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
|
|
case 2:
|
|
res = _context17.sent;
|
|
if (res.status === 0) {
|
|
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功');
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/exercise_score"));
|
|
} else if (res.status === -3) {
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_4__.getDvaApp)()._store.dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '导出提醒'
|
|
}
|
|
});
|
|
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/exercise_score"));
|
|
}
|
|
// else if(res.status === -1){
|
|
// history.push(`/classrooms/${params.coursesId}/exportlist/exercise_score`)
|
|
// };
|
|
// // https://test-newweb.educoder.net/api/exercises/4229/exercise_lists.xlsx?page=1&search=&limit=20&order=end_at&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a
|
|
// if(res.status === 0) await downLoadFileIframe('',setUrlQuery({url:ENV.API_SERVER + `/api/exercises/${params.categoryId}/exercise_lists.xlsx`,query:params}))
|
|
// hideLoading();
|
|
case 4:
|
|
case "end":
|
|
return _context17.stop();
|
|
}
|
|
}, _callee17);
|
|
}));
|
|
return function ExportExerciseStudentScores(_x18) {
|
|
return _ref17.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getDownFile = /*#__PURE__*/function () {
|
|
var _ref18 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee18(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee18$(_context18) {
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
case 0:
|
|
console.log('----------', '调用下载');
|
|
_context18.next = 3;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/export_records/".concat(params.id, ".xlsx"),
|
|
query: params
|
|
}));
|
|
case 3:
|
|
case "end":
|
|
return _context18.stop();
|
|
}
|
|
}, _callee18);
|
|
}));
|
|
return function getDownFile(_x19) {
|
|
return _ref18.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getecyears = /*#__PURE__*/function () {
|
|
var _ref19 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee19(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee19$(_context19) {
|
|
while (1) switch (_context19.prev = _context19.next) {
|
|
case 0:
|
|
_context19.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/ec_major_schools/0/ec_years.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context19.stop();
|
|
}
|
|
}, _callee19);
|
|
}));
|
|
return function getecyears(_x20) {
|
|
return _ref19.apply(this, arguments);
|
|
};
|
|
}();
|
|
var ExportStudentanalysis = /*#__PURE__*/function () {
|
|
var _ref20 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee20(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee20$(_context20) {
|
|
while (1) switch (_context20.prev = _context20.next) {
|
|
case 0:
|
|
_context20.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/").concat(params.menuKey, "_statistic.xlsx?").concat(params.checkedList.map(function (item) {
|
|
return "course_group_id[]=".concat(item);
|
|
}).join('&')),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context20.stop();
|
|
}
|
|
}, _callee20);
|
|
}));
|
|
return function ExportStudentanalysis(_x21) {
|
|
return _ref20.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getec_training_objectives = /*#__PURE__*/function () {
|
|
var _ref21 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee21(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee21$(_context21) {
|
|
while (1) switch (_context21.prev = _context21.next) {
|
|
case 0:
|
|
_context21.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/ec_years/".concat(params === null || params === void 0 ? void 0 : params.ec_year_id, "/ec_training_objectives.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context21.stop();
|
|
}
|
|
}, _callee21);
|
|
}));
|
|
return function getec_training_objectives(_x22) {
|
|
return _ref21.apply(this, arguments);
|
|
};
|
|
}();
|
|
var get_ecs_attachment = /*#__PURE__*/function () {
|
|
var _ref22 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee22(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee22$(_context22) {
|
|
while (1) switch (_context22.prev = _context22.next) {
|
|
case 0:
|
|
_context22.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)(params === null || params === void 0 ? void 0 : params.name, (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/attachments/get_ecs_attachment.docx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context22.stop();
|
|
}
|
|
}, _callee22);
|
|
}));
|
|
return function get_ecs_attachment(_x23) {
|
|
return _ref22.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getec_courses = /*#__PURE__*/function () {
|
|
var _ref23 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee23(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee23$(_context23) {
|
|
while (1) switch (_context23.prev = _context23.next) {
|
|
case 0:
|
|
_context23.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/ec_years/".concat(params === null || params === void 0 ? void 0 : params.ec_year_id, "/ec_courses.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context23.stop();
|
|
}
|
|
}, _callee23);
|
|
}));
|
|
return function getec_courses(_x24) {
|
|
return _ref23.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getec_graduation_requirements = /*#__PURE__*/function () {
|
|
var _ref24 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee24(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee24$(_context24) {
|
|
while (1) switch (_context24.prev = _context24.next) {
|
|
case 0:
|
|
_context24.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/ec_years/".concat(params === null || params === void 0 ? void 0 : params.ec_year_id, "/ec_graduation_requirements.xlsx"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context24.stop();
|
|
}
|
|
}, _callee24);
|
|
}));
|
|
return function getec_graduation_requirements(_x25) {
|
|
return _ref24.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getrank_list = /*#__PURE__*/function () {
|
|
var _ref25 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee25(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee25$(_context25) {
|
|
while (1) switch (_context25.prev = _context25.next) {
|
|
case 0:
|
|
_context25.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/rank_list.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context25.stop();
|
|
}
|
|
}, _callee25);
|
|
}));
|
|
return function getrank_list(_x26) {
|
|
return _ref25.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getquestion_rank_list = /*#__PURE__*/function () {
|
|
var _ref26 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee26(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee26$(_context26) {
|
|
while (1) switch (_context26.prev = _context26.next) {
|
|
case 0:
|
|
_context26.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/courses/question_rank_list.xlsx",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context26.stop();
|
|
}
|
|
}, _callee26);
|
|
}));
|
|
return function getquestion_rank_list(_x27) {
|
|
return _ref26.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
// 试卷库--试卷详情--试卷导出
|
|
var exportPaperlibraryPaper = /*#__PURE__*/function () {
|
|
var _ref27 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee27(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee27$(_context27) {
|
|
while (1) switch (_context27.prev = _context27.next) {
|
|
case 0:
|
|
_context27.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/examination_banks/".concat(params.id, ".json"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context27.stop();
|
|
}
|
|
}, _callee27);
|
|
}));
|
|
return function exportPaperlibraryPaper(_x28) {
|
|
return _ref27.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
// 导出当前学员试卷
|
|
var exportUserExerciseDetail = /*#__PURE__*/function () {
|
|
var _ref28 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee28(params, title) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee28$(_context28) {
|
|
while (1) switch (_context28.prev = _context28.next) {
|
|
case 0:
|
|
_context28.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)(title || '', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params === null || params === void 0 ? void 0 : params.exercise_id, "/user_exercise_detail.json"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context28.stop();
|
|
}
|
|
}, _callee28);
|
|
}));
|
|
return function exportUserExerciseDetail(_x29, _x30) {
|
|
return _ref28.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
// 教学课堂--试卷详情--试卷导出
|
|
var exportClassroomsPaper = /*#__PURE__*/function () {
|
|
var _ref29 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee29(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee29$(_context29) {
|
|
while (1) switch (_context29.prev = _context29.next) {
|
|
case 0:
|
|
_context29.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/exercises/".concat(params.categoryId, ".json"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context29.stop();
|
|
}
|
|
}, _callee29);
|
|
}));
|
|
return function exportClassroomsPaper(_x31) {
|
|
return _ref29.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
// 导出问卷word文档
|
|
var exportCommitResultWord = /*#__PURE__*/function () {
|
|
var _ref30 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee30(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee30$(_context30) {
|
|
while (1) switch (_context30.prev = _context30.next) {
|
|
case 0:
|
|
_context30.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/polls/".concat(params === null || params === void 0 ? void 0 : params.id, "/commit_result.json"),
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context30.stop();
|
|
}
|
|
}, _callee30);
|
|
}));
|
|
return function exportCommitResultWord(_x32) {
|
|
return _ref30.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
// 导出实训word
|
|
var exportTaskPass = /*#__PURE__*/function () {
|
|
var _ref31 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee31(params) {
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee31$(_context31) {
|
|
while (1) switch (_context31.prev = _context31.next) {
|
|
case 0:
|
|
_context31.next = 2;
|
|
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
|
|
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/paths/get_task_pass.json",
|
|
query: params
|
|
}));
|
|
case 2:
|
|
case "end":
|
|
return _context31.stop();
|
|
}
|
|
}, _callee31);
|
|
}));
|
|
return function exportTaskPass(_x33) {
|
|
return _ref31.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
/***/ })
|
|
|
|
}]); |