Auto Submit

dev_local_v9_test2
autosubmit 2 years ago
parent 913360ebaf
commit 75e9cc19ce

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

@ -937,11 +937,13 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
})(ShixunsListPage));
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
var modal = __webpack_require__(43418);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/CommonStatistics/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var CommonStatisticsmodules = ({"flex_box_center":"flex_box_center___Sxg8U","flex_space_between":"flex_space_between___V1aoo","flex_box_vertical_center":"flex_box_vertical_center___GIpDn","flex_box_center_end":"flex_box_center_end___r8mQY","flex_box_column":"flex_box_column___VIqz0","titlespan":"titlespan___H_hGo","overcount":"overcount___WZucK","porgress":"porgress___anBRj","span1":"span1___HXPTv","span2":"span2___rags1","color_20":"color_20___u9XxK","color_10":"color_10___MCdKT","normal_type_is_common":"normal_type_is_common___P7zug","normal_type_is_jupyter":"normal_type_is_jupyter___tkxUj","normal_type_is_jupyter_lab":"normal_type_is_jupyter_lab___uJ6DZ"});
/* harmony default export */ var CommonStatisticsmodules = ({"flex_box_center":"flex_box_center___Sxg8U","flex_space_between":"flex_space_between___V1aoo","flex_box_vertical_center":"flex_box_vertical_center___GIpDn","flex_box_center_end":"flex_box_center_end___r8mQY","flex_box_column":"flex_box_column___VIqz0","titlespan":"titlespan___H_hGo","overcount":"overcount___WZucK","porgress":"porgress___anBRj","span1":"span1___HXPTv","span2":"span2___rags1","color_20":"color_20___u9XxK","color_10":"color_10___MCdKT","normal_type_is_common":"normal_type_is_common___P7zug","normal_type_is_jupyter":"normal_type_is_jupyter___tkxUj","normal_type_is_jupyter_lab":"normal_type_is_jupyter_lab___uJ6DZ","name":"name___OV309"});
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(64103);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/CommonStatistics/index.tsx
@ -966,7 +968,7 @@ var ui_customization = __webpack_require__(64103);
dayjs_min_default().locale('zh-cn');
//新建数值
var CommonListPage = function CommonListPage(_ref) {
var _homeworkinfo$scoring3, _homeworkinfo$scoring4, _homeworkinfo$scoring5, _homeworkinfo$scoring6;
var _homeworkinfo$scoring3, _homeworkinfo$scoring4, _homeworkinfo$scoring5;
var sendToData = _ref.sendToData,
classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
@ -1025,20 +1027,28 @@ var CommonListPage = function CommonListPage(_ref) {
setHomeWorkList = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(['is_common', 'is_jupyter', 'is_jupyter_lab']),
_useState16 = slicedToArray_default()(_useState15, 2),
selecttype = _useState16[0],
setSelectType = _useState16[1];
selectedOptions1 = _useState16[0],
setSelectedOptions1 = _useState16[1];
var _useState17 = (0,_react_17_0_2_react.useState)(['is_common', 'is_jupyter', 'is_jupyter_lab']),
_useState18 = slicedToArray_default()(_useState17, 2),
selectarr = _useState18[0],
setSelectArr = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(false),
selectedOptions2 = _useState18[0],
setSelectedOptions2 = _useState18[1];
var _useState19 = (0,_react_17_0_2_react.useState)(['is_common', 'is_jupyter', 'is_jupyter_lab']),
_useState20 = slicedToArray_default()(_useState19, 2),
loading = _useState20[0],
setLoading = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(false),
selectedOptions3 = _useState20[0],
setSelectedOptions3 = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)(['is_common', 'is_jupyter', 'is_jupyter_lab']),
_useState22 = slicedToArray_default()(_useState21, 2),
open = _useState22[0],
setOpen = _useState22[1];
selectarr = _useState22[0],
setSelectArr = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(false),
_useState24 = slicedToArray_default()(_useState23, 2),
loading = _useState24[0],
setLoading = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(false),
_useState26 = slicedToArray_default()(_useState25, 2),
open = _useState26[0],
setOpen = _useState26[1];
var staticsRef = (0,_react_17_0_2_react.useRef)();
var getType = {
is_common: '普通类型',
@ -1047,7 +1057,7 @@ var CommonListPage = function CommonListPage(_ref) {
};
(0,_react_17_0_2_react.useEffect)(function () {
getdata();
}, []);
}, [courseGroupId]);
function getdata() {
return _getdata.apply(this, arguments);
}
@ -1073,16 +1083,16 @@ var CommonListPage = function CommonListPage(_ref) {
var _result$data$overall_, _result$data$overall_2, _result$data$overall_3, _result$data$overall_4;
switch (item === null || item === void 0 ? void 0 : item.name) {
case '未提交':
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_ = result.data.overall_info) === null || _result$data$overall_ === void 0 ? void 0 : _result$data$overall_.uncommit) * 100).toPrecision(12));
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_ = result.data.overall_info) === null || _result$data$overall_ === void 0 ? void 0 : _result$data$overall_.uncommit) * 100).toPrecision(12)).toFixed(1);
break;
case '按时提交':
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_2 = result.data.overall_info) === null || _result$data$overall_2 === void 0 ? void 0 : _result$data$overall_2.commit) * 100).toPrecision(12));
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_2 = result.data.overall_info) === null || _result$data$overall_2 === void 0 ? void 0 : _result$data$overall_2.commit) * 100).toPrecision(12)).toFixed(1);
break;
case '延时提交':
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_3 = result.data.overall_info) === null || _result$data$overall_3 === void 0 ? void 0 : _result$data$overall_3.late) * 100).toPrecision(12));
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_3 = result.data.overall_info) === null || _result$data$overall_3 === void 0 ? void 0 : _result$data$overall_3.late) * 100).toPrecision(12)).toFixed(1);
break;
case '重做中':
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_4 = result.data.overall_info) === null || _result$data$overall_4 === void 0 ? void 0 : _result$data$overall_4.redo) * 100).toPrecision(12));
item.passed = parseFloat(((result === null || result === void 0 || (_result$data$overall_4 = result.data.overall_info) === null || _result$data$overall_4 === void 0 ? void 0 : _result$data$overall_4.redo) * 100).toPrecision(12)).toFixed(1);
break;
}
});
@ -1239,7 +1249,7 @@ var CommonListPage = function CommonListPage(_ref) {
type: 'bar',
barWidth: '60%',
data: scoreinfo === null || scoreinfo === void 0 ? void 0 : scoreinfo.map(function (item) {
return item.rate * 100;
return (item.rate * 100).toFixed(1);
}),
label: {
// 添加label配置
@ -1261,8 +1271,9 @@ var CommonListPage = function CommonListPage(_ref) {
width: 180,
render: function render(text, record, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#666666'
className: CommonStatisticsmodules.name,
onClick: function onClick() {
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(record === null || record === void 0 ? void 0 : record.homework_id, "/detail"));
},
children: text
});
@ -1385,7 +1396,7 @@ var CommonListPage = function CommonListPage(_ref) {
style: {
color: "#000"
},
children: [parseFloat((text * 100).toPrecision(12)), "%"]
children: [parseFloat((text * 100).toPrecision(12)).toFixed(1), "%"]
});
}
}, {
@ -1422,15 +1433,27 @@ var CommonListPage = function CommonListPage(_ref) {
display: 'flex',
marginTop: '14px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
flex: '1'
},
children: "\u6574\u4F53\u4F5C\u4E1A\u6982\u89C8"
children: ["\u6574\u4F53\u4F5C\u4E1A\u6982\u89C8 ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
fontSize: 12,
color: '#666666'
},
children: "\u7EDF\u8BA1\u5DF2\u622A\u6B62\u7684\u4F5C\u4E1A"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z.Group, {
defaultValue: ['is_common', 'is_jupyter', 'is_jupyter_lab'],
value: selectedOptions1,
onChange: function onChange(value) {
if ((value === null || value === void 0 ? void 0 : value.length) === 0) {
message/* default */.ZP.warning('至少存在一个选项');
return;
}
setSelectedOptions1(value);
getModuleInfo(value, 0);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
@ -1490,7 +1513,13 @@ var CommonListPage = function CommonListPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z.Group, {
defaultValue: ['is_common', 'is_jupyter', 'is_jupyter_lab'],
value: selectedOptions2,
onChange: function onChange(value) {
if ((value === null || value === void 0 ? void 0 : value.length) === 0) {
message/* default */.ZP.warning('至少存在一个选项');
return;
}
setSelectedOptions2(value);
getModuleInfo(value, 1);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
@ -1537,9 +1566,13 @@ var CommonListPage = function CommonListPage(_ref) {
className: "mr20",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z.Group, {
defaultValue: ['is_common', 'is_jupyter', 'is_jupyter_lab'],
value: selecttype,
value: selectedOptions3,
onChange: function onChange(value) {
setSelectType(value);
if ((value === null || value === void 0 ? void 0 : value.length) === 0) {
message/* default */.ZP.warning('至少存在一个选项');
return;
}
setSelectedOptions3(value);
getModuleInfo(value, 2);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
@ -1614,7 +1647,7 @@ var CommonListPage = function CommonListPage(_ref) {
style: {
color: (item === null || item === void 0 ? void 0 : item.rate) * 100 > 20 ? '#1989FA' : '#E92216'
},
children: [parseFloat(((item === null || item === void 0 ? void 0 : item.rate) * 100).toPrecision(12)), " %"]
children: [parseFloat(((item === null || item === void 0 ? void 0 : item.rate) * 100).toPrecision(12)).toFixed(1), " %"]
})]
})]
});
@ -1641,7 +1674,7 @@ var CommonListPage = function CommonListPage(_ref) {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
getModuleInfo(selectarr, 2, true);
getModuleInfo(selectedOptions3, 2, true);
setOpen(true);
case 2:
case "end":
@ -1780,9 +1813,7 @@ var CommonListPage = function CommonListPage(_ref) {
style: {
color: '#3061d0'
},
children: homeworkinfo === null || homeworkinfo === void 0 || (_homeworkinfo$scoring6 = homeworkinfo.scoring_rate_ranking) === null || _homeworkinfo$scoring6 === void 0 ? void 0 : _homeworkinfo$scoring6.filter(function (item) {
return (item === null || item === void 0 ? void 0 : item.passed) < 0.21;
}).length
children: homeworklist === null || homeworklist === void 0 ? void 0 : homeworklist.count
}), " \u4E2A\u4F5C\u4E1A\u7684\u5F97\u5206\u7387\u4F4E\u4E8E20%\uFF0C\u8BF4\u660E\u5B66\u751F\u5BF9\u76F8\u5173\u77E5\u8BC6\u70B9\u638C\u63E1\u6BD4\u8F83\u8584\u5F31\u3002\u5EFA\u8BAE\u8981\u6C42\u5B66\u751F\u52A0\u5F3A\u76F8\u5173\u77E5\u8BC6\u70B9\u7684\u7EC3\u4E60\u3002"]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -1800,7 +1831,7 @@ var CommonListPage = function CommonListPage(_ref) {
case 0:
params1.keywords = e;
setParams1(objectSpread2_default()({}, params1));
getModuleInfo(selectarr, 2, true);
getModuleInfo(selectedOptions3, 2, true);
case 3:
case "end":
return _context3.stop();

@ -443,4 +443,11 @@
color: #CC6F0C;
padding: 4px 10px;
}
.name___OV309 {
color: #000000;
}
.name___OV309:hover {
color: #0152d9;
cursor: pointer;
}

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