autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent 64e089c885
commit e2ce32b655

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

@ -13864,22 +13864,22 @@ var Entrance = function Entrance(_ref) {
_useState22 = slicedToArray_default()(_useState21, 2),
mirrorParams = _useState22[0],
setMirrorParams = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(false),
var _useState23 = (0,_react_17_0_2_react.useState)([]),
_useState24 = slicedToArray_default()(_useState23, 2),
mirrorModalVis = _useState24[0],
setMirrorModalVis = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)({
defaultPatten = _useState24[0],
setDefaultPatten = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(false),
_useState26 = slicedToArray_default()(_useState25, 2),
mirrorModalVis = _useState26[0],
setMirrorModalVis = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)({
image_name: '',
image_id: '',
place: ''
}),
_useState26 = slicedToArray_default()(_useState25, 2),
mirrorInfo = _useState26[0],
setMirrorInfo = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)([]),
_useState28 = slicedToArray_default()(_useState27, 2),
defaultPatten = _useState28[0],
setDefaultPatten = _useState28[1];
mirrorInfo = _useState28[0],
setMirrorInfo = _useState28[1];
var Columns = [{
title: "提交ID",
dataIndex: "commit_id",
@ -14726,17 +14726,12 @@ var Entrance = function Entrance(_ref) {
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu' || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
payload.commit_type = 2;
payload.data_sets = !!dataSets.length ? dataSets : competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.data_sets;
payload.models = !!models.length ? models : [{
name: "llama_model_7B",
id: "7e99c056-587f-4174-bd15-bff987d364e6"
}];
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'npu') {
payload.image_name = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name);
payload.image_id = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_id) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_id);
}
payload.models = !!models.length ? models : defaultPatten;
payload.image_name = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name);
payload.image_id = (mirrorParams === null || mirrorParams === void 0 ? void 0 : mirrorParams.image_id) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_id);
// [{name: "llama_model_7B", id: "7e99c056-587f-4174-bd15-bff987d364e6"}];
if ((competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.category) === 'gpu') {
payload.image_name = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_name) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_name);
payload.image_id = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.image_id) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.image_id);
payload.place = (mirrorInfo === null || mirrorInfo === void 0 ? void 0 : mirrorInfo.place) || (competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.place);
}
}
@ -14752,6 +14747,7 @@ var Entrance = function Entrance(_ref) {
setFileList([]);
setIsEdit(false);
getCompetitionCommitRecords();
setCommitModalVis(false);
if ((res === null || res === void 0 || (_res$del_filename = res.del_filename) === null || _res$del_filename === void 0 ? void 0 : _res$del_filename.length) > 0) {
s3 = new (browser_default()).S3({
apiVersion: '2006-03-01',
@ -15061,7 +15057,7 @@ var Entrance = function Entrance(_ref) {
},
onOk: function onOk() {
form.submit();
setCommitModalVis(false);
// setCommitModalVis(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
className: Entrancemodules.formWrap,
@ -15533,16 +15529,20 @@ var Grade = function Grade(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
gradeModal = _useState4[0],
setGradeModal = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)({
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
confirmLoading = _useState6[0],
setConfirmLoading = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)({
page: 1,
per_page: 10,
competition_id: identifier,
section_id: null,
no_evaluated: false
}),
_useState6 = slicedToArray_default()(_useState5, 2),
urlData = _useState6[0],
setUrlData = _useState6[1];
_useState8 = slicedToArray_default()(_useState7, 2),
urlData = _useState8[0],
setUrlData = _useState8[1];
var Columns = [{
title: "提交ID",
dataIndex: "commit_id",
@ -15772,6 +15772,7 @@ var Grade = function Grade(_ref) {
centered: true,
width: 535,
visible: gradeModal,
confirmLoading: confirmLoading,
onOk: function onOk() {
return form.submit();
},
@ -15786,7 +15787,8 @@ var Grade = function Grade(_ref) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
setConfirmLoading(true);
_context2.next = 3;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_commit_records/").concat(valueAll.record_id, "/subjective_evaluation.json"), {
method: 'post',
body: objectSpread2_default()(objectSpread2_default()({}, valueAll), {}, {
@ -15798,15 +15800,16 @@ var Grade = function Grade(_ref) {
section_id: competitionStage === null || competitionStage === void 0 ? void 0 : competitionStage.id
})
});
case 2:
case 3:
res = _context2.sent;
setConfirmLoading(false);
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success("打分成功");
setFileList([]);
setGradeModal(false);
getData();
}
case 4:
case 6:
case "end":
return _context2.stop();
}

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