|
|
|
|
@ -1,6 +1,48 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54862],{
|
|
|
|
|
|
|
|
|
|
/***/ 42813:
|
|
|
|
|
/*!**********************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
|
|
|
|
|
\**********************************************************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
Z: function() { return /* binding */ icons_DownloadOutlined; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
|
|
|
|
|
var esm_extends = __webpack_require__(26508);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/DownloadOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
|
|
var AntdIcon = __webpack_require__(91851);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownloadOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_DownloadOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(DownloadOutlined_DownloadOutlined));
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 80045:
|
|
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
|
|
|
|
@ -918,7 +960,7 @@ var dayjs_min = __webpack_require__(9498);
|
|
|
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/components/List/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Listmodules = ({"itemWrap":"itemWrap___KEbZ9","checkBoxWrapper":"checkBoxWrapper___Y_kuj","listWrap":"listWrap___VlWgM","list":"list___XIr6d","flexCenter":"flexCenter___eacyI","flexRow":"flexRow___A_mOc","imgWrap":"imgWrap___KI9io","img":"img___vjS11","contentWrap":"contentWrap___NI0Vt","titleWrap":"titleWrap___SlBWX","title":"title___KGh5v","content":"content___B0PxW","bottomWrap":"bottomWrap___WVJb4","updateTime":"updateTime___sxvSt","useCount":"useCount___puqPx","actionBtn":"actionBtn___JUWfj","actionButton":"actionButton___jabv3","actionBar":"actionBar___I1pC8","typeIcon":"typeIcon___bramC","private":"private___sdERX","public":"public___noSmD","random":"random___l2hTA","actionLinkWrapper":"actionLinkWrapper___Him3y","actionLink":"actionLink___rWBLq","actionIcon":"actionIcon___lMmL7","line":"line___HQJlK","b1":"b1___Y4KZd","b2":"b2___QxMOG","actionLeftItem":"actionLeftItem___Fnq4b"});
|
|
|
|
|
/* harmony default export */ var Listmodules = ({"itemWrap":"itemWrap___KEbZ9","checkBoxWrapper":"checkBoxWrapper___Y_kuj","listWrap":"listWrap___VlWgM","list":"list___XIr6d","flexCenter":"flexCenter___eacyI","flexRow":"flexRow___A_mOc","imgWrap":"imgWrap___KI9io","img":"img___vjS11","contentWrap":"contentWrap___NI0Vt","titleWrap":"titleWrap___SlBWX","title":"title___KGh5v","content":"content___B0PxW","bottomWrap":"bottomWrap___WVJb4","updateTime":"updateTime___sxvSt","useCount":"useCount___puqPx","actionBtn":"actionBtn___JUWfj","actionButton":"actionButton___jabv3","actionBar":"actionBar___I1pC8","typeIcon":"typeIcon___bramC","private":"private___sdERX","public":"public___noSmD","random":"random___l2hTA","actionLinkWrapper":"actionLinkWrapper___Him3y","actionLink":"actionLink___rWBLq","actionIcon":"actionIcon___lMmL7","line":"line___HQJlK","b1":"b1___Y4KZd","b2":"b2___QxMOG","actionLeftItem":"actionLeftItem___Fnq4b","export_type_modal":"export_type_modal___ISAzV","export_type_modal_con":"export_type_modal_con___qw5B2","type_item":"type_item___pdMxs","img_warp":"img_warp___cDH7f","img_warp_active":"img_warp_active___rLrYN"});
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
|
|
|
var authority = __webpack_require__(76107);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/exercise.ts
|
|
|
|
|
@ -927,6 +969,10 @@ var exercise = __webpack_require__(6303);
|
|
|
|
|
var verifyLogin = __webpack_require__(72031);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
|
|
|
var lodash = __webpack_require__(89392);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules
|
|
|
|
|
var DownloadOutlined = __webpack_require__(42813);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/export.ts
|
|
|
|
|
var utils_export = __webpack_require__(64125);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/components/List/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -943,6 +989,8 @@ var lodash = __webpack_require__(89392);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var difficultyMapping = {
|
|
|
|
|
1: '简单',
|
|
|
|
|
2: '适中',
|
|
|
|
|
@ -976,6 +1024,18 @@ var List = function List(_ref) {
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
isloading = _useState2[0],
|
|
|
|
|
setisloading = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
exportTypeModal = _useState4[0],
|
|
|
|
|
setExportTypeModal = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
exporRandomModal = _useState6[0],
|
|
|
|
|
setExporRandomModal = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(""),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
exportType = _useState8[0],
|
|
|
|
|
setExportType = _useState8[1];
|
|
|
|
|
var handleWarn = function handleWarn() {
|
|
|
|
|
modal/* default */.Z.warning({
|
|
|
|
|
centered: true,
|
|
|
|
|
@ -1016,9 +1076,9 @@ var List = function List(_ref) {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.itemWrap,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.listWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "".concat(Listmodules.list, " ").concat(Listmodules.flexCenter),
|
|
|
|
|
@ -1182,6 +1242,32 @@ var List = function List(_ref) {
|
|
|
|
|
className: "iconfont icon-chexiaogongxiang ".concat(Listmodules.actionIcon, " font16")
|
|
|
|
|
}), "\u64A4\u9500\u5171\u4EAB"]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: Listmodules.actionLinkWrapper,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.line,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
|
|
|
|
|
className: Listmodules.b1
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("b", {
|
|
|
|
|
className: Listmodules.b2
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
|
|
|
className: "".concat(Listmodules.actionLink),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (data.is_random) {
|
|
|
|
|
setExporRandomModal(true);
|
|
|
|
|
} else {
|
|
|
|
|
setExportType('');
|
|
|
|
|
setExportTypeModal(true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: 5
|
|
|
|
|
}
|
|
|
|
|
}), "\u5BFC\u51FA\u8BD5\u5377"]
|
|
|
|
|
})]
|
|
|
|
|
}), ((activeTabsKey === '0' || activeTabsKey === '2') && !data["public"] || activeTabsKey === '1' && ((_data$author3 = data.author) === null || _data$author3 === void 0 ? void 0 : _data$author3.login) !== ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) && (0,authority/* isCommonSuperAdminOrOperation */.ag)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
align: "middle",
|
|
|
|
|
className: Listmodules.actionLinkWrapper,
|
|
|
|
|
@ -1244,7 +1330,108 @@ var List = function List(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
width: 450,
|
|
|
|
|
title: "\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u7A7A\u767D\u8BD5\u5377\u683C\u5F0F",
|
|
|
|
|
open: exportTypeModal,
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
return setExportTypeModal(false);
|
|
|
|
|
},
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var url;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(exportType == '')) {
|
|
|
|
|
_context2.next = 5;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.info('请选择一种导出格式');
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 5:
|
|
|
|
|
if (exportType == 'pdf') {
|
|
|
|
|
url = "/paperlibrary/see/".concat(data.id, "?defaultActiveKey=").concat(activeTabsKey, "&exportPDF=true");
|
|
|
|
|
_umi_production_exports.history.push({
|
|
|
|
|
pathname: url,
|
|
|
|
|
state: {}
|
|
|
|
|
});
|
|
|
|
|
} else if (exportType == 'word') {
|
|
|
|
|
(0,utils_export/* exportPaperlibraryPaper */.ON)({
|
|
|
|
|
id: data === null || data === void 0 ? void 0 : data.id,
|
|
|
|
|
middle_export: 1,
|
|
|
|
|
export_type: 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
setExportTypeModal(false);
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
})),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Listmodules.export_type_modal,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.export_type_modal_con,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.type_item,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "".concat(Listmodules.img_warp, " ").concat(exportType == 'pdf' ? Listmodules.img_warp_active : ''),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return setExportType('pdf');
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! @/assets/images/file_type/pdf_img.png */ 45614),
|
|
|
|
|
width: 70,
|
|
|
|
|
height: 70
|
|
|
|
|
})
|
|
|
|
|
}), "pdf\u683C\u5F0F"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Listmodules.type_item,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "".concat(Listmodules.img_warp, " ").concat(exportType == 'word' ? Listmodules.img_warp_active : ''),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return setExportType('word');
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: __webpack_require__(/*! @/assets/images/file_type/word_img.png */ 38347),
|
|
|
|
|
width: 70,
|
|
|
|
|
height: 70
|
|
|
|
|
})
|
|
|
|
|
}), "word\u683C\u5F0F"]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
|
|
|
|
width: 450,
|
|
|
|
|
title: "\u63D0\u793A",
|
|
|
|
|
open: exporRandomModal,
|
|
|
|
|
okText: "\u53D1\u9001\u81F3\u8BFE\u5802",
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
return setExporRandomModal(false);
|
|
|
|
|
},
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(data !== null && data !== void 0 && data.need_authorize)) {
|
|
|
|
|
_context3.next = 3;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
(0,verifyLogin/* AuthorizeModel */.rX)(false, '该试卷中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。');
|
|
|
|
|
return _context3.abrupt("return");
|
|
|
|
|
case 3:
|
|
|
|
|
onSendToClass(data.id, data);
|
|
|
|
|
setExporRandomModal(false);
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee3);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u7531\u4E8E\u6539\u8BD5\u5377\u4E3A\u968F\u673A\u7EC4\u5377\uFF0C\u8BF7\u53D1\u9001\u81F3\u8BFE\u5802\u540E\u5728\u8FDB\u884C\u5BFC\u51FA"
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/components/PublicReviewModal.tsx
|
|
|
|
|
|