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.
699 lines
32 KiB
699 lines
32 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65191],{
|
|
|
|
/***/ 47104:
|
|
/*!*************************************************************************************************************!*\
|
|
!*** ./node_modules/_@ant-design_icons@5.2.6@@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@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/CloseCircleOutlined.js
|
|
// This icon file is generated automatically.
|
|
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
|
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
|
|
|
// 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/CloseCircleOutlined.js
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
|
return /*#__PURE__*/_react_17_0_2_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_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 95461:
|
|
/*!*****************************************************!*\
|
|
!*** ./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_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js */ 27161);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 66660);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 31797);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 57809);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 43418);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 72315);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 41867);
|
|
/* harmony import */ var _pages_tasks_vnc_view_index_less__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/pages/tasks/vnc-view/index.less */ 36603);
|
|
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! html2pdf.js */ 44425);
|
|
/* 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 */ 27291);
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/fetch */ 97174);
|
|
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/ui-customization */ 6487);
|
|
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 33529);
|
|
/* harmony import */ var _components_CertificateModal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/components/CertificateModal */ 86937);
|
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! moment */ 9498);
|
|
/* 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 */ 37712);
|
|
|
|
|
|
|
|
|
|
var _excluded = ["classroomList", "globalSetting", "loading", "user", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Countdown = antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.Countdown;
|
|
var Option = antd__WEBPACK_IMPORTED_MODULE_11__["default"].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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(type) {
|
|
var _user$userInfo2;
|
|
var result;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_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 || (_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
|
|
var opt, doc, url;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_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_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
|
|
var result;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_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"] */ .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"] */ .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));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 33529:
|
|
/*!************************************************************!*\
|
|
!*** ./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"});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 36603:
|
|
/*!*********************************************!*\
|
|
!*** ./src/pages/tasks/vnc-view/index.less ***!
|
|
\*********************************************/
|
|
/***/ (function() {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |