This commit is contained in:
caishi 2023-06-07 15:33:19 +08:00
parent 27d5f06748
commit 5503def8f0
13 changed files with 483559 additions and 297 deletions

View File

@ -1,23 +1,31 @@
<!DOCTYPE html><html lang="en" class="notranslate" translate="no"><head>
<meta charset="UTF-8">
<meta http-equiv="Cache-Control" content="max-age=604800">
<meta content="always" name="referrer">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Cache-Control" content="max-age=604800" />
<meta content="always" name="referrer" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta http-equiv="Cache-Control" content="no-transform">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=1226">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=1226" />
<title>GitLink</title>
<meta name="keywords" content="头歌,EduCoder,信息技术实践教学,精品课程网,慕课MOOC">
<meta name="google" content="notranslate">
<meta http-equiv="Content-language" content="en">
<meta
name="keywords"
content="头歌,EduCoder,信息技术实践教学,精品课程网,慕课MOOC"
/>
<meta name="google" content="notranslate" />
<meta http-equiv="Content-language" content="en" />
<!-- <meta name="Keywords" content="实践课程,项目实战,java实训,python实战,人工智能技术,后端开发学习,移动开发入门">
<meta name="Keywords" content="翻转课堂,高效课堂创建,教学模式">
<meta name="Keywords" content="实践项目,python教程,C语言入门,java书,php后端开发,app前端开发,数据库技术">
<meta name="Keywords" content="在线竞赛,计算机应用大赛,编程大赛,大学生计算机设计大赛,全国高校绿色计算机大赛"> -->
<meta name="description" content="头歌(EduCoder)是信息技术类实践教学平台。头歌(EduCoder)涵盖了计算机、大数据、云计算、人工智能、软件工程、物联网等专业课程。超60000个实训案例建立学、练、评、测一体化实验环境。">
<meta
name="description"
content="头歌(EduCoder)是信息技术类实践教学平台。头歌(EduCoder)涵盖了计算机、大数据、云计算、人工智能、软件工程、物联网等专业课程。超60000个实训案例建立学、练、评、测一体化实验环境。"
/>
<!-- <meta name="Description"
content="EduCoder实践课程旨在于通过企业级实战实训案例帮助众多程序员提升各项业务能力。解决学生、学员、企业员工等程序设计能力、算法设计能力、问题求解能力、应用开发能力、系统运维能力等。">
<meta name="Description"
@ -25,44 +33,55 @@
<meta name="Description" content="EduCoder实践项目为单个知识点关卡实践训练帮助学生巩固单一弱点强化学习。" >
<meta name="Description" content="EduCoder实践教学平台各类大赛为进一步提高各类学生综合运用高级语言程序设计能力培养创新意识和实践探索精神发掘优秀软件人才。" > -->
<!--[if IE]>
<script>
window.location.replace('/upgrade-browser.html');
</script>
<script>
window.location.replace("/upgrade-browser.html");
</script>
<![endif]-->
<script>
window.ENV = 'build';
if (window.ENV !== 'dev') {
console.log = new Function;
window.ENV = "build";
if (window.ENV !== "dev") {
console.log = new Function();
}
function IEVersion() {
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
var isIE =
userAgent.indexOf("compatible") > -1 &&
userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
var isIE11 =
userAgent.indexOf("Trident") > -1 &&
userAgent.indexOf("rv:11.0") > -1;
if (isIE || isIE11) {
window.location.replace("/upgrade-browser.html");
}
function IEVersion() {
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
if (isIE || isIE11) {
window.location.replace('/upgrade-browser.html');
}
}
IEVersion();
}
IEVersion();
</script>
<link rel="stylesheet" href="/umi.2a6c1850.css"><script>
window.routerBase = "/";
</script>
<script>
//! umi version: 3.2.17
</script></head>
<link rel="stylesheet" href="/umi.2a6c1850.css" />
<script>
window.routerBase = "/";
</script>
<script>
//! umi version: 3.2.17
</script>
</head>
<body>
<div style="position: absolute;top: -2000px;">
<img src="https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1nav?t=1609921874" title="头歌">
</div>
<div id="root">
<body>
<div style="position: absolute; top: -2000px;">
<img
src="https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1nav?t=1609921874"
title="头歌"
/>
</div>
<div id="root"></div>
<div style="display: none;">
<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279928836&web_id=1279928836"></script>
<script
type="text/javascript"
src="https://v1.cnzz.com/z_stat.php?id=1279928836&web_id=1279928836"
></script>
</div>
<script>
window.gtag = new Function;
window.gtag = new Function();
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-198293321-1"></script>
@ -74,6 +93,6 @@
gtag('config', 'UA-198293321-1');
</script> -->
<script src="/umi.0c160fd4.js"></script></body></html>
<script src="/umi.d166f592.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,336 @@
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{
/***/ "mKwH":
/*!****************************************************************!*\
!*** ./src/pages/Competitions/Entered/Assembly/TeamDateil.tsx ***!
\****************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator */ "c1Ei");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var antd_es_table_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/table/style */ "g9YV");
/* harmony import */ var antd_es_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/table */ "wCAj");
/* harmony import */ var antd_es_breadcrumb_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/breadcrumb/style */ "sPJy");
/* harmony import */ var antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/breadcrumb */ "bE4q");
/* harmony import */ var antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/tooltip/style */ "5Dmo");
/* harmony import */ var antd_es_tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/tooltip */ "3S7+");
/* harmony import */ var antd_es_badge_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/badge/style */ "Awhp");
/* harmony import */ var antd_es_badge__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd/es/badge */ "KrTs");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ "5Tp6");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "k16G");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */ "SIvP");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "q1tI");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! umi */ "WHYC");
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! umi */ "uYtH");
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! umi */ "9kvl");
//战队详情
var competitionDetails = function competitionDetails(_ref) {
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
user = _ref.user,
props = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"])(_ref, ["globalSetting", "loading", "dispatch", "user"]);
var _useParams = Object(umi__WEBPACK_IMPORTED_MODULE_13__[/* useParams */ "l"])(),
identifier = _useParams.identifier,
Teamid = _useParams.Teamid;
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(),
_useState2 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState, 2),
shixundata = _useState2[0],
setshixundata = _useState2[1];
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(),
_useState4 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState3, 2),
coursedata = _useState4[0],
setcoursedata = _useState4[1];
Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
function init() {
getshixun();
getCourse();
}
if (identifier) {
init();
}
}, [identifier]);
function getshixun() {
return _getshixun.apply(this, arguments);
}
function _getshixun() {
_getshixun = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])( /*#__PURE__*/_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
var data, newarr, newobj;
return _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'competitions/getShixun',
payload: {
identifier: identifier,
teamid: Teamid
}
});
case 2:
data = _context.sent;
if (data) {
newarr = data.shixuns;
newobj = {
creator: "合计:",
shixun_name: data.shixun_count,
myshixuns_count: data.total_myshixun_count,
forked_myshixun_count: data.total_forked_myshixun_count,
valid_count: data.total_valid_count,
score: data.total_shixun_score
};
newarr.push(newobj);
setshixundata(newarr);
}
case 4:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return _getshixun.apply(this, arguments);
}
function getCourse() {
return _getCourse.apply(this, arguments);
}
function _getCourse() {
_getCourse = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])( /*#__PURE__*/_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() {
var data, newarr, newobj;
return _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return dispatch({
type: 'competitions/getCourse',
payload: {
identifier: identifier,
teamid: Teamid
}
});
case 2:
data = _context2.sent;
if (data) {
newarr = data.courses;
newobj = {
creator: "合计:",
course_name: data.total_course_count,
students_count: data.total_students_count,
shixun_homework_count: data.total_shixun_homework_count,
valid_count: data.total_valid_count,
score: data.total_course_score
};
newarr.push(newobj);
setcoursedata(newarr);
}
case 4:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return _getCourse.apply(this, arguments);
}
console.log('shixundata', shixundata, 'coursedata', coursedata);
var shixuncolumns = [{
title: '创建者',
dataIndex: 'creator',
key: 'creator',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoutheji" : ""
}, text);
}
}, {
title: '名称',
dataIndex: 'shixun_name',
key: 'shixun_name',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text, record.forked === true ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
count: "原创",
style: {
backgroundColor: '#459BE5'
}
}) : "");
}
}, {
title: '学习人数',
dataIndex: 'myshixuns_count',
key: 'myshixuns_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}, {
title: '被fork发布的学习人数',
dataIndex: 'forked_myshixun_count',
key: 'forked_myshixun_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
placement: "bottom",
title: "fork该实训产生的新实训学习总人数"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text));
}
}, {
title: '有效作品数',
dataIndex: 'valid_count',
key: 'valid_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
placement: "bottom",
title: "至少完成了1个关卡"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text));
}
}, {
title: '应用值',
dataIndex: 'score',
key: 'score',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}];
var coursecolumns = [{
title: '创建者',
dataIndex: 'creator',
key: 'creator',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoutheji" : ""
}, text);
}
}, {
title: '名称',
dataIndex: 'course_name',
key: 'course_name',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}, {
title: '学生数量',
dataIndex: 'students_count',
key: 'students_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}, {
title: '发布的实训作业数量',
dataIndex: 'shixun_homework_count',
key: 'shixun_homework_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}, {
title: '有效作品数',
dataIndex: 'valid_count',
key: 'valid_count',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
placement: "bottom",
title: "至少完成了1个关卡"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text));
}
}, {
title: '应用值',
dataIndex: 'score',
key: 'score',
render: function render(text, record) {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: record.creator === "合计:" ? "teamsLayoucolor-orange" : ""
}, text);
}
}];
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: "edu-container minH500"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], {
className: "mt10",
separator: ">"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index"
}, "\u5728\u7EBF\u7ADE\u8D5B")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index/".concat(identifier, "/enroll")
}, "\u62A5\u540D")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].Item, null, "\u6218\u961F\u8BE6\u60C5")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("p", null, "\u5B9E\u8DF5\u9879\u76EE"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
className: "teamsLayoutTable",
columns: shixuncolumns,
dataSource: shixundata,
bordered: true,
pagination: false
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("p", null, "\u6559\u5B66\u8BFE\u5802"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_table__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
className: "teamsLayoutTable",
columns: coursecolumns,
dataSource: coursedata,
bordered: true,
pagination: false
}));
};
/* harmony default export */ __webpack_exports__["default"] = (Object(umi__WEBPACK_IMPORTED_MODULE_15__[/* connect */ "a"])(function (_ref2) {
var loading = _ref2.loading,
globalSetting = _ref2.globalSetting,
user = _ref2.user;
return {
globalSetting: globalSetting,
loading: loading.effects,
user: user
};
})(competitionDetails));
/***/ })
}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,367 @@
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[13],{
/***/ "CpkQ":
/*!**********************************************************!*\
!*** ./src/pages/Competitions/Update/index.less?modules ***!
\**********************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
module.exports = {"flex_box_center":"flex_box_center___1TLor","flex_space_between":"flex_space_between___2oHSZ","flex_box_vertical_center":"flex_box_vertical_center___1GsMX","flex_box_center_end":"flex_box_center_end___dUr0S","flex_box_column":"flex_box_column___15YZP","Selecttext":"Selecttext___1ucPb","Updatecount":"Updatecount___t5g1H","Spanradius":"Spanradius___F7XLb"};
/***/ }),
/***/ "jmm4":
/*!*************************************************!*\
!*** ./src/pages/Competitions/Update/index.tsx ***!
\*************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var antd_es_button_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/button/style */ "+L6B");
/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/button */ "2/Rp");
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/input/style */ "5NDa");
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/input */ "5rEg");
/* harmony import */ var antd_es_breadcrumb_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/breadcrumb/style */ "sPJy");
/* harmony import */ var antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/breadcrumb */ "bE4q");
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/message/style */ "miYZ");
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/message */ "tsqr");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator */ "c1Ei");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ "5Tp6");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "k16G");
/* harmony import */ var _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */ "SIvP");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "q1tI");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! umi */ "WHYC");
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! umi */ "uYtH");
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! umi */ "9kvl");
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./index.less?modules */ "CpkQ");
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var react_cropper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-cropper */ "wyMu");
/* harmony import */ var react_cropper__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(react_cropper__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var cropperjs_dist_cropper_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! cropperjs/dist/cropper.css */ "YQfW");
/* harmony import */ var cropperjs_dist_cropper_css__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(cropperjs_dist_cropper_css__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/utils/env */ "m3rI");
var competitionDetails = function competitionDetails(_ref) {
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"])(_ref, ["globalSetting", "loading", "dispatch"]);
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(),
_useState2 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState, 2),
HeaderDetail = _useState2[0],
setHeaderDetail = _useState2[1]; //头部信息
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(),
_useState4 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState3, 2),
personname = _useState4[0],
setpersonname = _useState4[1]; //战队名
var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(),
_useState6 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState5, 2),
imageurl = _useState6[0],
setimageurl = _useState6[1];
var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(''),
_useState8 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState7, 2),
teamlog = _useState8[0],
setteamlog = _useState8[1];
var Croppers = Object(react__WEBPACK_IMPORTED_MODULE_12__["useRef"])(null);
var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(''),
_useState10 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState9, 2),
updateimg = _useState10[0],
setupdateimg = _useState10[1];
var _useParams = Object(umi__WEBPACK_IMPORTED_MODULE_13__[/* useParams */ "l"])(),
identifier = _useParams.identifier,
Teannameid = _useParams.Teannameid;
var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(''),
_useState12 = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])(_useState11, 2),
letimg = _useState12[0],
setletimg = _useState12[1];
var history = Object(umi__WEBPACK_IMPORTED_MODULE_13__[/* useHistory */ "j"])();
Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
function init() {
return _init.apply(this, arguments);
}
function _init() {
_init = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])( /*#__PURE__*/_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.mark(function _callee() {
var data, _data$data, _data$data2, _data$data3;
return _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.t0 = setHeaderDetail;
_context.next = 3;
return dispatch({
type: 'competitions/getHeader',
payload: {
identifier: identifier
}
});
case 3:
_context.t1 = _context.sent;
(0, _context.t0)(_context.t1);
_context.next = 7;
return dispatch({
type: 'competitions/getTeamDetail',
payload: {
identifier: identifier,
Teannameid: Teannameid
}
});
case 7:
data = _context.sent;
if (data) {
// setpersonname(data.data.name);
// setupdateimg(`${env.IMG_SERVER}/${data.data.team_log}`)
setpersonname(data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.name);
setupdateimg("".concat(_utils_env__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"] === null || _utils_env__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"] === void 0 ? void 0 : _utils_env__WEBPACK_IMPORTED_MODULE_19__[/* default */ "a"].IMG_SERVER, "/").concat(data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.team_log));
setletimg(data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.team_log);
}
case 9:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return _init.apply(this, arguments);
}
if (identifier) {
init();
}
}, [identifier]); //裁剪调用了
function _crop() {
setimageurl(Croppers.current.getCroppedCanvas().toDataURL());
}
function submitname() {
return _submitname.apply(this, arguments);
}
function _submitname() {
_submitname = Object(_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])( /*#__PURE__*/_Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.mark(function _callee2() {
var data;
return _Users_caishi_caishi_gitlink_competition_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_8___default.a.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
if (personname) {
_context2.next = 3;
break;
}
antd_es_message__WEBPACK_IMPORTED_MODULE_7__[/* default */ "b"].info("队伍名不能为空");
return _context2.abrupt("return");
case 3:
_context2.next = 5;
return dispatch({
type: 'competitions/UpTeam',
payload: {
identifier: identifier,
Teannameid: Teannameid,
name: personname,
image: letimg ? Croppers.current.getCroppedCanvas().toDataURL("image/jpeg") : undefined
}
});
case 5:
data = _context2.sent;
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
antd_es_message__WEBPACK_IMPORTED_MODULE_7__[/* default */ "b"].info('修改成功');
history.push("/competitions/index/".concat(identifier, "/enroll"));
}
case 7:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return _submitname.apply(this, arguments);
}
function handleFileChange(e) {
var file = e.target.files[0];
if (file) {
if (file.size > 2 * 1024 * 1024) {
antd_es_message__WEBPACK_IMPORTED_MODULE_7__[/* default */ "b"].info("仅支持文件大小小于2M的文件");
return;
}
} //base64
var reader = new FileReader();
reader.readAsBinaryString(file);
reader.onload = function () {
var base64_content = btoa(reader.result);
setupdateimg("data:".concat(file.type, ";base64,").concat(base64_content));
};
reader.onerror = function () {// console.log('there are some problems');
};
}
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: "edu-container minH500"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], {
className: "mt10",
separator: ">"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index"
}, "\u5728\u7EBF\u7ADE\u8D5B")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index/".concat(identifier)
}, HeaderDetail && HeaderDetail.name, HeaderDetail && HeaderDetail.sub_title ? true && HeaderDetail.sub_title : null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index/".concat(identifier, "/enroll")
}, "\u62A5\u540D")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_breadcrumb__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].Item, null, "\u7F16\u8F91\u6218\u961F\u4FE1\u606F")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default.a.Selecttext
}, "\u7F16\u8F91\u6218\u961F"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default.a.Updatecount
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span", {
style: {
fontSize: '14px',
color: '#F73737'
}
}, "*"), "\u961F\u540D\uFF1A", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("p", {
style: {
marginTop: '15px',
marginLeft: '8px',
width: "544px"
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], {
placeholder: "请输入队名",
value: personname,
maxLength: 60,
addonAfter: String(personname && personname.length) + "/60",
onChange: function onChange(e) {
return setpersonname(e.target.value);
}
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("p", {
style: {
marginTop: '15px',
marginLeft: '8px',
width: "544px"
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span", null, "LOGO\uFF1A"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("label", {
id: "uploadBtn",
style: {
color: '#4DACFF',
cursor: "pointer"
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("input", {
type: "file",
className: "sr-only",
id: "inputImage",
name: "file",
accept: "image/*",
onChange: handleFileChange,
style: {
display: "none"
}
}), "\u4E0A\u4F20LOGO"), "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span", null, "(\u652F\u6301jpg\u3001gif\u3001png\u683C\u5F0F\u7684\u56FE\u7247\uFF0C\u5EFA\u8BAE\u6587\u4EF6\u5C0F\u4E8E2M)")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
style: {
marginTop: '15px',
marginLeft: '8px',
display: 'flex'
}
}, imageurl ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("img", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default.a.Spanradius,
src: imageurl
}) : teamlog ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("img", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default.a.Spanradius
}) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_16___default.a.Spanradius
}, personname && personname.length > 2 ? personname && personname.substring(0, 2) : personname), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(react_cropper__WEBPACK_IMPORTED_MODULE_17___default.a, {
style: {
width: '320px',
height: '320px',
marginLeft: "30px",
background: '#EEEEEE'
},
src: updateimg // aspectRatio={320/320}
,
guides: false,
ref: Croppers,
crop: _crop
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div", {
style: {
marginTop: '15px',
marginBottom: '15px'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
type: "primary",
onClick: function onClick() {
return submitname();
}
}, "\u786E\u5B9A"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
style: {
marginLeft: '15px'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(umi__WEBPACK_IMPORTED_MODULE_14__[/* Link */ "a"], {
to: "/competitions/index/".concat(identifier, "/enroll")
}, "\u53D6\u6D88"))));
};
/* harmony default export */ __webpack_exports__["default"] = (Object(umi__WEBPACK_IMPORTED_MODULE_15__[/* connect */ "a"])(function (_ref2) {
var loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
globalSetting: globalSetting,
loading: loading.models.competitions
};
})(competitionDetails));
/***/ })
}]);

138234
umi.d166f592.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -55,7 +55,7 @@
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/omit.js/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js because of ./node_modules/rc-tabs/node_modules/rc-menu/es/MenuItem.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js because of ./node_modules/rc-tabs/node_modules/rc-menu/es/Menu.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */

File diff suppressed because it is too large Load Diff