Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent 81201c0f56
commit b1ffe5f069

@ -438,7 +438,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
onChange: function onChange(e) {
name = e;
var dom = document.getElementById('model_error');
if (name < 1 || name > 50) {
if (name < 1 || name > 200) {
dom.style.display = 'block';
} else {
dom.style.display = 'none';
@ -452,7 +452,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
},
id: "model_error",
className: "c-red",
children: "\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570"
children: "\u8BF7\u8F93\u51651-200\u4E4B\u95F4\u7684\u6574\u6570"
})]
}),
okText: '确认',
@ -461,11 +461,11 @@ var SendToClassModal = function SendToClassModal(_ref) {
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _paperlibrary$actionT4;
var dom, res;
var dom, res, newWindow;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (!(name < 1 || name > 50)) {
if (!(name < 1 || name > 200)) {
_context3.next = 4;
break;
}
@ -502,6 +502,8 @@ var SendToClassModal = function SendToClassModal(_ref) {
}
});
if (res && res.status === 0) {
newWindow = window.open('/randompaper/sendrecord', '_blank');
newWindow.focus();
es_modal/* default */.Z.destroyAll();
es_modal/* default */.Z.confirm({
icon: null,

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

@ -5602,7 +5602,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
content: switchContent,
trigger: "hover",
children: renderSign()
}), (0,authority/* isAdminOrStudent */.RV)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
}), (0,authority/* isAdminOrStudent */.RV)() && !(0,authority/* isAssistant */.Rm)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml10 mr10",
children: "|"
}), (0,authority/* isAdminOrStudent */.RV)() && /*#__PURE__*/(0,jsx_runtime.jsx)(popover/* default */.Z, {
@ -5613,7 +5613,7 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
className: ShixunDetailmodules.iconH,
children: [(0,authority/* isAdminOrCreator */.aN)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u8BFE\u5802\u7BA1\u7406"
}), ((0,authority/* isTeacher */.IR)() || (0,authority/* isAssistant */.Rm)()) && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
}), (0,authority/* isTeacher */.IR)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [!(detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.excellent) && '复制/', "\u8BFE\u5802\u7BA1\u7406"]
}), (0,authority/* isStudent */.dE)() && !(detailTopBanner !== null && detailTopBanner !== void 0 && detailTopBanner.excellent) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9000\u51FA\u8BFE\u5802"

