Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent 2eaf8589de
commit 00b4bf1bc9

@ -986,8 +986,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___Onnmh","wrap":"wrap___VTtdp","modal":"modal___MArZa","content":"content___a69LK","head":"head____zVzr","headCount":"headCount___GhK7o","button":"button___DoAh3","itemWrap":"itemWrap___UR35k","imgWrap":"imgWrap___DpS0R","img":"img___N9se3","manager":"manager___m4Mzg","itemContent":"itemContent___Ut7hr","nameWrap":"nameWrap___y73uS","name":"name___hJUHg","actionGroup":"actionGroup___QEytf","deleteIcon":"deleteIcon___XGFcN","schoolWrap":"schoolWrap___qsoOp","school":"school___yh8l2","countWrap":"countWrap___MQKPn","deletetitle":"deletetitle___nAICN","yseTitle":"yseTitle___t5fzp"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
var PlusOutlined = __webpack_require__(22415);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(91203);
;// CONCATENATED MODULE: ./src/pages/Innovation/Tasks/Collaborate/index.tsx

@ -232,15 +232,15 @@ __webpack_require__.d(__webpack_exports__, {
identityMap: function() { return /* binding */ identityMap; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
@ -263,7 +263,7 @@ var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
var es_modal = __webpack_require__(43418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
@ -299,6 +299,8 @@ var PlusOutlined = __webpack_require__(22415);
var image_preview = __webpack_require__(75646);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(3521);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(91203);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
@ -327,6 +329,7 @@ var _excluded = ["user", "account", "globalSetting", "shixunHomeworks", "loading
var Option = es_select["default"].Option;
var TextArea = input/* default */.Z.TextArea;
var identityMap = {
@ -337,7 +340,7 @@ var identityMap = {
var MAX_NAME_LENGTH = 20;
var MAX_NICKNAME_LENGTH = 20;
var Edit = function Edit(_ref) {
var _account$basicInfo3, _formValue$nickname, _form$getFieldValue, _schoolList$find3;
var _account$basicInfo3, _formValue$nickname, _form$getFieldValue, _schoolList$find4;
var user = _ref.user,
account = _ref.account,
globalSetting = _ref.globalSetting,
@ -404,6 +407,14 @@ var Edit = function Edit(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
studentName = _useState28[0],
setStudentName = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)([]),
_useState30 = slicedToArray_default()(_useState29, 2),
majorList = _useState30[0],
setMajorList = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
filterMajorList = _useState32[0],
setFilterMajorList = _useState32[1];
var _account$basicInfo = account.basicInfo,
basicInfo = _account$basicInfo === void 0 ? {} : _account$basicInfo;
// 已职业认证的账户不能修改职业,学校/单位,院系/部门true为disable
@ -414,8 +425,8 @@ var Edit = function Edit(_ref) {
visible: false
};
(0,_react_17_0_2_react.useEffect)(function () {
getSchoolOption();
}, []);
(basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.id) && getSchoolOption();
}, [basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.id]);
(0,_react_17_0_2_react.useEffect)(function () {
if (basicInfo !== null && basicInfo !== void 0 && basicInfo.identity && (basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.identity) === 'student' || !(basicInfo !== null && basicInfo !== void 0 && basicInfo.identity)) {
setStudentName('学号');
@ -435,7 +446,10 @@ var Edit = function Edit(_ref) {
case 2:
res = _context.sent;
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
case 4:
setFilterDepartmentList(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.departments.filter(function (e) {
return e.name.includes((basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.department_name) || '');
})));
case 5:
case "end":
return _context.stop();
}
@ -457,7 +471,10 @@ var Edit = function Edit(_ref) {
res = _context2.sent;
setSchoolLoading(false);
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
case 6:
setFilterSchoolList(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.schools.filter(function (e) {
return e.name.includes((basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.school_name) || '');
})));
case 7:
case "end":
return _context2.stop();
}
@ -467,17 +484,89 @@ var Edit = function Edit(_ref) {
return _ref3.apply(this, arguments);
};
}();
var getDepartmentOption = function getDepartmentOption(schoolId) {
if (!schoolId) {
return;
}
return dispatch({
type: 'account/getDepartmentOption',
payload: {
id: schoolId
}
});
};
(0,_react_17_0_2_react.useEffect)(function () {
handleSetMajorList();
}, [departmentList]);
console.log(departmentList, 'departmentList');
//专业
var handleSetMajorList = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(change) {
var _schoolList$find, _departmentList$find;
var schoolId, departmentId, res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
schoolId = (_schoolList$find = schoolList.find(function (item) {
return item.name === form.getFieldValue('school');
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
departmentId = departmentList === null || departmentList === void 0 || (_departmentList$find = departmentList.find(function (item) {
return item.name === form.getFieldValue('department');
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
if (!departmentId) {
_context3.next = 8;
break;
}
if (change) {
form.setFieldsValue({
major_name: ''
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
major_name: ''
}));
}
_context3.next = 6;
return (0,fetch/* default */.ZP)("/api/schools/".concat(schoolId, "/departments/").concat(departmentId, "/major_option.json"), {
method: 'get'
});
case 6:
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
setMajorList(res === null || res === void 0 ? void 0 : res.majors);
setFilterMajorList(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.majors.filter(function (e) {
return e.name.includes(form.getFieldValue('major_name') || '');
})));
}
case 8:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return function handleSetMajorList(_x) {
return _ref4.apply(this, arguments);
};
}();
var getDepartmentOption = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(schoolId) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (schoolId) {
_context4.next = 2;
break;
}
return _context4.abrupt("return", Promise.reject());
case 2:
_context4.next = 4;
return dispatch({
type: 'account/getDepartmentOption',
payload: {
id: schoolId
}
});
case 4:
return _context4.abrupt("return", _context4.sent);
case 5:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return function getDepartmentOption(_x2) {
return _ref5.apply(this, arguments);
};
}();
(0,_react_17_0_2_react.useEffect)(function () {
if (!account.basicInfo) {
return;
@ -497,7 +586,8 @@ var Edit = function Edit(_ref) {
brief_introduction: basicInfo.brief_introduction,
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者",
staff_id: basicInfo.staff_id
staff_id: basicInfo.staff_id,
major_name: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.department_major_name
// face_image:[{uid:'111',name:'111',url:basicInfo.face_image}]
};
if (basicInfo !== null && basicInfo !== void 0 && basicInfo.face_image) {
@ -554,15 +644,11 @@ var Edit = function Edit(_ref) {
}) || {}).id;
if (findSchoolId) {
handleSetDepartment(changedValues.school);
} else {
form.setFieldsValue({
department: ''
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
school: changedValues.school,
department: ''
}));
}
// else {
// form.setFieldsValue({ department: '' });
// setFormValue({ ...formValue, ...{ school: changedValues.school, department: '' } });
// }
}
if ((changedValues === null || changedValues === void 0 || (_changedValues$nickna = changedValues.nickname) === null || _changedValues$nickna === void 0 ? void 0 : _changedValues$nickna.length) <= 0) {
setShowRealName(true);
@ -588,51 +674,54 @@ var Edit = function Edit(_ref) {
});
};
var handleSetDepartment = /*#__PURE__*/function () {
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(school, departmentName) {
var _schoolList$find, _res$departments;
var findSchoolId, res, name;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(school, departmentName) {
var _schoolList$find2;
var findSchoolId, res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
findSchoolId = (_schoolList$find = schoolList.find(function (item) {
findSchoolId = (_schoolList$find2 = schoolList.find(function (item) {
return item.name === school;
})) === null || _schoolList$find === void 0 ? void 0 : _schoolList$find.id;
_context3.next = 3;
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
_context5.next = 3;
return getDepartmentOption(findSchoolId);
case 3:
_context3.t0 = _context3.sent;
if (_context3.t0) {
_context3.next = 6;
_context5.t0 = _context5.sent;
if (_context5.t0) {
_context5.next = 6;
break;
}
_context3.t0 = {};
_context5.t0 = {};
case 6:
res = _context3.t0;
res = _context5.t0;
setDepartmentList(res === null || res === void 0 ? void 0 : res.departments);
name = departmentName || (res === null || res === void 0 || (_res$departments = res.departments) === null || _res$departments === void 0 || (_res$departments = _res$departments[0]) === null || _res$departments === void 0 ? void 0 : _res$departments.name);
setFilterDepartmentList(toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.departments));
// const name = departmentName || res?.departments?.[0]?.name;
form.setFieldsValue({
department: name
department: '',
major_name: ''
});
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {
school: school,
department: name
department: '',
major_name: ''
}));
case 11:
case "end":
return _context3.stop();
return _context5.stop();
}
}, _callee3);
}, _callee5);
}));
return function handleSetDepartment(_x, _x2) {
return _ref4.apply(this, arguments);
return function handleSetDepartment(_x3, _x4) {
return _ref6.apply(this, arguments);
};
}();
var handleSchoolSuccess = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(schoolName) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(schoolName) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
_context4.next = 2;
_context6.next = 2;
return getSchoolOption();
case 2:
form.setFieldsValue({
@ -645,52 +734,52 @@ var Edit = function Edit(_ref) {
}));
case 4:
case "end":
return _context4.stop();
return _context6.stop();
}
}, _callee4);
}, _callee6);
}));
return function handleSchoolSuccess(_x3) {
return _ref5.apply(this, arguments);
return function handleSchoolSuccess(_x5) {
return _ref7.apply(this, arguments);
};
}();
var handleCancelAuth = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(isRealNameAuth) {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
var _ref8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(isRealNameAuth) {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
modal/* default */.Z.confirm({
es_modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
title: isRealNameAuth ? '您已通过实名认证,修改姓名需要撤销实名认证,是否确定撤销?' : '您已通过职业认证,修改信息需要撤销职业认证,是否确定撤销?',
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _user$userInfo, _user$userInfo2;
var res, _user$userInfo3;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if (!isRealNameAuth) {
_context5.next = 6;
_context7.next = 6;
break;
}
_context5.next = 3;
_context7.next = 3;
return (0,service_account/* cancelAuthentication */.RA)({
login: (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login
});
case 3:
_context5.t0 = _context5.sent;
_context5.next = 9;
_context7.t0 = _context7.sent;
_context7.next = 9;
break;
case 6:
_context5.next = 8;
_context7.next = 8;
return (0,service_account/* cancelProfessionalCertification */.kN)({
login: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login
});
case 8:
_context5.t0 = _context5.sent;
_context7.t0 = _context7.sent;
case 9:
res = _context5.t0;
res = _context7.t0;
if (res) {
message/* default */.ZP.success(isRealNameAuth ? '撤销实名认证成功' : '撤销职业认证成功');
dispatch({
@ -702,9 +791,9 @@ var Edit = function Edit(_ref) {
}
case 11:
case "end":
return _context5.stop();
return _context7.stop();
}
}, _callee5);
}, _callee7);
}));
function onOk() {
return _onOk.apply(this, arguments);
@ -714,12 +803,12 @@ var Edit = function Edit(_ref) {
});
case 1:
case "end":
return _context6.stop();
return _context8.stop();
}
}, _callee6);
}, _callee8);
}));
return function handleCancelAuth(_x4) {
return _ref6.apply(this, arguments);
return function handleCancelAuth(_x6) {
return _ref8.apply(this, arguments);
};
}();
var educationBackound = function educationBackound() {
@ -734,19 +823,22 @@ var Edit = function Edit(_ref) {
});
};
var handleFinish = /*#__PURE__*/function () {
var _ref7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8(values) {
var _departmentList$find, _schoolList$find2;
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, department_id, school_id, basicInfo, titls, professionalFlags, _account$basicInfo6, _fileList$2, res, _account$basicInfo7, _user$userInfo7;
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9(values) {
var _departmentList$find2, _schoolList$find3, _majorList$find, _account$basicInfo4, _fileList$;
var nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, face_image, staff_id, major_name, department_id, school_id, major_id, basicInfo, titls, professionalFlags, modal, _modal, res, _account$basicInfo5, _user$userInfo4;
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id;
department_id = (_departmentList$find = departmentList.find(function (item) {
nickname = values.nickname, gender = values.gender, identity = values.identity, studentNo = values.studentNo, jobTitle = values.jobTitle, manager = values.manager, school = values.school, department = values.department, edu_background = values.edu_background, edu_entry_year = values.edu_entry_year, brief_introduction = values.brief_introduction, face_image = values.face_image, staff_id = values.staff_id, major_name = values.major_name;
department_id = (_departmentList$find2 = departmentList.find(function (item) {
return item.name === department;
})) === null || _departmentList$find === void 0 ? void 0 : _departmentList$find.id;
school_id = (_schoolList$find2 = schoolList.find(function (item) {
})) === null || _departmentList$find2 === void 0 ? void 0 : _departmentList$find2.id;
school_id = (_schoolList$find3 = schoolList.find(function (item) {
return item.name === school;
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id;
major_id = (_majorList$find = majorList.find(function (item) {
return item.name === major_name;
})) === null || _majorList$find === void 0 ? void 0 : _majorList$find.id;
basicInfo = account.basicInfo; //
// const [location, location_city] = city;
titls = [];
@ -786,132 +878,81 @@ var Edit = function Edit(_ref) {
if (department != basicInfo.department_name) {
professionalFlags.push('院系/部门');
}
if (major_name != basicInfo.department_major_name) {
professionalFlags.push('专业');
}
}
if (!(titls.length > 0 || professionalFlags.length > 0)) {
_context8.next = 12;
if (school_id) {
_context9.next = 12;
break;
}
modal/* default */.Z.confirm({
centered: true,
modal = es_modal/* default */.Z.confirm({
icon: null,
okText: '确定',
width: 600,
centered: true,
okText: '新增',
cancelText: '取消',
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(titls.toString().replaceAll(',', '、')).concat(titls.length > 0 && professionalFlags.length > 0 ? '、' : '').concat(professionalFlags.toString().replaceAll(',', '、'), "\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(titls.length > 0 ? '实名认证' : '').concat(titls.length > 0 && professionalFlags.length > 0 ? '和' : '').concat(professionalFlags.length > 0 ? '职业认证' : '', "\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539")
content: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u7CFB\u7EDF\u672A\u627E\u5230\u60A8\u586B\u5199\u7684\u5B66\u6821/\u5355\u4F4D\uFF0C\u662F\u5426\u7533\u8BF7\u65B0\u589E\u8BE5\u5355\u4F4D\uFF1F"
})
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var _account$basicInfo4, _fileList$;
var _user$userInfo4, _user$userInfo5, res, _account$basicInfo5, _user$userInfo6;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
if (!(titls.length > 0)) {
_context7.next = 3;
break;
}
_context7.next = 3;
return (0,service_account/* cancelAuthentication */.RA)({
login: (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login
});
case 3:
if (!(professionalFlags.length > 0)) {
_context7.next = 6;
break;
}
_context7.next = 6;
return (0,service_account/* cancelProfessionalCertification */.kN)({
login: (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.login
});
case 6:
_context7.next = 8;
return dispatch({
type: 'account/updateAccount',
payload: {
id: (_account$basicInfo4 = account.basicInfo) === null || _account$basicInfo4 === void 0 ? void 0 : _account$basicInfo4.id,
department_id: department_id,
gender: gender,
identity: identity,
location: location,
// location_city,
name: realName,
nickname: nickname,
school_id: school_id,
edu_background: edu_background,
edu_entry_year: edu_entry_year,
show_realname: showRealName,
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id
}
});
case 8:
res = _context7.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
_context7.next = 11;
break;
}
return _context7.abrupt("return");
case 11:
if (!res) {
_context7.next = 19;
break;
}
message/* default */.ZP.info('保存成功');
if (!((_account$basicInfo5 = account.basicInfo) !== null && _account$basicInfo5 !== void 0 && _account$basicInfo5.base_info_completed)) {
dispatch({
type: 'user/getUserInfo'
});
}
dispatch({
type: 'account/getBasicInfo',
payload: {
login: (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.login
}
});
if (!(identity !== saveIdentity && identity === 'teacher')) {
_context7.next = 17;
break;
}
return _context7.abrupt("return");
case 17:
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',
payload: {
key: '底部弹窗',
type: 4,
href: '/classrooms',
text: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002"
})
}
});
}
_umi_production_exports.history.push('/account/profile');
case 19:
case "end":
return _context7.stop();
}
}, _callee7);
}));
function onOk() {
return _onOk2.apply(this, arguments);
}
return onOk;
}()
onOk: handleApplySchool,
onCancel: function onCancel() {
modal.destroy();
}
});
_context8.next = 25;
break;
return _context9.abrupt("return");
case 12:
_context8.next = 14;
if (!(!!department && !department_id)) {
_context9.next = 15;
break;
}
_modal = es_modal/* default */.Z.confirm({
icon: null,
width: 600,
centered: true,
okText: '新增',
cancelText: '取消',
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u7CFB\u7EDF\u672A\u627E\u5230\u60A8\u586B\u5199\u7684\u9662\u7CFB/\u90E8\u95E8\uFF0C\u662F\u5426\u7533\u8BF7\u65B0\u589E\u8BE5\u90E8\u95E8\uFF1F"
})
}),
onOk: handleApplyDepartment,
onCancel: function onCancel() {
_modal.destroy();
}
});
return _context9.abrupt("return");
case 15:
if (!(!!major_name && !major_id)) {
_context9.next = 18;
break;
}
es_modal/* default */.Z.info({
icon: null,
width: 600,
centered: true,
okText: '我知道了',
title: '提示',
content: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u7CFB\u7EDF\u672A\u627E\u5230\u60A8\u586B\u5199\u7684\u4E13\u4E1A"
})
})
});
return _context9.abrupt("return");
case 18:
_context9.next = 20;
return dispatch({
type: 'account/updateAccount',
payload: {
id: (_account$basicInfo6 = account.basicInfo) === null || _account$basicInfo6 === void 0 ? void 0 : _account$basicInfo6.id,
id: (_account$basicInfo4 = account.basicInfo) === null || _account$basicInfo4 === void 0 ? void 0 : _account$basicInfo4.id,
department_id: department_id,
department_major_id: major_id || null,
gender: gender,
identity: identity,
location: location,
@ -926,23 +967,23 @@ var Edit = function Edit(_ref) {
brief_introduction: brief_introduction,
student_id: identity === 'student' ? studentNo : null,
technical_title: jobTitle || manager,
face_image: fileList === null || fileList === void 0 || (_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 || (_fileList$2 = _fileList$2.response) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.id
face_image: fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id
}
});
case 14:
res = _context8.sent;
case 20:
res = _context9.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
_context8.next = 17;
_context9.next = 23;
break;
}
return _context8.abrupt("return");
case 17:
return _context9.abrupt("return");
case 23:
if (!res) {
_context8.next = 25;
_context9.next = 31;
break;
}
message/* default */.ZP.info('保存成功');
if (!((_account$basicInfo7 = account.basicInfo) !== null && _account$basicInfo7 !== void 0 && _account$basicInfo7.base_info_completed)) {
if (!((_account$basicInfo5 = account.basicInfo) !== null && _account$basicInfo5 !== void 0 && _account$basicInfo5.base_info_completed)) {
dispatch({
type: 'user/getUserInfo'
});
@ -950,15 +991,15 @@ var Edit = function Edit(_ref) {
dispatch({
type: 'account/getBasicInfo',
payload: {
login: (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login
login: (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login
}
});
if (!(identity !== saveIdentity && identity === 'teacher')) {
_context8.next = 23;
_context9.next = 29;
break;
}
return _context8.abrupt("return");
case 23:
return _context9.abrupt("return");
case 29:
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',
@ -973,14 +1014,14 @@ var Edit = function Edit(_ref) {
});
}
_umi_production_exports.history.push('/account/profile');
case 25:
case 31:
case "end":
return _context8.stop();
return _context9.stop();
}
}, _callee8);
}, _callee9);
}));
return function handleFinish(_x5) {
return _ref7.apply(this, arguments);
return function handleFinish(_x7) {
return _ref9.apply(this, arguments);
};
}();
var modalSkip = function modalSkip() {
@ -1357,7 +1398,8 @@ var Edit = function Edit(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
size: "large",
onChange: function onChange(value) {
setFilterDepartmentList(departmentList.filter(function (item) {
handleSetMajorList(true);
setFilterDepartmentList(departmentList === null || departmentList === void 0 ? void 0 : departmentList.filter(function (item) {
return item.name.includes(value);
}));
},
@ -1370,6 +1412,41 @@ var Edit = function Edit(_ref) {
})
})
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4E13\u4E1A",
name: "major_name",
wrapperCol: {
span: 10
},
extra: !schoolLoading && formValue.major_name && !(majorList !== null && majorList !== void 0 && majorList.find(function (item) {
return item.name === formValue.major_name;
})) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Editmodules.schoolHintWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Editmodules.colorCDCDCD,
children: "\u672A\u67E5\u8BE2\u5230\u201C".concat(formValue.major_name, "\u201D\u4E13\u4E1A")
})
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
size: "large",
onChange: function onChange(value) {
setFilterMajorList(majorList.filter(function (item) {
return item.name.includes(value);
}));
},
children: filterMajorList.map(function (item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Option, {
value: item.name,
children: [item.name, (item === null || item === void 0 ? void 0 : item.status) == 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#FF8C29',
marginLeft: '5px'
},
children: "(\u5F85\u5BA1\u6838)"
})]
}, key);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6635\u79F0",
name: "nickname",
rules: [{
@ -1624,15 +1701,15 @@ var Edit = function Edit(_ref) {
payload: {}
});
},
schoolId: (_schoolList$find3 = schoolList.find(function (item) {
schoolId: (_schoolList$find4 = schoolList.find(function (item) {
return item.name === formValue.school;
})) === null || _schoolList$find3 === void 0 ? void 0 : _schoolList$find3.id,
})) === null || _schoolList$find4 === void 0 ? void 0 : _schoolList$find4.id,
schoolName: formValue.school,
departmentName: formValue.department,
onSuccess: function onSuccess(departmentName) {
return handleSetDepartment(formValue.school, departmentName);
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
centered: true,
destroyOnClose: true,
open: assistantVisible,
@ -1665,12 +1742,12 @@ var Edit = function Edit(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {})]
});
};
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref8) {
var user = _ref8.user,
account = _ref8.account,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting,
shixunHomeworks = _ref8.shixunHomeworks;
/* harmony default export */ var Profile_Edit = ((0,_umi_production_exports.connect)(function (_ref10) {
var user = _ref10.user,
account = _ref10.account,
loading = _ref10.loading,
globalSetting = _ref10.globalSetting,
shixunHomeworks = _ref10.shixunHomeworks;
return {
user: user,
account: account,

File diff suppressed because one or more lines are too long

@ -29,6 +29,7 @@
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ j_: function() { return /* binding */ getDownFiles; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
@ -907,16 +908,37 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref31.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params, type) {
var res;
var getDownFiles = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
console.log('----------', '调用下载');
_context32.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params.id, "/export_data.json"),
query: params
}));
case 3:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function getDownFiles(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context32.sent;
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
@ -937,12 +959,12 @@ var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
// hideLoading();
case 4:
case "end":
return _context32.stop();
return _context33.stop();
}
}, _callee32);
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x34, _x35) {
return _ref32.apply(this, arguments);
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -275,7 +275,6 @@ function Addteans(_ref) {
personname = _useState2[0],
setpersonname = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
className: "modal_styles",
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
style: {
@ -297,7 +296,7 @@ function Addteans(_ref) {
}
})]
}),
open: isAddmodle,
visible: isAddmodle,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
@ -314,15 +313,13 @@ function Addteans(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span", {
style: {
fontSize: '14px',
color: '#F73737',
marginLeft: '10px'
color: '#F73737'
},
children: "*"
}), "\u961F\u540D\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p", {
style: {
marginTop: '15px',
marginLeft: '10px',
marginRight: '10px'
marginLeft: '15px'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
placeholder: "请输入队名",
@ -371,7 +368,6 @@ function Jointeam(_ref) {
code = _useState2[0],
setCode = _useState2[1];
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(antd__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
className: "modal_styles",
centered: true,
title: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
style: {
@ -393,7 +389,7 @@ function Jointeam(_ref) {
}
})]
}),
open: isjoin,
visible: isjoin,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
@ -409,10 +405,10 @@ function Jointeam(_ref) {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("p", {
style: {
marginLeft: '10px',
marginTop: '15px',
marginLeft: '15px',
display: 'flex',
alignItems: 'center',
marginRight: '10px'
alignItems: 'center'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span", {
style: {
@ -485,14 +481,12 @@ var skeleton = __webpack_require__(56511);
var list = __webpack_require__(73755);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(53864);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(14491);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
;// CONCATENATED MODULE: ./src/pages/Competitions/Index/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___KHcKj","flex_space_between":"flex_space_between___rpKE6","flex_box_vertical_center":"flex_box_vertical_center___aBwFB","flex_box_center_end":"flex_box_center_end___eszEn","flex_box_column":"flex_box_column___y2rDr","wrp":"wrp___b6xZq","tabsWrap":"tabsWrap___rNsVP","searchWrap":"searchWrap___NzDrD","search":"search___O3S5n","searchIcon":"searchIcon___S8AXh","btns":"btns___gL_1J","searchWrap_right":"searchWrap_right___GVEny","description":"description____uPzl","bg":"bg___lqNd2","list":"list___JU4aR","status":"status___d75lJ","desc":"desc___NuO07","flex1":"flex1___ibscW","item":"item___E2e6I","footer":"footer___az6N2","bottomText":"bottomText___XT9Es","CompetitionsList":"CompetitionsList___BU3Jl","shadow":"shadow___kJYAn","signup":"signup___UmfzR","CompetitionsListzhezhao":"CompetitionsListzhezhao___E2v5E","divimg":"divimg___R3hKI","commonTextBox":"commonTextBox___C7Stw","havetext":"havetext___Q_Zdl","Finishedtext":"Finishedtext___zMGI8","Comingtext":"Comingtext___cJOQk","info":"info___eIwYF","bonus":"bonus___eKcia","rmb":"rmb___4wccY","applyInfo":"applyInfo___sqck8","task_hide":"task_hide___MQUVb","task_hide_2":"task_hide_2___MoAlk","Unpublishedtext":"Unpublishedtext___tqsH6","checkboxtitle":"checkboxtitle___iwuEz","scoremodal":"scoremodal____yQdA","title":"title___jb7xW","content":"content___NsK20","bottom":"bottom___CyoKb","yes":"yes___s2kKh","no":"no___Adxtg","baseFormItem":"baseFormItem___rawKU","jsinput":"jsinput___XEFKk"});
@ -502,8 +496,8 @@ var NoData = __webpack_require__(2006);
var env = __webpack_require__(44394);
// EXTERNAL MODULE: ./src/components/AuthenticationModel/index.tsx
var AuthenticationModel = __webpack_require__(88639);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(14477);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
@ -1200,8 +1194,8 @@ var Statistics_competitionsPage = function competitionsPage(_ref) {
user: user
};
})(Statistics_competitionsPage));
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/components/HomeModal/Advertisement.tsx + 1 modules
var Advertisement = __webpack_require__(71114);
;// CONCATENATED MODULE: ./src/assets/images/competition/competition-banner.png
@ -1210,8 +1204,6 @@ var competition_banner_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAAN
var JoinModel = __webpack_require__(23371);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx
var Addteams = __webpack_require__(8873);
// EXTERNAL MODULE: ./src/pages/Competitions/components/PhoneModal.tsx
var PhoneModal = __webpack_require__(53899);
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(90697);
;// CONCATENATED MODULE: ./src/pages/Competitions/Index/robot.png
@ -1243,9 +1235,6 @@ var Index_excluded = ["competitions", "globalSetting", "loading", "dispatch", "u
@ -1359,9 +1348,6 @@ var Index_competitionsPage = function competitionsPage(_ref) {
payload: objectSpread2_default()({}, competitions.listParams)
});
}, [competitions.name]);
(0,_react_17_0_2_react.useEffect)(function () {
(0,util/* setDocumentTitle */.Dk)('在线竞赛');
});
(0,_react_17_0_2_react.useEffect)(function () {
if (location.pathname.includes('list')) {
setbtnShow(false);
@ -1385,8 +1371,8 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
function _gotocourse() {
_gotocourse = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(e, item, url) {
var _user$userInfo5;
var res, result, _user$userInfo6, data;
var _user$userInfo3;
var res, result, _user$userInfo4, data;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
@ -1403,7 +1389,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}
return _context3.abrupt("return");
case 4:
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.authentication))) {
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.authentication))) {
_context3.next = 7;
break;
}
@ -1514,7 +1500,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
});
return _context3.abrupt("return");
case 41:
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo6 = user.userInfo) !== null && _user$userInfo6 !== void 0 && _user$userInfo6.authentication))) {
if (!(item !== null && item !== void 0 && item.is_authentication && !(user !== null && user !== void 0 && (_user$userInfo4 = user.userInfo) !== null && _user$userInfo4 !== void 0 && _user$userInfo4.authentication))) {
_context3.next = 44;
break;
}
@ -1857,38 +1843,42 @@ var Index_competitionsPage = function competitionsPage(_ref) {
width: "100%"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* Banner */.jL, {
title: identifier ? competitions.competition_title : "竞赛组织",
sunTitle: identifier ? '' : '激发创新活力,培养软件人才',
title: "考试预约",
sunTitle: '',
img: competitions.listParams.url_suffix_name && competitions.banner ? '' : competition_banner_namespaceObject,
imgWidth: 438,
bannerExtraContent: btnshow && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.btns,
children: [{
name: '创建竞赛',
click: function click() {
var _user$userInfo3, _user$userInfo4;
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
return;
}
if ((0,authority/* isSuperAdmins */.Ny)() || (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.professional_certification && (_user$userInfo4 = user.userInfo) !== null && _user$userInfo4 !== void 0 && _user$userInfo4.is_teacher) {
form.setFieldValue('name', '');
setiscreate(true);
} else {
message/* default */.ZP.info("当前仅支持已职业认证的教师可创建");
}
}
}, {
name: '新手指引',
sign: true,
click: function click() {
window.open(env/* default */.Z.API_SERVER + "/images/educoder/competitions/\u7ADE\u8D5B\u65B0\u624B\u6307\u5F15.pdf");
}
}, {
name: '证书查询',
click: function click() {
setcertificate(true);
}
}].map(function (e, i) {
children: [
// {
// name: '创建竞赛',
// click: () => {
// if (!handleVerify(dispatch)) {
// return;
// }
// if (isSuperAdmins() || (user.userInfo?.professional_certification && user.userInfo?.is_teacher)) {
// form.setFieldValue('name', '')
// setiscreate(true)
// } else {
// message.info("当前仅支持已职业认证的教师可创建")
// }
// }
// },
// {
// name: '新手指引',
// sign: true,
// click: () => {
// window.open(Env.API_SERVER + `/images/educoder/competitions/竞赛新手指引.pdf`)
// }
// },
// {
// name: '证书查询',
// click: () => {
// setcertificate(true)
// }
// },
].map(function (e, i) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
onClick: e.click,
children: [e.name, e.sign ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
@ -1909,7 +1899,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.searchWrap,
children: identifier ? '' : !globalSetting.isSaiaDomain && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u7ADE\u8D5B\u540D\u79F0",
placeholder: "\u8F93\u5165\u8003\u8BD5\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
size: "large",
className: Indexmodules.search
// value={keyword}
@ -1948,16 +1938,14 @@ var Index_competitionsPage = function competitionsPage(_ref) {
}, "nearly_published"), /*#__PURE__*/(0,jsx_runtime.jsx)(Index_TabPane, {
tab: "\u8FDB\u884C\u4E2D"
}, "progressing"), /*#__PURE__*/(0,jsx_runtime.jsx)(Index_TabPane, {
tab: "\u5F80\u671F\u6BD4\u8D5B"
}, "ended"), user.userInfo.user_id !== 2 && /*#__PURE__*/(0,jsx_runtime.jsx)(Index_TabPane, {
tab: "\u6211\u7684\u7ADE\u8D5B"
}, "mine"), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)(Index_TabPane, {
tab: "\u6570\u636E\u7EDF\u8BA1"
}, "statistics")]
tab: "\u5F80\u671F\u8003\u8BD5"
}, "ended"), /*#__PURE__*/(0,jsx_runtime.jsx)(Index_TabPane, {
tab: "\u6211\u7684\u9884\u7EA6"
}, "my")]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.searchWrap_right,
children: isStatistics ? '' : competitions.listParams.url_suffix_name ? !globalSetting.isSaiaDomain && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
placeholder: "\u8BF7\u8F93\u5165\u7ADE\u8D5B\u540D\u79F0",
placeholder: "\u8F93\u5165\u8003\u8BD5\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
size: "large",
className: Indexmodules.search
// value={keyword}
@ -2008,160 +1996,91 @@ var Index_competitionsPage = function competitionsPage(_ref) {
},
children: competitions.competitions && /*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z, {
itemLayout: "vertical",
size: 'middle',
size: "large",
dataSource: competitions.competitions,
style: {
paddingTop: 10
},
renderItem: function renderItem(item, key) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.CompetitionsList,
children: [item.competition_status === 'nearly_published' ? item.permission.editable == true ? '' : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: [item.competition_status === "nearly_published" ? item.permission.editable == true ? "" : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.CompetitionsListzhezhao,
children: "\u5373\u5C06\u53D1\u5E03 \u656C\u8BF7\u671F\u5F85"
}) : '', /*#__PURE__*/(0,jsx_runtime.jsxs)(list/* default */.Z.Item, {
}) : "", /*#__PURE__*/(0,jsx_runtime.jsxs)(list/* default */.Z.Item, {
onClick: function onClick() {
return onListClick(item);
return tourl(item.competition_status === "ended" ? "/competitions/index/".concat(item.identifier) : item.competition_status === "nearly_published" ? item.permission.editable == true ? "/competitions/index/".concat(item.identifier) : null : item.competition_status === "progressing" ? "/competitions/index/".concat(item.identifier) : null);
},
className: Indexmodules.shadow,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(list/* default */.Z.Item.Meta, {
style: {
marginBottom: '0px',
width: "87%"
marginBottom: '0px'
},
avatar: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
className: Indexmodules.divimg,
src: item && item.image ? "".concat(env/* default */.Z.IMG_SERVER) + item.image : ImagesIcon/* mainbannerBg */.I2
}),
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
alignItems: 'center',
display: 'flex'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item.name, item.sub_title ? "\u2014\u2014".concat(item.sub_title) : '']
}),
title: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [item.name, item.sub_title ? "\u2014\u2014".concat(item.sub_title) : '']
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
style: {
alignItems: 'center',
display: 'flex'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
className: Indexmodules.task_hide,
children: [item.name, item.sub_title ? "\u2014\u2014".concat(item.sub_title) : '']
})
}), item.competition_status && item.competition_status === 'nearly_published' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Comingtext),
children: "\u5373\u5C06\u53D1\u5E03"
}) : '', item.competition_status && item.competition_status === 'preparing' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#DB780F',
border: '1px solid #FDDBB7'
},
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Finishedtext),
children: "\u5F85\u5BA1\u6838"
}) : '', item.competition_status && item.competition_status === 'not_passed' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#E30000',
border: '1px solid #FFC7C7'
},
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Finishedtext),
children: "\u88AB\u9A73\u56DE"
}) : '', item.competition_status && item.competition_status === 'review' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
})
}),
description: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
className: Indexmodules.task_hide_2,
style: {
color: '#4237E7',
border: '1px solid #B6B1FF'
height: '43px',
fontSize: '14px',
color: '#666666'
},
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Finishedtext),
children: "\u5BA1\u6838\u4E2D"
}) : '', item.competition_status && item.competition_status === 'progressing' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item.description ? item.description : '暂无简介~'
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
color: '#00B187',
border: '1px solid #B1F0E1'
marginTop: '12px',
fontSize: '12px',
color: '#888888'
},
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.havetext),
children: "\u8FDB\u884C\u4E2D"
}) : '', item.competition_status && item.competition_status === 'ended' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Finishedtext),
children: "\u5DF2\u7ED3\u675F"
}) : '', item.competition_status && item.competition_status === 'unpublish' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Indexmodules.commonTextBox, " ").concat(Indexmodules.Finishedtext),
children: "\u672A\u53D1\u5E03"
}) : '']
}),
description: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.description,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item.description ? item.description : '暂无简介~'
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Indexmodules.task_hide_2,
style: {
height: '43px',
fontSize: '14px',
color: '#666666'
},
children: item.description ? item.description : '暂无简介~'
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.bottomText,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7ADE\u8D5B\u65F6\u95F4\uFF1A", item.start_time, "\uFF5E", item.end_time]
children: ["\u8003\u8BD5\u65F6\u95F4: ", item.start_time, "\uFF5E", item.end_time]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
marginLeft: '10px'
marginLeft: '20px'
},
children: ["\u62A5\u540D\u622A\u6B62\u65F6\u95F4\uFF1A", item && item.enroll_end_time ? item.enroll_end_time : '暂无']
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
marginLeft: '10px'
},
children: ["\u6D4F\u89C8\u6570\uFF1A", item && item.visits_count ? item.visits_count : 0]
children: ["\u8003\u8BD5\u9884\u7EA6\u622A\u6B62\u65F6\u95F4\uFF1A", item && item.enroll_end_time ? item.enroll_end_time : '暂无']
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: '13%',
width: '20%',
alignItems: 'flex-end',
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-around'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.info,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.bonus,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
textAlign: 'right'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
style: {
visibility: item && item.bonus ? 'visible' : 'hidden'
color: '#BBBBBB',
fontSize: '14px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Indexmodules.rmb,
children: "\xA5"
}), parseInt(item.bonus).toLocaleString()]
}), item.member_count ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Indexmodules.applyInfo,
children: ["\u5DF2\u62A5\u540D\uFF1A", item.competition_status === 'nearly_published' ? '0' : item.member_count]
}) : '']
}), item && item.competition_status === 'ended' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Indexmodules.Unpublishedtext,
onClick: function onClick(e) {
return noclick(e);
},
children: "\u5DF2\u7ED3\u675F"
}) : null, item && item.competition_status === 'nearly_published' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Indexmodules.Unpublishedtext,
onClick: function onClick(e) {
return noclick(e);
},
children: "\u672A\u53D1\u5E03"
}) : null, item && item.competition_status !== 'nearly_published' && item.enroll_end && item.competition_status !== 'ended' ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Indexmodules.Unpublishedtext,
onClick: function onClick(e) {
return noclick(e);
},
children: "\u62A5\u540D\u622A\u6B62"
}) : null, item && item.competition_status === 'progressing' && item.enroll_end != true && !item.external_url && item.enroll_end_time ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: Indexmodules.signup,
onClick: function onClick(e) {
return onLickSignUpClick(e, item);
},
children: item !== null && item !== void 0 && item.enrolled ? '已报名' : '立即报名'
}) : null]
children: [item.competition_status && item.competition_status === 'nearly_published' ? '即将开放预约' : '', item.competition_status && item.competition_status === 'progressing' && dayjs_min_default()() < dayjs_min_default()(item === null || item === void 0 ? void 0 : item.enroll_end_time) ? '预约进行中' : '', item.competition_status && item.competition_status === 'progressing' && dayjs_min_default()() > dayjs_min_default()(item === null || item === void 0 ? void 0 : item.enroll_end_time) ? '预约已截止' : '', item.competition_status && item.competition_status === 'ended' ? '考试已结束' : '']
})
})
})]
}, key)]
});
@ -2229,21 +2148,7 @@ var Index_competitionsPage = function competitionsPage(_ref) {
isAddmodle: isAddmodel,
setIsAdd: setIsAddmodel,
createTeam: addTeams
}) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(PhoneModal/* default */.Z, {
datas: datas,
isopen: isopen,
setisopen: setisopen,
isShowPhone: showphone,
setIsShowPhone: setshowphone,
user: user,
dispatch: dispatch,
onOK: function onOK() {
dispatch({
type: 'competitions/getList',
payload: objectSpread2_default()({}, competitions.listParams)
});
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
title: false,
footer: false,
open: iscreate,
@ -2518,490 +2423,6 @@ var Index_competitionsPage = function competitionsPage(_ref) {
};
})(Index_competitionsPage));
/***/ }),
/***/ 53899:
/*!**********************************************************!*\
!*** ./src/pages/Competitions/components/PhoneModal.tsx ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 8591);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 98135);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/fetch */ 91203);
/* harmony import */ var _utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/hooks/useInterval */ 42627);
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/util */ 97514);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/env */ 44394);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var phoneReg = /^1\d{10}$/;
function Addmodal(_ref) {
var isShowPhone = _ref.isShowPhone,
setIsShowPhone = _ref.setIsShowPhone,
user = _ref.user,
dispatch = _ref.dispatch,
onOK = _ref.onOK,
isopen = _ref.isopen,
setisopen = _ref.setisopen,
datas = _ref.datas;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
phone = _useState2[0],
setphone = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
PhoneValue = _useState4[0],
setPhoneValue = _useState4[1];
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(60),
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState5, 2),
countdown = _useState6[0],
setCountdown = _useState6[1];
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(),
_useState8 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState7, 2),
countdownFlag = _useState8[0],
setCountdownFlag = _useState8[1];
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
_useState10 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState9, 2),
isShowPoint = _useState10[0],
setIsShowPoint = _useState10[1];
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
_useState12 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState11, 2),
isShowUntie = _useState12[0],
setIsShowUntie = _useState12[1];
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),
_useState14 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState13, 2),
UntieValue = _useState14[0],
setUntieValue = _useState14[1];
var intervalId = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
return function () {
intervalId.current && clearInterval(intervalId.current);
};
}, []);
(0,_utils_hooks_useInterval__WEBPACK_IMPORTED_MODULE_5__/* .useInterval */ .Y)(function () {
if (!countdownFlag) {
return;
} else {
setCountdown(60);
}
if (countdown > 0) {
setCountdown(countdown - 1);
} else {
setCountdown(60);
setCountdownFlag(false);
intervalId.current && clearInterval(intervalId.current);
}
}, 1000);
var handleGetCode = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
var _user$userInfo;
var data, smscode, res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/users/accounts/".concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "/valid_phone.json"), {
method: 'get',
params: {
phone: phone
}
});
case 2:
data = _context.sent;
if (!((data === null || data === void 0 ? void 0 : data.status) === -1)) {
_context.next = 5;
break;
}
return _context.abrupt("return");
case 5:
if (!(data !== null && data !== void 0 && data.is_exists)) {
_context.next = 8;
break;
}
setIsShowPoint(true);
return _context.abrupt("return");
case 8:
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_6__/* .setmiyah */ .M)(phone);
_context.next = 11;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 3,
smscode: smscode
}
});
case 11:
res = _context.sent;
if (res.status === 1) {
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 13:
case "end":
return _context.stop();
}
}, _callee);
}));
return function handleGetCode() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
title: "\u5F3A\u5236\u89E3\u7ED1",
open: isShowUntie,
onCancel: function onCancel() {
return setIsShowUntie(false);
},
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
var _user$userInfo2;
var data;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (UntieValue) {
_context2.next = 3;
break;
}
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码不能为空');
return _context2.abrupt("return");
case 3:
_context2.next = 5;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/users/accounts/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/phone_force_unbind.json"), {
method: 'POST',
body: {
code: UntieValue,
phone: phone
}
});
case 5:
data = _context2.sent;
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('解绑成功');
setCountdownFlag(false);
setIsShowUntie(false);
onOK();
setIsShowPhone(false);
setUntieValue('');
}
case 7:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
style: {
padding: '8px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
children: "\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", phone]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
value: UntieValue,
size: 'middle',
onChange: function onChange(e) {
return setUntieValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, {
disabled: countdownFlag,
type: "primary",
size: 'middle',
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3() {
var smscode, res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
smscode = (0,_utils_util__WEBPACK_IMPORTED_MODULE_6__/* .setmiyah */ .M)(phone);
_context3.next = 3;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 10,
smscode: smscode
}
});
case 3:
res = _context3.sent;
if (res.status === 1) {
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
title: "\u63D0\u793A",
open: isShowPoint,
onCancel: function onCancel() {
setIsShowPoint(false);
},
okText: "\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",
okButtonProps: {
type: "primary",
ghost: true,
style: {
width: "124px"
}
},
onOk: function onOk() {
setIsShowUntie(true);
setIsShowPoint(false);
}
// footer={<div>
// <Button style={{textAlign:'end'}} type="primary" onClick={()=>setIsShowModal(false)}>确 定</Button>
// </div>}
,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
style: {
padding: '7px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
children: "\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("br", {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
style: {
marginTop: '1em',
display: 'flex'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
style: {
flex: '1'
},
children: "1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002"
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
style: {
marginTop: '1em',
display: 'flex'
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("span", {
style: {
flex: '1'
},
children: "2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09"
})
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
title: "\u7ED1\u5B9A\u624B\u673A\u53F7",
open: isShowPhone,
onCancel: function onCancel() {
return setIsShowPhone(false);
},
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4() {
var _ref6, login, res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (phoneReg.test(phone)) {
_context4.next = 3;
break;
}
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入有效的11位手机号码");
return _context4.abrupt("return");
case 3:
if (PhoneValue) {
_context4.next = 6;
break;
}
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入验证码");
return _context4.abrupt("return");
case 6:
_ref6 = user.userInfo || {}, login = _ref6.login;
_context4.next = 9;
return dispatch({
type: 'account/bindPhone',
payload: {
login: login,
phone: phone,
code: PhoneValue
}
});
case 9:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setIsShowPhone(false);
onOK();
}
case 11:
case "end":
return _context4.stop();
}
}, _callee4);
})),
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
style: {
padding: '8px 24px'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
children: "\u5E73\u53F0\u5DF2\u68C0\u6D4B\u5230\u60A8\u672A\u7ED1\u5B9A\u624B\u673A\u53F7\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u4F7F\u7528\u62A5\u540D\u529F\u80FD\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
children: ["\u4F60\u7684\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
size: 'middle',
value: phone,
onChange: function onChange(e) {
return setphone(e.target.value);
},
style: {
width: '240px'
}
})]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("p", {
children: ["\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
size: 'middle',
value: PhoneValue,
onChange: function onChange(e) {
return setPhoneValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, {
disabled: countdownFlag,
type: "primary",
size: 'middle',
onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (phoneReg.test(phone)) {
_context5.next = 3;
break;
}
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.info("请输入有效的11位手机号码");
return _context5.abrupt("return");
case 3:
handleGetCode();
case 4:
case "end":
return _context5.stop();
}
}, _callee5);
})),
children: countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码'
})]
})]
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
open: isopen,
footer: false,
onCancel: function onCancel() {
return setisopen(false);
},
centered: true,
width: 460,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
style: {
marginTop: 50,
fontSize: 26,
color: '#3d3d3d',
textAlign: 'center',
marginBottom: 20
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("i", {
style: {
fontSize: 26,
color: '#52C41A'
},
className: "iconfont icon-tongguo"
}), " \u62A5\u540D\u6210\u529F"]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
style: {
alignItems: 'center',
textAlign: 'center'
},
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("img", {
style: {
width: 180,
border: '1px solid #eeeeef',
padding: 10,
marginBottom: 20
},
src: _utils_env__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.IMG_SERVER + (datas === null || datas === void 0 ? void 0 : datas.QR_code)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("p", {
style: {
color: '#AAAAAA'
},
children: "\u53C2\u8D5B\u8005\u53EF\u626B\u7801\u52A0\u5165\u5927\u8D5B\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF0C\u83B7\u53D6\u6700\u65B0\u7ADE\u8D5B\u901A\u77E5"
})]
})]
})
})]
});
}
/* harmony default export */ __webpack_exports__.Z = (Addmodal);
/***/ }),
/***/ 42627:
/*!*****************************************!*\
!*** ./src/utils/hooks/useInterval.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Y: function() { return /* binding */ useInterval; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useInterval(callback, delay) {
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
// 保存新回调
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
/***/ })
}]);

@ -194,8 +194,8 @@ var SvgStar = function SvgStar(props) {
/* harmony default export */ var star = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTUuNTAzIDIxLjg5NmEyLjA2NyAyLjA2NyAwIDAgMS0uODctLjIwMSA0NTEuOTg3IDQ1MS45ODcgMCAwIDEtNC4zNzYtMi4xMWMtMS40NjYuNjktMi45MzEgMS4zODQtNC4zOTYgMi4wOC0uNjc0LjI5OS0xLjMzLjI2LTEuODE2LS4wOTYtLjQ1OC0uMzM1LS42ODUtLjkxMi0uNjI0LTEuNTc5LjE3My0xLjU2LjQ2NS0zLjY5My41NzQtNC40ODVhMTg4LjAyOSAxODguMDI5IDAgMCAxLTMuNTg3LTMuOTIyIDEuNSAxLjUgMCAwIDEtLjMtMS41MWMuMjEzLS41NzQuNzYtLjk4MiAxLjQ3Mi0xLjA4Nmw0LjY1NS0uODUzQTUxMi45NSA1MTIuOTUgMCAwIDEgOC43ODcgMy43M2MuNzE3LTEuMzQ0IDEuNDI2LTEuMzQ0IDEuOC0xLjIwOS40MDcuMTM0Ljc5Mi41MzEgMS4xNzcgMS4yMjMuODI5IDEuNDMzIDIuMDggMy42NDIgMi41MDQgNC4zOTFsNC42MS44NThjLjY3OC4xIDEuMjE4LjUwNyAxLjQyOCAxLjA4NGExLjUwNyAxLjUwNyAwIDAgMS0uMjg2IDEuNTA0IDE5Mi44MDggMTkyLjgwOCAwIDAgMS0zLjU1NiAzLjk0NGMuMTA0Ljc4OC4zODggMi45MjcuNTczIDQuNDc5LjA3MS42ODUtLjE1MiAxLjI2OS0uNjE2IDEuNjA5YTEuNTUgMS41NSAwIDAgMS0uOTE2LjI4NGgtLjAwMloiIGZpbGw9IiM1MDkxRkYiLz48cGF0aCBkPSJNMjEuNzA2IDQuNDYyYS41NTcuNTU3IDAgMCAxLS4yNDcuMDczYy0uNDUuMDMtMS4xMjIuMDY3LTEuMzk3LjA4bC0uNzc4IDEuMmMtLjEyMi4xOC0uMjkuMjY1LS40NjQuMjQtLjE2My0uMDItLjMwNi0uMTQtLjM5LS4zMjlhNjAuODEgNjAuODEgMCAwIDEtLjUyOS0xLjI3OCA1My4wMDkgNTMuMDA5IDAgMCAxLTEuNDc2LS41MTguNDc1LjQ3NSAwIDAgMS0uMy0uMzYuNTMzLjUzMyAwIDAgMSAuMi0uNTA1bDEuMDI1LS45MWMtLjAxMS0uNTE2LS4wMi0xLjAzMi0uMDI4LTEuNTQ4LS4wMjQtLjQ2My4xNS0uNTY4LjI2NC0uNTg1LjEyMS0uMDI2LjI3NS4wMjQuNDc0LjE1MS40MTkuMjYyIDEuMDYuNjY3IDEuMjc3LjgwNGwxLjI3LS40NDhhLjQ5LjQ5IDAgMCAxIC41MTUuMDhjLjEyNC4xMS4xODMuMjguMTU1LjQ0MS0uMDkuNTI2LS4xODYgMS4wNTItLjI5IDEuNTc0LjE0NS4xOTQuNTM2LjcyMi44MTQgMS4xMS4xMi4xNzIuMTUyLjM2LjA4OC41MThhLjQzNS40MzUgMCAwIDEtLjE4NS4yMWguMDAyWk0yLjg1OSA1LjgzYS4yODcuMjg3IDAgMCAxLS4wOTMtLjA5MSA2Mi4xNyA2Mi4xNyAwIDAgMS0uMzgyLS42MDMgNDkuOTkgNDkuOTkgMCAwIDAtLjctLjA0NWMtLjEwNi0uMDEtLjE4NS0uMDYzLS4yMTgtLjE0NmEuMjc2LjI3NiAwIDAgMSAuMDQtLjI1NWMuMTQtLjE5Ny4zMzQtLjQ2LjQwNy0uNTU3YTI4LjM5NyAyOC4zOTcgMCAwIDEtLjE0OS0uNzg2LjI0My4yNDMgMCAwIDEgLjA3Ni0uMjIzLjI1LjI1IDAgMCAxIC4yNjQtLjAzN2wuNjQuMjI4Yy4xMDgtLjA2OC40MzEtLjI3LjY0NC0uMzk4LjE5LS4xMjguMjc4LS4wNzUuMzE0LS4wMy4wNC4wNDcuMDU5LjEyOC4wNTQuMjVsLS4wMTkuNzY4LjUwNi40NTNhLjI1OC4yNTggMCAwIDEgLjA5NS4yNDkuMjM4LjIzOCAwIDAgMS0uMTQ3LjE3OGMtLjI0NS4wOTItLjQ5LjE4LS43MzYuMjY1LS4wNDcuMTEzLS4xNzEuNDItLjI2NC42NC0uMDQ0LjA5NS0uMTE1LjE1OS0uMTk3LjE2OGEuMjA4LjIwOCAwIDAgMS0uMTM1LS4wMjhaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==");
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./node_modules/_echarts-wordcloud@1.1.3@echarts-wordcloud/index.js
var _echarts_wordcloud_1_1_3_echarts_wordcloud = __webpack_require__(56047);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js

@ -1,4 +1,5 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78684,49166,28247,19807],{
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[74287,28247,19807],{
/***/ 89136:
/*!*****************************************************************************************************!*\
@ -6,7 +7,6 @@
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -52,7 +52,6 @@ if (false) {}
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -98,7 +97,6 @@ if (false) {}
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ getRenderPropValue; }
/* harmony export */ });
@ -120,7 +118,6 @@ const getRenderPropValue = propValue => {
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -614,7 +611,6 @@ if (false) {}
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -774,7 +770,6 @@ Dropdown.Button = dropdown_button;
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1174,7 +1169,6 @@ input_Input.Password = input_Password;
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -1501,7 +1495,6 @@ if (false) {}
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
/* harmony export */ });
@ -1583,7 +1576,6 @@ const PurePanel = props => {
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
@ -1675,7 +1667,6 @@ Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MO
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 29878);
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 19447);
@ -1846,7 +1837,6 @@ const genWireframeStyle = token => {
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@ -2019,322 +2009,6 @@ const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ }),
/***/ 51581:
/*!****************************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
\****************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(/*! react */ 59301);
var _react2 = _interopRequireDefault(_react);
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var InfiniteScroll = function (_Component) {
_inherits(InfiniteScroll, _Component);
function InfiniteScroll(props) {
_classCallCheck(this, InfiniteScroll);
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
_this.scrollListener = _this.scrollListener.bind(_this);
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
return _this;
}
_createClass(InfiniteScroll, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.pageLoaded = this.props.pageStart;
this.options = this.eventListenerOptions();
this.attachScrollListener();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.isReverse && this.loadMore) {
var parentElement = this.getParentElement(this.scrollComponent);
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
this.loadMore = false;
}
this.attachScrollListener();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.detachScrollListener();
this.detachMousewheelListener();
}
}, {
key: 'isPassiveSupported',
value: function isPassiveSupported() {
var passive = false;
var testOptions = {
get passive() {
passive = true;
}
};
try {
document.addEventListener('test', null, testOptions);
document.removeEventListener('test', null, testOptions);
} catch (e) {
// ignore
}
return passive;
}
}, {
key: 'eventListenerOptions',
value: function eventListenerOptions() {
var options = this.props.useCapture;
if (this.isPassiveSupported()) {
options = {
useCapture: this.props.useCapture,
passive: true
};
}
return options;
}
// Set a defaut loader for all your `InfiniteScroll` components
}, {
key: 'setDefaultLoader',
value: function setDefaultLoader(loader) {
this.defaultLoader = loader;
}
}, {
key: 'detachMousewheelListener',
value: function detachMousewheelListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.scrollComponent.parentNode;
}
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'detachScrollListener',
value: function detachScrollListener() {
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = this.getParentElement(this.scrollComponent);
}
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
}
}, {
key: 'getParentElement',
value: function getParentElement(el) {
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
if (scrollParent != null) {
return scrollParent;
}
return el && el.parentNode;
}
}, {
key: 'filterProps',
value: function filterProps(props) {
return props;
}
}, {
key: 'attachScrollListener',
value: function attachScrollListener() {
var parentElement = this.getParentElement(this.scrollComponent);
if (!this.props.hasMore || !parentElement) {
return;
}
var scrollEl = window;
if (this.props.useWindow === false) {
scrollEl = parentElement;
}
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
if (this.props.initialLoad) {
this.scrollListener();
}
}
}, {
key: 'mousewheelListener',
value: function mousewheelListener(e) {
// Prevents Chrome hangups
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
if (e.deltaY === 1 && !this.isPassiveSupported()) {
e.preventDefault();
}
}
}, {
key: 'scrollListener',
value: function scrollListener() {
var el = this.scrollComponent;
var scrollEl = window;
var parentNode = this.getParentElement(el);
var offset = void 0;
if (this.props.useWindow) {
var doc = document.documentElement || document.body.parentNode || document.body;
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
if (this.props.isReverse) {
offset = scrollTop;
} else {
offset = this.calculateOffset(el, scrollTop);
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
}
// Here we make sure the element is visible as well as checking the offset
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
this.detachScrollListener();
this.beforeScrollHeight = parentNode.scrollHeight;
this.beforeScrollTop = parentNode.scrollTop;
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
if (typeof this.props.loadMore === 'function') {
this.props.loadMore(this.pageLoaded += 1);
this.loadMore = true;
}
}
}
}, {
key: 'calculateOffset',
value: function calculateOffset(el, scrollTop) {
if (!el) {
return 0;
}
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
}
}, {
key: 'calculateTopPosition',
value: function calculateTopPosition(el) {
if (!el) {
return 0;
}
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
}
}, {
key: 'render',
value: function render() {
var _this2 = this;
var renderProps = this.filterProps(this.props);
var children = renderProps.children,
element = renderProps.element,
hasMore = renderProps.hasMore,
initialLoad = renderProps.initialLoad,
isReverse = renderProps.isReverse,
loader = renderProps.loader,
loadMore = renderProps.loadMore,
pageStart = renderProps.pageStart,
ref = renderProps.ref,
threshold = renderProps.threshold,
useCapture = renderProps.useCapture,
useWindow = renderProps.useWindow,
getScrollParent = renderProps.getScrollParent,
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
props.ref = function (node) {
_this2.scrollComponent = node;
if (ref) {
ref(node);
}
};
var childrenArray = [children];
if (hasMore) {
if (loader) {
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
} else if (this.defaultLoader) {
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
}
}
return _react2.default.createElement(element, props, childrenArray);
}
}]);
return InfiniteScroll;
}(_react.Component);
InfiniteScroll.propTypes = {
children: _propTypes2.default.node.isRequired,
element: _propTypes2.default.node,
hasMore: _propTypes2.default.bool,
initialLoad: _propTypes2.default.bool,
isReverse: _propTypes2.default.bool,
loader: _propTypes2.default.node,
loadMore: _propTypes2.default.func.isRequired,
pageStart: _propTypes2.default.number,
ref: _propTypes2.default.func,
getScrollParent: _propTypes2.default.func,
threshold: _propTypes2.default.number,
useCapture: _propTypes2.default.bool,
useWindow: _propTypes2.default.bool
};
InfiniteScroll.defaultProps = {
element: 'div',
hasMore: false,
initialLoad: true,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: true,
isReverse: false,
useCapture: false,
loader: null,
getScrollParent: null
};
exports["default"] = InfiniteScroll;
module.exports = exports['default'];
/***/ }),
/***/ 26724:
/*!**************************************************************************************!*\
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
\**************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
/***/ })
}]);

@ -3044,6 +3044,7 @@ function updateMoopCase(id, params) {
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ j_: function() { return /* binding */ getDownFiles; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
@ -3922,16 +3923,37 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref31.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params, type) {
var res;
var getDownFiles = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
console.log('----------', '调用下载');
_context32.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params.id, "/export_data.json"),
query: params
}));
case 3:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function getDownFiles(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context32.sent;
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
@ -3952,12 +3974,12 @@ var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
// hideLoading();
case 4:
case "end":
return _context32.stop();
return _context33.stop();
}
}, _callee32);
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x34, _x35) {
return _ref32.apply(this, arguments);
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();

@ -492,8 +492,8 @@ var _umi_production_exports = __webpack_require__(87167);
var mediator = __webpack_require__(3521);
// EXTERNAL MODULE: ./src/pages/tasks/left-panel/discuss/service.js
var service = __webpack_require__(49051);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/tasks/left-panel/discuss/components/AiAnswer.tsx

@ -180,8 +180,8 @@ var PlusOutlined = __webpack_require__(22415);
var _umi_production_exports = __webpack_require__(87167);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(91203);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(3521);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
@ -1217,6 +1217,7 @@ var Head = function Head(_ref) {
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ j_: function() { return /* binding */ getDownFiles; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
@ -2095,16 +2096,37 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref31.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params, type) {
var res;
var getDownFiles = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
console.log('----------', '调用下载');
_context32.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params.id, "/export_data.json"),
query: params
}));
case 3:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function getDownFiles(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context32.sent;
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
@ -2125,12 +2147,12 @@ var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
// hideLoading();
case 4:
case "end":
return _context32.stop();
return _context33.stop();
}
}, _callee32);
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x34, _x35) {
return _ref32.apply(this, arguments);
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.bf8bb88c.js"></script>
<script src="/react/build/umi.43079359.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -490,8 +490,8 @@ var table = __webpack_require__(14491);
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddTeacher.tsx

@ -30,8 +30,8 @@ var _react_17_0_2_react = __webpack_require__(59301);
var config_provider = __webpack_require__(92736);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/locale/zh_CN.js + 4 modules
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(87167);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js

@ -92,9 +92,9 @@ if (false) {}
/***/ }),
/***/ 53871:
/***/ 39615:
/*!********************************************!*\
!*** ./src/layouts/index.tsx + 19 modules ***!
!*** ./src/layouts/index.tsx + 18 modules ***!
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -116,6 +116,9 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
@ -129,9 +132,6 @@ var modal = __webpack_require__(43418);
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(87167);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
@ -146,6 +146,8 @@ var es_button = __webpack_require__(3113);
var service_user = __webpack_require__(93318);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(14834);
// EXTERNAL MODULE: ./src/service/global.ts
var global = __webpack_require__(90697);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(14491);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/index.js + 3 modules
@ -226,23 +228,51 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
}];
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, from;
var _res2;
var res, _res, _res3, from;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return form.validateFields();
case 2:
_context.next = 4;
if (!(accountInfo !== null && accountInfo !== void 0 && accountInfo.code)) {
_context.next = 8;
break;
}
_context.next = 5;
return (0,service_user/* LoginForPhone */.Gq)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), {}, {
phone: accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.login
}, form.getFieldValue()));
case 5:
res = _context.sent;
_context.next = 17;
break;
case 8:
if (!(accountInfo !== null && accountInfo !== void 0 && accountInfo.user_token)) {
_context.next = 14;
break;
}
_context.next = 11;
return (0,service_user/* getUserInfo */.bG)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), {}, {
websiteName: "exercise_unlock"
}, form.getFieldsValue()));
case 11:
res = _context.sent;
_context.next = 17;
break;
case 14:
_context.next = 16;
return (0,service_user/* LoginIn */.Es)(objectSpread2_default()(objectSpread2_default()({}, accountInfo), form.getFieldValue()));
case 4:
case 16:
res = _context.sent;
case 17:
if (!res.status) {
_context.next = 12;
_context.next = 24;
break;
}
if (!(res.status === -4)) {
_context.next = 10;
_context.next = 22;
break;
}
dispatch({
@ -260,65 +290,65 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
}
});
return _context.abrupt("return");
case 10:
setErrorValue(res === null || res === void 0 ? void 0 : res.message);
case 22:
setErrorValue((_res = res) === null || _res === void 0 ? void 0 : _res.message);
return _context.abrupt("return");
case 12:
case 24:
setOpenModal(false);
if (res !== null && res !== void 0 && res.show) {
if ((_res2 = res) !== null && _res2 !== void 0 && _res2.show) {
localStorage.setItem('extension-modal', 'exist');
localStorage.setItem('extension-date', res === null || res === void 0 ? void 0 : res.start_date);
localStorage.setItem('extension-date', (_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.start_date);
} else {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 29;
_context.next = 41;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
if (!from) {
_context.next = 20;
_context.next = 32;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 27;
_context.next = 39;
break;
case 20:
if (password.test(accountInfo.password)) {
_context.next = 25;
case 32:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
_context.next = 37;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 27;
_context.next = 39;
break;
case 25:
window.location.reload();
case 37:
window.location.href = "/";
return _context.abrupt("return");
case 27:
_context.next = 37;
case 39:
_context.next = 49;
break;
case 29:
if (password.test(accountInfo.password)) {
_context.next = 35;
case 41:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
_context.next = 47;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
_umi_production_exports.history.replace('/account/secure?active=3');
window.location.href = '/account/secure?active=3';
dispatch({
type: 'user/showPopLogin',
payload: {
showPopLogin: false
}
});
_context.next = 37;
_context.next = 49;
break;
case 35:
case 47:
window.location.reload();
return _context.abrupt("return");
case 37:
case 49:
form.resetFields();
case 38:
case 50:
case "end":
return _context.stop();
}
@ -416,6 +446,7 @@ var _crypto_js_4_1_1_crypto_js_default = /*#__PURE__*/__webpack_require__.n(_cry
var LoginForm_inputStyle = {
height: 48,
borderRadius: 4
@ -449,6 +480,16 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
openUnlockLogin = _useState8[0],
setOpenUnlockLogin = _useState8[1];
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
var _useState9 = (0,_react_17_0_2_react.useState)(''),
_useState10 = slicedToArray_default()(_useState9, 2),
cqu_url = _useState10[0],
setcquurl = _useState10[1];
(0,_react_17_0_2_react.useEffect)(function () {
(0,global/* getGlobalSetting */.D2)().then(function (res) {
var _res$setting;
setcquurl(res === null || res === void 0 || (_res$setting = res.setting) === null || _res$setting === void 0 ? void 0 : _res$setting.login_url);
});
}, []);
var onFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(values) {
var newValues, iv, ciphertext, res, from;
@ -664,6 +705,16 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
style: LoginForm_inputStyle,
children: "\u767B\u5F55"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
style: {
textAlign: 'center'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
rel: "noopener noreferrer",
className: "login_style",
href: cqu_url,
children: "\u7EDF\u4E00\u8BA4\u8BC1\u767B\u5F55"
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(UnlockLogin, {
open: openUnlockLogin,
@ -1934,8 +1985,6 @@ var tabs = __webpack_require__(99313);
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
;// CONCATENATED MODULE: ./src/assets/images/xiamendaxuelogo.png
var xiamendaxuelogo_namespaceObject = __webpack_require__.p + "static/xiamendaxuelogo.048f6ae2.png";
;// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.tsx
@ -1952,7 +2001,6 @@ var xiamendaxuelogo_namespaceObject = __webpack_require__.p + "static/xiamendaxu
var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var LoginPanel = (function (_ref) {
var dispatch = _ref.dispatch,
@ -2151,37 +2199,15 @@ var TabPane = tabs/* default */.Z.TabPane;
defaultActiveKey: type,
onChange: callback,
className: LoginPanelmodules.tabs,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(TabPane, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TabPane, {
tab: "\u8D26\u53F7\u767B\u5F55",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt20",
children: type === '1' && /*#__PURE__*/(0,jsx_runtime.jsx)(LoginForm, {
setusername: setusername,
setType: setLoginType
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
position: 'absolute',
top: '-80px',
right: '10px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
target: "_blank",
href: "https://ids.xmu.edu.cn/authserver/login?service=".concat(window.location.origin),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: xiamendaxuelogo_namespaceObject,
width: 40
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#333",
fontSize: "15px",
fontWeight: 500,
paddingLeft: "10px"
},
children: "\u7528\u53A6\u5927\u8D26\u53F7\u767B\u5F55"
})]
})
})]
})
}, "1")
});
break;
@ -2740,8 +2766,8 @@ var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(99232);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
@ -2975,6 +3001,7 @@ var es = __webpack_require__(18353);
var _excluded = ["loading", "globalSetting", "user", "dispatch"];
@ -2995,6 +3022,7 @@ var _excluded = ["loading", "globalSetting", "user", "dispatch"];
dayjs_min_default().locale('zh-cn');
var SimpleLayouts = function SimpleLayouts(_ref) {
var loading = _ref.loading,
@ -3005,6 +3033,10 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
var location = (0,_umi_production_exports.useLocation)();
var payload = (0,Header/* getCourseParam */.g)();
var globalLoading = globalSetting.globalLoading;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
showUnlock = _useState2[0],
setShowUnlock = _useState2[1];
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res;
@ -3054,7 +3086,15 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
if ((_res = res) !== null && _res !== void 0 && _res.username && location.pathname === '/login') {
_umi_production_exports.history.push("/");
}
case 15:
if (res.status === -5) {
setShowUnlock({
data: [res.message],
accountInfo: {
user_token: res.message.user_token
}
});
}
case 16:
case "end":
return _context.stop();
}
@ -3296,7 +3336,11 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
autoInsertSpaceInButton: false,
componentSize: "middle",
theme: antd_theme,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PopLogin, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(UnlockLogin, {
open: showUnlock ? true : false,
accountInfo: showUnlock === null || showUnlock === void 0 ? void 0 : showUnlock.accountInfo,
data: showUnlock === null || showUnlock === void 0 ? void 0 : showUnlock.data
}), /*#__PURE__*/(0,jsx_runtime.jsx)(User_BindAccountPanel, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_PodModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
size: 'middle',
spinning: globalLoading.show,
tip: globalLoading.text,

@ -201,8 +201,8 @@ function WechatQrcode(_ref2) {
})]
});
}
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
;// CONCATENATED MODULE: ./src/layouts/user/index.less
// extracted by mini-css-extract-plugin

@ -79,9 +79,6 @@
.formWrap___OyO5X span[class~='ant-upload-btn'] {
padding: 0px !important;
}
.formWrap___OyO5X [class~='ant-input-number-input'] {
height: 40px;
}
.flexRow___wW7jP {
display: flex;
flex-direction: row;
@ -269,72 +266,3 @@
justify-content: flex-end;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___IBr6x {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___n2Iz0 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___1umwO {
align-items: center;
box-align: center;
}
.flex_box_center_end___SRZYb {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___b90Da {
flex-direction: column;
box-orient: block-axis;
}
.form___V3fAH strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___V3fAH h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___V3fAH [class~='ant-form-item'] {
margin-bottom: 0;
}
.efficiency___Lmou1 {
background: #fafafa;
padding: 20px;
font-size: 12px;
position: relative;
}
.efficiency___Lmou1:before {
width: 0;
height: 0;
content: '';
position: absolute;
left: -20px;
top: 27px;
border-right: 15px solid #fafafa;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
div[class~="ant-modal-confirm-content"] {
margin-left: none;
}
.tip___hVaw_ {
color: #fb0303;
margin-left: 110px;
}

@ -1,51 +1,6 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[87260],{
/***/ 57703:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_PlusCircleOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// 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.4.2@@ant-design/icons-svg/es/asn/PlusCircleOutlined.js
// This icon file is generated automatically.
var PlusCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "plus-circle", "theme": "outlined" };
/* harmony default export */ var asn_PlusCircleOutlined = (PlusCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusCircleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var PlusCircleOutlined_PlusCircleOutlined = function PlusCircleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_PlusCircleOutlined
}));
};
/**![plus-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5NiA0ODBINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOGgxNTJ2MTUyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNTQ0aDE1MmM0LjQgMCA4LTMuNiA4LTh2LTQ4YzAtNC40LTMuNi04LTgtOHoiIC8+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusCircleOutlined_PlusCircleOutlined);
if (false) {}
/* harmony default export */ var icons_PlusCircleOutlined = (RefIcon);
/***/ }),
/***/ 13413:
/*!***************************************************************!*\
!*** ./src/pages/Account/Certification/index.tsx + 4 modules ***!
@ -481,21 +436,12 @@ var col = __webpack_require__(43604);
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js
var auto_complete = __webpack_require__(88522);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(94001);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
var date_picker = __webpack_require__(84291);
// EXTERNAL MODULE: ./src/pages/Account/components/AppplySchoolModal/index.tsx + 1 modules
var AppplySchoolModal = __webpack_require__(62359);
// EXTERNAL MODULE: ./src/pages/Account/components/AppplyDepartmentModal/index.tsx + 1 modules
var AppplyDepartmentModal = __webpack_require__(85563);
// EXTERNAL MODULE: ./src/assets/images/account/job.png
var job = __webpack_require__(51941);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(99232);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/Releasesetting.tsx
var Releasesetting = __webpack_require__(32695);
;// CONCATENATED MODULE: ./src/pages/Account/Certification/components/ProfessionalAuthModal.tsx
@ -515,11 +461,8 @@ var ProfessionalAuthModal_excluded = ["user", "account", "globalSetting", "loadi
var Option = es_select["default"].Option;
var ProfessionalAuthModal_Dragger = upload/* default */.Z.Dragger;
var TextArea = input/* default */.Z.TextArea;
var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
var _account$basicInfo3, _globalSetting$settin, _schoolList$find3;
var user = _ref.user,
@ -571,11 +514,7 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
_useState20 = slicedToArray_default()(_useState19, 2),
visibleAppplyDepartment = _useState20[0],
setVisibleAppplyDepartment = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(false),
_useState22 = slicedToArray_default()(_useState21, 2),
showtip = _useState22[0],
setShowTip = _useState22[1];
var flag = false;
;
(0,_react_17_0_2_react.useEffect)(function () {
getSchoolOption();
}, []);
@ -602,14 +541,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
}, _callee);
}))();
}, [(_account$basicInfo3 = account.basicInfo) === null || _account$basicInfo3 === void 0 ? void 0 : _account$basicInfo3.school_id]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!formValue.begin_class_start_time || !formValue.begin_class_end_time) {
if (flag) setShowTip(true);
} else {
setShowTip(false);
}
flag = true;
}, [formValue.begin_class_start_time, formValue.begin_class_end_time]);
var getSchoolOption = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
@ -651,13 +582,8 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
school: basicInfo.school_name,
department: basicInfo.department_name,
studentNo: basicInfo.student_id,
jobTitle: basicInfo.identity == 'teacher' ? basicInfo.student_id : '教授',
manager: basicInfo.identity == 'professional' ? basicInfo.student_id : '企业管理者',
contact_mobile: basicInfo.contact_mobile || basicInfo.phone,
begin_class_number: basicInfo.begin_class_number,
begin_class_start_time: basicInfo.begin_class_start_time,
begin_class_end_time: basicInfo.begin_class_end_time,
description: basicInfo.description
jobTitle: basicInfo.identity == "teacher" ? basicInfo.technical_title : "教授",
manager: basicInfo.identity == "professional" ? basicInfo.technical_title : "企业管理者"
};
form.setFieldsValue(formData);
setFormValue(formData);
@ -675,7 +601,7 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
setVisibleAppplyDepartment(true);
};
var handleValuesChange = function handleValuesChange(changedValues) {
setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), form.getFieldsValue()));
setFormValue(objectSpread2_default()({}, form.getFieldsValue()));
if ('school' in changedValues) {
setFilterSchoolList(schoolList.filter(function (item) {
return item.name.includes(changedValues.school);
@ -780,25 +706,18 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
var handleFinish = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(values) {
var _schoolList$find2, _departmentList$find, _account$basicInfo4, _user$userInfo;
var _ref7, school, department, identity, studentNo, jobTitle, manager, contact_mobile, begin_class_number, description, school_id, department_id, extra, res, _user$userInfo2;
var _ref7, school, department, identity, studentNo, jobTitle, manager, school_id, department_id, extra, res, _user$userInfo2;
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_ref7 = values || {}, school = _ref7.school, department = _ref7.department, identity = _ref7.identity, studentNo = _ref7.studentNo, jobTitle = _ref7.jobTitle, manager = _ref7.manager, contact_mobile = _ref7.contact_mobile, begin_class_number = _ref7.begin_class_number, description = _ref7.description;
if (!(!formValue.begin_class_start_time || !formValue.begin_class_end_time)) {
_context5.next = 4;
break;
}
setShowTip(true);
return _context5.abrupt("return");
case 4:
_ref7 = values || {}, school = _ref7.school, department = _ref7.department, identity = _ref7.identity, studentNo = _ref7.studentNo, jobTitle = _ref7.jobTitle, manager = _ref7.manager;
if (image) {
_context5.next = 7;
_context5.next = 4;
break;
}
message/* default */.ZP.info('请先上传照片!');
return _context5.abrupt("return");
case 7:
case 4:
school_id = (_schoolList$find2 = schoolList.find(function (item) {
return item.name === school;
})) === null || _schoolList$find2 === void 0 ? void 0 : _schoolList$find2.id;
@ -812,7 +731,7 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
} else {
extra = manager;
}
_context5.next = 12;
_context5.next = 9;
return dispatch({
type: 'account/applyProfessionalAuth',
payload: {
@ -821,21 +740,14 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
department_id: department_id,
identity: identity,
extra: extra,
attachment_ids: [fileId],
contact_mobile: contact_mobile,
begin_class_number: begin_class_number,
description: description,
begin_class_start_time: formValue.begin_class_start_time,
begin_class_end_time: formValue.begin_class_end_time
attachment_ids: [fileId]
}
});
case 12:
case 9:
res = _context5.sent;
handleClose();
if (res) {
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.info("申请已提交,请等待审核!");
}
message/* default */.ZP.info("申请已提交,请等待审核!");
setImage('');
dispatch({
type: 'account/getBasicInfo',
@ -844,7 +756,7 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
}
});
}
case 15:
case 12:
case "end":
return _context5.stop();
}
@ -1078,107 +990,6 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
}, key);
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "contact_mobile",
label: "\u8054\u7CFB\u65B9\u5F0F",
rules: [{
required: true,
pattern: /^1[3|4|5|7|8][0-9]\d{8}$/,
message: '请输入正确的手机号'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
placeholder: "\u8BF7\u586B\u5199\u8054\u7CFB\u65B9\u5F0F",
style: {
height: 40
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "begin_class_number",
label: "\u5F00\u8BFE\u4EBA\u6570",
rules: [{
required: true,
message: '请填写开课人数'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 1,
precision: 0,
controls: false,
style: {
width: '100%',
height: 40
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
name: "begin_class_time",
label: "\u5F00\u8BFE\u65F6\u95F4",
required: true,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
style: {
width: 235,
marginRight: '10px',
height: 40
},
disabledDate: function disabledDate(current) {
return (0,Releasesetting/* disabledDate */.Q8)(current, null);
},
disabledTime: function disabledTime(current) {
return (0,Releasesetting/* disabledTime */.d0)(current);
},
placeholder: '请选择开始时间',
showTime: {
format: 'HH:mm',
defaultValue: dayjs_min_default()((0,util/* HalfPastOne */.U6)(), 'HH:mm')
},
format: "YYYY-MM-DD HH:mm",
allowClear: false,
value: formValue.begin_class_start_time ? dayjs_min_default()(formValue.begin_class_start_time) : '',
onChange: function onChange(value, time) {
formValue.begin_class_start_time = time;
setFormValue(Object.assign({}, formValue));
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u81F3"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
style: {
width: 235,
marginLeft: '10px',
height: 40
},
placeholder: '请选择结束时间',
showTime: {
format: 'HH:mm',
defaultValue: dayjs_min_default()((0,util/* HalfPastOne */.U6)(), 'HH:mm')
},
format: "YYYY-MM-DD HH:mm",
allowClear: false,
disabledDate: function disabledDate(current) {
return (0,Releasesetting/* disabledDate */.Q8)(current, null, formValue.begin_class_start_time);
},
disabledTime: function disabledTime(current) {
return (0,Releasesetting/* disabledTime */.d0)(current, formValue.begin_class_start_time);
},
value: formValue.begin_class_end_time ? dayjs_min_default()(formValue.begin_class_end_time) : '',
onChange: function onChange(value, time) {
formValue.begin_class_end_time = time;
setFormValue(Object.assign({}, formValue));
}
}), showtip && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#ff4d4f',
position: 'absolute',
top: 40,
left: 0
},
children: "\u8BF7\u9009\u62E9\u5F00\u8BFE\u65F6\u95F4"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BF4\u660E",
name: "description",
required: true,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
placeholder: "\u8BF7\u586B\u5199\u5F00\u8BFE\u9700\u8981\u7684\u8F6F\u4EF6\u7B49\u4FE1\u606F",
rows: 4
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u804C\u4E1A\u8BC1\u4E0A\u4F20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -1239,26 +1050,8 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: "middle",
type: "primary"
// htmlType="submit"
,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
if (!formValue.begin_class_start_time || !formValue.begin_class_end_time) {
setShowTip(true);
}
_context6.next = 3;
return form.validateFields();
case 3:
handleFinish(form.getFieldsValue());
case 4:
case "end":
return _context6.stop();
}
}, _callee6);
})),
type: "primary",
htmlType: "submit",
loading: loading['account/applyProfessionalAuth'],
children: "\u63D0\u4EA4"
})]
@ -1307,11 +1100,11 @@ var ProfessionalAuthModal = function ProfessionalAuthModal(_ref) {
})]
});
};
/* harmony default export */ var components_ProfessionalAuthModal = ((0,_umi_production_exports.connect)(function (_ref9) {
var user = _ref9.user,
account = _ref9.account,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting;
/* harmony default export */ var components_ProfessionalAuthModal = ((0,_umi_production_exports.connect)(function (_ref8) {
var user = _ref8.user,
account = _ref8.account,
loading = _ref8.loading,
globalSetting = _ref8.globalSetting;
return {
user: user,
account: account,
@ -1949,528 +1742,6 @@ var AppplySchoolModal = function AppplySchoolModal(_ref) {
};
})(AppplySchoolModal));
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_checkbox; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js
var es = __webpack_require__(5630);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var config_provider_context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(1684);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var context = __webpack_require__(32441);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js
const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
/* harmony default export */ var checkbox_GroupContext = (GroupContext);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js
var checkbox_style = __webpack_require__(98447);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules
var wave = __webpack_require__(14088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js
var wave_interface = __webpack_require__(4572);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalCheckbox = (props, ref) => {
var _a;
const {
prefixCls: customizePrefixCls,
className,
rootClassName,
children,
indeterminate = false,
style,
onMouseEnter,
onMouseLeave,
skipGroup = false,
disabled
} = props,
restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
const {
getPrefixCls,
direction,
checkbox
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext);
const {
isFormItemInput
} = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM);
const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled;
const prevValue = _react_17_0_2_react.useRef(restProps.value);
_react_17_0_2_react.useEffect(() => {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
false ? 0 : void 0;
}, []);
_react_17_0_2_react.useEffect(() => {
if (skipGroup) {
return;
}
if (restProps.value !== prevValue.current) {
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
prevValue.current = restProps.value;
}
return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
}, [restProps.value]);
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const checkboxProps = Object.assign({}, restProps);
if (checkboxGroup && !skipGroup) {
checkboxProps.onChange = function () {
if (restProps.onChange) {
restProps.onChange.apply(restProps, arguments);
}
if (checkboxGroup.toggleOption) {
checkboxGroup.toggleOption({
label: children,
value: restProps.value
});
}
};
checkboxProps.name = checkboxGroup.name;
checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
}
const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
[`${prefixCls}-wrapper-disabled`]: mergedDisabled,
[`${prefixCls}-wrapper-in-form-item`]: isFormItemInput
}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId);
const checkboxClass = _classnames_2_5_1_classnames_default()({
[`${prefixCls}-indeterminate`]: indeterminate
}, wave_interface/* TARGET_CLS */.A, hashId);
const ariaChecked = indeterminate ? 'mixed' : undefined;
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
component: "Checkbox",
disabled: mergedDisabled
}, /*#__PURE__*/_react_17_0_2_react.createElement("label", {
className: classString,
style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave
}, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
"aria-checked": ariaChecked
}, checkboxProps, {
prefixCls: prefixCls,
className: checkboxClass,
disabled: mergedDisabled,
ref: ref
})), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children))));
};
const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox);
if (false) {}
/* harmony default export */ var checkbox_Checkbox = (Checkbox);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(43527);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
var omit = __webpack_require__(55405);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js
"use client";
var Group_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalGroup = (props, ref) => {
const {
defaultValue,
children,
options = [],
prefixCls: customizePrefixCls,
className,
rootClassName,
style,
onChange
} = props,
restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_);
const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []);
const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]);
_react_17_0_2_react.useEffect(() => {
if ('value' in restProps) {
setValue(restProps.value || []);
}
}, [restProps.value]);
const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => {
if (typeof option === 'string' || typeof option === 'number') {
return {
label: option,
value: option
};
}
return option;
}), [options]);
const cancelValue = val => {
setRegisteredValues(prevValues => prevValues.filter(v => v !== val));
};
const registerValue = val => {
setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]));
};
const toggleOption = option => {
const optionIndex = value.indexOf(option.value);
const newValue = (0,toConsumableArray/* default */.Z)(value);
if (optionIndex === -1) {
newValue.push(option.value);
} else {
newValue.splice(optionIndex, 1);
}
if (!('value' in restProps)) {
setValue(newValue);
}
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => {
const indexA = memoOptions.findIndex(opt => opt.value === a);
const indexB = memoOptions.findIndex(opt => opt.value === b);
return indexA - indexB;
}));
};
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
const groupPrefixCls = `${prefixCls}-group`;
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, {
prefixCls: prefixCls,
key: option.value.toString(),
disabled: 'disabled' in option ? option.disabled : restProps.disabled,
value: option.value,
checked: value.includes(option.value),
onChange: option.onChange,
className: `${groupPrefixCls}-item`,
style: option.style,
title: option.title
}, option.label)) : children;
// eslint-disable-next-line react/jsx-no-constructed-context-values
const context = {
toggleOption,
value,
disabled: restProps.disabled,
name: restProps.name,
// https://github.com/ant-design/ant-design/issues/16376
registerValue,
cancelValue
};
const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, {
[`${groupPrefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: style
}, domProps, {
ref: ref
}), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, {
value: context
}, childrenNode)));
};
const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup);
/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js
"use client";
const es_checkbox_Checkbox = checkbox_Checkbox;
es_checkbox_Checkbox.Group = Group;
es_checkbox_Checkbox.__ANT_CHECKBOX = true;
if (false) {}
/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ divider; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
// ============================== Shared ==============================
const genSharedDividerStyle = token => {
const {
componentCls,
sizePaddingEdgeHorizontal,
colorSplit,
lineWidth,
textPaddingInline,
orientationMargin,
verticalMarginInline
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
// vertical
'&-vertical': {
position: 'relative',
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
marginInline: verticalMarginInline,
marginBlock: 0,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
},
'&-horizontal': {
display: 'flex',
clear: 'both',
width: '100%',
minWidth: '100%',
margin: `${token.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${componentCls}-with-text`]: {
display: 'flex',
alignItems: 'center',
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
color: token.colorTextHeading,
fontWeight: 500,
fontSize: token.fontSizeLG,
whiteSpace: 'nowrap',
textAlign: 'center',
borderBlockStart: `0 ${colorSplit}`,
'&::before, &::after': {
position: 'relative',
width: '50%',
borderBlockStart: `${lineWidth}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: 'inherit',
borderBlockEnd: 0,
transform: 'translateY(50%)',
content: "''"
}
},
[`&-horizontal${componentCls}-with-text-left`]: {
'&::before': {
width: `${orientationMargin * 100}%`
},
'&::after': {
width: `${100 - orientationMargin * 100}%`
}
},
[`&-horizontal${componentCls}-with-text-right`]: {
'&::before': {
width: `${100 - orientationMargin * 100}%`
},
'&::after': {
width: `${orientationMargin * 100}%`
}
},
[`${componentCls}-inner-text`]: {
display: 'inline-block',
paddingBlock: 0,
paddingInline: textPaddingInline
},
'&-dashed': {
background: 'none',
borderColor: colorSplit,
borderStyle: 'dashed',
borderWidth: `${lineWidth}px 0 0`
},
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
'&::before, &::after': {
borderStyle: 'dashed none none'
}
},
[`&-vertical${componentCls}-dashed`]: {
borderInlineStartWidth: lineWidth,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${componentCls}-with-text`]: {
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
'&::before': {
width: 0
},
'&::after': {
width: '100%'
},
[`${componentCls}-inner-text`]: {
paddingInlineStart: sizePaddingEdgeHorizontal
}
},
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
'&::before': {
width: '100%'
},
'&::after': {
width: 0
},
[`${componentCls}-inner-text`]: {
paddingInlineEnd: sizePaddingEdgeHorizontal
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
const dividerToken = (0,statistic/* merge */.TS)(token, {
dividerHorizontalWithTextGutterMargin: token.margin,
dividerHorizontalGutterMargin: token.marginLG,
sizePaddingEdgeHorizontal: 0
});
return [genSharedDividerStyle(dividerToken)];
}, token => ({
textPaddingInline: '1em',
orientationMargin: 0.05,
verticalMarginInline: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Divider = props => {
const {
getPrefixCls,
direction,
divider
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'horizontal',
orientation = 'center',
orientationMargin,
className,
rootClassName,
children,
dashed,
plain,
style
} = props,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
const prefixCls = getPrefixCls('divider', customizePrefixCls);
const [wrapSSR, hashId] = divider_style(prefixCls);
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
const hasChildren = !!children;
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
const classString = _classnames_2_5_1_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
[`${prefixCls}-with-text`]: hasChildren,
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
[`${prefixCls}-dashed`]: !!dashed,
[`${prefixCls}-plain`]: !!plain,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
}, className, rootClassName);
const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
if (typeof orientationMargin === 'number') {
return orientationMargin;
}
if (/^\d+$/.test(orientationMargin)) {
return Number(orientationMargin);
}
return orientationMargin;
}, [orientationMargin]);
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
marginLeft: memoizedOrientationMargin
}), hasCustomMarginRight && {
marginRight: memoizedOrientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-inner-text`,
style: innerStyle
}, children)));
};
if (false) {}
/* harmony default export */ var divider = (Divider);
/***/ })
}]);

