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.
758 lines
34 KiB
758 lines
34 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65191],{
|
|
|
|
/***/ 18429:
|
|
/*!************************************************************************************!*\
|
|
!*** ./node_modules/@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
|
|
\************************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"Z": function() { return /* binding */ icons_CloseCircleOutlined; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(87462);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
|
|
// This icon file is generated automatically.
|
|
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" } }, { "tag": "path", "attrs": { "d": "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "close-circle", "theme": "outlined" };
|
|
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
|
var AntdIcon = __webpack_require__(74643);
|
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleOutlined.js
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
|
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
ref: ref,
|
|
icon: asn_CloseCircleOutlined
|
|
}));
|
|
};
|
|
if (false) {}
|
|
/* harmony default export */ var icons_CloseCircleOutlined = (/*#__PURE__*/react.forwardRef(CloseCircleOutlined_CloseCircleOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 22246:
|
|
/*!*****************************************************!*\
|
|
!*** ./src/pages/User/Detail/Certificate/index.tsx ***!
|
|
\*****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 67294);
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 88275);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 55054);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 79035);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 72423);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 63889);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 83338);
|
|
/* harmony import */ var _pages_tasks_vnc_view_index_less__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/pages/tasks/vnc-view/index.less */ 45954);
|
|
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! html2pdf.js */ 80599);
|
|
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(html2pdf_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/util */ 29427);
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/fetch */ 84519);
|
|
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/ui-customization */ 35567);
|
|
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
|
|
/* harmony import */ var _components_CertificateModal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/components/CertificateModal */ 24830);
|
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! moment */ 94699);
|
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_15__);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
|
|
|
|
|
|
|
|
|
|
var _excluded = ["classroomList", "globalSetting", "loading", "user", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Countdown = antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"].Countdown */ .Z.Countdown;
|
|
var Option = antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"].Option */ .Z.Option;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
moment__WEBPACK_IMPORTED_MODULE_15___default().locale('ZH-cn');
|
|
var ClassroomListPage = function ClassroomListPage(_ref) {
|
|
var classroomList = _ref.classroomList,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch,
|
|
props = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default()(_ref, _excluded);
|
|
var _useSearchParams = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useSearchParams)(),
|
|
_useSearchParams2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(searchParams.get("category") || 'manage_certificates'),
|
|
_useState2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
|
|
ListType = _useState2[0],
|
|
setListType = _useState2[1];
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
|
|
_useState4 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
|
|
result = _useState4[0],
|
|
setResult = _useState4[1];
|
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(1),
|
|
_useState6 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2),
|
|
page = _useState6[0],
|
|
setPage = _useState6[1];
|
|
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(15),
|
|
_useState8 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState7, 2),
|
|
limit = _useState8[0],
|
|
setLimit = _useState8[1];
|
|
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
|
_useState10 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState9, 2),
|
|
isShowModel = _useState10[0],
|
|
setIsShowModel = _useState10[1];
|
|
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),
|
|
_useState12 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState11, 2),
|
|
studentResult = _useState12[0],
|
|
setStudentResult = _useState12[1];
|
|
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
|
_useState14 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState13, 2),
|
|
studentShow = _useState14[0],
|
|
setStudentShow = _useState14[1];
|
|
var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(),
|
|
_useState16 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState15, 2),
|
|
student = _useState16[0],
|
|
setStudent = _useState16[1];
|
|
var reportElement = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)();
|
|
var month = {
|
|
'1': "January",
|
|
'2': "February",
|
|
'3': "March",
|
|
'4': "April",
|
|
'5': "May",
|
|
'6': "June",
|
|
'7': "July",
|
|
'8': "August",
|
|
'9': "September",
|
|
'10': "October",
|
|
'11': "November",
|
|
'12': "December"
|
|
};
|
|
var params = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useParams)();
|
|
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
|
var _user$userInfo;
|
|
//获取新增镜像数据
|
|
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) {
|
|
GetNewList(ListType);
|
|
}
|
|
}, [ListType, page, user]);
|
|
function GetNewList(_x) {
|
|
return _GetNewList.apply(this, arguments);
|
|
}
|
|
function _GetNewList() {
|
|
_GetNewList = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(type) {
|
|
var _user$userInfo2;
|
|
var result;
|
|
return _root_workspace_ppte5yg23_local_v9_node_modules_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,_utils_fetch__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP)("/api/users/".concat(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/subjects/").concat(type, ".json"), {
|
|
method: 'get',
|
|
params: {
|
|
page: page,
|
|
limit: limit
|
|
}
|
|
});
|
|
case 2:
|
|
result = _context3.sent;
|
|
if (result) {
|
|
setResult(result);
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return _GetNewList.apply(this, arguments);
|
|
}
|
|
var handleDownLoad = /*#__PURE__*/function () {
|
|
var _ref2 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
|
|
var opt, doc, url;
|
|
return _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
document.body.scrollIntoView();
|
|
opt = {
|
|
margin: [0, 0, 0, 0],
|
|
filename: "11.pdf",
|
|
enableLinks: false,
|
|
html2canvas: {
|
|
scale: 5,
|
|
allowTaint: false,
|
|
useCORS: true
|
|
// width: 2000,
|
|
},
|
|
|
|
jsPDF: {
|
|
format: [1412, student !== null && student !== void 0 && student.is_icpc_first ? 2500 : 1000],
|
|
orientation: 'landscape',
|
|
unit: "px"
|
|
},
|
|
image: {
|
|
type: 'jpeg',
|
|
quality: 1
|
|
}
|
|
};
|
|
doc = html2pdf_js__WEBPACK_IMPORTED_MODULE_7___default()().set(opt).from(reportElement.current).toPdf();
|
|
_context.next = 5;
|
|
return doc.get('pdf');
|
|
case 5:
|
|
doc = _context.sent;
|
|
_context.next = 8;
|
|
return doc.output('bloburl');
|
|
case 8:
|
|
url = _context.sent;
|
|
(0,_utils_util__WEBPACK_IMPORTED_MODULE_8__/* .downLoadLink */ .Nd)("".concat(student.school_name, "-").concat(student.user_name, ".pdf"), url);
|
|
case 10:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function handleDownLoad() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var columns1 = [{
|
|
title: '序号',
|
|
dataIndex: 'name',
|
|
align: 'left',
|
|
key: 'name',
|
|
ellipsis: true,
|
|
width: 50,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
children: index + 1
|
|
});
|
|
}
|
|
}, {
|
|
title: '课程名称',
|
|
dataIndex: 'subject_name',
|
|
// align: 'center',
|
|
key: 'subject_name'
|
|
}, {
|
|
title: '申请人',
|
|
dataIndex: 'user_name',
|
|
// align: 'center',
|
|
key: 'user_name'
|
|
}, {
|
|
title: '申请时间',
|
|
dataIndex: 'created_at',
|
|
// align: 'center',
|
|
key: 'created_at'
|
|
}, {
|
|
title: '证书编号',
|
|
dataIndex: 'code',
|
|
// align: 'center',
|
|
key: 'code'
|
|
}];
|
|
var columns = [{
|
|
title: '序号',
|
|
dataIndex: 'name',
|
|
align: 'left',
|
|
key: 'name',
|
|
ellipsis: true,
|
|
width: 50,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000',
|
|
fontSize: 14
|
|
},
|
|
children: limit * (page - 1) + index + 1
|
|
});
|
|
}
|
|
}, {
|
|
title: '课程名称',
|
|
dataIndex: 'name',
|
|
// align: 'center',
|
|
key: 'name',
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000',
|
|
fontSize: 14,
|
|
fontWeight: 500
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '开课人',
|
|
dataIndex: 'subject_user_name',
|
|
// align: 'center',
|
|
key: 'subject_user_name',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '实训数',
|
|
dataIndex: 'shixuns_count',
|
|
// align: 'center',
|
|
key: 'shixuns_count',
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#5F6368',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '申请人数',
|
|
dataIndex: 'certificates_count',
|
|
// align: 'center',
|
|
key: 'certificates_count',
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#5F6368',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '申请时间',
|
|
dataIndex: 'created_at',
|
|
// align: 'center',
|
|
key: 'created_at',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#5F6368',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '操作',
|
|
dataIndex: 'remark',
|
|
// align: 'center',
|
|
key: 'remark',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
|
|
var result;
|
|
return _root_workspace_ppte5yg23_local_v9_node_modules_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,_utils_fetch__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP)("/api/users/".concat(user.userInfo.login, "/subjects/certificate_users.json"), {
|
|
method: 'get',
|
|
params: {
|
|
page: 1,
|
|
limit: 10000,
|
|
subject_id: record === null || record === void 0 ? void 0 : record.id
|
|
}
|
|
});
|
|
case 2:
|
|
result = _context2.sent;
|
|
if (result) {
|
|
setStudentResult(result);
|
|
setIsShowModel(true);
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
})),
|
|
style: {
|
|
cursor: 'pointer',
|
|
color: '#165DFF'
|
|
},
|
|
children: "\u67E5\u770B\u7533\u8BF7\u4EBA"
|
|
});
|
|
}
|
|
}];
|
|
var handleRejectReason = function handleRejectReason(v) {
|
|
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"].info */ .Z.info({
|
|
title: '拒绝原因',
|
|
icon: null,
|
|
className: "custom-modal-divider",
|
|
centered: true,
|
|
width: 400,
|
|
content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", {
|
|
children: v === null || v === void 0 ? void 0 : v.content
|
|
}),
|
|
okText: "确定"
|
|
});
|
|
};
|
|
var columns2 = [{
|
|
title: '序号',
|
|
dataIndex: 'name',
|
|
align: 'center',
|
|
key: 'name',
|
|
ellipsis: true,
|
|
width: 50,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000'
|
|
},
|
|
children: limit * (page - 1) + index + 1
|
|
});
|
|
}
|
|
}, {
|
|
title: '课程名称',
|
|
dataIndex: 'subject_name',
|
|
// align: 'center',
|
|
key: 'subject_name',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000',
|
|
fontSize: 14,
|
|
fontWeight: 500
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '开课人',
|
|
dataIndex: 'subject_user_name',
|
|
// align: 'center',
|
|
key: 'subject_user_name',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '实训数',
|
|
dataIndex: 'shixuns_count',
|
|
// align: 'center',
|
|
key: 'shixuns_count',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#5F6368',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '申请时间',
|
|
dataIndex: 'created_at',
|
|
// align: 'center',
|
|
key: 'created_at',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#5F6368',
|
|
fontSize: 14,
|
|
fontWeight: 400
|
|
},
|
|
children: text || '- -'
|
|
});
|
|
}
|
|
}, {
|
|
title: '申请状态',
|
|
dataIndex: 'state',
|
|
ellipsis: true,
|
|
key: 'state',
|
|
render: function render(v, record) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.Fragment, {
|
|
children: [(record === null || record === void 0 ? void 0 : record.state) === 'drafted' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000'
|
|
},
|
|
children: "\u7533\u8BF7\u4E2D"
|
|
}), (record === null || record === void 0 ? void 0 : record.state) === 'rejected' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000'
|
|
},
|
|
children: "\u672A\u901A\u8FC7"
|
|
}), (record === null || record === void 0 ? void 0 : record.state) === 'passed' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
color: '#000000'
|
|
},
|
|
children: "\u901A\u8FC7"
|
|
})]
|
|
});
|
|
}
|
|
}, {
|
|
title: '操作',
|
|
dataIndex: 'code',
|
|
// align: 'center',
|
|
key: 'code',
|
|
ellipsis: true,
|
|
render: function render(text, record, index) {
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
|
style: {
|
|
display: 'flex',
|
|
justifyContent: 'space-evenly'
|
|
},
|
|
children: [(record === null || record === void 0 ? void 0 : record.state) === 'passed' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
cursor: 'pointer',
|
|
color: '#0152d9'
|
|
},
|
|
onClick: function onClick() {
|
|
setStudent(record);
|
|
setStudentShow(true);
|
|
},
|
|
children: "\u67E5\u770B\u8BC1\u4E66"
|
|
}), (record === null || record === void 0 ? void 0 : record.state) === 'drafted' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
style: {
|
|
cursor: 'not-allowed',
|
|
color: '#7F7F7F'
|
|
},
|
|
children: "\u67E5\u770B"
|
|
}), (record === null || record === void 0 ? void 0 : record.state) === 'rejected' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
|
onClick: function onClick() {
|
|
return handleRejectReason(record);
|
|
},
|
|
style: {
|
|
cursor: 'pointer',
|
|
color: '#0152d9'
|
|
},
|
|
children: "\u67E5\u770B\u62D2\u7EDD\u7406\u7531"
|
|
})]
|
|
});
|
|
}
|
|
}];
|
|
var tabs = [{
|
|
id: 'manage_certificates',
|
|
name: '我管理的'
|
|
}, {
|
|
id: 'my_certificates',
|
|
name: '我获得的'
|
|
}];
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
|
style: {
|
|
marginTop: 22,
|
|
marginLeft: 45
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_12__/* .CustomTabs */ .YG, {
|
|
value: ListType,
|
|
onChange: function onChange(e) {
|
|
var _window$location$href;
|
|
if ((_window$location$href = window.location.href.toString()) !== null && _window$location$href !== void 0 && _window$location$href.includes('category')) {
|
|
(0,_utils_util__WEBPACK_IMPORTED_MODULE_8__/* .replaceParamVal */ .jz)('category', e);
|
|
} else {
|
|
window.history.replaceState(null, '', window.location.href.indexOf('?') > -1 ? window.location.href + "&category=".concat(e) : "?category=".concat(e));
|
|
}
|
|
setListType(e);
|
|
},
|
|
className: "mb25",
|
|
dataSource: tabs
|
|
}), ListType === 'manage_certificates' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_12__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
|
columns: columns,
|
|
dataSource: result === null || result === void 0 ? void 0 : result.subjects,
|
|
pagination: false
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
|
hideOnSinglePage: true,
|
|
style: {
|
|
textAlign: 'center',
|
|
marginTop: '10px'
|
|
},
|
|
pageSize: limit,
|
|
current: page,
|
|
onChange: function onChange(page, pagesize) {
|
|
setPage(page);
|
|
},
|
|
total: result === null || result === void 0 ? void 0 : result.total_count
|
|
})]
|
|
}), ListType === 'my_certificates' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_12__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
|
columns: columns2,
|
|
dataSource: result === null || result === void 0 ? void 0 : result.certificates,
|
|
pagination: false
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
|
hideOnSinglePage: true,
|
|
style: {
|
|
textAlign: 'center',
|
|
marginTop: '10px'
|
|
},
|
|
pageSize: limit,
|
|
current: page,
|
|
onChange: function onChange(page, pagesize) {
|
|
setPage(page);
|
|
},
|
|
total: result === null || result === void 0 ? void 0 : result.total_count
|
|
})]
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
|
title: '查看申请人',
|
|
open: isShowModel,
|
|
width: 800,
|
|
footer: null,
|
|
wrapClassName: _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_13__/* ["default"].CustomCss */ .Z.CustomCss,
|
|
onCancel: function onCancel() {
|
|
return setIsShowModel(false);
|
|
},
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_12__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
|
dataSource: studentResult === null || studentResult === void 0 ? void 0 : studentResult.certificates,
|
|
pagination: false,
|
|
columns: columns1
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_components_CertificateModal__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
visible: studentShow,
|
|
onCancel: function onCancel() {
|
|
setStudentShow(false);
|
|
},
|
|
data: student || {}
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref4) {
|
|
var classroomList = _ref4.classroomList,
|
|
loading = _ref4.loading,
|
|
globalSetting = _ref4.globalSetting,
|
|
user = _ref4.user;
|
|
return {
|
|
classroomList: classroomList,
|
|
globalSetting: globalSetting,
|
|
loading: loading.models.classroomList,
|
|
user: user
|
|
};
|
|
})(ClassroomListPage));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 39132:
|
|
/*!************************************************************!*\
|
|
!*** ./src/components/ui-customization/reset.less?modules ***!
|
|
\************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ __webpack_exports__["Z"] = ({"flex_box_center":"flex_box_center___vG4eV","flex_space_between":"flex_space_between___qVVxe","flex_box_vertical_center":"flex_box_vertical_center___P8Z8s","flex_box_center_end":"flex_box_center_end___VMme3","flex_box_column":"flex_box_column___VMHwm","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 45954:
|
|
/*!*********************************************!*\
|
|
!*** ./src/pages/tasks/vnc-view/index.less ***!
|
|
\*********************************************/
|
|
/***/ (function() {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 64217:
|
|
/*!**********************************************!*\
|
|
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
|
\**********************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
|
|
|
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
|
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
|
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
|
|
|
/* eslint-enable max-len */
|
|
var ariaPrefix = 'aria-';
|
|
var dataPrefix = 'data-';
|
|
function match(key, prefix) {
|
|
return key.indexOf(prefix) === 0;
|
|
}
|
|
/**
|
|
* Picker props from exist props with filter
|
|
* @param props Passed props
|
|
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
|
*/
|
|
function pickAttrs(props) {
|
|
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
var mergedConfig;
|
|
if (ariaOnly === false) {
|
|
mergedConfig = {
|
|
aria: true,
|
|
data: true,
|
|
attr: true
|
|
};
|
|
} else if (ariaOnly === true) {
|
|
mergedConfig = {
|
|
aria: true
|
|
};
|
|
} else {
|
|
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
|
}
|
|
var attrs = {};
|
|
Object.keys(props).forEach(function (key) {
|
|
if (
|
|
// Aria
|
|
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
|
// Data
|
|
mergedConfig.data && match(key, dataPrefix) ||
|
|
// Attr
|
|
mergedConfig.attr && propList.includes(key)) {
|
|
attrs[key] = props[key];
|
|
}
|
|
});
|
|
return attrs;
|
|
}
|
|
|
|
/***/ })
|
|
|
|
}]); |