Auto Submit

dev_local_v9_test6
autosubmit 1 year ago
parent 9b77b8bd6b
commit 519b4a886c

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

@ -4838,6 +4838,43 @@ body {
text-overflow: ellipsis;
color: #3061D0;
}
.Onerow___kroIv {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.mirrModalSty___GMrQo .mirrorItem___PC4Fm {
display: flex;
align-items: center;
justify-content: space-between;
height: 96px;
padding-top: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #f5f5f5;
}
.mirrModalSty___GMrQo .mirrorItem___PC4Fm .tagSty___nQqAp {
font-size: 15px;
color: #0366d6;
margin-bottom: 5px;
}
.mirrModalSty___GMrQo .mirrorItem___PC4Fm .descTagSty___Saz__ {
margin-bottom: 4px;
}
.mirrModalSty___GMrQo .mirrorItem___PC4Fm .descTagSty___Saz__ span {
padding: 2px 4px;
background-color: #e8e8e8;
color: rgba(0, 0, 0, 0.6);
font-weight: 700;
margin-left: 4px;
}
.mirrModalSty___GMrQo .mirrorItem___PC4Fm .description___mSNUz {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
}
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.35@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.35@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Competitions/Edit/Setting/personnel/index.less?modules ***!

@ -8550,7 +8550,7 @@ var add_img_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABA
var tree = __webpack_require__(46819);
;// CONCATENATED MODULE: ./src/pages/Competitions/Edit/Setting/questions/addQuestions.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var addQuestionsmodules = ({"bg":"bg___ZTUqe","title":"title___RJsvV","title_text":"title_text___wCMl_","fieldWrap":"fieldWrap___QdCjd","mdWrap":"mdWrap___cnGxs","footer_style":"footer_style___Qo1Vx","submit_button":"submit_button___KWJXN","close_button":"close_button___TyEGS","content":"content___xc7lB","form_item":"form_item___KsNeu","form_item_basic":"form_item_basic___NWTAb","form_item_time":"form_item_time___Q9IfX","form_item_model":"form_item_model___lhG4k","form_item_item":"form_item_item___HtOSL","form_item_item_select":"form_item_item_select___o5ylk","textarea_father":"textarea_father___bar45","textarea_length":"textarea_length___GjKNa","upload_button":"upload_button___SYv04","upload_button_file":"upload_button_file___oORVt","upload_text":"upload_text___bmCED","date_text":"date_text___Coi3W","upload_download":"upload_download___Karq5","checkbox_text":"checkbox_text___h8LqU","saiti":"saiti___7HTYg","title_saiti":"title_saiti___l4bxJ","add_people":"add_people___Gw_ed","people_icon":"people_icon___jXRfx","content_info":"content_info___PEfmB","info_icon":"info_icon___m61ux","info_title":"info_title___edYkq","info_update":"info_update___tSlQJ","info_delete":"info_delete___gYOJ8","questions_info":"questions_info___M0DT6","form_item_small":"form_item_small___x72TI","guanka_title":"guanka_title___L397j","form_item_item_small":"form_item_item_small___DEvEr","guanka_icon":"guanka_icon___WhT34","nandu_1":"nandu_1___l2N85","nandu_2":"nandu_2___sKLv9","nandu_3":"nandu_3___iCULt","close_icon":"close_icon___AAaPq","MdEditor":"MdEditor___Xr0CF","Onerow":"Onerow___kroIv","dataSetModSty":"dataSetModSty___V_RD8","boxLeft":"boxLeft___LlBaf","listSty":"listSty___hTRxO","boxRight":"boxRight___VzXqv","titleSty":"titleSty___eSJAC"});
/* harmony default export */ var addQuestionsmodules = ({"bg":"bg___ZTUqe","title":"title___RJsvV","title_text":"title_text___wCMl_","fieldWrap":"fieldWrap___QdCjd","mdWrap":"mdWrap___cnGxs","footer_style":"footer_style___Qo1Vx","submit_button":"submit_button___KWJXN","close_button":"close_button___TyEGS","content":"content___xc7lB","form_item":"form_item___KsNeu","form_item_basic":"form_item_basic___NWTAb","form_item_time":"form_item_time___Q9IfX","form_item_model":"form_item_model___lhG4k","form_item_item":"form_item_item___HtOSL","form_item_item_select":"form_item_item_select___o5ylk","textarea_father":"textarea_father___bar45","textarea_length":"textarea_length___GjKNa","upload_button":"upload_button___SYv04","upload_button_file":"upload_button_file___oORVt","upload_text":"upload_text___bmCED","date_text":"date_text___Coi3W","upload_download":"upload_download___Karq5","checkbox_text":"checkbox_text___h8LqU","saiti":"saiti___7HTYg","title_saiti":"title_saiti___l4bxJ","add_people":"add_people___Gw_ed","people_icon":"people_icon___jXRfx","content_info":"content_info___PEfmB","info_icon":"info_icon___m61ux","info_title":"info_title___edYkq","info_update":"info_update___tSlQJ","info_delete":"info_delete___gYOJ8","questions_info":"questions_info___M0DT6","form_item_small":"form_item_small___x72TI","guanka_title":"guanka_title___L397j","form_item_item_small":"form_item_item_small___DEvEr","guanka_icon":"guanka_icon___WhT34","nandu_1":"nandu_1___l2N85","nandu_2":"nandu_2___sKLv9","nandu_3":"nandu_3___iCULt","close_icon":"close_icon___AAaPq","MdEditor":"MdEditor___Xr0CF","Onerow":"Onerow___kroIv","dataSetModSty":"dataSetModSty___V_RD8","boxLeft":"boxLeft___LlBaf","listSty":"listSty___hTRxO","boxRight":"boxRight___VzXqv","titleSty":"titleSty___eSJAC","mirrModalSty":"mirrModalSty___GMrQo","mirrorItem":"mirrorItem___PC4Fm","tagSty":"tagSty___nQqAp","descTagSty":"descTagSty___Saz__","description":"description___mSNUz"});
;// CONCATENATED MODULE: ./src/pages/Competitions/Edit/Setting/questions/addItem.tsx
@ -8969,18 +8969,6 @@ var NewCoursePage = function NewCoursePage(_ref) {
_useState10 = slicedToArray_default()(_useState9, 2),
setItem = _useState10[0],
setsetItem = _useState10[1];
// const [mirrorList, setMirrorList] = useState([
// {
// "image_name": "mindspore_2_1_cann_6_3_xianxing-train",
// "image_url": "",
// "image_id": "qb39830ff2e445cdbb53a26690405811"
// }
// ]);
// const [specificList, setSpecificList] = useState([{
// id:123,
// label:'测试1'
// }]);
var _useState11 = (0,_react_17_0_2_react.useState)([]),
_useState12 = slicedToArray_default()(_useState11, 2),
mirrorList = _useState12[0],
@ -9001,15 +8989,6 @@ var NewCoursePage = function NewCoursePage(_ref) {
_useState20 = slicedToArray_default()(_useState19, 2),
dataSetList = _useState20[0],
setDataSetList = _useState20[1];
// const [treeData, setTreeeData] = useState([{
// title:'ceshi1',
// key:12,
// tag:'1213',
// children:[{
// title:'数1',
// key:'yy'
// }]
// }]);
var _useState21 = (0,_react_17_0_2_react.useState)([]),
_useState22 = slicedToArray_default()(_useState21, 2),
treeData = _useState22[0],
@ -9029,6 +9008,29 @@ var NewCoursePage = function NewCoursePage(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
dataSetParams = _useState28[0],
setDataSetParams = _useState28[1];
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
imageModalVis = _useState30[0],
setImageModalVis = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)([]),
_useState32 = slicedToArray_default()(_useState31, 2),
gpuMirrorList = _useState32[0],
setGpuMirrorList = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)(24),
_useState34 = slicedToArray_default()(_useState33, 2),
gpuMirrorCount = _useState34[0],
setGpuMirrorCount = _useState34[1];
var _useState35 = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 5
}),
_useState36 = slicedToArray_default()(_useState35, 2),
gpuParams = _useState36[0],
setGpuParams = _useState36[1];
var _useState37 = (0,_react_17_0_2_react.useState)([]),
_useState38 = slicedToArray_default()(_useState37, 2),
gpuImage = _useState38[0],
setGpuImage = _useState38[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _classroomList$action;
console.log('classroomList?.actionTabs---', classroomList === null || classroomList === void 0 ? void 0 : classroomList.actionTabs);
@ -9134,15 +9136,48 @@ var NewCoursePage = function NewCoursePage(_ref) {
return _ref4.apply(this, arguments);
};
}();
var getGpuMirrorList = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("https://openi.pcl.ac.cn/api/v1/images/recommend", {
method: 'get',
ismin: true,
params: {
cloudbrainType: -1,
computeResource: 'GPU',
spec: -1,
onlyOpenIImage: true,
page: gpuParams.page || 1,
pageSize: gpuParams.limit || 5
}
});
case 2:
res = _context2.sent;
setGpuMirrorCount((res === null || res === void 0 ? void 0 : res.count) || 0);
setGpuMirrorList((res === null || res === void 0 ? void 0 : res.images) || []);
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getGpuMirrorList() {
return _ref5.apply(this, arguments);
};
}();
// 获取数据集
var getDataSetList = /*#__PURE__*/function () {
var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(keyword, page, limit, cluster_type) {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(keyword, page, limit, cluster_type) {
var res, _res$data4, tempTreeData;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context2.next = 2;
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/get_datasets.json"), {
method: 'get',
params: {
@ -9154,7 +9189,7 @@ var NewCoursePage = function NewCoursePage(_ref) {
}
});
case 2:
res = _context2.sent;
res = _context3.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
tempTreeData = res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 || (_res$data4 = _res$data4.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.map(function (item, index) {
var _item$attachments;
@ -9193,12 +9228,12 @@ var NewCoursePage = function NewCoursePage(_ref) {
}
case 4:
case "end":
return _context2.stop();
return _context3.stop();
}
}, _callee2);
}, _callee3);
}));
return function getDataSetList(_x3, _x4, _x5, _x6) {
return _ref5.apply(this, arguments);
return _ref6.apply(this, arguments);
};
}();
var handleCheck = function handleCheck(checkedKeys, nodes) {
@ -9231,10 +9266,10 @@ var NewCoursePage = function NewCoursePage(_ref) {
message/* default */.ZP.warning('请添加赛题');
return false;
}
form.validateFields().then( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
form.validateFields().then( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _mirrorList$find;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if ((formValue === null || formValue === void 0 ? void 0 : formValue.category) === 2 || (formValue === null || formValue === void 0 ? void 0 : formValue.category) === 3) {
formValue.data_sets = selectDataset === null || selectDataset === void 0 ? void 0 : selectDataset.map(function (item) {
@ -9243,9 +9278,14 @@ var NewCoursePage = function NewCoursePage(_ref) {
uuid: item === null || item === void 0 ? void 0 : item.key
};
});
formValue.image_name = (_mirrorList$find = mirrorList.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.image_id) === (formValue === null || formValue === void 0 ? void 0 : formValue.image_id);
})) === null || _mirrorList$find === void 0 ? void 0 : _mirrorList$find.image_name;
if ((formValue === null || formValue === void 0 ? void 0 : formValue.category) === 2) {
formValue.image_name = mirrorList === null || mirrorList === void 0 || (_mirrorList$find = mirrorList.find(function (item) {
return (item === null || item === void 0 ? void 0 : item.image_id) === (formValue === null || formValue === void 0 ? void 0 : formValue.image_id);
})) === null || _mirrorList$find === void 0 ? void 0 : _mirrorList$find.image_name;
} else {
formValue.image_name = gpuImage[0].image_name;
formValue.image_id = gpuImage[0].image_id;
}
}
console.log('formValue--', formValue);
if (sectionid) {
@ -9288,9 +9328,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
}
case 3:
case "end":
return _context3.stop();
return _context4.stop();
}
}, _callee3);
}, _callee4);
})));
};
var changetime = function changetime(e, type) {
@ -9632,64 +9672,128 @@ var NewCoursePage = function NewCoursePage(_ref) {
rows: 6
})
})]
}), (formValue.category === 2 || formValue.category === 3) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 12,
className: "pr20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
label: "\u955C\u50CF",
colon: false,
name: "image_id",
rules: [{
required: true,
message: '请选择镜像'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
onChange: function onChange(e) {},
showSearch: true,
placeholder: "\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
fieldNames: {
label: 'image_name',
value: 'image_id'
},
filterOption: function filterOption(input, option) {
var _option$image_name;
return ((_option$image_name = option === null || option === void 0 ? void 0 : option.image_name) !== null && _option$image_name !== void 0 ? _option$image_name : '').toLowerCase().includes(input.toLowerCase());
},
options: mirrorList
})
}), formValue.category === 2 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 12,
className: "pr20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
label: "\u955C\u50CF",
colon: false,
name: "image_id",
rules: [{
required: true,
message: '请选择镜像'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
onChange: function onChange(e) {},
showSearch: true,
placeholder: "\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
fieldNames: {
label: 'image_name',
value: 'image_id'
},
filterOption: function filterOption(input, option) {
var _option$image_name;
return ((_option$image_name = option === null || option === void 0 ? void 0 : option.image_name) !== null && _option$image_name !== void 0 ? _option$image_name : '').toLowerCase().includes(input.toLowerCase());
},
options: mirrorList
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 12,
className: "pl20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
label: "\u89C4\u683C",
colon: false,
name: "spec_id",
rules: [{
required: true,
message: '请选择规格'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
showSearch: true,
placeholder: "\u8BF7\u8F93\u5165\u89C4\u683C\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
fieldNames: {
label: 'label',
value: 'id'
},
filterOption: function filterOption(input, option) {
var _option$label;
console.log("inputgui, option----", input, option);
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
},
options: specificList
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 12,
className: "pl20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
label: "\u89C4\u683C",
colon: false,
name: "spec_id",
rules: [{
required: true,
message: '请选择规格'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
showSearch: true,
placeholder: "\u8BF7\u8F93\u5165\u89C4\u683C\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
fieldNames: {
label: 'label',
value: 'id'
},
filterOption: function filterOption(input, option) {
var _option$label;
console.log("inputgui, option----", input, option);
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
},
options: specificList
})
})
})]
}), formValue.category === 3 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
span: 12,
className: "pr20",
style: {
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
style: {
flex: 1
},
label: "\u955C\u50CF",
colon: false,
name: "image_name",
rules: [{
required: true,
message: '请选择镜像'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: addQuestionsmodules.form_item_item,
placeholder: "\u8BF7\u9009\u62E9\u955C\u50CF",
disabled: true
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
style: {
marginLeft: '10px',
marginTop: '6px'
},
onClick: function onClick() {
setImageModalVis(true);
getGpuMirrorList();
},
children: "\u9009\u62E9\u955C\u50CF"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
span: 12,
className: "pl20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
className: addQuestionsmodules.form_item,
label: "\u89C4\u683C",
colon: false,
name: "spec_id",
rules: [{
required: true,
message: '请选择规格'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
showSearch: true,
placeholder: "\u8BF7\u8F93\u5165\u89C4\u683C\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
fieldNames: {
label: 'label',
value: 'id'
},
filterOption: function filterOption(input, option) {
var _option$label2;
console.log("inputgui, option----", input, option);
return ((_option$label2 = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label2 !== void 0 ? _option$label2 : '').toLowerCase().includes(input.toLowerCase());
},
options: specificList
})
})
})]
}), (formValue.category === 2 || formValue.category === 3) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
style: {
@ -9900,17 +10004,17 @@ var NewCoursePage = function NewCoursePage(_ref) {
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
zIndex: 1000,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
var _selectDataset$map;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
if (!((selectDataset === null || selectDataset === void 0 ? void 0 : selectDataset.length) === 0)) {
_context4.next = 3;
_context5.next = 3;
break;
}
message/* default */.ZP.info('请选择数据集');
return _context4.abrupt("return");
return _context5.abrupt("return");
case 3:
form.setFieldValue('data_sets', selectDataset === null || selectDataset === void 0 || (_selectDataset$map = selectDataset.map(function (item) {
return item === null || item === void 0 ? void 0 : item.title;
@ -9918,9 +10022,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
setShowDataSet(false);
case 5:
case "end":
return _context4.stop();
return _context5.stop();
}
}, _callee4);
}, _callee5);
})),
onCancel: function onCancel() {
setShowDataSet(false);
@ -9953,9 +10057,9 @@ var NewCoursePage = function NewCoursePage(_ref) {
onCheck: handleCheck,
checkedKeys: checkedKeys,
blockNode: true,
switcherIcon: function switcherIcon(_ref8) {
var isLeaf = _ref8.isLeaf,
expanded = _ref8.expanded;
switcherIcon: function switcherIcon(_ref9) {
var isLeaf = _ref9.isLeaf,
expanded = _ref9.expanded;
return expanded ? /*#__PURE__*/(0,jsx_runtime.jsx)(MinusSquareOutlined/* default */.Z, {
style: {
color: '#BACFFE',
@ -10044,16 +10148,116 @@ var NewCoursePage = function NewCoursePage(_ref) {
})]
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
className: addQuestionsmodules.addStudentWrapContainer,
centered: true,
title: "\u9009\u62E9\u955C\u50CF",
open: imageModalVis,
width: 800,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
zIndex: 1000,
onOk: /*#__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 (!((gpuImage === null || gpuImage === void 0 ? void 0 : gpuImage.length) === 0)) {
_context6.next = 3;
break;
}
message/* default */.ZP.info('选择镜像');
return _context6.abrupt("return");
case 3:
form.setFieldValue('image_name', gpuImage[0].image_name);
setImageModalVis(false);
case 5:
case "end":
return _context6.stop();
}
}, _callee6);
})),
onCancel: function onCancel() {
setImageModalVis(false);
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: addQuestionsmodules.mirrModalSty,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5E73\u53F0\u63A8\u8350\u955C\u50CF"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: gpuMirrorList.map(function (item, index) {
var _item$topics;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: addQuestionsmodules.mirrorItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: 1
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: addQuestionsmodules.tagSty,
title: item === null || item === void 0 ? void 0 : item.tag,
children: item === null || item === void 0 ? void 0 : item.tag
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: addQuestionsmodules.descTagSty,
children: item === null || item === void 0 || (_item$topics = item.topics) === null || _item$topics === void 0 ? void 0 : _item$topics.map(function (jtem, jdex) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: jtem
}, jdex);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: addQuestionsmodules.description,
title: item === null || item === void 0 ? void 0 : item.description,
children: item === null || item === void 0 ? void 0 : item.description
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "ml20 current",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
var imageInfo = {
image_name: item.tag,
image_id: item.image_id
};
setGpuImage([objectSpread2_default()({}, imageInfo)]);
},
children: "\u4F7F\u7528"
})
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
hideOnSinglePage: true,
className: "mt20",
size: "small",
current: gpuParams.page,
pageSize: gpuParams.limit,
total: gpuMirrorCount || 0,
showTotal: function showTotal(total) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0'
},
children: total
}), "\u6761\u6570\u636E"]
});
},
onChange: function onChange(page, limit) {
gpuParams.page = page;
gpuParams.limit = limit;
getGpuMirrorList();
setGpuParams(objectSpread2_default()({}, gpuParams));
}
})]
})
})]
});
};
/* harmony default export */ var addQuestions = ((0,_umi_production_exports.connect)(function (_ref9) {
var shixunHomeworks = _ref9.shixunHomeworks,
newCourse = _ref9.newCourse,
loading = _ref9.loading,
globalSetting = _ref9.globalSetting,
classroomList = _ref9.classroomList,
competitions = _ref9.competitions;
/* harmony default export */ var addQuestions = ((0,_umi_production_exports.connect)(function (_ref11) {
var shixunHomeworks = _ref11.shixunHomeworks,
newCourse = _ref11.newCourse,
loading = _ref11.loading,
globalSetting = _ref11.globalSetting,
classroomList = _ref11.classroomList,
competitions = _ref11.competitions;
return {
classroomList: classroomList,
shixunHomeworks: shixunHomeworks,
@ -12771,8 +12975,9 @@ var DataSetModal = function DataSetModal(_ref) {
open: visible,
width: 1100,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
zIndex: 1000,
cancelText: "\u53D6\u6D88"
// zIndex={1000}
,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _selectDataset$map;
var datasetsString, datasets;
@ -13137,8 +13342,9 @@ var PatternModal_DataSetModal = function DataSetModal(_ref) {
open: visible,
width: 1100,
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
zIndex: 1000,
cancelText: "\u53D6\u6D88"
// zIndex={1000}
,
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _selectDataset$map;
var datasetsString, datasets;
@ -14499,7 +14705,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,

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