@ -4949,7 +4949,7 @@ var WorkList = function WorkList(_ref) {
children: text || '--'
});
}
}, {
}, !(0,authority/* isAssistant */.Rm)() && {
title: '最终成绩',
// width: "10%",
width: 100,
@ -4983,7 +4983,7 @@ var WorkList = function WorkList(_ref) {
}
}
}
}, !((exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis8 = exerciseList.exercise_types) === null || _exerciseList$exercis8 === void 0 ? void 0 : _exerciseList$exercis8.objective) !== 1 || (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis9 = exerciseList.exercise_types) === null || _exerciseList$exercis9 === void 0 ? void 0 : _exerciseList$exercis9.objective) === 1 && (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis10 = exerciseList.exercise_types) === null || _exerciseList$exercis10 === void 0 ? void 0 : _exerciseList$exercis10.subjective) !== 1) && {
}, !((exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis8 = exerciseList.exercise_types) === null || _exerciseList$exercis8 === void 0 ? void 0 : _exerciseList$exercis8.objective) !== 1 || (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis9 = exerciseList.exercise_types) === null || _exerciseList$exercis9 === void 0 ? void 0 : _exerciseList$exercis9.objective) === 1 && (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis10 = exerciseList.exercise_types) === null || _exerciseList$exercis10 === void 0 ? void 0 : _exerciseList$exercis10.subjective) !== 1) && !(0,authority/* isAssistant */.Rm)() && {
title: '客观题得分',
dataIndex: 'objective_score',
align: 'center',
@ -5021,7 +5021,7 @@ var WorkList = function WorkList(_ref) {
});
}
}
}, !((exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis11 = exerciseList.exercise_types) === null || _exerciseList$exercis11 === void 0 ? void 0 : _exerciseList$exercis11.subjective) !== 1 || (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis12 = exerciseList.exercise_types) === null || _exerciseList$exercis12 === void 0 ? void 0 : _exerciseList$exercis12.subjective) === 1 && (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis13 = exerciseList.exercise_types) === null || _exerciseList$exercis13 === void 0 ? void 0 : _exerciseList$exercis13.objective) !== 1) && {
}, !((exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis11 = exerciseList.exercise_types) === null || _exerciseList$exercis11 === void 0 ? void 0 : _exerciseList$exercis11.subjective) !== 1 || (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis12 = exerciseList.exercise_types) === null || _exerciseList$exercis12 === void 0 ? void 0 : _exerciseList$exercis12.subjective) === 1 && (exerciseList === null || exerciseList === void 0 || (_exerciseList$exercis13 = exerciseList.exercise_types) === null || _exerciseList$exercis13 === void 0 ? void 0 : _exerciseList$exercis13.objective) !== 1) && !(0,authority/* isAssistant */.Rm)() && {
title: '主观题得分',
// width: "10%",
width: 100,
@ -5407,7 +5407,7 @@ var WorkList = function WorkList(_ref) {
}))
});
}
}, (0,authority/* isAdmin */.GJ)() && {
}, (0,authority/* isAdminOrTeacher */.G5)() && {
title: '评阅状态',
width: 130,
dataIndex: 'has_comment',
@ -22947,7 +22947,7 @@ var ExerciseDetail = function ExerciseDetail(_ref) {
}, {
name: '统计结果',
id: 1,
hidden: !checkDomainAuthority || (0,util/* isKepuKehuan */._m)() && !(0,authority/* isCommonSuperAdminOrOperation */.ag)() || (0,authority/* isStudent */.dE)() && !(commonHeader !== null && commonHeader !== void 0 && commonHeader.show_statistic),
hidden: !checkDomainAuthority || (0,util/* isKepuKehuan */._m)() && !(0,authority/* isCommonSuperAdminOrOperation */.ag)() || (0,authority/* isStudent */.dE)() && !(commonHeader !== null && commonHeader !== void 0 && commonHeader.show_statistic) || (0,authority/* isAssistant */.Rm)(),
component: commonHeader !== null && commonHeader !== void 0 && commonHeader.is_random ? /*#__PURE__*/(0,jsx_runtime.jsx)(RandomStatisticsResult, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(StatisticsResult, {})
}, {
name: '质量检测',

@ -909,7 +909,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
onChange: function onChange(e) {
name = e;
var dom = document.getElementById('model_error');
if (name < 1 || name > 50) {
if (name < 1 || name > 200) {
dom.style.display = 'block';
} else {
dom.style.display = 'none';
@ -923,7 +923,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
},
id: "model_error",
className: "c-red",
children: "\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570"
children: "\u8BF7\u8F93\u51651-200\u4E4B\u95F4\u7684\u6574\u6570"
})]
}),
okText: '确认',
@ -935,7 +935,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
if (!(name < 1 || name > 50)) {
if (!(name < 1 || name > 200)) {
_context3.next = 4;
break;
}

@ -0,0 +1,50 @@
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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.1.9@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.1.9@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Paperlibrary/Random/SendRecord/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___hyLE7 {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___zl9U1 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___IJmQ7 {
align-items: center;
box-align: center;
}
.flex_box_center_end___KY7ei {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___bFZ13 {
flex-direction: column;
box-orient: block-axis;
}
.head___eQBPb {
max-width: 1200px;
margin: 0 auto;
text-align: center;
}
.contentWrap___KtSsy {
max-width: 1200px;
background: #fff;
margin: 0 auto;
padding: 0px 30px;
overflow: hidden;
}
.footer___YRwjD {
margin-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}

@ -0,0 +1,264 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57113],{
/***/ 41093:
/*!************************************************************************!*\
!*** ./src/pages/Paperlibrary/Random/SendRecord/index.tsx + 1 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ Random_SendRecord; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
var LeftOutlined = __webpack_require__(49668);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/Random/SendRecord/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var SendRecordmodules = ({"flex_box_center":"flex_box_center___hyLE7","flex_space_between":"flex_space_between___zl9U1","flex_box_vertical_center":"flex_box_vertical_center___IJmQ7","flex_box_center_end":"flex_box_center_end___KY7ei","flex_box_column":"flex_box_column___bFZ13","head":"head___eQBPb","contentWrap":"contentWrap___KtSsy","footer":"footer___YRwjD"});
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(9498);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(80228);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(52306);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(88590);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(24099);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(55635);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/Random/SendRecord/index.tsx
dayjs_min_default().locale('zh-cn');
var SendRecord = function SendRecord(_ref) {
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)({
page: 1,
limit: 10
}),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)([]),
_useState4 = slicedToArray_default()(_useState3, 2),
tableData = _useState4[0],
setTableData = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
_useState6 = slicedToArray_default()(_useState5, 2),
loading = _useState6[0],
setLoading = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(0),
_useState8 = slicedToArray_default()(_useState7, 2),
total = _useState8[0],
setTotal = _useState8[1];
function getData(_x) {
return _getData.apply(this, arguments);
}
function _getData() {
_getData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/job_items.json", {
method: 'get',
params: {
type: "ExaminationBank",
per_page: record.limit,
page: record.page
}
});
case 3:
res = _context.sent;
setTableData((res === null || res === void 0 ? void 0 : res.banks) || []);
setTotal((res === null || res === void 0 ? void 0 : res.count) || 0);
setLoading(false);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return _getData.apply(this, arguments);
}
(0,_react_17_0_2_react.useEffect)(function () {
getData(params);
}, []);
var handleChange = function handleChange(current) {
params.page = current;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var handleShowSizeChange = function handleShowSizeChange(current, size) {
params.page = current;
params.limit = size;
setParams(objectSpread2_default()({}, params));
getData(params);
};
var columns = [{
title: '随机试卷名称',
dataIndex: 'exercise_name',
ellipsis: true,
width: '30%',
render: function render(text) {
return text;
}
}, {
title: '发送教学课堂',
dataIndex: 'course_name',
ellipsis: true,
render: function render(text) {
return text;
}
}, {
title: '状态',
dataIndex: 'jobable_type',
ellipsis: true,
render: function render(text) {
return text === "runnin" ? "执行中" : "已完成";
}
}, {
title: '发送人',
dataIndex: 'user_name',
ellipsis: true,
render: function render(text) {
return text;
}
}, {
title: '发送时间',
dataIndex: 'created_at',
width: '20%',
render: function render(text) {
return dayjs_min_default()(text).format('YYYY-MM-DD HH:mm:ss');
}
}].filter(function (item) {
return !!item;
});
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: SendRecordmodules.head,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
fontSize: '16px',
height: '40px',
display: 'flex',
padding: '10px 20px'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(LeftOutlined/* default */.Z, {
onClick: function onClick() {
_umi_production_exports.history.push('/paperlibrary'); // 跳转回之前的页面
},
style: {
marginTop: '4px',
cursor: 'pointer',
marginRight: '5px',
color: "#666666"
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
_umi_production_exports.history.push('/paperlibrary'); // 跳转回之前的页面
},
style: {
color: "#666666",
paddingRight: '5px'
},
children: "\u8FD4\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: "#000000",
fontWeight: "500"
},
children: "\u968F\u673A\u8BD5\u5377\u53D1\u9001\u8BB0\u5F55"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SendRecordmodules.contentWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading,
children: total === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u968F\u673A\u8BD5\u5377\u53D1\u9001\u8BB0\u5F55"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
className: "mt30",
rowKey: "id",
columns: columns,
dataSource: tableData,
pagination: false
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: SendRecordmodules.footer,
children: [total > (params === null || params === void 0 ? void 0 : params.limit) ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#656F87'
},
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-light-primary",
children: total
}), "\u6761\u6570\u636E"]
})
}) : '', /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
total: total,
pageSize: params === null || params === void 0 ? void 0 : params.limit,
current: params === null || params === void 0 ? void 0 : params.page,
showSizeChanger: true,
onShowSizeChange: handleShowSizeChange,
onChange: handleChange,
showQuickJumper: true,
hideOnSinglePage: true
})]
})]
})]
});
};
/* harmony default export */ var Random_SendRecord = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
globalSetting: globalSetting,
loading: loading
};
})(SendRecord));
/***/ })
}]);

@ -2345,7 +2345,9 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
className: Paperlibrarymodules.searchWrp,
children: [showTestPaper && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
style: {
marginLeft: 'auto'
marginLeft: 'auto',
display: 'flex',
alignItems: 'center'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "mr20 ".concat(Paperlibrarymodules.actionBtn),
@ -2355,7 +2357,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
alt: ""
}), "\u4EBA\u5DE5\u7EC4\u5377"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "".concat(Paperlibrarymodules.actionBtn),
className: "mr20 ".concat(Paperlibrarymodules.actionBtn),
onClick: function onClick() {
return _umi_production_exports.history.push('/randompaper');
},
@ -2363,6 +2365,15 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
src: jiqizujuan_namespaceObject,
alt: ""
}), "\u968F\u673A\u7EC4\u5377"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
className: "".concat(Paperlibrarymodules.actionBtn),
style: {
width: 145
},
onClick: function onClick(e) {
return _umi_production_exports.history.push('/randompaper/sendrecord');
},
children: "\u968F\u673A\u8BD5\u5377\u53D1\u9001\u8BB0\u5F55"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Search, {
allowClear: true,

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