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.
671 lines
29 KiB
671 lines
29 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65191],{
|
|
|
|
/***/ 22246:
|
|
/*!*****************************************************!*\
|
|
!*** ./src/pages/User/Detail/Certificate/index.tsx ***!
|
|
\*****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var antd_es_pagination_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/pagination/style */ 14182);
|
|
/* harmony import */ var antd_es_pagination__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! antd/es/pagination */ 260);
|
|
/* harmony import */ var antd_es_table_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/table/style */ 71854);
|
|
/* harmony import */ var antd_es_table__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd/es/table */ 67250);
|
|
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/modal/style */ 35611);
|
|
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! antd/es/modal */ 85402);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js */ 17061);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/asyncToGenerator.js */ 17156);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/slicedToArray.js */ 27424);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js */ 70215);
|
|
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
/* harmony import */ var antd_es_select_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/select/style */ 95985);
|
|
/* harmony import */ var antd_es_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd/es/select */ 34041);
|
|
/* harmony import */ var antd_es_statistic_style__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/statistic/style */ 14558);
|
|
/* harmony import */ var antd_es_statistic__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd/es/statistic */ 74763);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ 67294);
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! umi */ 89214);
|
|
/* harmony import */ var _pages_tasks_vnc_view_index_less__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/pages/tasks/vnc-view/index.less */ 45954);
|
|
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! html2pdf.js */ 80599);
|
|
/* harmony import */ var html2pdf_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(html2pdf_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/util */ 29427);
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils/fetch */ 84519);
|
|
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/components/ui-customization */ 85343);
|
|
/* harmony import */ var _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/components/ui-customization/reset.less?modules */ 39132);
|
|
/* harmony import */ var _components_CertificateModal__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/components/CertificateModal */ 24830);
|
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! moment */ 30381);
|
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_20__);
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! react/jsx-runtime */ 85893);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _excluded = ["classroomList", "globalSetting", "loading", "user", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Countdown = antd_es_statistic__WEBPACK_IMPORTED_MODULE_15__/* ["default"].Countdown */ .Z.Countdown;
|
|
var Option = antd_es_select__WEBPACK_IMPORTED_MODULE_16__/* ["default"].Option */ .Z.Option;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
moment__WEBPACK_IMPORTED_MODULE_20___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_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default()(_ref, _excluded);
|
|
var _useSearchParams = (0,umi__WEBPACK_IMPORTED_MODULE_10__.useSearchParams)(),
|
|
_useSearchParams2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(searchParams.get("category") || 'manage_certificates'),
|
|
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
|
|
ListType = _useState2[0],
|
|
setListType = _useState2[1];
|
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(),
|
|
_useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState3, 2),
|
|
result = _useState4[0],
|
|
setResult = _useState4[1];
|
|
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(1),
|
|
_useState6 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState5, 2),
|
|
page = _useState6[0],
|
|
setPage = _useState6[1];
|
|
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(15),
|
|
_useState8 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState7, 2),
|
|
limit = _useState8[0],
|
|
setLimit = _useState8[1];
|
|
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(false),
|
|
_useState10 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState9, 2),
|
|
isShowModel = _useState10[0],
|
|
setIsShowModel = _useState10[1];
|
|
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)([]),
|
|
_useState12 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState11, 2),
|
|
studentResult = _useState12[0],
|
|
setStudentResult = _useState12[1];
|
|
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(false),
|
|
_useState14 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState13, 2),
|
|
studentShow = _useState14[0],
|
|
setStudentShow = _useState14[1];
|
|
var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(),
|
|
_useState16 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState15, 2),
|
|
student = _useState16[0],
|
|
setStudent = _useState16[1];
|
|
var reportElement = (0,react__WEBPACK_IMPORTED_MODULE_9__.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_10__.useParams)();
|
|
(0,react__WEBPACK_IMPORTED_MODULE_9__.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_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee3(type) {
|
|
var _user$userInfo2;
|
|
var result;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
_context3.next = 2;
|
|
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_14__/* ["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_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee() {
|
|
var opt, doc, url;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___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_12___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_13__/* .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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.jsx)("span", {
|
|
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().mark(function _callee2() {
|
|
var result;
|
|
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3___default()().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.next = 2;
|
|
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_14__/* ["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_es_modal__WEBPACK_IMPORTED_MODULE_22__/* ["default"].info */ .Z.info({
|
|
title: '拒绝原因',
|
|
icon: null,
|
|
className: "custom-modal-divider",
|
|
centered: true,
|
|
width: 400,
|
|
content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.Fragment, {
|
|
children: [(record === null || record === void 0 ? void 0 : record.state) === 'drafted' && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.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_21__.jsxs)("div", {
|
|
style: {
|
|
marginTop: 22,
|
|
marginLeft: 45
|
|
},
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_17__/* .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_13__/* .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_21__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_17__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(antd_es_table__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
|
|
columns: columns,
|
|
dataSource: result === null || result === void 0 ? void 0 : result.subjects,
|
|
pagination: false
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(antd_es_pagination__WEBPACK_IMPORTED_MODULE_24__/* ["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_21__.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_17__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(antd_es_table__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
|
|
columns: columns2,
|
|
dataSource: result === null || result === void 0 ? void 0 : result.certificates,
|
|
pagination: false
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(antd_es_pagination__WEBPACK_IMPORTED_MODULE_24__/* ["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_21__.jsx)(antd_es_modal__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
|
|
title: '查看申请人',
|
|
open: isShowModel,
|
|
width: 800,
|
|
footer: null,
|
|
wrapClassName: _components_ui_customization_reset_less_modules__WEBPACK_IMPORTED_MODULE_18__/* ["default"].CustomCss */ .Z.CustomCss,
|
|
onCancel: function onCancel() {
|
|
return setIsShowModel(false);
|
|
},
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_17__/* .CustomTable */ .Gi, {
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(antd_es_table__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
|
|
dataSource: studentResult === null || studentResult === void 0 ? void 0 : studentResult.certificates,
|
|
pagination: false,
|
|
columns: columns1
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(_components_CertificateModal__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
|
visible: studentShow,
|
|
onCancel: function onCancel() {
|
|
setStudentShow(false);
|
|
},
|
|
data: student || {}
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_10__.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","CustomCss":"CustomCss___fWNtn","CustomTipsModalCss":"CustomTipsModalCss___MmFkT","dropdownmenus":"dropdownmenus___oVzoj","popupClassNames":"popupClassNames___OcZq7","selectdown":"selectdown___mmcA8"});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 45954:
|
|
/*!*********************************************!*\
|
|
!*** ./src/pages/tasks/vnc-view/index.less ***!
|
|
\*********************************************/
|
|
/***/ (function() {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |