|
|
|
|
@ -6358,20 +6358,18 @@ var breadcrumb = __webpack_require__(66104);
|
|
|
|
|
var row = __webpack_require__(95237);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
|
|
|
var col = __webpack_require__(43604);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
|
|
|
var es_button = __webpack_require__(3113);
|
|
|
|
|
// 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/divider/index.js + 1 modules
|
|
|
|
|
var divider = __webpack_require__(28103);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
|
|
|
var es_button = __webpack_require__(3113);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
|
|
|
var input_number = __webpack_require__(97913);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules
|
|
|
|
|
var ArrowLeftOutlined = __webpack_require__(5105);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DeliveredProcedureOutlined.js + 1 modules
|
|
|
|
|
var DeliveredProcedureOutlined = __webpack_require__(93690);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules
|
|
|
|
|
var DeleteOutlined = __webpack_require__(7892);
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
|
|
|
|
|
@ -6843,10 +6841,10 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
return _getDatas.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _getDatas() {
|
|
|
|
|
_getDatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee18() {
|
|
|
|
|
_getDatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
|
|
|
|
|
var paylaod, data;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee18$(_context18) {
|
|
|
|
|
while (1) switch (_context18.prev = _context18.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
|
|
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
paylaod = JSON.parse(sessionStorage['all_student_works_params'] || '{}');
|
|
|
|
|
data = {};
|
|
|
|
|
@ -6879,9 +6877,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
// }
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context18.stop();
|
|
|
|
|
return _context17.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee18);
|
|
|
|
|
}, _callee17);
|
|
|
|
|
}));
|
|
|
|
|
return _getDatas.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
@ -7215,9 +7213,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.author_name
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
|
|
|
className: [Reviewmodules.title, 'mt20'].join(' '),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
width: '100%'
|
|
|
|
|
},
|
|
|
|
|
@ -7253,35 +7251,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: "\u8865\u4EA4\u9644\u4EF6"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), (0,authority/* isAdminOrTeacher */.G5)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
className: "mr10",
|
|
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(DeliveredProcedureOutlined/* default */.Z, {}),
|
|
|
|
|
onClick: /*#__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:
|
|
|
|
|
_context6.next = 2;
|
|
|
|
|
return (0,util/* downLoadFile */.FH)('', "/api/student_works/".concat(params.userId, "/export_normal_word_single.json?with_edit=true"));
|
|
|
|
|
case 2:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context6.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee6);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u5BFC\u51FA\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(DeliveredProcedureOutlined/* default */.Z, {}),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setExportType('附件');
|
|
|
|
|
setExportWorks(true);
|
|
|
|
|
},
|
|
|
|
|
children: "\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
|
|
|
className: Reviewmodules['nav-tab'],
|
|
|
|
|
@ -7887,16 +7857,16 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
var _onOk3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
getData();
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
return _context6.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee7);
|
|
|
|
|
}, _callee6);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk3.apply(this, arguments);
|
|
|
|
|
@ -7914,12 +7884,12 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u5E9F\u5F03\uFF0C\u8BC4\u9605\u4EBA\u7684\u4F5C\u54C1\u5C06\u88AB\u8FDD\u89C4\u6263\u5206", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
|
|
|
var _onOk4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
|
|
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context8.next = 2;
|
|
|
|
|
_context7.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -7928,15 +7898,15 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context8.sent;
|
|
|
|
|
res = _context7.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee8);
|
|
|
|
|
}, _callee7);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk4.apply(this, arguments);
|
|
|
|
|
@ -7954,12 +7924,12 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
|
|
|
var _onOk5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
|
|
|
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context9.next = 2;
|
|
|
|
|
_context8.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -7968,15 +7938,15 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context9.sent;
|
|
|
|
|
res = _context8.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
return _context8.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee9);
|
|
|
|
|
}, _callee8);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk5.apply(this, arguments);
|
|
|
|
|
@ -8056,9 +8026,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "default",
|
|
|
|
|
size: 'middle',
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setShowApply({
|
|
|
|
|
show: false,
|
|
|
|
|
@ -8067,51 +8037,51 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
return _context9.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee10);
|
|
|
|
|
}, _callee9);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u53D6\u6D88"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "primary",
|
|
|
|
|
size: 'middle',
|
|
|
|
|
className: "ml20",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
|
|
|
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(value === '')) {
|
|
|
|
|
_context11.next = 4;
|
|
|
|
|
_context10.next = 4;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.error('请输入内容');
|
|
|
|
|
_context11.next = 14;
|
|
|
|
|
_context10.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
if (!(showApply.type === 0)) {
|
|
|
|
|
_context11.next = 10;
|
|
|
|
|
_context10.next = 10;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
_context11.next = 7;
|
|
|
|
|
_context10.next = 7;
|
|
|
|
|
return (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)({
|
|
|
|
|
comment: value,
|
|
|
|
|
userId: params.userId,
|
|
|
|
|
score_id: v.score_id
|
|
|
|
|
});
|
|
|
|
|
case 7:
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
_context11.next = 13;
|
|
|
|
|
res = _context10.sent;
|
|
|
|
|
_context10.next = 13;
|
|
|
|
|
break;
|
|
|
|
|
case 10:
|
|
|
|
|
_context11.next = 12;
|
|
|
|
|
_context10.next = 12;
|
|
|
|
|
return (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
|
|
|
comment: value,
|
|
|
|
|
score_id: v.score_id,
|
|
|
|
|
userId: params.userId
|
|
|
|
|
});
|
|
|
|
|
case 12:
|
|
|
|
|
res = _context11.sent;
|
|
|
|
|
res = _context10.sent;
|
|
|
|
|
case 13:
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
@ -8124,9 +8094,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 14:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
return _context10.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}, _callee10);
|
|
|
|
|
})),
|
|
|
|
|
children: showApply.type === 0 ? '回复' : '申诉'
|
|
|
|
|
})]
|
|
|
|
|
@ -8315,16 +8285,16 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
|
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
getData();
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
return _context11.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}, _callee11);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk6.apply(this, arguments);
|
|
|
|
|
@ -8342,12 +8312,12 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u5E9F\u5F03\uFF0C\u8BC4\u9605\u4EBA\u7684\u4F5C\u54C1\u5C06\u88AB\u8FDD\u89C4\u6263\u5206", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
|
|
|
var _onOk7 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee12() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
|
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context13.next = 2;
|
|
|
|
|
_context12.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -8356,15 +8326,15 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context13.sent;
|
|
|
|
|
res = _context12.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
return _context12.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}, _callee12);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk7.apply(this, arguments);
|
|
|
|
|
@ -8382,12 +8352,12 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: ["\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"]
|
|
|
|
|
}),
|
|
|
|
|
onOk: function () {
|
|
|
|
|
var _onOk8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
|
|
|
|
|
var _onOk8 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
|
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context14.next = 2;
|
|
|
|
|
_context13.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -8396,15 +8366,15 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context14.sent;
|
|
|
|
|
res = _context13.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
return _context13.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee14);
|
|
|
|
|
}, _callee13);
|
|
|
|
|
}));
|
|
|
|
|
function onOk() {
|
|
|
|
|
return _onOk8.apply(this, arguments);
|
|
|
|
|
@ -8484,9 +8454,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "default",
|
|
|
|
|
size: 'middle',
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
|
|
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
|
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setShowApplys({
|
|
|
|
|
show: false,
|
|
|
|
|
@ -8495,51 +8465,51 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
});
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context15.stop();
|
|
|
|
|
return _context14.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee15);
|
|
|
|
|
}, _callee14);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u53D6\u6D88"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
|
|
|
|
type: "primary",
|
|
|
|
|
size: 'middle',
|
|
|
|
|
className: "ml20",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
|
|
|
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(value === '')) {
|
|
|
|
|
_context16.next = 4;
|
|
|
|
|
_context15.next = 4;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.error('请输入内容');
|
|
|
|
|
_context16.next = 14;
|
|
|
|
|
_context15.next = 14;
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
if (!(showApplys.type === 0)) {
|
|
|
|
|
_context16.next = 10;
|
|
|
|
|
_context15.next = 10;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
_context16.next = 7;
|
|
|
|
|
_context15.next = 7;
|
|
|
|
|
return (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)({
|
|
|
|
|
hidden_comment: value,
|
|
|
|
|
userId: params.userId,
|
|
|
|
|
score_id: v.score_id
|
|
|
|
|
});
|
|
|
|
|
case 7:
|
|
|
|
|
res = _context16.sent;
|
|
|
|
|
_context16.next = 13;
|
|
|
|
|
res = _context15.sent;
|
|
|
|
|
_context15.next = 13;
|
|
|
|
|
break;
|
|
|
|
|
case 10:
|
|
|
|
|
_context16.next = 12;
|
|
|
|
|
_context15.next = 12;
|
|
|
|
|
return (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
|
|
|
comment: value,
|
|
|
|
|
score_id: v.score_id,
|
|
|
|
|
userId: params.userId
|
|
|
|
|
});
|
|
|
|
|
case 12:
|
|
|
|
|
res = _context16.sent;
|
|
|
|
|
res = _context15.sent;
|
|
|
|
|
case 13:
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
message/* default */.ZP.success('操作成功');
|
|
|
|
|
@ -8552,9 +8522,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 14:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context16.stop();
|
|
|
|
|
return _context15.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee16);
|
|
|
|
|
}, _callee15);
|
|
|
|
|
})),
|
|
|
|
|
children: showApplys.type === 0 ? '回复' : '申诉'
|
|
|
|
|
})]
|
|
|
|
|
@ -8574,19 +8544,19 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setisshow(false);
|
|
|
|
|
},
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee17() {
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee17$(_context17) {
|
|
|
|
|
while (1) switch (_context17.prev = _context17.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
|
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (comment) {
|
|
|
|
|
_context17.next = 3;
|
|
|
|
|
_context16.next = 3;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
message/* default */.ZP.info('评语不能为空');
|
|
|
|
|
return _context17.abrupt("return");
|
|
|
|
|
return _context16.abrupt("return");
|
|
|
|
|
case 3:
|
|
|
|
|
_context17.next = 5;
|
|
|
|
|
_context16.next = 5;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/redo_modal.json"), {
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
@ -8595,7 +8565,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 5:
|
|
|
|
|
res = _context17.sent;
|
|
|
|
|
res = _context16.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
message/* default */.ZP.info('打回重做成功');
|
|
|
|
|
setisshow(false);
|
|
|
|
|
@ -8603,9 +8573,9 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
}
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context17.stop();
|
|
|
|
|
return _context16.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee17);
|
|
|
|
|
}, _callee16);
|
|
|
|
|
})),
|
|
|
|
|
width: 700,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -8723,11 +8693,11 @@ var ExeriseReview = function ExeriseReview(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Review = ((0,_umi_production_exports.connect)(function (_ref11) {
|
|
|
|
|
var shixunHomeworks = _ref11.shixunHomeworks,
|
|
|
|
|
loading = _ref11.loading,
|
|
|
|
|
user = _ref11.user,
|
|
|
|
|
globalSetting = _ref11.globalSetting;
|
|
|
|
|
/* harmony default export */ var Review = ((0,_umi_production_exports.connect)(function (_ref10) {
|
|
|
|
|
var shixunHomeworks = _ref10.shixunHomeworks,
|
|
|
|
|
loading = _ref10.loading,
|
|
|
|
|
user = _ref10.user,
|
|
|
|
|
globalSetting = _ref10.globalSetting;
|
|
|
|
|
return {
|
|
|
|
|
shixunHomeworks: shixunHomeworks,
|
|
|
|
|
globalSetting: globalSetting,
|
|
|
|
|
|