|
|
|
|
@ -271,7 +271,9 @@ function coverToFileList(data) {
|
|
|
|
|
_ref$number = _ref.number,
|
|
|
|
|
number = _ref$number === void 0 ? 1000 : _ref$number,
|
|
|
|
|
_ref$aloneClear = _ref.aloneClear,
|
|
|
|
|
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear;
|
|
|
|
|
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
|
|
|
|
|
_ref$setIsUpload = _ref.setIsUpload,
|
|
|
|
|
setIsUpload = _ref$setIsUpload === void 0 ? function () {} : _ref$setIsUpload;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
disabled = _useState2[0],
|
|
|
|
|
@ -345,6 +347,11 @@ function coverToFileList(data) {
|
|
|
|
|
message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (info.file.status === 'uploading') {
|
|
|
|
|
setIsUpload(true);
|
|
|
|
|
} else {
|
|
|
|
|
setIsUpload(false);
|
|
|
|
|
}
|
|
|
|
|
if (fileList.length >= number) setDisabled(true);else setDisabled(false);
|
|
|
|
|
setFileList(toConsumableArray_default()(fileList));
|
|
|
|
|
fileList = fileList.map(function (file) {
|
|
|
|
|
@ -4555,6 +4562,10 @@ var AppealModal_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
showModal = _useState2[0],
|
|
|
|
|
setShowModal = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
isUpload = _useState4[0],
|
|
|
|
|
_setIsUpload = _useState4[1];
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: AppealModalmodules.shensu_style,
|
|
|
|
|
@ -4590,7 +4601,14 @@ var AppealModal_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return form.validateFields();
|
|
|
|
|
case 2:
|
|
|
|
|
_context.next = 4;
|
|
|
|
|
console.log('isUpload', isUpload);
|
|
|
|
|
if (!isUpload) {
|
|
|
|
|
_context.next = 5;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context.abrupt("return", message/* default */.ZP.info('请完成传申诉文件上传后在操作!'));
|
|
|
|
|
case 5:
|
|
|
|
|
_context.next = 7;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competition_duplicate_checks/initiate_appeal.json", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -4599,14 +4617,14 @@ var AppealModal_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
attachment_id: (_form$getFieldValue = form.getFieldValue('attachment_id')) === null || _form$getFieldValue === void 0 || (_form$getFieldValue = _form$getFieldValue[0]) === null || _form$getFieldValue === void 0 || (_form$getFieldValue = _form$getFieldValue.response) === null || _form$getFieldValue === void 0 ? void 0 : _form$getFieldValue.id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
case 7:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
setShowModal(false);
|
|
|
|
|
form.resetFields();
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case 9:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -4639,7 +4657,10 @@ var AppealModal_competitionsPage = function competitionsPage(_ref) {
|
|
|
|
|
name: "attachment_id",
|
|
|
|
|
colon: false,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {
|
|
|
|
|
number: 1
|
|
|
|
|
number: 1,
|
|
|
|
|
setIsUpload: function setIsUpload(e) {
|
|
|
|
|
return _setIsUpload(e);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -14604,6 +14625,10 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
urlData = _useState2[0],
|
|
|
|
|
setUrlData = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
confirmLoading = _useState4[0],
|
|
|
|
|
setConfirmLoading = _useState4[1];
|
|
|
|
|
var Columns = [{
|
|
|
|
|
title: "被查战队",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
@ -14754,34 +14779,34 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
//查重
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
checkData = _useState4[0],
|
|
|
|
|
setCheckData = _useState4[1];
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
|
|
|
checkCount = _useState6[0],
|
|
|
|
|
setCheckCount = _useState6[1];
|
|
|
|
|
checkData = _useState6[0],
|
|
|
|
|
setCheckData = _useState6[1];
|
|
|
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
|
|
|
allCount = _useState8[0],
|
|
|
|
|
setAllCount = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
checkCount = _useState8[0],
|
|
|
|
|
setCheckCount = _useState8[1];
|
|
|
|
|
var _useState9 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
checkTime = _useState10[0],
|
|
|
|
|
setCheckTime = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
allCount = _useState10[0],
|
|
|
|
|
setAllCount = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
checkLoading = _useState12[0],
|
|
|
|
|
setCheckLoading = _useState12[1];
|
|
|
|
|
checkTime = _useState12[0],
|
|
|
|
|
setCheckTime = _useState12[1];
|
|
|
|
|
var _useState13 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
|
|
|
showCheck = _useState14[0],
|
|
|
|
|
setShowCheck = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
checkLoading = _useState14[0],
|
|
|
|
|
setCheckLoading = _useState14[1];
|
|
|
|
|
var _useState15 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
|
|
|
checkInfo = _useState16[0],
|
|
|
|
|
setCheckInfo = _useState16[1];
|
|
|
|
|
showCheck = _useState16[0],
|
|
|
|
|
setShowCheck = _useState16[1];
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
checkInfo = _useState18[0],
|
|
|
|
|
setCheckInfo = _useState18[1];
|
|
|
|
|
var appealColumnsNo = [{
|
|
|
|
|
title: "选手名称",
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
@ -14967,37 +14992,37 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
//申诉
|
|
|
|
|
var _useState17 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState18 = slicedToArray_default()(_useState17, 2),
|
|
|
|
|
appealData = _useState18[0],
|
|
|
|
|
setAppealData = _useState18[1];
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
var _useState19 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState20 = slicedToArray_default()(_useState19, 2),
|
|
|
|
|
appealCount = _useState20[0],
|
|
|
|
|
setAppealCount = _useState20[1];
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(1),
|
|
|
|
|
appealData = _useState20[0],
|
|
|
|
|
setAppealData = _useState20[1];
|
|
|
|
|
var _useState21 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState22 = slicedToArray_default()(_useState21, 2),
|
|
|
|
|
appealPage = _useState22[0],
|
|
|
|
|
setAppealPage = _useState22[1];
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
appealCount = _useState22[0],
|
|
|
|
|
setAppealCount = _useState22[1];
|
|
|
|
|
var _useState23 = (0,_react_17_0_2_react.useState)(1),
|
|
|
|
|
_useState24 = slicedToArray_default()(_useState23, 2),
|
|
|
|
|
appealLoading = _useState24[0],
|
|
|
|
|
setAppealLoading = _useState24[1];
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
appealPage = _useState24[0],
|
|
|
|
|
setAppealPage = _useState24[1];
|
|
|
|
|
var _useState25 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState26 = slicedToArray_default()(_useState25, 2),
|
|
|
|
|
appealType = _useState26[0],
|
|
|
|
|
setAppealType = _useState26[1];
|
|
|
|
|
appealLoading = _useState26[0],
|
|
|
|
|
setAppealLoading = _useState26[1];
|
|
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
appealType = _useState28[0],
|
|
|
|
|
setAppealType = _useState28[1];
|
|
|
|
|
var _Form$useForm = es_form/* default */.Z.useForm(),
|
|
|
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
|
|
|
form = _Form$useForm2[0];
|
|
|
|
|
var _useState27 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState28 = slicedToArray_default()(_useState27, 2),
|
|
|
|
|
showModal = _useState28[0],
|
|
|
|
|
setShowModal = _useState28[1];
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
var _useState29 = (0,_react_17_0_2_react.useState)(false),
|
|
|
|
|
_useState30 = slicedToArray_default()(_useState29, 2),
|
|
|
|
|
modalId = _useState30[0],
|
|
|
|
|
setModalId = _useState30[1];
|
|
|
|
|
showModal = _useState30[0],
|
|
|
|
|
setShowModal = _useState30[1];
|
|
|
|
|
var _useState31 = (0,_react_17_0_2_react.useState)(''),
|
|
|
|
|
_useState32 = slicedToArray_default()(_useState31, 2),
|
|
|
|
|
modalId = _useState32[0],
|
|
|
|
|
setModalId = _useState32[1];
|
|
|
|
|
|
|
|
|
|
//获取查重数据列表
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
@ -15319,6 +15344,7 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
|
|
|
|
confirmLoading: confirmLoading,
|
|
|
|
|
centered: true,
|
|
|
|
|
width: 600,
|
|
|
|
|
title: "\u4F5C\u54C1\u67E5\u91CD",
|
|
|
|
|
@ -15333,20 +15359,22 @@ var DuplicateCheck_Playerwork = function Playerwork(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context7.next = 2;
|
|
|
|
|
setConfirmLoading(true);
|
|
|
|
|
_context7.next = 3;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/competition_duplicate_checks.json", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
stage_section_id: urlData.stage_section_id
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context7.sent;
|
|
|
|
|
if (res.status == 0) {
|
|
|
|
|
setShowCheck(false);
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
setConfirmLoading(false);
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
}
|