@ -122,6 +122,9 @@ var Profile = function Profile(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u9662\u7CFB/\u90E8\u95E8",
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.department_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4E13\u4E1A",
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.department_major_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u6635\u79F0",
children: basicInfo === null || basicInfo === void 0 ? void 0 : basicInfo.nickname

@ -46,9 +46,9 @@ if (false) {}
/***/ }),
/***/ 87287:
/***/ 50897:
/*!********************************************************!*\
!*** ./src/pages/Account/Secure/index.tsx + 1 modules ***!
!*** ./src/pages/Account/Secure/index.tsx + 2 modules ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -94,8 +94,31 @@ var modal = __webpack_require__(43418);
;// CONCATENATED MODULE: ./src/pages/Account/Secure/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Securemodules = ({"wrap":"wrap___vEhcs","content":"content___ebZIP","hint":"hint___b1gVO","titleWrap":"titleWrap___iGFyX","title":"title___O7ajd","formWrap":"formWrap___hsI9d","row":"row___xYJES","rowBorder":"rowBorder___YP4Tf","name":"name___kvtHq","status":"status___Z3SQA","description":"description___iGcNP","active":"active___DoK2i","color999":"color999___MWFZD","colorCDCDCD":"colorCDCDCD___miC4g","colorRed":"colorRed___YHbHP","submitButton":"submitButton___iLv6C","buttonWrap":"buttonWrap___gaJuB"});
// EXTERNAL MODULE: ./src/utils/hooks/useInterval.tsx
var useInterval = __webpack_require__(42627);
;// CONCATENATED MODULE: ./src/utils/hooks/useInterval.tsx
function useInterval(callback, delay) {
var savedCallback = (0,_react_17_0_2_react.useRef)();
var savedId = (0,_react_17_0_2_react.useRef)();
// 保存新回调
(0,_react_17_0_2_react.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,_react_17_0_2_react.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/fetch.ts
@ -225,7 +248,7 @@ var Secure = function Secure(_ref) {
(0,_react_17_0_2_react.useEffect)(function () {
setActive(parseInt(searchParams.get("active")));
}, [location]);
(0,useInterval/* useInterval */.Y)(function () {
useInterval(function () {
if (!countdownFlag) {
return;
} else {
@ -1109,43 +1132,6 @@ var Secure = function Secure(_ref) {
/***/ }),
/***/ 42627:
/*!*****************************************!*\
!*** ./src/utils/hooks/useInterval.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Y: function() { return /* binding */ useInterval; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useInterval(callback, delay) {
var savedCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
var savedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
// 保存新回调
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
savedCallback.current = callback;
});
// 建立 interval
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
/***/ }),
/***/ 98135:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!

@ -207,8 +207,8 @@ var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(99232);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Administration/Student/components/AddStudent.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddStudentmodules = ({"addStudentContainer":"addStudentContainer___c5ADl","listItem":"listItem___cOpB2","tips":"tips___UuolQ","qrCode":"qrCode___OJ0wR"});

@ -825,6 +825,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
});
}
}];
// 初始化
var init = function init() {
setTabKey('public');

@ -1251,8 +1251,8 @@ var Add_EditAttendance = function EditAttendance(_ref) {
})(Add_EditAttendance));
// EXTERNAL MODULE: ./node_modules/_qrcode@1.4.4@qrcode/lib/browser.js
var browser = __webpack_require__(90673);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Attendance/components/SignIn.tsx

@ -949,8 +949,8 @@ var PublishShixun = function PublishShixun(_ref) {
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(14477);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/index.tsx

@ -3734,8 +3734,8 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
classroomList: classroomList
};
})(CuttOffNowShixun));
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/components/Guide.tsx

@ -2588,8 +2588,8 @@ var BFill = function BFill(_ref) {
});
};
/* harmony default export */ var components_BFill = (BFill);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Answer/components/ErrCheckIpTip.tsx
@ -2773,7 +2773,7 @@ var Answer_scoreStatusMapping = {
1: 'c-green'
};
var Answer = function Answer(_ref) {
var _user$userInfo, _user$userInfo2, _user$userInfo3, _answerData$exercise4, _answerData$exercise22, _answerData$exercise23, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _answerData$exercise27, _answerData$exercise28, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise_14, _answerData$exercise32, _answerData$exercise33, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$question_5, _answerData$exercise_15, _answerData$question_6, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise38, _answerData$exercise_21, _answerData$exercise_22, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise39, _answerData$exercise40, _answerData$exercise41, _answerData$exercise42, _answerData$exercise_27;
var _user$userInfo, _user$userInfo2, _user$userInfo3, _answerData$exercise4, _answerData$exercise24, _answerData$exercise25, _answerData$exercise26, _answerData$exercise27, _answerData$exercise28, _answerData$exercise29, _answerData$exercise30, _answerData$exercise31, _answerData$exercise32, _answerData$exercise33, _answerData$exercise_14, _answerData$exercise34, _answerData$exercise35, _answerData$exercise36, _answerData$exercise37, _answerData$exercise38, _answerData$exercise39, _answerData$question_5, _answerData$exercise_15, _answerData$question_6, _answerData$exercise_16, _answerData$exercise_17, _answerData$exercise_18, _answerData$exercise_19, _answerData$exercise_20, _answerData$exercise40, _answerData$exercise_21, _answerData$exercise41, _answerData$exercise_22, _answerData$exercise_24, _answerData$exercise_25, _answerData$exercise_26, _answerData$exercise42, _answerData$exercise43, _answerData$exercise44, _answerData$exercise45, _answerData$exercise_27;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
user = _ref.user,
@ -5064,9 +5064,11 @@ var Answer = function Answer(_ref) {
});
},
className: "\n ".concat(Answermodules.answerSheetItem, "\n ").concat(answerData !== null && answerData !== void 0 && (_answerData$question_2 = answerData.question_status) !== null && _answerData$question_2 !== void 0 && _answerData$question_2.some(function (val) {
return val.ques_id === item.question_id && (val === null || val === void 0 ? void 0 : val.ques_status) === 1;
var _answerData$exercise16;
return val.ques_id === item.question_id && (val === null || val === void 0 ? void 0 : val.ques_status) === 1 && !(answerData !== null && answerData !== void 0 && (_answerData$exercise16 = answerData.exercise) !== null && _answerData$exercise16 !== void 0 && _answerData$exercise16.open_score_commited);
}) ? Answermodules.active : '', "\n ").concat(answerData !== null && answerData !== void 0 && (_answerData$question_3 = answerData.question_status) !== null && _answerData$question_3 !== void 0 && _answerData$question_3.some(function (val) {
return val.ques_id === item.question_id && (val === null || val === void 0 ? void 0 : val.ques_status) === 2;
var _answerData$exercise17;
return val.ques_id === item.question_id && (val === null || val === void 0 ? void 0 : val.ques_status) === 2 && !(answerData !== null && answerData !== void 0 && (_answerData$exercise17 = answerData.exercise) !== null && _answerData$exercise17 !== void 0 && _answerData$exercise17.open_score_commited);
}) ? Answermodules.partialActive : '', "\n ").concat(index === oneindex && k === twoindex ? Answermodules.selected : '', "\n "),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Answermodules.qindex,
@ -5092,7 +5094,7 @@ var Answer = function Answer(_ref) {
});
};
var renderQuestion = function renderQuestion(item, i) {
var _item$schools, _answerData$exercise16, _answerData$exercise17;
var _item$schools, _answerData$exercise18, _answerData$exercise19;
var answerText = '';
var answerBool = (item === null || item === void 0 ? void 0 : item.question_type) === 0 || (item === null || item === void 0 ? void 0 : item.question_type) === 1;
if (answerBool) {
@ -5150,7 +5152,7 @@ var Answer = function Answer(_ref) {
list: item === null || item === void 0 ? void 0 : item.answer_comments
}),
// 实训题 ,答题
(item === null || item === void 0 ? void 0 : item.question_type) == 5 && (answerData === null || answerData === void 0 || (_answerData$exercise16 = answerData.exercise) === null || _answerData$exercise16 === void 0 ? void 0 : _answerData$exercise16.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.answer_status) != 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
(item === null || item === void 0 ? void 0 : item.question_type) == 5 && (answerData === null || answerData === void 0 || (_answerData$exercise18 = answerData.exercise) === null || _answerData$exercise18 === void 0 ? void 0 : _answerData$exercise18.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.answer_status) != 3 && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
justify: "end",
className: "mt20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
@ -5174,7 +5176,7 @@ var Answer = function Answer(_ref) {
})
}),
// 编程题 ,答题
(0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise17 = answerData.exercise) === null || _answerData$exercise17 === void 0 ? void 0 : _answerData$exercise17.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.question_type) == 6 && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
(0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise19 = answerData.exercise) === null || _answerData$exercise19 === void 0 ? void 0 : _answerData$exercise19.user_exercise_status) === 0 && (item === null || item === void 0 ? void 0 : item.question_type) == 6 && /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
justify: "end",
className: "mt20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
@ -5198,10 +5200,10 @@ var Answer = function Answer(_ref) {
var switchType = (0,_react_17_0_2_react.useRef)();
var switchData = (0,_react_17_0_2_react.useRef)({});
var skipPrevQuestion = function skipPrevQuestion() {
var _answerData$exercise_5, _answerData$exercise18, _currentQuestionItem$2;
var _answerData$exercise_5, _answerData$exercise20, _currentQuestionItem$2;
window.blur();
var currentQuestionItem = (_answerData$exercise_5 = answerData.exercise_question_types) === null || _answerData$exercise_5 === void 0 || (_answerData$exercise_5 = _answerData$exercise_5[oneindex]) === null || _answerData$exercise_5 === void 0 || (_answerData$exercise_5 = _answerData$exercise_5.items) === null || _answerData$exercise_5 === void 0 ? void 0 : _answerData$exercise_5[twoindex];
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise18 = answerData.exercise) === null || _answerData$exercise18 === void 0 ? void 0 : _answerData$exercise18.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise20 = answerData.exercise) === null || _answerData$exercise20 === void 0 ? void 0 : _answerData$exercise20.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$;
if (!(currentQuestionItem !== null && currentQuestionItem !== void 0 && currentQuestionItem.repeat_answer) && (currentQuestionItem === null || currentQuestionItem === void 0 || (_currentQuestionItem$ = currentQuestionItem.user_answer) === null || _currentQuestionItem$ === void 0 ? void 0 : _currentQuestionItem$.length) > 0) {
if ((currentQuestionItem === null || currentQuestionItem === void 0 ? void 0 : currentQuestionItem.ques_status) === 0) {
@ -5230,11 +5232,11 @@ var Answer = function Answer(_ref) {
settwoindex(twoindex);
};
var skipNextQuestion = function skipNextQuestion() {
var _answerData$exercise_6, _answerData$exercise19, _currentQuestionItem$4;
var _answerData$exercise_6, _answerData$exercise21, _currentQuestionItem$4;
window.blur();
var currentQuestionItem = (_answerData$exercise_6 = answerData.exercise_question_types) === null || _answerData$exercise_6 === void 0 || (_answerData$exercise_6 = _answerData$exercise_6[oneindex]) === null || _answerData$exercise_6 === void 0 || (_answerData$exercise_6 = _answerData$exercise_6.items) === null || _answerData$exercise_6 === void 0 ? void 0 : _answerData$exercise_6[twoindex];
//提示不允许重复作答弹窗的逻辑
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise19 = answerData.exercise) === null || _answerData$exercise19 === void 0 ? void 0 : _answerData$exercise19.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise21 = answerData.exercise) === null || _answerData$exercise21 === void 0 ? void 0 : _answerData$exercise21.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$3;
if (!(currentQuestionItem !== null && currentQuestionItem !== void 0 && currentQuestionItem.repeat_answer) && (currentQuestionItem === null || currentQuestionItem === void 0 || (_currentQuestionItem$3 = currentQuestionItem.user_answer) === null || _currentQuestionItem$3 === void 0 ? void 0 : _currentQuestionItem$3.length) > 0) {
if ((currentQuestionItem === null || currentQuestionItem === void 0 ? void 0 : currentQuestionItem.ques_status) === 0) {
@ -5263,10 +5265,10 @@ var Answer = function Answer(_ref) {
settwoindex(twoindex);
};
var skipAppointQuestion = function skipAppointQuestion(p) {
var _answerData$exercise_7, _answerData$exercise20, _currentQuestionItem$6;
var _answerData$exercise_7, _answerData$exercise22, _currentQuestionItem$6;
var record = p || skipData.current;
var currentQuestionItem = (_answerData$exercise_7 = answerData.exercise_question_types) === null || _answerData$exercise_7 === void 0 || (_answerData$exercise_7 = _answerData$exercise_7[oneindex]) === null || _answerData$exercise_7 === void 0 || (_answerData$exercise_7 = _answerData$exercise_7.items) === null || _answerData$exercise_7 === void 0 ? void 0 : _answerData$exercise_7[twoindex];
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise20 = answerData.exercise) === null || _answerData$exercise20 === void 0 ? void 0 : _answerData$exercise20.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
if (!ischecked && (answerData === null || answerData === void 0 || (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.user_exercise_status) === 0 && (0,authority/* isStudent */.dE)()) {
var _currentQuestionItem$5;
if (!(currentQuestionItem !== null && currentQuestionItem !== void 0 && currentQuestionItem.repeat_answer) && (currentQuestionItem === null || currentQuestionItem === void 0 || (_currentQuestionItem$5 = currentQuestionItem.user_answer) === null || _currentQuestionItem$5 === void 0 ? void 0 : _currentQuestionItem$5.length) > 0) {
if ((currentQuestionItem === null || currentQuestionItem === void 0 ? void 0 : currentQuestionItem.ques_status) === 0) {
@ -5291,7 +5293,7 @@ var Answer = function Answer(_ref) {
};
var handleRefresh = /*#__PURE__*/function () {
var _ref24 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee29() {
var _answerData$exercise21;
var _answerData$exercise23;
var res;
return regeneratorRuntime_default()().wrap(function _callee29$(_context29) {
while (1) switch (_context29.prev = _context29.next) {
@ -5307,7 +5309,7 @@ var Answer = function Answer(_ref) {
return initData();
case 5:
res = _context29.sent;
if (!(answerData !== null && answerData !== void 0 && (_answerData$exercise21 = answerData.exercise) !== null && _answerData$exercise21 !== void 0 && _answerData$exercise21.left_time)) {
if (!(answerData !== null && answerData !== void 0 && (_answerData$exercise23 = answerData.exercise) !== null && _answerData$exercise23 !== void 0 && _answerData$exercise23.left_time)) {
_context29.next = 9;
break;
}
@ -5382,7 +5384,7 @@ var Answer = function Answer(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
size: 'middle',
spinning: isSpin,
children: [openFullScreen && (answerData === null || answerData === void 0 || (_answerData$exercise22 = answerData.exercise) === null || _answerData$exercise22 === void 0 ? void 0 : _answerData$exercise22.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(recordScreen/* default */.Z, {
children: [openFullScreen && (answerData === null || answerData === void 0 || (_answerData$exercise24 = answerData.exercise) === null || _answerData$exercise24 === void 0 ? void 0 : _answerData$exercise24.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(recordScreen/* default */.Z, {
exerciseUserInfo: exercise.exerciseUserInfo,
iframe: iframe,
socket: socket,
@ -5421,16 +5423,16 @@ var Answer = function Answer(_ref) {
align: "middle",
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: (0,util/* exerciseTips */.vB)(answerData === null || answerData === void 0 || (_answerData$exercise23 = answerData.exercise) === null || _answerData$exercise23 === void 0 ? void 0 : _answerData$exercise23.exercise_status)
children: (0,util/* exerciseTips */.vB)(answerData === null || answerData === void 0 || (_answerData$exercise25 = answerData.exercise) === null || _answerData$exercise25 === void 0 ? void 0 : _answerData$exercise25.exercise_status)
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "".concat(Answermodules.exerciseTitle, " ml10"),
title: answerData === null || answerData === void 0 || (_answerData$exercise24 = answerData.exercise) === null || _answerData$exercise24 === void 0 ? void 0 : _answerData$exercise24.exercise_name,
children: answerData === null || answerData === void 0 || (_answerData$exercise25 = answerData.exercise) === null || _answerData$exercise25 === void 0 ? void 0 : _answerData$exercise25.exercise_name
title: answerData === null || answerData === void 0 || (_answerData$exercise26 = answerData.exercise) === null || _answerData$exercise26 === void 0 ? void 0 : _answerData$exercise26.exercise_name,
children: answerData === null || answerData === void 0 || (_answerData$exercise27 = answerData.exercise) === null || _answerData$exercise27 === void 0 ? void 0 : _answerData$exercise27.exercise_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
marginLeft: 'auto'
},
children: !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise26 = answerData.exercise) === null || _answerData$exercise26 === void 0 ? void 0 : _answerData$exercise26.user_exercise_status) == 1) && !!(answerData !== null && answerData !== void 0 && (_answerData$exercise27 = answerData.exercise) !== null && _answerData$exercise27 !== void 0 && _answerData$exercise27.left_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise28 = answerData.exercise) === null || _answerData$exercise28 === void 0 ? void 0 : _answerData$exercise28.user_exercise_status) == 1) && !!(answerData !== null && answerData !== void 0 && (_answerData$exercise29 = answerData.exercise) !== null && _answerData$exercise29 !== void 0 && _answerData$exercise29.left_time) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: "".concat(Answermodules.countDown, " ").concat(countDownColor),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-daojishi",
@ -5446,7 +5448,7 @@ var Answer = function Answer(_ref) {
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise28 = answerData.exercise) === null || _answerData$exercise28 === void 0 ? void 0 : _answerData$exercise28.user_exercise_status) == 1) && exercise.actionTabs.key !== 'student-unlock' && normalClose && /*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
children: !((0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise30 = answerData.exercise) === null || _answerData$exercise30 === void 0 ? void 0 : _answerData$exercise30.user_exercise_status) == 1) && exercise.actionTabs.key !== 'student-unlock' && normalClose && /*#__PURE__*/(0,jsx_runtime.jsxs)(AsyncButton/* AsyncButton */.Z, {
className: "".concat(Answermodules.refreshBtn, " ml30"),
onClick: handleRefresh,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -5454,7 +5456,7 @@ var Answer = function Answer(_ref) {
}), "\u5237\u65B0"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise29 = answerData.exercise) === null || _answerData$exercise29 === void 0 ? void 0 : _answerData$exercise29.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
children: (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$exercise31 = answerData.exercise) === null || _answerData$exercise31 === void 0 ? void 0 : _answerData$exercise31.user_exercise_status) === 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(AsyncButton/* AsyncButton */.Z, {
className: "".concat(Answermodules.submitButton, " ml10"),
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee30() {
@ -5479,7 +5481,7 @@ var Answer = function Answer(_ref) {
children: "\u4EA4\u5377"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: ((answerData === null || answerData === void 0 || (_answerData$exercise30 = answerData.exercise) === null || _answerData$exercise30 === void 0 ? void 0 : _answerData$exercise30.commit_status) == 1 || (answerData === null || answerData === void 0 || (_answerData$exercise31 = answerData.exercise) === null || _answerData$exercise31 === void 0 ? void 0 : _answerData$exercise31.exercise_status) == 3) && (answerData === null || answerData === void 0 || (_answerData$exercise_14 = answerData.exercise_answer_user) === null || _answerData$exercise_14 === void 0 ? void 0 : _answerData$exercise_14.analysis) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ((answerData === null || answerData === void 0 || (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.commit_status) == 1 || (answerData === null || answerData === void 0 || (_answerData$exercise33 = answerData.exercise) === null || _answerData$exercise33 === void 0 ? void 0 : _answerData$exercise33.exercise_status) == 3) && (answerData === null || answerData === void 0 || (_answerData$exercise_14 = answerData.exercise_answer_user) === null || _answerData$exercise_14 === void 0 ? void 0 : _answerData$exercise_14.analysis) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: Answermodules.teachAnalysis,
onClick: function onClick() {
return setTeachAnalysisModal(true);
@ -5495,7 +5497,7 @@ var Answer = function Answer(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container ".concat(Answermodules.wrapper, " ").concat(isEducation && Answermodules.wrpAnswer),
children: [(answerData === null || answerData === void 0 || (_answerData$exercise32 = answerData.exercise) === null || _answerData$exercise32 === void 0 || (_answerData$exercise32 = _answerData$exercise32.exercise_description) === null || _answerData$exercise32 === void 0 ? void 0 : _answerData$exercise32.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_alert/* default */.Z, {
children: [(answerData === null || answerData === void 0 || (_answerData$exercise34 = answerData.exercise) === null || _answerData$exercise34 === void 0 || (_answerData$exercise34 = _answerData$exercise34.exercise_description) === null || _answerData$exercise34 === void 0 ? void 0 : _answerData$exercise34.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(es_alert/* default */.Z, {
className: Answermodules.exerciseAlert,
description: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
wrap: false,
@ -5506,7 +5508,7 @@ var Answer = function Answer(_ref) {
children: "\u8003\u8BD5\u987B\u77E5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: Answermodules.content,
children: answerData === null || answerData === void 0 || (_answerData$exercise33 = answerData.exercise) === null || _answerData$exercise33 === void 0 ? void 0 : _answerData$exercise33.exercise_description
children: answerData === null || answerData === void 0 || (_answerData$exercise35 = answerData.exercise) === null || _answerData$exercise35 === void 0 ? void 0 : _answerData$exercise35.exercise_description
})]
}),
closable: true
@ -5537,7 +5539,7 @@ var Answer = function Answer(_ref) {
children: "\u59D3\u540D"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 ".concat(Answermodules.userInfoText),
children: (answerData === null || answerData === void 0 || (_answerData$exercise34 = answerData.exercise) === null || _answerData$exercise34 === void 0 ? void 0 : _answerData$exercise34.user_name) || '- -'
children: (answerData === null || answerData === void 0 || (_answerData$exercise36 = answerData.exercise) === null || _answerData$exercise36 === void 0 ? void 0 : _answerData$exercise36.user_name) || '- -'
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@ -5547,10 +5549,10 @@ var Answer = function Answer(_ref) {
children: "\u5B66\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 ".concat(Answermodules.userInfoText),
children: (answerData === null || answerData === void 0 || (_answerData$exercise35 = answerData.exercise) === null || _answerData$exercise35 === void 0 ? void 0 : _answerData$exercise35.student_id) || '- -'
children: (answerData === null || answerData === void 0 || (_answerData$exercise37 = answerData.exercise) === null || _answerData$exercise37 === void 0 ? void 0 : _answerData$exercise37.student_id) || '- -'
})]
})]
}), showAnswerCard && (0,authority/* isStudent */.dE)() && ((_answerData$exercise36 = answerData.exercise) === null || _answerData$exercise36 === void 0 ? void 0 : _answerData$exercise36.user_exercise_status) === 0 && ((_answerData$exercise37 = answerData.exercise) === null || _answerData$exercise37 === void 0 ? void 0 : _answerData$exercise37.open_phone_video_recording) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
}), showAnswerCard && (0,authority/* isStudent */.dE)() && ((_answerData$exercise38 = answerData.exercise) === null || _answerData$exercise38 === void 0 ? void 0 : _answerData$exercise38.user_exercise_status) === 0 && ((_answerData$exercise39 = answerData.exercise) === null || _answerData$exercise39 === void 0 ? void 0 : _answerData$exercise39.open_phone_video_recording) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Answermodules.eduQrcode,
style: {
marginTop: 10
@ -5633,7 +5635,7 @@ var Answer = function Answer(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "".concat(Answermodules.cardList, " ").concat((_answerData$exercise38 = answerData.exercise) !== null && _answerData$exercise38 !== void 0 && _answerData$exercise38.open_phone_video_recording ? Answermodules.withQrcode : ''),
className: "".concat(Answermodules.cardList, " ").concat((_answerData$exercise40 = answerData.exercise) !== null && _answerData$exercise40 !== void 0 && _answerData$exercise40.open_phone_video_recording ? Answermodules.withQrcode : ''),
children: answerData === null || answerData === void 0 || (_answerData$exercise_21 = answerData.exercise_question_types) === null || _answerData$exercise_21 === void 0 ? void 0 : _answerData$exercise_21.map(function (er, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: renderCardList(er, index)
@ -5643,7 +5645,7 @@ var Answer = function Answer(_ref) {
})
})]
})]
}), (0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
}), (0,authority/* isStudent */.dE)() && !(answerData !== null && answerData !== void 0 && (_answerData$exercise41 = answerData.exercise) !== null && _answerData$exercise41 !== void 0 && _answerData$exercise41.open_score_commited) && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "space-around",
align: "middle",
className: Answermodules.answerSheetBottom,
@ -5892,10 +5894,10 @@ var Answer = function Answer(_ref) {
display: isopen ? 'flex' : 'none'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(components_CaptureVideo, {
number: (answerData === null || answerData === void 0 || (_answerData$exercise39 = answerData.exercise) === null || _answerData$exercise39 === void 0 ? void 0 : _answerData$exercise39.photo_count) - (answerData === null || answerData === void 0 || (_answerData$exercise40 = answerData.exercise) === null || _answerData$exercise40 === void 0 ? void 0 : _answerData$exercise40.take_photo),
take_photo: answerData === null || answerData === void 0 || (_answerData$exercise41 = answerData.exercise) === null || _answerData$exercise41 === void 0 ? void 0 : _answerData$exercise41.take_photo,
number: (answerData === null || answerData === void 0 || (_answerData$exercise42 = answerData.exercise) === null || _answerData$exercise42 === void 0 ? void 0 : _answerData$exercise42.photo_count) - (answerData === null || answerData === void 0 || (_answerData$exercise43 = answerData.exercise) === null || _answerData$exercise43 === void 0 ? void 0 : _answerData$exercise43.take_photo),
take_photo: answerData === null || answerData === void 0 || (_answerData$exercise44 = answerData.exercise) === null || _answerData$exercise44 === void 0 ? void 0 : _answerData$exercise44.take_photo,
ref: captureRef,
time: (_answerData$exercise42 = answerData.exercise) === null || _answerData$exercise42 === void 0 ? void 0 : _answerData$exercise42.left_time,
time: (_answerData$exercise45 = answerData.exercise) === null || _answerData$exercise45 === void 0 ? void 0 : _answerData$exercise45.left_time,
update: initData,
supportCamera: function supportCamera(type) {
if (type === 2) {

@ -8403,8 +8403,8 @@ var SubjectTable = function SubjectTable(_ref) {
});
};
/* harmony default export */ var components_SubjectTable = (SubjectTable);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/DuplicateChecking/index.tsx
@ -17346,6 +17346,7 @@ var AddIPRange_AddIPRange = function AddIPRange(_ref) {
var PreventCheatingSettings_PublishSettings = function PublishSettings(_ref) {
var _workSetting$exercise, _workSetting$exercise2, _data$public_ip, _data$public_ip2, _data$inner_ip, _data$inner_ip2, _exercise$commonHeade;
var exercise = _ref.exercise,
@ -18035,7 +18036,7 @@ var PreventCheatingSettings_PublishSettings = function PublishSettings(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
className: "c-blue",
target: "_blank",
href: "https://www.educoder.net/forums/4478",
onClick: util/* showInstallWebRtcDoc */.jt,
children: "\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
@ -18287,6 +18288,8 @@ var PropertySettings_PublishSettings = function PublishSettings(_ref) {
// 查看总成绩
open_score_reviewed: true,
//试卷评阅完成后
open_score_commited: false,
//提交试卷后
open_score: false,
//查看小题得分
answered_open: false,
@ -18532,30 +18535,43 @@ var PropertySettings_PublishSettings = function PublishSettings(_ref) {
className: "".concat(ConfigWorksmodules.contentInterval, " ").concat(ConfigWorksmodules.mb40),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
disabled: disabled,
value: data.open_score ? 'afterEndTime' : 'afterReview',
value: data.open_score ? 'afterEndTime' : data !== null && data !== void 0 && data.open_score_reviewed ? 'afterReview' : 'afterCommit',
onChange: function onChange(e) {
if (e.target.value === 'afterEndTime') {
setData(function (prevData) {
return objectSpread2_default()(objectSpread2_default()({}, prevData), {}, {
open_score: true,
open_score_reviewed: false
open_score_reviewed: false,
open_score_commited: false
});
});
} else if (e.target.value === 'afterReview') {
setData(function (prevData) {
return objectSpread2_default()(objectSpread2_default()({}, prevData), {}, {
open_score: false,
open_score_reviewed: true
open_score_reviewed: true,
open_score_commited: false
});
});
} else {
setData(function (prevData) {
return objectSpread2_default()(objectSpread2_default()({}, prevData), {}, {
open_score: false,
open_score_reviewed: false,
open_score_commited: true
});
});
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 'afterCommit',
children: "\u63D0\u4EA4\u8BD5\u5377\u540E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 'afterEndTime',
children: "\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u540E"
children: "\u8003\u8BD5\u622A\u6B62\u540E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: 'afterReview',
children: "\u8BD5\u5377\u8BC4\u9605\u5B8C\u6210\u540E"
children: "\u8003\u8BD5\u622A\u6B62\u4E14\u8BD5\u5377\u8BC4\u9605\u5B8C\u6210\u540E"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {

@ -1446,8 +1446,8 @@ var BFill = function BFill(_ref) {
});
};
/* harmony default export */ var components_BFill = (BFill);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/ImitateAnswer/components/ErrCheckIpTip.tsx

@ -2877,8 +2877,8 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
var AfterAppendix = __webpack_require__(68130);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/GroupHomework/components/AssociatedProjects.tsx
var AssociatedProjects = __webpack_require__(57249);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/GroupHomework/components/Guide.tsx

@ -726,8 +726,8 @@ var TabMenu = __webpack_require__(81731);
/* harmony default export */ var LiveVideomodules = ({"flex_box_center":"flex_box_center___ZOntB","flex_space_between":"flex_space_between___xCjmA","flex_box_vertical_center":"flex_box_vertical_center___gyDc0","flex_box_center_end":"flex_box_center_end___ytAb3","flex_box_column":"flex_box_column___KhTU7","bg":"bg___JLZ_u","menu":"menu___Fc6i8","desc":"desc___gI7VF","otherLink":"otherLink___msxoY","card":"card___qCDxO","supportPlatform":"supportPlatform___gN3jm"});
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/LiveVideo/index.tsx

@ -3415,8 +3415,8 @@ var SelectCourses_PublishShixun = function PublishShixun(_ref) {
loading: loading.effects
};
})(SelectCourses_PublishShixun));
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/components/Guide.tsx

@ -731,7 +731,7 @@ var NewClassroomPage = function NewClassroomPage(_ref) {
}),
onOk: function onOk() {
window.scrollTo(0, 0);
res && _umi_production_exports.history.push(res.first_category_url);
res && (window.location.href = res.first_category_url);
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',

@ -36,13 +36,13 @@
.bg___xiaSy {
background: #fafafa;
}
[id="educoder"] .commonimg___a4R0Q {
.commonimg___a4R0Q {
width: 93px;
position: absolute;
right: -5px;
top: 10px;
}
[id="educoder"] .titlesize___Wdd_a {
.titlesize___Wdd_a {
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
@ -52,44 +52,39 @@
font-weight: 400;
color: #05101a;
line-height: 30px;
margin-top: 35px;
}
[id="educoder"] .timesize___OkfYO {
.timesize___OkfYO {
font-size: 16px;
color: #000;
}
[id="educoder"] .flex1___N6paY {
.flex1___N6paY {
flex: 1 1;
}
[id="educoder"] .buttonsize___syL9V {
#educoder .buttonsize___syL9V {
height: 50px;
background: #4cacff;
border-radius: 4px;
width: 156px;
border-radius: 25px !important;
font-size: 24px;
width: 100%;
font-weight: 500;
}
[id="educoder"] .myteam___RTWAt {
#educoder .buttonsize___syL9V:disabled {
background-color: rgba(0, 0, 0, 0.04);
}
.myteam___RTWAt {
display: flex;
justify-content: flex-end;
cursor: pointer;
color: #4badff;
margin-top: 20px;
}
[id="educoder"] .bootmdetail___taUGk {
.bootmdetail___taUGk {
display: flex;
margin-top: 20px;
margin-bottom: 20px;
}
[id="educoder"] .bootmdetail___taUGk .menuItem___Kww4S {
width: 100%;
height: 80px !important;
font-size: 18px;
display: flex;
align-items: center;
margin: 0;
border-radius: 0;
}
[id="educoder"] .flex6___RuzJ4 {
.flex6___RuzJ4 {
flex: 6 1;
background: #fff !important;
padding: 40px;
@ -99,7 +94,13 @@
width: 400px;
overflow: hidden;
}
[id="educoder"] .spanprev___Cssg_ {
.menuItem___Kww4S {
height: 80px !important;
font-size: 18px;
display: flex !important;
align-items: center;
}
.spanprev___Cssg_ {
position: absolute;
top: 65px;
left: -55px;
@ -111,7 +112,7 @@
align-items: center;
cursor: pointer;
}
[id="educoder"] .spannext___jVFGE {
.spannext___jVFGE {
position: absolute;
top: 65px;
right: -55px;
@ -123,29 +124,29 @@
background: #4badff;
cursor: pointer;
}
[id="educoder"] .divwidth___r5hE3 {
.divwidth___r5hE3 {
display: flex;
justify-content: end;
text-align: -webkit-center;
}
[id="educoder"] .divwidth___r5hE3 img {
.divwidth___r5hE3 img {
height: 155px;
border-radius: 10px 10px 0px 0px;
width: 272px;
}
[id="educoder"] .receiveclick___BauOs {
.receiveclick___BauOs {
width: 272px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #0152d9;
border: 1px solid #4cacff;
border-radius: 0px 0px 10px 10px;
cursor: pointer;
color: #0152d9;
color: #4cacff;
font-size: 16px;
}
[id="educoder"] .receivealready___Z7Wo0 {
.receivealready___Z7Wo0 {
width: 272px;
height: 52px;
display: flex;
@ -157,84 +158,84 @@
color: #888888;
font-size: 16px;
}
[id="educoder"] .bkfff___lHrcJ.ant-input___m4bn_ {
.bkfff___lHrcJ.ant-input___m4bn_ {
background-color: #ffffff !important;
background: #ffffff !important;
}
[id="educoder"] .onediv___xzZRa {
.onediv___xzZRa {
width: 233px;
height: 298px;
background: #fafafa;
box-shadow: 0 2px 8px 2px rgba(255, 134, 34, 0.5);
border-radius: 5px;
}
[id="educoder"] .onediv___xzZRa .onetop___M4GfM {
.onediv___xzZRa .onetop___M4GfM {
width: 233px;
height: 167px;
background: #ffe7a0;
position: relative;
}
[id="educoder"] .onediv___xzZRa div[class='ant-card-head'] {
.onediv___xzZRa div[class='ant-card-head'] {
padding: 0px !important;
}
[id="educoder"] .onediv___xzZRa div[class='ant-card-head-title'] {
.onediv___xzZRa div[class='ant-card-head-title'] {
padding: 0px !important;
}
[id="educoder"] .onediv___xzZRa p {
.onediv___xzZRa p {
margin-bottom: 0px !important;
}
[id="educoder"] .towdiv___yj3ds {
.towdiv___yj3ds {
width: 234px;
height: 298px;
background: #fafafa;
border-radius: 5px;
box-shadow: 1px 4px 5px 0 #c8c8ca;
}
[id="educoder"] .towdiv___yj3ds .towtop___veKa4 {
.towdiv___yj3ds .towtop___veKa4 {
width: 234px;
height: 167px;
background: #dfdfe1;
position: relative;
}
[id="educoder"] .towdiv___yj3ds div[class='ant-card-head'] {
.towdiv___yj3ds div[class='ant-card-head'] {
padding: 0px !important;
}
[id="educoder"] .towdiv___yj3ds div[class='ant-card-head-title'] {
.towdiv___yj3ds div[class='ant-card-head-title'] {
padding: 0px !important;
}
[id="educoder"] .towdiv___yj3ds p {
.towdiv___yj3ds p {
margin-bottom: 0px !important;
}
[id="educoder"] .threediv___Ztz0D {
.threediv___Ztz0D {
width: 234px;
height: 298px;
background: #fafafa;
border-radius: 5px;
box-shadow: 1px 3px 5px 0 #febe9a;
}
[id="educoder"] .threediv___Ztz0D .threetop___zDXIg {
.threediv___Ztz0D .threetop___zDXIg {
width: 234px;
height: 167px;
background: #fde6d9;
position: relative;
}
[id="educoder"] .threediv___Ztz0D div[class='ant-card-head'] {
.threediv___Ztz0D div[class='ant-card-head'] {
padding: 0px !important;
}
[id="educoder"] .threediv___Ztz0D div[class='ant-card-head-title'] {
.threediv___Ztz0D div[class='ant-card-head-title'] {
padding: 0px !important;
}
[id="educoder"] .threediv___Ztz0D p {
.threediv___Ztz0D p {
margin-bottom: 0px !important;
}
[id="educoder"] .imgradius___r4uGN {
.imgradius___r4uGN {
width: 60px;
height: 60px;
border-radius: 50% !important;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
border: 2px solid #459be5;
}
[id="educoder"] .prize___YNRD4 {
.prize___YNRD4 {
position: absolute;
left: 78px;
bottom: 40px;
@ -246,7 +247,7 @@
line-height: 20px;
width: 80px;
}
[id="educoder"] .spanrightradius___tC6T5 {
.spanrightradius___tC6T5 {
position: absolute;
color: white;
left: -10px;
@ -259,14 +260,14 @@
line-height: 20px;
width: 100px;
}
[id="educoder"] .bottomItem___CHcMJ {
.bottomItem___CHcMJ {
display: flex;
align-items: center;
height: 85px;
margin-top: 20px;
border-bottom: 1px solid #efefef;
}
[id="educoder"] .bottomItem___CHcMJ:hover {
.bottomItem___CHcMJ:hover {
display: flex;
align-items: center;
height: 85px;
@ -274,7 +275,7 @@
background: #e9f7fe;
border-bottom: 1px solid #efefef;
}
[id="educoder"] .myTeam___fm7KX {
.myTeam___fm7KX {
display: flex;
align-items: center;
height: 85px;
@ -283,58 +284,33 @@
background: #e9f7fe;
border-bottom: 1px solid #efefef;
}
[id="educoder"] .downloadpdf___a2NuA {
.downloadpdf___a2NuA {
max-width: 791px;
height: 40px;
background: #FFF5E7;
color: #E99237;
background: #f9f9f9;
line-height: 40px;
padding-left: 20px;
}
[id="educoder"] .pdfBut___Drr6h {
height: 32px;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 4px;
border-color: #BACFFE;
color: #3061D0;
}
[id="educoder"] .PerfectBut___wEhjV {
height: 28px;
box-shadow: 0px 0px 2px 0px #E8EFFB;
border-radius: 14px;
border-color: #C8D2EA;
color: #3061D0;
}
[id="educoder"] .PerfectCent___HD3Id {
padding: 30px 0;
border-bottom: 1px solid #F1F1F1;
margin-bottom: 30px;
}
[id="educoder"] .PerfectCent___HD3Id .PerfectCentName___smdJX {
width: 56px;
text-align: right;
color: #5f6368;
padding-left: 15px;
}
[id="educoder"] .teamItem___mx2f3 {
.teamItem___mx2f3 {
display: flex;
height: 50px;
align-items: center;
margin-bottom: 0px !important;
}
[id="educoder"] .teamItem___mx2f3:hover {
.teamItem___mx2f3:hover {
display: flex;
height: 50px;
background: #e9f7fe;
align-items: center;
margin-bottom: 0px !important;
}
[id="educoder"] .dash___l6QH1 {
.dash___l6QH1 {
position: relative;
width: 45px;
display: inline-block;
margin: 0 5px;
}
[id="educoder"] .dash___l6QH1::after {
.dash___l6QH1::after {
content: ' ';
position: absolute;
top: -9px;
@ -343,16 +319,16 @@
height: 3px;
background: #333;
}
[id="educoder"] .modal___yXh2H {
.modal___yXh2H {
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
}
[id="educoder"] .modal___yXh2H div {
.modal___yXh2H div {
width: 527px;
}
[id="educoder"] .modal___yXh2H div:nth-child(1) {
.modal___yXh2H div:nth-child(1) {
font-size: 22px;
font-weight: bold;
color: #333333;
@ -361,23 +337,23 @@
text-align: center;
margin-top: 20px;
}
[id="educoder"] .modal___yXh2H div:nth-child(2) {
.modal___yXh2H div:nth-child(2) {
font-size: 18px;
font-weight: 500;
color: #333333;
text-align: center;
margin-bottom: 40px;
}
[id="educoder"] .modal___yXh2H div:nth-child(3),
[id="educoder"] .modal___yXh2H div:nth-child(4),
[id="educoder"] .modal___yXh2H div:nth-child(5) {
.modal___yXh2H div:nth-child(3),
.modal___yXh2H div:nth-child(4),
.modal___yXh2H div:nth-child(5) {
font-size: 16px;
font-weight: 400;
color: #3a3a3a;
line-height: 24px;
margin-bottom: 30px;
}
[id="educoder"] .modal___yXh2H div:nth-child(6) {
.modal___yXh2H div:nth-child(6) {
font-size: 16px;
font-weight: 500;
color: #3a3a3a;
@ -385,55 +361,69 @@
margin-top: 20px;
margin-bottom: 40px;
}
[id="educoder"] .modal___yXh2H button {
.modal___yXh2H button {
width: 156px;
height: 40px;
background: #0152d9;
background: #1890ff;
border-radius: 4px;
font-size: 16px;
font-weight: 400;
color: #ffffff;
margin-bottom: 10px;
}
[id="educoder"] .maskText___Tdh6h {
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 40px;
background: linear-gradient(to bottom, #FFFFFF00, #ffffff);
z-index: 1;
}
[id="educoder"] .box___K2uQ4 {
border-bottom: 1px solid #E3EFFC;
.searchBar___mIdkP {
display: box;
display: flex;
border-radius: 2px;
margin: 20px 20px 20px 0;
width: 100%;
margin: 0px auto;
box-sizing: border-box;
padding-left: 25px;
background-color: #fff;
padding-bottom: 20px;
padding-top: 20px;
}
[id="educoder"] .box___K2uQ4:last-child {
border-bottom: none;
}
[id="educoder"] .open_style___gLTB9 {
.searchBar___mIdkP > li {
list-style-type: none;
text-align: center;
color: #9096A3;
color: #05101a;
cursor: pointer;
margin-top: 10px;
font-size: 12px;
font-size: 16px;
}
[id="educoder"] .open_style___gLTB9:hover {
color: #165DFF;
.searchBar___mIdkP > li > a {
display: block;
width: 100%;
text-decoration: none;
color: #05101a;
}
[id="educoder"] .title_style___j6zvN {
max-width: 260px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
.searchBar___mIdkP > li.active___KL0Na a {
color: #0152d9;
}
.searchBarBorder___K1Bb_ {
border-top: 1px solid #eeeeee;
}
.firstLi___WVtwx {
height: 48px;
line-height: 46px;
}
[id="educoder"] .colorhove___FKtzO {
color: #9096A3;
.otherLi___oChiF {
height: 48px;
line-height: 46px;
margin-left: 40px;
}
[id="educoder"] .colorhove___FKtzO:hover {
color: #3061D0;
.advertisementModal___poqIe [class~='ant-modal-body'] {
padding: 0;
}
.closex___BGtin {
width: 25px;
height: 25px;
border: 1px solid #ffffff;
border-radius: 50%;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
margin-left: 20px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -1566,14 +1556,11 @@ span.CodeMirror-selectedtext {
height: 500px;
overflow-y: auto;
}
.modal___A9Ovz div[class~='ant-modal-header'] {
padding: 0;
}
.colorBlue___XSmR5 {
color: #0152d9;
color: #4cacff;
}
.formWrap___wRvaA div[class~='ant-form-item-label'] {
width: 85px;
width: 100px;
text-align: right;
}
.formWrap___wRvaA span[class~='ant-upload-btn'] {
@ -1650,7 +1637,7 @@ span.CodeMirror-selectedtext {
}
.note___CXi9y {
padding: 19px;
background: #F6F7F9;
background: #f5f5f5;
margin-top: 20px;
color: #656565;
font-size: 14px;
@ -1666,8 +1653,8 @@ span.CodeMirror-selectedtext {
.colorCDCDCD___D0UWo {
color: #cdcdcd;
}
.color0152d9___hF3Bb {
color: #0152d9;
.color4CACFF___vlidH {
color: #4cacff;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -1754,112 +1741,3 @@ span.CodeMirror-selectedtext {
justify-content: flex-end;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Competitions/Detail/AwardPdf.less?modules ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.scoreByBlankRadio____FOPE {
background: #F6F7F9;
box-shadow: inset 0px 1px 3px 0px #C8D2EA;
border-radius: 16px;
margin-right: 20px;
margin-bottom: 20px;
}
.scoreByBlankRadio____FOPE span {
font-size: 14px;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper'] {
background-color: transparent;
border: none;
padding: 0 20px;
display: inline-flex;
align-items: center;
height: 32px;
color: #9096A3;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper']::before {
background-color: transparent;
display: none;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked'] {
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
border: 1px solid #C8D2EA;
border-radius: 16px;
padding: 0 20px;
display: inline-flex;
align-items: center;
color: #165DFF;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:first-child {
border-right-color: #C8D2EA;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:focus-within {
box-shadow: none;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']::before {
background-color: transparent;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:hover {
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: inset 0px 1px 3px 0px #D7D8D9;
border: 1px solid #C8D2EA;
border-radius: 16px;
padding: 0 20px;
display: inline-flex;
align-items: center;
color: #3061D0;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:hover:first-child {
border-right-color: #C8D2EA;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:hover:focus-within {
box-shadow: none;
}
.scoreByBlankRadio____FOPE label[class~='ant-radio-button-wrapper-checked']:hover::before {
background-color: transparent;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Competitions/Detail/components/WorkSubmit/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
[class^='ant-upload-list-item-info'] {
padding: 10px;
height: 26px;
background: #F6F7F9;
border-radius: 15px;
}
[class^="ant-table-cell"]::before {
background: rgba(255, 255, 255, 0);
}
.WorkSubmitDesc___zk_Kc {
width: 100%;
padding: 8px 14px;
background: #f5f5f5;
color: #9096a3;
font-size: 12px;
border-radius: 0 0 8px 8px;
margin: 20px 0 30px 0;
}
.WorkSubmit___BOuVl .span___sGFYr {
font-size: 12px;
font-weight: 400;
color: #C5C5C5;
}
.WorkSubmit___BOuVl .span___sGFYr span {
color: #717171;
}
.WorkSubmit___BOuVl .search___wZWVl {
width: 292px;
border-radius: 19px;
height: 38px;
padding: 5px 14px;
font-size: 14px;
}
.WorkSubmit___BOuVl .downBut___tfNYQ {
border-radius: 16px;
color: #3061D0;
padding: 0 20px;
height: 32px;
border: 1px solid #BACFFE;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -292,7 +292,7 @@ var competitionDetails = function competitionDetails(_ref) {
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.Item, {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(umi__WEBPACK_IMPORTED_MODULE_5__.Link, {
to: "/competitions/".concat(identifier, "/detail/enroll"),
to: "/competitions/index/".concat(identifier, "/enroll"),
children: "\u62A5\u540D"
})
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.Item, {

@ -241,7 +241,10 @@
width: 100%;
background: #fff;
display: inline-block;
border: 1px solid #eaeaea;
max-height: 200px;
height: 200px;
padding: 10px 15px;
overflow: auto;
}
.teachname___D6V_h {
@ -259,13 +262,13 @@
overflow: hidden;
}
.deleteitem___ScGEn {
color: #0152d9;
color: #1890ff;
font-size: 14px;
margin-left: 20px;
cursor: pointer;
}
.deleteitem___ScGEn:hover {
color: #0152d9;
color: #1890ff;
font-size: 14px;
margin-left: 20px;
cursor: pointer;

@ -1,202 +0,0 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Competitions/Exports/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___RgCVv {
font-size: 24px;
position: absolute;
left: 0;
right: 0;
top: 80px;
font-family: serif;
padding: 96px 56px 0 56px;
line-height: 2;
letter-spacing: 1px;
}
.wrp___RgCVv .underline___h554C {
padding-bottom: 2px;
border-bottom: 2px solid #000;
}
.wrp___RgCVv .win___xzwAk {
font-size: 58px;
color: #de1314;
text-align: center;
font-weight: bold;
width: 100%;
}
.wrp___RgCVv .desc___AvQYp {
text-align: center;
margin-top: -15px;
}
.type2___LHjH2 {
width: 1000px;
position: relative;
font-family: serif;
}
.type2___LHjH2 .textWrap___c92Cy {
font-size: 21px;
position: absolute;
left: 0;
top: 80px;
padding: 96px 56px 0 56px;
line-height: 2;
letter-spacing: 1px;
}
.type2___LHjH2 .textWrap___c92Cy aside {
margin-top: 75px;
margin-left: 64px;
}
.type2___LHjH2 .textWrap___c92Cy aside .underline___h554C {
padding: 0 10px 2px 10px;
border-bottom: 2px solid #000;
}
.type2___LHjH2 .textWrap___c92Cy .direction___VEAic {
margin-left: 55px;
text-indent: 73px;
line-height: 56px;
width: 800px;
margin-top: 12px;
}
.type2___LHjH2 .textWrap___c92Cy .direction___VEAic .underline___h554C {
padding: 0 8px;
border-bottom: 1px solid #333333;
}
.type2___LHjH2 .textWrap___c92Cy .text___HtAMq {
margin-top: 11px;
margin-left: 128px;
}
.type2___LHjH2 .textWrap___c92Cy .text___HtAMq .underline___h554C {
padding: 0 5px;
border-bottom: 2px solid #333333;
}
.type2___LHjH2 .date___hPyZa {
position: absolute;
left: 676px;
font-size: 22px;
top: 573px;
z-index: 10;
font-family: serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #000;
}
.type2___LHjH2 .gz___OAfCu {
position: absolute;
left: 703px;
font-size: 22px;
top: 535px;
width: 120px;
z-index: 11;
opacity: 0.7;
}
.type2___LHjH2 .gz___OAfCu img {
width: 100%;
}
.type3___Taapi {
position: relative;
font-family: serif;
width: 556px;
}
.type3___Taapi .content___RSQGz {
width: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 10;
font-size: 14px;
}
.type3___Taapi .organizer___ZBiAs {
padding-left: 80px;
margin-top: 30px;
}
.type3___Taapi .organizer___ZBiAs p {
font-weight: 900;
}
.type3___Taapi .organizer___ZBiAs div {
margin-bottom: 20px;
}
.type3___Taapi .organizer___ZBiAs div span {
display: inline-block;
}
.type3___Taapi .organizer___ZBiAs div span:first-child {
width: 200px;
}
.type3___Taapi .bottom___yEYgk {
display: flex;
align-items: flex-start;
padding-left: 80px;
margin-top: 30px;
}
.type3___Taapi .seal___R9uCp {
width: 62%;
position: absolute;
left: 118px;
top: 333px;
z-index: 11;
opacity: 0.8;
}
.type3___Taapi .underline___h554C {
padding: 0 10px;
border-bottom: 2px solid #333333;
}
.loading___vNpmL {
position: static !important;
position: initial !important;
padding-top: 278px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/Spinner/index.less?modules ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.ldsRing___mpBZC {
position: relative;
width: 40px;
height: 40px;
margin: 0 auto;
}
.idsRingWrapper___Of9_n {
position: absolute;
z-index: 1000;
width: 100%;
height: 100%;
left: 0;
top: 0;
display: flex;
flex-flow: column nowrap;
justify-content: center;
}
.idsRingWrapper___Of9_n p {
text-align: center;
margin-top: 12px;
}
.ldsRing___mpBZC div {
box-sizing: border-box;
display: block;
position: absolute;
width: 32px;
height: 32px;
margin: 4px;
border: 4px solid #1976d2;
border-radius: 50%;
animation: ldsring___o0w2t 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #1976d2 transparent transparent transparent;
}
.ldsRing___mpBZC div:nth-child(1) {
animation-delay: -0.45s;
}
.ldsRing___mpBZC div:nth-child(2) {
animation-delay: -0.3s;
}
.ldsRing___mpBZC div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes ldsring___o0w2t {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

@ -0,0 +1,30 @@
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.1@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Competitions/Exports/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___RgCVv {
font-size: 24px;
position: absolute;
left: 0;
right: 0;
top: 80px;
font-family: serif;
padding: 96px 56px 0 56px;
line-height: 2;
letter-spacing: 1px;
}
.underline___h554C {
padding-bottom: 2px;
border-bottom: 2px solid #000;
}
.win___xzwAk {
font-size: 58px;
color: #de1314;
text-align: center;
font-weight: bold;
width: 100%;
}
.desc___AvQYp {
text-align: center;
margin-top: -15px;
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,270 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44449],{
/***/ 3467:
/*!**************************************************************!*\
!*** ./src/pages/Competitions/Exports/index.tsx + 1 modules ***!
\**************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Exports; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(39647);
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(87167);
// EXTERNAL MODULE: ./node_modules/_html2pdf.js@0.10.2@html2pdf.js/dist/html2pdf.js
var html2pdf = __webpack_require__(65022);
var html2pdf_default = /*#__PURE__*/__webpack_require__.n(html2pdf);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(14477);
// EXTERNAL MODULE: ./src/service/competitions.ts
var competitions = __webpack_require__(34248);
;// CONCATENATED MODULE: ./src/pages/Competitions/Exports/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Exportsmodules = ({"wrp":"wrp___RgCVv","underline":"underline___h554C","win":"win___xzwAk","desc":"desc___AvQYp"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Competitions/Exports/index.tsx
var _excluded = ["classroomList", "dispatch"];
var CompetitionsExportPage = function CompetitionsExportPage(_ref) {
var classroomList = _ref.classroomList,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
show = _useState2[0],
setShow = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(props.location.query),
_useState4 = slicedToArray_default()(_useState3, 2),
query = _useState4[0],
setQuery = _useState4[1];
var reportElement = (0,_react_17_0_2_react.useRef)();
var dataType = [{
name: '最新',
id: 'created_at'
}, {
name: '最热',
id: 'visits'
}];
(0,_react_17_0_2_react.useEffect)(function () {
setShow(true);
if ((0,authority/* isCommonSuperAdminOrOperation */.ag)() && !query.id) setShow(true);
if (query.id) getData();
}, []);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0,competitions/* getCertificateInfo */.Ju)(objectSpread2_default()({}, query));
case 2:
res = _context.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setShow(true);
query.school_name = res.data.school_name;
query.user_name = res.data.username;
query.student_id = res.data.student_id;
query.win_type = res.data.competition_name;
query.win = res.data.award_name;
query.group = res.data.competition;
query.suffix = res.data.identity;
setQuery(objectSpread2_default()({}, query));
// query.student_id = res.data.student_id;
}
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
var exportReport = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var opt, doc, url;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
opt = {
margin: [20, 0, 0, 0],
filename: "11.pdf",
enableLinks: false,
html2canvas: {
scale: 5,
allowTaint: false,
useCORS: true
// width: 1000,
},
// pagebreak:{mode:["avoid-all", 'css', 'legacy'],before:"#reportElement"},
jsPDF: {
format: [1360, 1010],
orientation: 'landscape',
unit: "px"
},
image: {
type: 'jpeg',
quality: 0.98
}
}; // html2pdf().set(opt).from(reportElement.current).save();
// const pdfUrl = await html2pdf()
// .from(reportElement.current)
// .set(opt)
// .toPdf()
// // .output('bloburl')
// const a = await pdfUrl.get("pdf")
// console.log("pdfUrl:", pdfUrl)
doc = html2pdf_default()().set(opt).from(reportElement.current).toPdf(); // for (let j = 1; j < pages.length; j++) {
// doc = doc.get('pdf').then(
// (pdf: any) => { pdf.addPage() }
// ).from(pages[j]).toContainer().toCanvas().toPdf()
// }
_context2.next = 4;
return doc.get('pdf');
case 4:
doc = _context2.sent;
_context2.next = 7;
return doc.output('bloburl');
case 7:
url = _context2.sent;
//
(0,util/* downLoadLink */.Nd)("".concat(query.school_name, "_").concat(query.user_name, "_").concat(query.win, "_").concat(query.group, ".pdf"), url);
case 9:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function exportReport() {
return _ref3.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
children: show && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "tc mt10 mb30",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
size: "large",
type: "primary",
onClick: exportReport,
children: "\u5BFC\u51FA\u5956\u72B6"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "edu-container relative",
style: {
height: 880,
width: 1000
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
ref: reportElement,
id: "reportElement",
style: {
width: 1000,
position: "relative"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: Exportsmodules.wrp,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: "ml50",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Exportsmodules.underline,
children: query.school_name || '国防科技大学'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml20 mr20 ".concat(Exportsmodules.underline),
children: query.user_name || ''
}), query.suffix, query.student_id && query.type == 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFF0C\u5B66\u53F7", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "".concat(Exportsmodules.underline, " ml20"),
children: query.student_id
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "mt10",
children: ["\u8363\u83B7\uFF1A\u201C", query.win_type || '', "\u201D\uFF08", query.group || '代码标注组', "\uFF09"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Exportsmodules.win,
children: query.win || '一等奖'
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Exportsmodules.desc,
children: "\u7279\u53D1\u6B64\u8BC1\uFF0C\u4EE5\u8D44\u9F13\u52B1\u3002"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! @/assets/images/certificate.jpg */ 58818),
style: {
width: "100%"
}
})]
})
})]
})
});
};
/* harmony default export */ var Exports = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
user = _ref4.user;
return {
classroomList: classroomList,
user: user
};
})(CompetitionsExportPage));
/***/ }),
/***/ 58818:
/*!*******************************************!*\
!*** ./src/assets/images/certificate.jpg ***!
\*******************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__.p + "static/certificate.a2a9ee77.jpg";
/***/ })
}]);

@ -138,8 +138,6 @@ var input = __webpack_require__(98135);
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Competitions/Update/index.tsx
@ -157,7 +155,6 @@ var _excluded = ["globalSetting", "loading", "dispatch"];
var competitionDetails = function competitionDetails(_ref) {
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
@ -187,17 +184,14 @@ var competitionDetails = function competitionDetails(_ref) {
var _useParams = (0,_umi_production_exports.useParams)(),
identifier = _useParams.identifier,
Teannameid = _useParams.Teannameid;
var _useState11 = (0,_react_17_0_2_react.useState)(''),
_useState12 = slicedToArray_default()(_useState11, 2),
letimg = _useState12[0],
setletimg = _useState12[1];
var history = (0,_umi_production_exports.useHistory)();
(0,_react_17_0_2_react.useEffect)(function () {
function init() {
return _init.apply(this, arguments);
}
function _init() {
_init = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var data, _data$data, _data$data2, _data$data3;
var data;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
@ -223,9 +217,8 @@ var competitionDetails = function competitionDetails(_ref) {
case 7:
data = _context.sent;
if (data) {
setpersonname(data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.name);
setupdateimg("".concat(env/* default */.Z === null || env/* default */.Z === void 0 ? void 0 : env/* default */.Z.IMG_SERVER, "/").concat(data === null || data === void 0 || (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.team_log));
setletimg(data === null || data === void 0 || (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.team_log);
setpersonname(data.data.name);
setupdateimg("".concat(env/* default */.Z.IMG_SERVER, "/").concat(data.data.team_log));
}
case 9:
case "end":
@ -239,9 +232,6 @@ var competitionDetails = function competitionDetails(_ref) {
init();
}
}, [identifier]);
(0,_react_17_0_2_react.useEffect)(function () {
(0,util/* setDocumentTitle */.Dk)('在线竞赛');
});
//裁剪调用了
function _crop() {
@ -270,15 +260,14 @@ var competitionDetails = function competitionDetails(_ref) {
identifier: identifier,
Teannameid: Teannameid,
name: personname,
image: Croppers.current.getCroppedCanvas().toDataURL("image/jpeg")
image: updateimg ? Croppers.current.getCroppedCanvas().toDataURL("image/jpeg") : undefined
}
});
case 5:
data = _context2.sent;
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
// return
message/* default */.ZP.info('修改成功');
_umi_production_exports.history.push("/competitions/".concat(identifier, "/detail/enroll"));
history.push("/competitions/index/".concat(identifier, "/enroll"));
}
case 7:
case "end":
@ -319,12 +308,12 @@ var competitionDetails = function competitionDetails(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/competitions/".concat(identifier, "/"),
to: "/competitions/index/".concat(identifier),
children: [HeaderDetail && HeaderDetail.name, HeaderDetail && HeaderDetail.sub_title ? '-' + HeaderDetail && HeaderDetail.sub_title : null]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/competitions/".concat(identifier, "/detail/enroll"),
to: "/competitions/index/".concat(identifier, "/enroll"),
children: "\u62A5\u540D"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
@ -429,7 +418,7 @@ var competitionDetails = function competitionDetails(_ref) {
marginLeft: '15px'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/competitions/".concat(identifier, "/detail/enroll"),
to: "/competitions/index/".concat(identifier, "/enroll"),
children: "\u53D6\u6D88"
})
})]

@ -1930,8 +1930,8 @@ var shixuns = __webpack_require__(11621);
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Demo/Warehouse/components/Tree.tsx

@ -280,8 +280,8 @@ var col = __webpack_require__(43604);
;// CONCATENATED MODULE: ./src/pages/Forums/Index/components/Right/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Rightmodules = ({"wrap":"wrap___HDsfM","ads":"ads___lVzc7","hotTags":"hotTags___ndI8R","tagsWrap":"tagsWrap___UYU1b","tag":"tag___ZTYgc","hotTopics":"hotTopics___QnHrn","questionItem":"questionItem___gukRM","questionTitle":"questionTitle___lFkBk","bottomText":"bottomText___dV_IO","recommendShixun":"recommendShixun___jC_LV","titleImg":"titleImg___nPtD7","recommendItem":"recommendItem___wP9xO","recommendItemInfo":"recommendItemInfo___vRNtS","shixunName":"shixunName___C5xxO","num":"num___aC0f1"});
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/assets/images/forums/hot-tags.png
var hot_tags_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAAkCAYAAAD1ucQ8AAAAAXNSR0IArs4c6QAADLJJREFUeF7tnQewJEUZx3+AoqigmHPAAEaM6Ik5Ys7ZQpBSzDnHM+ccURHEEkyYA+aIpxjwjGDOGfFARVEO6wfT3Fdtz2zPvNl9u+/2q9q6e7MdpsO/+8u7DUtazsByBkafgW0mtLgeuFAo83TgTx11bgvcLnz/QeBjo781bAs8DtgfOCdwBPBo4M+hr+2Aq06h719l/XR1cTbgH6HAJuBcFe90FeDMFeXaivR5x2cBFwwNPa3H+GL/5wWeFx78AXjmCsaw0FUnAesHwOXDCC8L/KRjxE6kYEzkIsXJHmuyngS8IGtsA3A9YHPz/DzAX8bqMLTzMOB1le0OBdbvs81e2d0ZxR4CvKGy0g+B3ULZywA/rawbi+2S1Ts2a3dAk4tbZVGB5Yl8scK0XxP45hJYrARYtbv518DFQ+EcWLXtTNqDte3MVTkH9Y2ON7oicNbCjXU/4OGFehfOWMffAZ6+NXR/4Ds1BYG/A2cvlL0l8MklsJbAqtxHUysmsE7t0XpiBZ8IvLBHvZqiewJfqSkIKLvdPit7AnBJ4PjmubLXZyrb6yp2dSCeqrNgBT8ByMoOJdfmvZWVjwF2rSwbi+U31qUniAltXazZG2sRgSUL8nHgCs1qeYPtDbx/wAaZVEXlg7JSolkAa9I7jfW9m9oD6RyhwUOAf4e/LwCoiMjJA0xZN9ENgc+Hv1VyeQBGOj/wx+yZCqg1R4t6Y7kQZwGu32gFv1xYsLEWqxZYewBfG9jpcwE1gfktPLC5M6p9C7hGRyN3AD4Qvo+3kCB4PnAvQJHgFxNe5k3AA0KZNwIPbv6We3gG8NBmzb6+0oF11d+08bD1cOqqaiQFVtfEvwe4VBhEYgVVz16kMLgHAn4SqZk6sFDOG+d92fM+rOA01yVvuxZY1wa+OvDFZgksQeLt4m2/TyarvhXYD1DefQWwUzMe2cq7FcZ2a0ClhbKtppZId244CMEr6ASqJLvvWk+F5gFUDmwSfzstdfvlANWxkWqApcIiqoZPBH40lRXa0mgtsBblxpKVfU1hzn4LOAYVTt5Sh2ZlbgR8IXsmO75Xoa0PAXdqTB85i2jxewOHjb1u8wKqRQTWdQDtVYm+BNxg7AXK2tsagCULKBv67TD2I4Hrhr9LbGUJWCqMvKWiYdwb7y6hLftT2fGfsdZunkC1BFbdqtYCy9Y2NrJSavlaQJQn9Lxwg306dK3XyK3C33queOInkmVOm1KFQfTceEzDssnefS/UESBXaxleurFU+HjbKwu9DTg5K++7KzPK1QiyRwCCS4+WBzVmGp0BvLFUVGg/fHGmwEhNqq3VEK3pRpPKI1vK1a1IVmreQJWA9dTm2i4Nqs2OlcrKV6sxe3fzoNbzYigruBo31j+BHcLkdGkFxwCWN0fUpo0NrHNzuktYjVeKanvHlNg298PBgIZ4SXb+CdlB0AYOy8m6K2+dMghBhUrzCKoErFyb0zXm6NKkAsKTcWfgJcCTAV2YalyaFglYfW4s52P3MIHzeGMN2dN6uagWfzywfaGBo4CXAh8BThrSwZA68wqqlQDrTMAXgXVhQj4FaGyMHhltvoJLYG2ZuFmzgrV7WAApK6klvHlzy02qK3spuORglL/+NanC0O/nGVQrAZaqZY2B0d2pNEdbG7DGYAWnLWPl6+QhqVpds4peJspm/qtdLbLAqZ5s3AGAbLnl2ki2T/uit3j66MCdnKSHYuq0eps2HtrHsWFFfQ2prGB638ZoV6qvnSNe/ZEVlM+W/y85w6a2vL1eW2h4rd5YiwCsewDPbgzrAqoEnra9JEfinkiGcG805eo2RUnejjeYt5rsoh//jqxz9R7OgXXK5s0ctWEjxx7zs9Pa2HW3Xdhj3e5st63i5Oypy451C0CftUSeEBqGYzzW+ZprXxtHiUq2D8utVWAtgozVZsfq2n1HA7o6qUHM2Tv3kFrNezaxeDXxZrGvSbbU4nvlwNpw5NGccPIO7LW3yks44pBXs9P2J7Fuz1rMjwu+rkFpIzK+KZH2o2jXSM9lJRRcVaHm9Dng7gUN1BJYW2Zq1jJWDbDUhH6/cWJ+O6CjQA0ZnOlhqnFY+Vtj/iRxYRRgHXzg4ey7/gB23Pl03+UTjz+Og9bvzz77RfNZzRDGKdM2KMHwrqwL/bxe39KtQNFVpeSRbeyUE60NJNEiAWvW6vZpy1i6JgkuWTLlIP/1Y/S1tjA/8lNjyDDavAycVE3vxyjjHZuPbKj/Lx3WE3d3fmMtArB0LdKAGU8aY6r0CStpeTyZPjwhzMF6qmtlJ6QSsGQ91Sx20WrYsfqo2xdBxuqa35s2HhETN3bPAhqio+d7z+r/X3yRWEFPDyNPtUfpjRxJlasOmom0pBumofBa0gx5ysdQi1Qv+QMqmwlWT7RE3obeils7sKZtIO6a33cCKjfGJg9Ug2NHo0VQXiiYqvnTWz0HlBMRLf9pYroCHWUjDOfQ3eaxYSbf0Wgg0yM95++azfThDZtSiv+x6KxvLFllb9uoGVUrpgtQica4sZbAqoDfIqjbu3hpWUIXOremtwFLf7A7Bo9zNUWGjeh0qXpeXj6RtjDlslwfKmvZFn4xa2CZ5cmDJ5Le2hrHxwKWmtfoIZ4Dy8MmHUBj+AqukRtr9WOuuiayLdBRI94rgadk0aSprTxLkguuKlb7SC6Haaewve8WXsRb7WXZ83kCli48OpZGuihgiMVQYN0kJLyxjV82Av5/mwad85jZ6i0hgNBoX1n2REOccLv2g0ZifQnHpuMqAiV79znP3hc5sASFJ6Tq8xhCkA9ao7LylWyfanhzB+be0bUTpYZK/8KkUZwnYHkYXCkMJM/zkI+xhhU0T6MOsFEG1QXIoFA1ZwI5fpcyLrnh3aCRXAdZ7D7e7TXrYv/KyW006XvrGTsXQ0dq+u1dZl7BJbB0oP1Nc6PImk3Nv6tj1pTtNDKqLVTQbQsDnyUraFSsNqZIuvIYMtFGhkRcOXypYieaGVLCzpc3CUYnbSQVPIJGjsADJ0+2Izdgn9qLZMMT+WyIR4NeGLqhqZgywUwJXPcBXtSE3asNLpHA00tDv0GTvOYHwqRx9/p+HsHVZZy7BCDbouDuhpoHmhWw3BimhYvJSh2/6ujPdkyEN5qsYiLD0aOnSgKWG1iOwIOki7RpuTklQzeUWRMZ6as7mWy2t0OUX7Udun59SDlPzWxKxaAcHdlgwau8nOxOxl+l8JG8n8jOpqQzRlFMjeYNXCVg6Q8oW+ImkhTUFdjbSOWDm0k7l4qQvzYnlKdtHyOjvie5oiDvcxbA0nvATZyb7Ns8T9I7mlMxyl4/b9jIthTTht24UW9WmFhPeFnAFOcmoPJQdjkNY5wS2Z9mEMl5V8tbm9PROua4eFRoT3ZVkCXAeoPpgRGVTRH4qapGYDPppnwZPjenhzfXVGmewBWB5YZSlawyIQrIJWB5ErvY5kYQEGZMysk0VybPVOuldjFPe5XKm2fBTaL7lGH2Rqu20bSBpUe3p3ae7MRb4cYd2kDn0QBAWahEHk7ml+/K3W49vVzUpAo0PSFk9+QQ/tawc5osLBPJ7/RoiCyWyqOYSsz3MSlM7eFmmjNl5ijfGQRrpqZE5sFwzRMZHe36RXpVE22cnunRYRi+Y5s6zQu4XFh5atXKsn0GLeaUA0vhW1ZDH8FacnF1ldH6LjvkRpWNMc4nsk5a6H2XtmC5aQDLzejJrO1NOaZ0i0/KQb9vZkA3l4OykTfYkB9F0JNUBVLphxGcS4242gEjKc+l9Nrpue8lwGrJA87DIJFsnLeg2khJ1th1jLfWbcIPX8i1KFvF926LcKh9p97l5gFcNXkFzb+gBjCSzrVtHu29JyKr4I0ZFzd+PQ1geaLKvrSRJ7C/ZNJ18qvQiD9CYBYkwTH0RxE0W5RYJ2OhbLfNZzO/UXyvXD6uccJd6Rr2qT/ICbdPB6tRtg1YbiJPOmOpolYrvWOeHsuTLSUzkU2Uv4/ZVWvHpkCuwOxmLtEsgSXrIsBrhO4ILKMCzAXiKT8msH7csHoeam2kdvWjgZVdAqt2541crgQs+WZPNfMYtJEylSpx1a2yDy56JNlEWSu9CNxkygNdpFDsKX9Qi0E61Z0FsASELkvP6fE7UW5gbxFtSmaDTSaLMYDlOqjkcG5q0oXpPP3mxn1sCayRAVPbnMBS+2O2HYVm2T5P3BryRooq3q46qn7VMqqeTY632kh0XTIJZJtvYN6mslDMFy6glUVWQo5dxYrGYBUtfmLu8pq2FeCto4E4kqaKmBxT2TFq3tra1tNfZYJrMSm1c1sbKmLsP/81GZUwUW1fM75pllmzudunOWnLtpczsFXOwP8AsDzz+sXkbBUAAAAASUVORK5CYII=";
;// CONCATENATED MODULE: ./src/assets/images/forums/hot-topics.png

@ -1838,8 +1838,8 @@ var shixuns = __webpack_require__(11621);
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Innovation/Detail/components/CodePane/DirTree/index.tsx

@ -7818,8 +7818,8 @@ var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./src/service/classrooms.ts
var classrooms = __webpack_require__(67292);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Paths/Detail/components/Right/components/AddCollaboratorModal/index.tsx

@ -285,8 +285,8 @@ var TabPane = tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratorsmodules = ({"bg":"bg___sOdPb","wrap":"wrap___HoeSx","modal":"modal___t4bFU","content":"content___VMlwP","head":"head___eFHNj","headCount":"headCount___q7_8n","button":"button___OaGYh","itemWrap":"itemWrap___EgP_Y","imgWrap":"imgWrap___VcWR7","img":"img___PgTvY","manager":"manager___vGc7D","itemContent":"itemContent___JJG1i","nameWrap":"nameWrap___h4JTB","name":"name___yhHE5","actionGroup":"actionGroup___LDeZm","deleteIcon":"deleteIcon___Mmc7F","schoolWrap":"schoolWrap___Ru_DY","school":"school___zbcZj","countWrap":"countWrap___Mrp5n"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(43501);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/Collaborators/index.tsx
@ -926,8 +926,8 @@ var SvgStar = function SvgStar(props) {
/* harmony default export */ var star = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTUuNTAzIDIxLjg5NmEyLjA2NyAyLjA2NyAwIDAgMS0uODctLjIwMSA0NTEuOTg3IDQ1MS45ODcgMCAwIDEtNC4zNzYtMi4xMWMtMS40NjYuNjktMi45MzEgMS4zODQtNC4zOTYgMi4wOC0uNjc0LjI5OS0xLjMzLjI2LTEuODE2LS4wOTYtLjQ1OC0uMzM1LS42ODUtLjkxMi0uNjI0LTEuNTc5LjE3My0xLjU2LjQ2NS0zLjY5My41NzQtNC40ODVhMTg4LjAyOSAxODguMDI5IDAgMCAxLTMuNTg3LTMuOTIyIDEuNSAxLjUgMCAwIDEtLjMtMS41MWMuMjEzLS41NzQuNzYtLjk4MiAxLjQ3Mi0xLjA4Nmw0LjY1NS0uODUzQTUxMi45NSA1MTIuOTUgMCAwIDEgOC43ODcgMy43M2MuNzE3LTEuMzQ0IDEuNDI2LTEuMzQ0IDEuOC0xLjIwOS40MDcuMTM0Ljc5Mi41MzEgMS4xNzcgMS4yMjMuODI5IDEuNDMzIDIuMDggMy42NDIgMi41MDQgNC4zOTFsNC42MS44NThjLjY3OC4xIDEuMjE4LjUwNyAxLjQyOCAxLjA4NGExLjUwNyAxLjUwNyAwIDAgMS0uMjg2IDEuNTA0IDE5Mi44MDggMTkyLjgwOCAwIDAgMS0zLjU1NiAzLjk0NGMuMTA0Ljc4OC4zODggMi45MjcuNTczIDQuNDc5LjA3MS42ODUtLjE1MiAxLjI2OS0uNjE2IDEuNjA5YTEuNTUgMS41NSAwIDAgMS0uOTE2LjI4NGgtLjAwMloiIGZpbGw9IiM1MDkxRkYiLz48cGF0aCBkPSJNMjEuNzA2IDQuNDYyYS41NTcuNTU3IDAgMCAxLS4yNDcuMDczYy0uNDUuMDMtMS4xMjIuMDY3LTEuMzk3LjA4bC0uNzc4IDEuMmMtLjEyMi4xOC0uMjkuMjY1LS40NjQuMjQtLjE2My0uMDItLjMwNi0uMTQtLjM5LS4zMjlhNjAuODEgNjAuODEgMCAwIDEtLjUyOS0xLjI3OCA1My4wMDkgNTMuMDA5IDAgMCAxLTEuNDc2LS41MTguNDc1LjQ3NSAwIDAgMS0uMy0uMzYuNTMzLjUzMyAwIDAgMSAuMi0uNTA1bDEuMDI1LS45MWMtLjAxMS0uNTE2LS4wMi0xLjAzMi0uMDI4LTEuNTQ4LS4wMjQtLjQ2My4xNS0uNTY4LjI2NC0uNTg1LjEyMS0uMDI2LjI3NS4wMjQuNDc0LjE1MS40MTkuMjYyIDEuMDYuNjY3IDEuMjc3LjgwNGwxLjI3LS40NDhhLjQ5LjQ5IDAgMCAxIC41MTUuMDhjLjEyNC4xMS4xODMuMjguMTU1LjQ0MS0uMDkuNTI2LS4xODYgMS4wNTItLjI5IDEuNTc0LjE0NS4xOTQuNTM2LjcyMi44MTQgMS4xMS4xMi4xNzIuMTUyLjM2LjA4OC41MThhLjQzNS40MzUgMCAwIDEtLjE4NS4yMWguMDAyWk0yLjg1OSA1LjgzYS4yODcuMjg3IDAgMCAxLS4wOTMtLjA5MSA2Mi4xNyA2Mi4xNyAwIDAgMS0uMzgyLS42MDMgNDkuOTkgNDkuOTkgMCAwIDAtLjctLjA0NWMtLjEwNi0uMDEtLjE4NS0uMDYzLS4yMTgtLjE0NmEuMjc2LjI3NiAwIDAgMSAuMDQtLjI1NWMuMTQtLjE5Ny4zMzQtLjQ2LjQwNy0uNTU3YTI4LjM5NyAyOC4zOTcgMCAwIDEtLjE0OS0uNzg2LjI0My4yNDMgMCAwIDEgLjA3Ni0uMjIzLjI1LjI1IDAgMCAxIC4yNjQtLjAzN2wuNjQuMjI4Yy4xMDgtLjA2OC40MzEtLjI3LjY0NC0uMzk4LjE5LS4xMjguMjc4LS4wNzUuMzE0LS4wMy4wNC4wNDcuMDU5LjEyOC4wNTQuMjVsLS4wMTkuNzY4LjUwNi40NTNhLjI1OC4yNTggMCAwIDEgLjA5NS4yNDkuMjM4LjIzOCAwIDAgMS0uMTQ3LjE3OGMtLjI0NS4wOTItLjQ5LjE4LS43MzYuMjY1LS4wNDcuMTEzLS4xNzEuNDItLjI2NC42NC0uMDQ0LjA5NS0uMTE1LjE1OS0uMTk3LjE2OGEuMjA4LjIwOCAwIDAgMS0uMTM1LS4wMjhaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==");
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./node_modules/_echarts-wordcloud@1.1.3@echarts-wordcloud/index.js
var _echarts_wordcloud_1_1_3_echarts_wordcloud = __webpack_require__(56047);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js

@ -1398,8 +1398,8 @@ var FixedButton = __webpack_require__(35449);
var Loading = __webpack_require__(20887);
// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/utils/index.tsx
var utils = __webpack_require__(79869);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(14477);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Level/Challenges/EditQuestion/index.tsx

@ -1909,8 +1909,8 @@ var shixuns = __webpack_require__(11621);
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Warehouse/components/Tree.tsx

@ -8728,8 +8728,8 @@ var shixuns = __webpack_require__(11621);
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Warehouse/components/Tree.tsx
@ -12340,8 +12340,8 @@ var TabPane = es_tabs/* default */.Z.TabPane;
/* harmony default export */ var Collaboratemodules = ({"bg":"bg___GzXpp","wrap":"wrap___A40jS","modal":"modal___Zz7dC","content":"content___H5ZN2","head":"head___o5t32","headCount":"headCount___eBMPN","button":"button___YSSGm","itemWrap":"itemWrap___iPWUC","imgWrap":"imgWrap___T70Es","img":"img___oumA5","manager":"manager___VdXG8","itemContent":"itemContent____npAh","nameWrap":"nameWrap___nazId","name":"name___Z48aE","actionGroup":"actionGroup___eScAq","deleteIcon":"deleteIcon___FK_OA","schoolWrap":"schoolWrap___jJuIm","school":"school___kSMwT","countWrap":"countWrap___p7epV","deletetitle":"deletetitle___uVCHi","yseTitle":"yseTitle___L6JF9"});
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(43501);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var components_Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var components_Header = __webpack_require__(46107);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Collaborate/index.tsx
@ -17020,8 +17020,8 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
/* harmony default export */ var Datasetmodules = ({"flex_box_center":"flex_box_center___l5eTc","flex_space_between":"flex_space_between___k0OR7","flex_box_vertical_center":"flex_box_vertical_center___OKlIC","flex_box_center_end":"flex_box_center_end___hN9A6","flex_box_column":"flex_box_column___ijTq_","dataset":"dataset___dSWAV","header":"header___BzxI4","title":"title___cPEyN","dataPath":"dataPath___wJ6mR","pathTitle":"pathTitle___TOS2Z","btns":"btns___jGE8o","content":"content___s4ep8","customTable":"customTable___OG3_9","row":"row___ONd7r","empty":"empty___CgtTE","path":"path___Cg5rX","text":"text___SCLRV","actionsBtns":"actionsBtns___L5tdC","customModal":"customModal___qVeG3","shareModal":"shareModal___HedYo","fileName":"fileName___x56US","renameModal":"renameModal___SmCAd","errorDes":"errorDes___VLR_5","uploadFileModal":"uploadFileModal___pYYDB"});
// EXTERNAL MODULE: ./src/pages/Shixuns/Edit/body/Dataset/components/UploadFile/index.tsx + 1 modules
var UploadFile = __webpack_require__(75543);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Edit/body/Dataset/index.tsx

@ -78,8 +78,8 @@ var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
// EXTERNAL MODULE: ./src/service/classrooms.ts
var classrooms = __webpack_require__(67292);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/User/Detail/ClassManagement/Item/AddStudent.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var AddStudentmodules = ({"addStudentContainer":"addStudentContainer___vm8uG","listItem":"listItem___GgL6_","tips":"tips___Rr5yj","qrCode":"qrCode____aeUv"});

@ -61,8 +61,8 @@ var fetch = __webpack_require__(91203);
var ui_customization = __webpack_require__(47192);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(44394);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(97514);
// EXTERNAL MODULE: ./src/utils/authority.ts

@ -30,7 +30,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! moment */ 99232);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _service_user__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/service/user */ 93318);
/* harmony import */ var _components_ImagesIcon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/ImagesIcon */ 55631);
/* harmony import */ var _components_ImagesIcon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/ImagesIcon */ 8333);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ 37712);

@ -1644,8 +1644,8 @@ var config_provider = __webpack_require__(92736);
var zh_CN = __webpack_require__(81863);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(87167);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 15 modules
var Header = __webpack_require__(93583);
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 14 modules
var Header = __webpack_require__(46107);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
@ -6931,6 +6931,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
/* harmony export */ j_: function() { return /* binding */ getDownFiles; },
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
@ -7809,16 +7810,37 @@ var exportTaskPass = /*#__PURE__*/function () {
return _ref31.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params, type) {
var res;
var getDownFiles = /*#__PURE__*/function () {
var _ref32 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee32(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee32$(_context32) {
while (1) switch (_context32.prev = _context32.next) {
case 0:
_context32.next = 2;
console.log('----------', '调用下载');
_context32.next = 3;
return (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .downLoadFile */ .FH)('', (0,_util__WEBPACK_IMPORTED_MODULE_5__/* .setUrlQuery */ .NY)({
url: _env__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.API_SERVER + "/api/competitions/".concat(params.id, "/export_data.json"),
query: params
}));
case 3:
case "end":
return _context32.stop();
}
}, _callee32);
}));
return function getDownFiles(_x34) {
return _ref32.apply(this, arguments);
};
}();
var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
var _ref33 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee33(params, type) {
var res;
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee33$(_context33) {
while (1) switch (_context33.prev = _context33.next) {
case 0:
_context33.next = 2;
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_3__/* .exportCourseWorkListShiXuns */ .o_)(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params));
case 2:
res = _context32.sent;
res = _context33.sent;
if (res.status === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP.info('导出任务生成成功导出后文件保存时间为7天请及时下载');
umi__WEBPACK_IMPORTED_MODULE_4__.history.push("/classrooms/".concat(params.coursesId, "/exportlist/").concat(type));
@ -7839,12 +7861,12 @@ var ExportCourseWorkListShixuns = /*#__PURE__*/function () {
// hideLoading();
case 4:
case "end":
return _context32.stop();
return _context33.stop();
}
}, _callee32);
}, _callee33);
}));
return function ExportCourseWorkListShixuns(_x34, _x35) {
return _ref32.apply(this, arguments);
return function ExportCourseWorkListShixuns(_x35, _x36) {
return _ref33.apply(this, arguments);
};
}();

@ -976,8 +976,8 @@ function TestCaseItem(_ref) {
})]
});
});
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/pages/tasks/resize-enlarge.png
var resize_enlarge = __webpack_require__(21978);
// EXTERNAL MODULE: ./src/pages/tasks/resize-small.png

@ -3806,8 +3806,8 @@ var shixuns = __webpack_require__(11621);
var lodash = __webpack_require__(89392);
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
var verifyLogin = __webpack_require__(54808);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/Demo/Warehouse/components/Tree.tsx
@ -6822,8 +6822,8 @@ var dtFormat = 'YYYY-MM-DD HH:mm';
var tree = __webpack_require__(48209);
// EXTERNAL MODULE: ./src/service/exercise.ts
var exercise = __webpack_require__(86268);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
// EXTERNAL MODULE: ./src/service/shixuns.ts
var shixuns = __webpack_require__(11621);
;// CONCATENATED MODULE: ./src/utils/toShixun.tsx

@ -534,8 +534,8 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
var virtualSpaces = __webpack_require__(32657);
// EXTERNAL MODULE: ./src/service/classrooms.ts
var classrooms = __webpack_require__(67292);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
var ImagesIcon = __webpack_require__(55631);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
var ImagesIcon = __webpack_require__(8333);
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Settings/components/Member/AddTeacher.tsx

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save