|
|
|
|
@ -4685,7 +4685,7 @@ var StudentTeam_excluded = ["competitions", "globalSetting", "loading", "dispatc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
var _competitions$competi2, _competitions$competi3, _competitions$competi4, _competitions$competi5, _competitions$competi6, _competitions$competi7, _competition_team$my_, _competition_team$my_2, _my_teams$name, _Team$name, _Team$name2, _competitions$competi8, _competitions$competi9, _competitions$competi10, _competitions$competi11, _competitions$competi12;
|
|
|
|
|
var _my_teams$team_member, _competitions$competi2, _competitions$competi3, _competitions$competi4, _competitions$competi5, _competitions$competi6, _competitions$competi7, _competition_team$my_, _competition_team$my_2, _my_teams$name, _Team$name, _Team$name2, _competitions$competi8, _competitions$competi9, _competitions$competi10, _competitions$competi11, _competitions$competi12;
|
|
|
|
|
var competitions = _ref.competitions,
|
|
|
|
|
globalSetting = _ref.globalSetting,
|
|
|
|
|
loading = _ref.loading,
|
|
|
|
|
@ -4846,6 +4846,9 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
_useState66 = slicedToArray_default()(_useState65, 2),
|
|
|
|
|
appealLoading = _useState66[0],
|
|
|
|
|
setAppealLoading = _useState66[1];
|
|
|
|
|
var leaderLogin = my_teams === null || my_teams === void 0 || (_my_teams$team_member = my_teams.team_members) === null || _my_teams$team_member === void 0 || (_my_teams$team_member = _my_teams$team_member.filter(function (item) {
|
|
|
|
|
return (item === null || item === void 0 ? void 0 : item.role) === 'leader';
|
|
|
|
|
})) === null || _my_teams$team_member === void 0 || (_my_teams$team_member = _my_teams$team_member[0]) === null || _my_teams$team_member === void 0 ? void 0 : _my_teams$team_member.login;
|
|
|
|
|
var appealColumnsYes = [{
|
|
|
|
|
title: "序号",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
@ -5218,21 +5221,23 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
getTeams();
|
|
|
|
|
},
|
|
|
|
|
placeholder: "\u8BF7\u8F93\u5165\u6218\u961F\u540D\u79F0\u8FDB\u884C\u641C\u7D22"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Teammodules.button,
|
|
|
|
|
style: {
|
|
|
|
|
margin: '0 20px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setopendaoru(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u5BFC\u5165\u6218\u961F"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Teammodules.button,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
(0,util/* downLoadLink */.Nd)(null, env/* default */.Z.API_SERVER + "/api/competitions/".concat(identifier, "/competition_teams.xlsx"));
|
|
|
|
|
},
|
|
|
|
|
children: "\u5BFC\u51FA\u6218\u961F"
|
|
|
|
|
}), is_manager && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Teammodules.button,
|
|
|
|
|
style: {
|
|
|
|
|
margin: '0 20px'
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setopendaoru(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u5BFC\u5165\u6218\u961F"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Teammodules.button,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
(0,util/* downLoadLink */.Nd)(null, env/* default */.Z.API_SERVER + "/api/competitions/".concat(identifier, "/competition_teams.xlsx"));
|
|
|
|
|
},
|
|
|
|
|
children: "\u5BFC\u51FA\u6218\u961F"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), params.isteam === 'mine' && (competition_team === null || competition_team === void 0 || (_competition_team$my_ = competition_team.my_teams) === null || _competition_team$my_ === void 0 ? void 0 : _competition_team$my_.filter(function (item) {
|
|
|
|
|
return !item.active;
|
|
|
|
|
@ -5665,7 +5670,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
align: 'right',
|
|
|
|
|
dataIndex: 'role',
|
|
|
|
|
render: function render(text, items, index) {
|
|
|
|
|
var _user$userInfo, _my_teams$creator;
|
|
|
|
|
var _user$userInfo;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -5681,7 +5686,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: "\u67E5\u770B"
|
|
|
|
|
})
|
|
|
|
|
}), (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) === (my_teams === null || my_teams === void 0 || (_my_teams$creator = my_teams.creator) === null || _my_teams$creator === void 0 ? void 0 : _my_teams$creator.login) && (my_teams === null || my_teams === void 0 ? void 0 : my_teams.id) !== (items === null || items === void 0 ? void 0 : items.id) && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
|
|
|
}), (user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) === leaderLogin && (my_teams === null || my_teams === void 0 ? void 0 : my_teams.id) !== (items === null || items === void 0 ? void 0 : items.id) && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
|
|
|
children: items !== null && items !== void 0 && items.can_appling ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#3061D0'
|
|
|
|
|
@ -5821,7 +5826,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
dataIndex: 'status',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
var _user$userInfo2, _my_teams$creator2;
|
|
|
|
|
var _user$userInfo2;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [(record === null || record === void 0 ? void 0 : record.me_appling) && ['1', 'appling'].includes(text) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
@ -5838,7 +5843,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
color: '#E30000'
|
|
|
|
|
},
|
|
|
|
|
children: "\u88AB\u9A73\u56DE"
|
|
|
|
|
}), (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) === (my_teams === null || my_teams === void 0 || (_my_teams$creator2 = my_teams.creator) === null || _my_teams$creator2 === void 0 ? void 0 : _my_teams$creator2.login) && !(record !== null && record !== void 0 && record.me_appling) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
}), (user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) === leaderLogin && !(record !== null && record !== void 0 && record.me_appling) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#E30000',
|
|
|
|
|
@ -6591,6 +6596,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt10",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.TextArea, {
|
|
|
|
|
value: applyReason,
|
|
|
|
|
maxLength: 200,
|
|
|
|
|
placeholder: "\u5FC5\u586B\uFF0C\u8BF7\u586B\u5199\u7533\u8BF7\u539F\u56E0",
|
|
|
|
|
style: {
|
|
|
|
|
@ -8956,7 +8962,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}),
|
|
|
|
|
key: item === null || item === void 0 ? void 0 : item.id,
|
|
|
|
|
disableCheckbox: true,
|
|
|
|
|
// disableCheckbox: true,
|
|
|
|
|
tag: (item === null || item === void 0 ? void 0 : item.task) + "/" + (item === null || item === void 0 ? void 0 : item.license),
|
|
|
|
|
children: item === null || item === void 0 || (_item$attachments = item.attachments) === null || _item$attachments === void 0 ? void 0 : _item$attachments.map(function (jtem) {
|
|
|
|
|
return {
|
|
|
|
|
@ -8983,11 +8989,11 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
var _nodes$checkedNodes;
|
|
|
|
|
console.log("checkedKeys--", checkedKeys, 'nodes--', nodes);
|
|
|
|
|
var titles = [];
|
|
|
|
|
var tempSelectNodes = nodes === null || nodes === void 0 || (_nodes$checkedNodes = nodes.checkedNodes) === null || _nodes$checkedNodes === void 0 ? void 0 : _nodes$checkedNodes.map(function (item) {
|
|
|
|
|
var tempSelectNodes = nodes === null || nodes === void 0 || (_nodes$checkedNodes = nodes.checkedNodes) === null || _nodes$checkedNodes === void 0 ? void 0 : _nodes$checkedNodes.filter(function (item) {
|
|
|
|
|
if (!(item !== null && item !== void 0 && item.tag)) {
|
|
|
|
|
titles.push(item === null || item === void 0 ? void 0 : item.title);
|
|
|
|
|
return item;
|
|
|
|
|
}
|
|
|
|
|
return !(item !== null && item !== void 0 && item.tag);
|
|
|
|
|
});
|
|
|
|
|
console.log("tempSelectNodes--", tempSelectNodes);
|
|
|
|
|
var duplicates = titles === null || titles === void 0 ? void 0 : titles.filter(function (title, index) {
|
|
|
|
|
@ -9701,7 +9707,17 @@ var NewCoursePage = function NewCoursePage(_ref) {
|
|
|
|
|
switcherIcon: function switcherIcon(_ref8) {
|
|
|
|
|
var isLeaf = _ref8.isLeaf,
|
|
|
|
|
expanded = _ref8.expanded;
|
|
|
|
|
return expanded ? /*#__PURE__*/(0,jsx_runtime.jsx)(MinusSquareOutlined/* default */.Z, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(PlusSquareOutlined/* default */.Z, {});
|
|
|
|
|
return expanded ? /*#__PURE__*/(0,jsx_runtime.jsx)(MinusSquareOutlined/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#BACFFE',
|
|
|
|
|
fontSize: '14px'
|
|
|
|
|
}
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(PlusSquareOutlined/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#BACFFE',
|
|
|
|
|
fontSize: '14px'
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
|
|
|
@ -12515,7 +12531,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
fileListRef.current = fileList;
|
|
|
|
|
}, [fileList]);
|
|
|
|
|
var uploadProps = {
|
|
|
|
|
multiple: true,
|
|
|
|
|
multiple: false,
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
showUploadList: false,
|
|
|
|
|
maxCount: 1,
|
|
|
|
|
@ -12590,8 +12606,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
fileName: name,
|
|
|
|
|
chunkCount: totalChunks,
|
|
|
|
|
size: file === null || file === void 0 ? void 0 : file.size,
|
|
|
|
|
lastModified: file === null || file === void 0 ? void 0 : file.lastModified,
|
|
|
|
|
container_type: 'DataSet'
|
|
|
|
|
lastModified: file === null || file === void 0 ? void 0 : file.lastModified
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 7:
|
|
|
|
|
@ -12629,7 +12644,6 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
formData.append('fileName', name);
|
|
|
|
|
formData.append('chunkIndex', (i + 1).toString());
|
|
|
|
|
formData.append('uploadId', uploadId);
|
|
|
|
|
formData.append('container_type', 'DataSet');
|
|
|
|
|
promises.push(function () {
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/attachments/multipart_upload", {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
@ -12665,7 +12679,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
case 10:
|
|
|
|
|
case 9:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -12712,8 +12726,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
body: {
|
|
|
|
|
fileName: file.name,
|
|
|
|
|
chunkCount: totalChunks,
|
|
|
|
|
uploadId: uploadId,
|
|
|
|
|
container_type: 'DataSet'
|
|
|
|
|
uploadId: uploadId
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 35:
|
|
|
|
|
@ -13083,6 +13096,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
width: 333
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z.Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, {
|
|
|
|
|
disabled: fileList === null || fileList === void 0 ? void 0 : fileList.length,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
@ -13172,7 +13186,7 @@ var Entrance = function Entrance(_ref) {
|
|
|
|
|
href: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data7 = CommitRecords.data) === null || _CommitRecords$data7 === void 0 ? void 0 : _CommitRecords$data7.git_address,
|
|
|
|
|
children: CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data8 = CommitRecords.data) === null || _CommitRecords$data8 === void 0 ? void 0 : _CommitRecords$data8.git_address
|
|
|
|
|
})]
|
|
|
|
|
}), !(CommitRecords !== null && CommitRecords !== void 0 && (_CommitRecords$data9 = CommitRecords.data) !== null && _CommitRecords$data9 !== void 0 && (_CommitRecords$data9 = _CommitRecords$data9.records) !== null && _CommitRecords$data9 !== void 0 && _CommitRecords$data9.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
}), (CommitRecords === null || CommitRecords === void 0 || (_CommitRecords$data9 = CommitRecords.data) === null || _CommitRecords$data9 === void 0 || (_CommitRecords$data9 = _CommitRecords$data9.records) === null || _CommitRecords$data9 === void 0 ? void 0 : _CommitRecords$data9.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "mt30",
|
|
|
|
|
style: {
|
|
|
|
|
borderTop: "1px solid #F1F1F1"
|
|
|
|
|
@ -14485,7 +14499,7 @@ var Playerwork = function Playerwork(_ref) {
|
|
|
|
|
className: Playerworkmodules.yulan,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-tishi11 font12 mr10"
|
|
|
|
|
}), "\u4E3A\u4E86\u4FDD\u969C\u60A8\u7684\u53C2\u8D5B\u6743\u76CA\uFF0C\u8BF7\u60A8\u4ED4\u7EC6\u9605\u8BFB\u4EE5\u4E0B\u5185\u5BB9\uFF01"]
|
|
|
|
|
}), "\u8BF7\u6CE8\u610F\uFF1A\u5728\u6267\u884C\u4F5C\u54C1\u67E5\u91CD\u64CD\u4F5C\u540E\uFF0C\u82E5\u5B66\u751F\u63D0\u4EA4\u65B0\u7684\u4F5C\u54C1\u6587\u4EF6\uFF0C\u65B0\u4F5C\u54C1\u4E0D\u8BA1\u5165\u672C\u6B21\u67E5\u91CD\u7ED3\u679C\u3002"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
|
|
dataSource: [{
|
|
|
|
|
title: checkInfo === null || checkInfo === void 0 ? void 0 : checkInfo.name,
|
|
|
|
|
@ -15322,7 +15336,7 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
className: DuplicateCheckmodules.yulan,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-tishi11 font12 mr10"
|
|
|
|
|
}), "\u4E3A\u4E86\u4FDD\u969C\u60A8\u7684\u53C2\u8D5B\u6743\u76CA\uFF0C\u8BF7\u60A8\u4ED4\u7EC6\u9605\u8BFB\u4EE5\u4E0B\u5185\u5BB9\uFF01"]
|
|
|
|
|
}), "\u8BF7\u6CE8\u610F\uFF1A\u5728\u6267\u884C\u4F5C\u54C1\u67E5\u91CD\u64CD\u4F5C\u540E\uFF0C\u82E5\u5B66\u751F\u63D0\u4EA4\u65B0\u7684\u4F5C\u54C1\u6587\u4EF6\uFF0C\u65B0\u4F5C\u54C1\u4E0D\u8BA1\u5165\u672C\u6B21\u67E5\u91CD\u7ED3\u679C\u3002"]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
|
|
dataSource: [{
|
|
|
|
|
title: checkInfo === null || checkInfo === void 0 ? void 0 : checkInfo.name,
|