You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2195 lines
120 KiB
2195 lines
120 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[52338],{
|
|
|
|
/***/ 75490:
|
|
/*!************************************************************!*\
|
|
!*** ./src/components/image-preview/index.tsx + 1 modules ***!
|
|
\************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"Z": function() { return /* binding */ image_preview; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
|
|
var style = __webpack_require__(29913);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
|
var es_button = __webpack_require__(71577);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(27424);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(91562);
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules
|
|
var ReloadOutlined = __webpack_require__(33160);
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js
|
|
var DownloadOutlined = __webpack_require__(69753);
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js
|
|
var CloseOutlined = __webpack_require__(28508);
|
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var image_preview = (function () {
|
|
var _useState = (0,react.useState)(''),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
url = _useState2[0],
|
|
setUrl = _useState2[1];
|
|
var _useState3 = (0,react.useState)(0),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
deg = _useState4[0],
|
|
setDeg = _useState4[1];
|
|
var saveUrl = (0,react.useRef)('');
|
|
(0,react.useEffect)(function () {
|
|
var unSub = mediator/* default.subscribe */.Z.subscribe('preview-image', function (value) {
|
|
setUrl(value);
|
|
// window.document.body
|
|
// document.body.style.height='100%'
|
|
document.body.style.overflow = 'hidden';
|
|
});
|
|
return unSub;
|
|
}, []);
|
|
(0,react.useEffect)(function () {
|
|
document.addEventListener('keydown', onViewEscClose);
|
|
return function () {
|
|
document.removeEventListener('keydown', onViewEscClose);
|
|
};
|
|
}, []);
|
|
(0,react.useEffect)(function () {
|
|
saveUrl.current = url;
|
|
}, [url]);
|
|
function onViewEscClose(e) {
|
|
if (e.keyCode == 27 && saveUrl.current) {
|
|
onClose();
|
|
}
|
|
}
|
|
|
|
// https://data.educoder.net/api/attachments/1571649
|
|
function onClose() {
|
|
// document.body.style.height='100%'
|
|
document.body.style.overflow = 'auto';
|
|
setUrl('');
|
|
}
|
|
function onRotate() {
|
|
setDeg(deg + 90);
|
|
}
|
|
var maskRef = (0,react.useRef)();
|
|
var previewWrapperRef = (0,react.useRef)();
|
|
var handleMaskClick = function handleMaskClick(e) {
|
|
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
|
|
onClose();
|
|
}
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment, {
|
|
children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "image-preview-container",
|
|
ref: maskRef,
|
|
onClick: handleMaskClick,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "button-group",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
|
|
onClick: onRotate,
|
|
children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
|
|
href: url,
|
|
children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
|
|
onClick: onClose,
|
|
children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "preview-wrp-group",
|
|
ref: previewWrapperRef,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: "image-preview",
|
|
src: url,
|
|
alt: "\u9884\u89C8\u5927\u56FE",
|
|
style: {
|
|
transform: "rotate(".concat(deg, "deg)")
|
|
}
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 51330:
|
|
/*!********************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/CommonHomework/Review/index.tsx + 3 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 */ Review; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
|
|
var style = __webpack_require__(38390);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(84908);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/style/index.js + 1 modules
|
|
var input_number_style = __webpack_require__(25359);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input-number/index.js + 9 modules
|
|
var input_number = __webpack_require__(87799);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
|
|
var button_style = __webpack_require__(29913);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
|
var es_button = __webpack_require__(71577);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js + 1 modules
|
|
var spin_style = __webpack_require__(22536);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js
|
|
var spin = __webpack_require__(11382);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/divider/style/index.js + 1 modules
|
|
var divider_style = __webpack_require__(98541);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/divider/index.js
|
|
var divider = __webpack_require__(27049);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
|
|
var row_style = __webpack_require__(13062);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
|
|
var row = __webpack_require__(71230);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
|
|
var col_style = __webpack_require__(89032);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
|
|
var col = __webpack_require__(15746);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/breadcrumb/style/index.js + 1 modules
|
|
var breadcrumb_style = __webpack_require__(63102);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/breadcrumb/index.js + 3 modules
|
|
var breadcrumb = __webpack_require__(58492);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(17061);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js + 1 modules
|
|
var message_style = __webpack_require__(14934);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
|
|
var message = __webpack_require__(12461);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(17156);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(42122);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/form/style/index.js + 1 modules
|
|
var form_style = __webpack_require__(75627);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 17 modules
|
|
var es_form = __webpack_require__(51018);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js + 1 modules
|
|
var modal_style = __webpack_require__(35611);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 7 modules
|
|
var es_modal = __webpack_require__(85402);
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(27424);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
var react = __webpack_require__(67294);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
|
|
var _umi_production_exports = __webpack_require__(89214);
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules
|
|
var ArrowLeftOutlined = __webpack_require__(82826);
|
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/DeleteOutlined.js
|
|
var DeleteOutlined = __webpack_require__(82061);
|
|
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
|
|
var image_preview = __webpack_require__(75490);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(84519);
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
|
|
var markdown_editor = __webpack_require__(55373);
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(91562);
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
|
|
var PreviewAll = __webpack_require__(36579);
|
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
var moment = __webpack_require__(30381);
|
|
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(59758);
|
|
// EXTERNAL MODULE: ./src/components/FileDownloadList/index.tsx + 3 modules
|
|
var FileDownloadList = __webpack_require__(64683);
|
|
// EXTERNAL MODULE: ./src/service/shixunHomeworks.ts
|
|
var service_shixunHomeworks = __webpack_require__(45678);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
|
|
var input_style = __webpack_require__(69463);
|
|
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 5 modules
|
|
var input = __webpack_require__(75008);
|
|
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(85893);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/components/ChangeScore.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DelShixun = function DelShixun(_ref) {
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
dispatch = _ref.dispatch;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var _useState = (0,react.useState)(true),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
coverAll = _useState2[0],
|
|
setCoverAll = _useState2[1];
|
|
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_modal/* default */.Z, {
|
|
centered: true,
|
|
title: "\u8C03\u5206",
|
|
open: shixunHomeworks.actionTabs.key === '调分' ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var formValue, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return form.validateFields();
|
|
case 2:
|
|
formValue = form.getFieldsValue();
|
|
_context.next = 5;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(shixunHomeworks.actionTabs.id, "/adjust_score.json"), {
|
|
method: 'post',
|
|
body: objectSpread2_default()({}, formValue)
|
|
});
|
|
case 5:
|
|
res = _context.sent;
|
|
if (res.status === 0) {
|
|
message/* default.success */.ZP.success('评阅成功');
|
|
form.resetFields();
|
|
dispatch({
|
|
type: 'shixunHomeworks/setActionTabs',
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkCommon",
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
}
|
|
case 7:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
})),
|
|
onCancel: function onCancel() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/setActionTabs',
|
|
payload: {}
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: "tc",
|
|
children: "\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
form: form,
|
|
layout: "horizontal",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
display: 'flex',
|
|
alignItems: 'baseline'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
label: "\u6210\u7EE9",
|
|
name: "score",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入!'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
min: 0,
|
|
placeholder: "\u8BF7\u586B\u5199\u5206\u6570"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: "\u5206"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
name: "comment",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.TextArea */.Z.TextArea, {
|
|
placeholder: "\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",
|
|
rows: 8
|
|
})
|
|
})
|
|
})]
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var ChangeScore = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var shixunHomeworks = _ref3.shixunHomeworks;
|
|
return {
|
|
shixunHomeworks: shixunHomeworks
|
|
};
|
|
})(DelShixun));
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Reviewmodules = ({"flex_box_center":"flex_box_center___tMwax","flex_space_between":"flex_space_between___8GJsg","flex_box_vertical_center":"flex_box_vertical_center___IFELt","flex_box_center_end":"flex_box_center_end___IrFRG","flex_box_column":"flex_box_column___s0LgG","bg":"bg___sFhaA","title":"title___bk4oD","replyList":"replyList___bjk6g","nav-tab":"nav-tab___uLRSr","buttonFixed":"buttonFixed___twN45","exitComment":"exitComment___rlGpw","nextComment":"nextComment___NmNBo","modal":"modal___tWPO8","MdEditor":"MdEditor___AAxeb"});
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
|
|
var RenderHtml = __webpack_require__(12768);
|
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
var lodash = __webpack_require__(96486);
|
|
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 1 modules
|
|
var MultiUpload = __webpack_require__(31590);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/components/AfterAppendix.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PublishShixun = function PublishShixun(_ref) {
|
|
var classroomList = _ref.classroomList,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
|
|
centered: true,
|
|
title: "\u8865\u4EA4\u9644\u4EF6",
|
|
open: classroomList.actionTabs.key === '补交附件' ? true : false,
|
|
bodyStyle: {
|
|
minHeight: 200
|
|
},
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var _formValue$attachment;
|
|
var formValue, selectArrs, res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return form.validateFields();
|
|
case 2:
|
|
formValue = objectSpread2_default()({}, form.getFieldValue());
|
|
selectArrs = classroomList.actionTabs.selectArrs;
|
|
formValue.attachment_ids = (_formValue$attachment = formValue.attachment_ids) === null || _formValue$attachment === void 0 ? void 0 : _formValue$attachment.map(function (item) {
|
|
return item.response.id;
|
|
});
|
|
_context.next = 7;
|
|
return (0,service_shixunHomeworks/* reviseAttachment */.mz)(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
|
|
homeworkId: selectArrs.work_id
|
|
}));
|
|
case 7:
|
|
res = _context.sent;
|
|
if (res.status === 0) {
|
|
form.resetFields();
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkSupplyDetail",
|
|
payload: objectSpread2_default()({}, classroomList.actionTabs.params)
|
|
});
|
|
dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {}
|
|
});
|
|
}
|
|
case 9:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
})),
|
|
onCancel: function onCancel() {
|
|
form.resetFields();
|
|
dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {}
|
|
});
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
form: form,
|
|
initialValues: {},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
name: "attachment_ids",
|
|
rules: [{
|
|
required: true,
|
|
message: "请上传附件"
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
name: "description",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default.TextArea */.Z.TextArea, {
|
|
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",
|
|
rows: 7
|
|
})
|
|
})]
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var AfterAppendix = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var classroomList = _ref3.classroomList,
|
|
loading = _ref3.loading;
|
|
return {
|
|
classroomList: classroomList,
|
|
loading: loading
|
|
};
|
|
})(PublishShixun));
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(29427);
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
var authority = __webpack_require__(7);
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 31 modules
|
|
var ImagesIcon = __webpack_require__(44190);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ExeriseReview = function ExeriseReview(_ref) {
|
|
var _studentWorkDetail$ca, _studentWorkDetail$ca2, _userInfo$course, _studentWorkDetail$ca3, _studentWorkDetail$ca4, _studentWorkDetail$ca5, _studentWorkDetail$ho, _studentWorkDetail$no, _studentWorkDetail$co, _studentWorkDetail$ho2, _studentWorkDetail$ho3, _studentWorkDetail$ho4, _studentWorkDetail$ho5, _studentWorkDetail$ho6, _studentWorkDetail$ho7, _studentWorkDetail$ho8, _studentWorkCommon$co, _studentWorkCommon$co2, _studentWorkCommon$hi, _studentWorkCommon$hi2;
|
|
var shixunHomeworks = _ref.shixunHomeworks,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
user = _ref.user,
|
|
dispatch = _ref.dispatch;
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var boxWrap = (0,react.useRef)();
|
|
var userInfo = user.userInfo;
|
|
var studentWorkDetail = shixunHomeworks.studentWorkDetail,
|
|
studentWorkCommon = shixunHomeworks.studentWorkCommon,
|
|
studentWorkSupplyDetail = shixunHomeworks.studentWorkSupplyDetail,
|
|
workList = shixunHomeworks.workList;
|
|
var _useState = (0,react.useState)(''),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
value = _useState2[0],
|
|
setValue = _useState2[1];
|
|
var _useState3 = (0,react.useState)({
|
|
show: false,
|
|
type: 0,
|
|
active: null
|
|
}),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
showApply = _useState4[0],
|
|
setShowApply = _useState4[1];
|
|
var _useState5 = (0,react.useState)({
|
|
show: false,
|
|
type: 0,
|
|
active: null
|
|
}),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
showApplys = _useState6[0],
|
|
setShowApplys = _useState6[1];
|
|
var _Modal$useModal = es_modal/* default.useModal */.Z.useModal(),
|
|
_Modal$useModal2 = slicedToArray_default()(_Modal$useModal, 2),
|
|
modal = _Modal$useModal2[0],
|
|
contextHolder = _Modal$useModal2[1];
|
|
var _useState7 = (0,react.useState)({
|
|
last: false
|
|
}),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
nextComment = _useState8[0],
|
|
setNextComment = _useState8[1];
|
|
var _useState9 = (0,react.useState)({
|
|
last: false
|
|
}),
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
Previous = _useState10[0],
|
|
setPrevious = _useState10[1];
|
|
var _Form$useForm = es_form/* default.useForm */.Z.useForm(),
|
|
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
|
form = _Form$useForm2[0];
|
|
var _useState11 = (0,react.useState)(false),
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
isshow = _useState12[0],
|
|
setisshow = _useState12[1];
|
|
var _useState13 = (0,react.useState)(''),
|
|
_useState14 = slicedToArray_default()(_useState13, 2),
|
|
comment = _useState14[0],
|
|
setcomment = _useState14[1];
|
|
var _useState15 = (0,react.useState)({
|
|
content: "",
|
|
type: ""
|
|
}),
|
|
_useState16 = slicedToArray_default()(_useState15, 2),
|
|
data = _useState16[0],
|
|
setData = _useState16[1];
|
|
var monacoValueRef = (0,react.useRef)();
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var getData = function getData() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkCommon',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
};
|
|
(0,react.useEffect)(function () {
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkDetail',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkSupplyDetail',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
getData();
|
|
getDatas();
|
|
boxWrap.current.onclick = function (e) {
|
|
if (e.target.nodeName === 'IMG' && e.target.alt !== '') {
|
|
mediator/* default.publish */.Z.publish('preview-image', e.target.src);
|
|
}
|
|
};
|
|
}, [params.categoryId, params.userId]);
|
|
function getDatas() {
|
|
return _getDatas.apply(this, arguments);
|
|
}
|
|
function _getDatas() {
|
|
_getDatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
|
|
var _res$all_student_work, _res$all_student_work2;
|
|
var paylaod, data, res, key, _res$all_student_work3, _res$all_student_work4;
|
|
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
|
|
while (1) switch (_context16.prev = _context16.next) {
|
|
case 0:
|
|
paylaod = JSON.parse(sessionStorage['all_student_works_params'] || '{}');
|
|
data = {};
|
|
if (searchParams.get("ids")) {
|
|
data.course_group = searchParams.get("ids").split(',');
|
|
}
|
|
_context16.next = 5;
|
|
return dispatch({
|
|
type: 'shixunHomeworks/getAllStudentWorks',
|
|
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, params), paylaod), data)
|
|
});
|
|
case 5:
|
|
res = _context16.sent;
|
|
// setSpinning(false);
|
|
key = (_res$all_student_work = res['all_student_works']) === null || _res$all_student_work === void 0 ? void 0 : _res$all_student_work.map(function (item) {
|
|
return String(item.student_work_id);
|
|
}).indexOf(params.userId);
|
|
if (key === ((_res$all_student_work2 = res['all_student_works']) === null || _res$all_student_work2 === void 0 ? void 0 : _res$all_student_work2.length) - 1) {
|
|
setNextComment({
|
|
last: true
|
|
});
|
|
} else {
|
|
setNextComment((_res$all_student_work3 = res['all_student_works']) === null || _res$all_student_work3 === void 0 ? void 0 : _res$all_student_work3[key + 1]);
|
|
}
|
|
if (key === 0) {
|
|
setPrevious({
|
|
last: true
|
|
});
|
|
} else {
|
|
setPrevious((_res$all_student_work4 = res['all_student_works']) === null || _res$all_student_work4 === void 0 ? void 0 : _res$all_student_work4[key - 1]);
|
|
}
|
|
case 9:
|
|
case "end":
|
|
return _context16.stop();
|
|
}
|
|
}, _callee16);
|
|
}));
|
|
return _getDatas.apply(this, arguments);
|
|
}
|
|
(0,react.useEffect)(function () {
|
|
dispatch({
|
|
type: 'globalSetting/footerToggle',
|
|
payload: false
|
|
});
|
|
return function () {
|
|
dispatch({
|
|
type: 'globalSetting/footerToggle',
|
|
payload: true
|
|
});
|
|
};
|
|
}, []);
|
|
|
|
// console.log(params, 'params')
|
|
var handleDelete = function handleDelete(d) {
|
|
modal.confirm({
|
|
title: '是否确认删除?',
|
|
onOk: function () {
|
|
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: 'shixunHomeworks/deleteReply',
|
|
payload: {
|
|
object_id: d.id,
|
|
object_type: 'journals_for_message'
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if (res.status === 0) {
|
|
message/* default.success */.ZP.success('删除成功');
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
function onOk() {
|
|
return _onOk.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
};
|
|
var handleDeleteScore = function handleDeleteScore(d) {
|
|
modal.confirm({
|
|
title: '是否确认删除?',
|
|
onOk: function () {
|
|
var _onOk2 = 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,service_shixunHomeworks/* delStudentWorkScore */.QC)({
|
|
score_id: d.comment_id,
|
|
userId: params.userId
|
|
});
|
|
case 2:
|
|
res = _context2.sent;
|
|
if (res.status === 0) {
|
|
message/* default.success */.ZP.success('删除成功');
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
function onOk() {
|
|
return _onOk2.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
};
|
|
var handleSave = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(value) {
|
|
var _value$attachment_ids;
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
value.attachment_ids = (_value$attachment_ids = value.attachment_ids) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids.map(function (val) {
|
|
var _val$response;
|
|
return val === null || val === void 0 ? void 0 : (_val$response = val.response) === null || _val$response === void 0 ? void 0 : _val$response.id;
|
|
});
|
|
_context3.next = 3;
|
|
return (0,service_shixunHomeworks/* addStudentWorkScore */.yy)(objectSpread2_default()(objectSpread2_default()({}, value), {}, {
|
|
userId: params.userId
|
|
}));
|
|
case 3:
|
|
res = _context3.sent;
|
|
if (res.status === 0) {
|
|
form.resetFields();
|
|
message/* default.success */.ZP.success('提交成功');
|
|
getData();
|
|
}
|
|
case 5:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
return function handleSave(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleNextAppraise = /*#__PURE__*/function () {
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(type) {
|
|
var _form$getFieldsValue, comment, score, attachment_ids, boolScore;
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
_form$getFieldsValue = form.getFieldsValue(), comment = _form$getFieldsValue.comment, score = _form$getFieldsValue.score, attachment_ids = _form$getFieldsValue.attachment_ids;
|
|
boolScore = !(0,lodash.isNil)(score);
|
|
if (!(comment || boolScore || attachment_ids)) {
|
|
_context4.next = 5;
|
|
break;
|
|
}
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
centered: true,
|
|
okText: '离开',
|
|
cancelText: '取消',
|
|
title: '离开此页提示',
|
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "tc",
|
|
children: '系统可能不会保存您所做的更改'
|
|
}),
|
|
onOk: function onOk() {
|
|
// history.push(`/classrooms/${course_id}/students`);
|
|
form.resetFields();
|
|
if (type === 'last') {
|
|
_umi_production_exports.history.push(searchParams.get("ids") ? "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(Previous === null || Previous === void 0 ? void 0 : Previous.student_work_id, "?ids=").concat(searchParams.get("ids")) : "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(Previous === null || Previous === void 0 ? void 0 : Previous.student_work_id));
|
|
} else if (type === 'read') {
|
|
_umi_production_exports.history.push(searchParams.get("ids") ? "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(nextComment === null || nextComment === void 0 ? void 0 : nextComment.student_work_id, "?ids=").concat(searchParams.get("ids")) : "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(nextComment === null || nextComment === void 0 ? void 0 : nextComment.student_work_id));
|
|
} else {
|
|
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/common_homework/").concat(params.categoryId, "/detail"));
|
|
}
|
|
}
|
|
});
|
|
return _context4.abrupt("return");
|
|
case 5:
|
|
if (type === 'last') {
|
|
_umi_production_exports.history.push(searchParams.get("ids") ? "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(Previous === null || Previous === void 0 ? void 0 : Previous.student_work_id, "?ids=").concat(searchParams.get("ids")) : "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(Previous === null || Previous === void 0 ? void 0 : Previous.student_work_id));
|
|
} else if (type === 'read') {
|
|
_umi_production_exports.history.push(searchParams.get("ids") ? "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(nextComment === null || nextComment === void 0 ? void 0 : nextComment.student_work_id, "?ids=").concat(searchParams.get("ids")) : "/classrooms/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/common_homework/").concat(params === null || params === void 0 ? void 0 : params.categoryId, "/review/").concat(nextComment === null || nextComment === void 0 ? void 0 : nextComment.student_work_id));
|
|
} else {
|
|
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/common_homework/").concat(params.categoryId, "/detail"));
|
|
}
|
|
// if (comment && boolScore) {
|
|
// const res = await addStudentWorkScore({
|
|
// ...form.getFieldsValue(),
|
|
// userId: params.userId
|
|
// })
|
|
// if (res.status === -1) return;
|
|
|
|
// if (!comment && boolScore) {
|
|
// form.setFields([{
|
|
// name: 'comment',
|
|
// errors: ['请填写评语'],
|
|
// }])
|
|
// return;
|
|
// }
|
|
// }
|
|
// history.push(`/classrooms/${params?.coursesId}/common_homework/${params?.categoryId}/review/${studentWorkDetail?.next_work_id}`)
|
|
case 6:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
return function handleNextAppraise(_x2) {
|
|
return _ref3.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: "edu-container",
|
|
ref: boxWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: "animated fadeIn",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: "mt10",
|
|
children: userInfo && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
|
|
separator: ">",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
to: "/classrooms/".concat(params.coursesId, "/common_homework/").concat(!!(studentWorkDetail !== null && studentWorkDetail !== void 0 && (_studentWorkDetail$ca = studentWorkDetail.category) !== null && _studentWorkDetail$ca !== void 0 && _studentWorkDetail$ca.main) ? '' : studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ca2 = studentWorkDetail.category) === null || _studentWorkDetail$ca2 === void 0 ? void 0 : _studentWorkDetail$ca2.category_id),
|
|
children: userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
to: "/classrooms/".concat(params.coursesId, "/common_homework/").concat(!!(studentWorkDetail !== null && studentWorkDetail !== void 0 && (_studentWorkDetail$ca3 = studentWorkDetail.category) !== null && _studentWorkDetail$ca3 !== void 0 && _studentWorkDetail$ca3.main) ? '' : studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ca4 = studentWorkDetail.category) === null || _studentWorkDetail$ca4 === void 0 ? void 0 : _studentWorkDetail$ca4.category_id),
|
|
children: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ca5 = studentWorkDetail.category) === null || _studentWorkDetail$ca5 === void 0 ? void 0 : _studentWorkDetail$ca5.category_name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
to: "/classrooms/".concat(params.coursesId, "/common_homework/").concat(params.categoryId, "/detail"),
|
|
children: "\u4F5C\u4E1A\u8BE6\u60C5"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default.Item */.Z.Item, {
|
|
children: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.author_name
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: [Reviewmodules.title, 'mt20'].join(' '),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
style: {
|
|
width: '100%'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
to: "/classrooms/".concat(params.coursesId, "/common_homework"),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ArrowLeftOutlined/* default */.Z, {
|
|
className: "font16 c-black"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
className: "font20 ml5",
|
|
children: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.homework_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(util/* StatusClassroomsTags */.VV, {
|
|
status: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.homework_status
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: (0,authority/* isStudent */.dE)() && (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho === void 0 ? void 0 : _studentWorkDetail$ho.includes('补交中')) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'classroomList/setActionTabs',
|
|
payload: {
|
|
key: '补交附件',
|
|
params: params,
|
|
selectArrs: {
|
|
homework_id: params.commonHomeworkId,
|
|
work_id: params.userId
|
|
}
|
|
}
|
|
});
|
|
},
|
|
className: "c-blue current font14",
|
|
children: "\u8865\u4EA4\u9644\u4EF6"
|
|
})
|
|
})]
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", {
|
|
className: Reviewmodules["nav-tab"],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
className: "active",
|
|
children: "\u4F5C\u4E1A\u8BE6\u60C5"
|
|
}), (0,authority/* isSuperAdmin */.j5)() && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
to: "/classrooms/".concat(params.coursesId, "/common_homework/").concat(params.categoryId, "/lab-report-view/").concat(params.userId),
|
|
children: [' ', "\u5B9E\u9A8C\u62A5\u544A", ' ']
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
|
|
className: [Reviewmodules.bg, 'pt30', 'pl30', 'pr30', 'pb30'].join(' '),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, {
|
|
spinning: loading['shixunHomeworks/getStudentWorkDetail'] || loading['shixunHomeworks/getStudentWorkSupplyDetail'],
|
|
children: [(studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.description) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "font16",
|
|
children: "\u5185\u5BB9"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.description) || '暂无~'
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(FileDownloadList/* default */.Z, {
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: function callback() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkDetail',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.attachments
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: "tr",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: " c-light-black",
|
|
children: moment_default()(studentWorkDetail.commit_time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: studentWorkDetail.commit_user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-light-black",
|
|
children: "\u63D0\u4EA4"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml30 c-light-black",
|
|
children: moment_default()(studentWorkDetail.update_time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: studentWorkDetail.update_user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-light-black",
|
|
children: "\u66F4\u65B0"
|
|
})]
|
|
})]
|
|
}), (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.redo_description) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "font16",
|
|
children: "\u91CD\u505A\u8BB0\u5F55"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "pl30 mt20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.redo_description) || '暂无~'
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(FileDownloadList/* default */.Z, {
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: function callback() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkDetail',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.redo_attachments
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: "tr",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: " c-light-black",
|
|
children: moment_default()(studentWorkDetail.redo_commit_time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: studentWorkDetail.commit_user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-light-black",
|
|
children: "\u63D0\u4EA4"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml30 c-light-black",
|
|
children: moment_default()(studentWorkDetail.redo_update_time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: studentWorkDetail.update_user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-light-black",
|
|
children: "\u66F4\u65B0"
|
|
})]
|
|
})]
|
|
}), (studentWorkSupplyDetail === null || studentWorkSupplyDetail === void 0 ? void 0 : studentWorkSupplyDetail.revise_reason) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "font16",
|
|
children: "\u8865\u4EA4\u5185\u5BB9"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "pl30 mt20",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: (studentWorkSupplyDetail === null || studentWorkSupplyDetail === void 0 ? void 0 : studentWorkSupplyDetail.revise_reason) || '暂无~'
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(FileDownloadList/* default */.Z, {
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: function callback() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/getStudentWorkSupplyDetail',
|
|
payload: objectSpread2_default()({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkSupplyDetail === null || studentWorkSupplyDetail === void 0 ? void 0 : studentWorkSupplyDetail.revise_attachments
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: "tr",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml30 c-light-black",
|
|
children: moment_default()(studentWorkSupplyDetail.atta_update_time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10",
|
|
children: studentWorkSupplyDetail.atta_update_user
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-light-black",
|
|
children: "\u66F4\u65B0"
|
|
})]
|
|
})]
|
|
})]
|
|
})
|
|
}), (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.anonymous_comment) && (0,authority/* isAdminOrTeacher */.G5)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
className: [Reviewmodules.bg, 'mt30', 'pt30', 'pl30', 'pr30', 'pb30'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
children: "\u533F\u8BC4\u5B66\u751F"
|
|
}), !!(studentWorkDetail !== null && studentWorkDetail !== void 0 && (_studentWorkDetail$no = studentWorkDetail.no_commented_user_names) !== null && _studentWorkDetail$no !== void 0 && _studentWorkDetail$no.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
children: ["\u672A\u5B8C\u6210\u533F\u8BC4\uFF1A", studentWorkDetail.no_commented_user_names.join('、')]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: ["\u5DF2\u5B8C\u6210\u533F\u8BC4\uFF1A", (_studentWorkDetail$co = studentWorkDetail.commented_user_names) === null || _studentWorkDetail$co === void 0 ? void 0 : _studentWorkDetail$co.join('、')]
|
|
})]
|
|
}), ((0,authority/* isAdminOrStudent */.RV)() || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho2 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho2 === void 0 ? void 0 : _studentWorkDetail$ho2.includes('匿评中'))) && /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: [Reviewmodules.replyList, 'bg-white'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: [10, 20],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: 1
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
style: {
|
|
lineHeight: '40px'
|
|
},
|
|
children: (0,authority/* isAdmin */.GJ)() && (studentWorkCommon === null || studentWorkCommon === void 0 ? void 0 : studentWorkCommon.ultimate) && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "font-16 c-blue current",
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'shixunHomeworks/setActionTabs',
|
|
payload: {
|
|
key: '调分',
|
|
selectArrs: studentWorkDetail,
|
|
id: params.userId,
|
|
params: params
|
|
}
|
|
});
|
|
},
|
|
children: "\u8C03\u5206"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: (0,authority/* isAdminOrTeacher */.G5)() && ((studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho3 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho3 === void 0 ? void 0 : _studentWorkDetail$ho3.includes('提交中')) || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho4 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho4 === void 0 ? void 0 : _studentWorkDetail$ho4.includes('补交中')) || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho5 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho5 === void 0 ? void 0 : _studentWorkDetail$ho5.includes('进行中'))) && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
style: {
|
|
width: '124px',
|
|
height: '40px'
|
|
},
|
|
type: "primary",
|
|
onClick: function onClick() {
|
|
return setisshow(true);
|
|
},
|
|
children: "\u6253\u56DE\u91CD\u505A"
|
|
})
|
|
})]
|
|
}), !studentWorkCommon.is_author && !(studentWorkCommon !== null && studentWorkCommon !== void 0 && studentWorkCommon.ultimate) && ((0,authority/* isAdmin */.GJ)() || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho6 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho6 === void 0 ? void 0 : _studentWorkDetail$ho6.includes('匿评中'))) && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
|
layout: "vertical",
|
|
form: form,
|
|
onFinish: function onFinish(value) {
|
|
return handleSave(value);
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
label: "\u8BC4\u8BED",
|
|
name: "comment",
|
|
rules: [{
|
|
required: true,
|
|
message: '请输入评语'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED",
|
|
defaultValue: "",
|
|
height: 250
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
name: "attachment_ids",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt10",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
justify: "start",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
noStyle: true,
|
|
name: "score",
|
|
rules: [{
|
|
required: (0,authority/* isAdmin */.GJ)() ? false : true,
|
|
message: '请填写分数'
|
|
}],
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
|
|
step: 0.1,
|
|
min: 0,
|
|
style: {
|
|
width: 100
|
|
},
|
|
size: "large",
|
|
placeholder: "\u8BF7\u586B\u5199\u5206\u6570"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml5 mr20",
|
|
children: "\u5206"
|
|
})
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {})]
|
|
})
|
|
}), (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default.Item */.Z.Item, {
|
|
label: "\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1",
|
|
name: "hidden_comment",
|
|
style: {
|
|
marginTop: 10
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED",
|
|
defaultValue: "",
|
|
height: 250
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: "".concat(Reviewmodules.buttonFixed),
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
className: "edu-container",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "default",
|
|
onClick: function onClick() {
|
|
return handleNextAppraise('list');
|
|
},
|
|
children: "\u8FD4\u56DE\u5217\u8868"
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
className: "tr",
|
|
children: [!(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "default",
|
|
onClick: function onClick() {
|
|
return handleNextAppraise('last');
|
|
},
|
|
disabled: Previous === null || Previous === void 0 ? void 0 : Previous.last,
|
|
children: "\u4E0A\u4E00\u4E2A"
|
|
}), !(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "default",
|
|
disabled: nextComment === null || nextComment === void 0 ? void 0 : nextComment.last,
|
|
style: {
|
|
marginLeft: '20px',
|
|
marginRight: '20px'
|
|
},
|
|
onClick: function onClick() {
|
|
return handleNextAppraise('read');
|
|
}
|
|
// disabled={nextComment?.last}
|
|
,
|
|
children: "\u4E0B\u4E00\u4E2A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
htmlType: "submit",
|
|
type: "primary",
|
|
children: "\u63D0\u4EA4\u8BC4\u9605"
|
|
})]
|
|
})]
|
|
})
|
|
})
|
|
})]
|
|
})
|
|
})]
|
|
}), ((0,authority/* isAdminOrStudent */.RV)() || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho7 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho7 === void 0 ? void 0 : _studentWorkDetail$ho7.includes('匿评中')) || (studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : (_studentWorkDetail$ho8 = studentWorkDetail.homework_status) === null || _studentWorkDetail$ho8 === void 0 ? void 0 : _studentWorkDetail$ho8.includes('申诉中'))) && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: [Reviewmodules.replyList, 'bg-white'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
style: {
|
|
color: '#000000',
|
|
fontWeight: 500
|
|
},
|
|
children: ["\u70B9\u8BC4\u5185\u5BB9\uFF08", studentWorkCommon === null || studentWorkCommon === void 0 ? void 0 : (_studentWorkCommon$co = studentWorkCommon.comment_scores) === null || _studentWorkCommon$co === void 0 ? void 0 : _studentWorkCommon$co.length, "\uFF09"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), studentWorkCommon === null || studentWorkCommon === void 0 ? void 0 : (_studentWorkCommon$co2 = studentWorkCommon.comment_scores) === null || _studentWorkCommon$co2 === void 0 ? void 0 : _studentWorkCommon$co2.map(function (v, k) {
|
|
var _v$attachments, _v$appeal_info, _v$appeal_info2, _v$appeal_info3, _v$appeal_info4, _v$appeal_info5;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: [12, 12],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "40px",
|
|
children: [(v === null || v === void 0 ? void 0 : v.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (v === null || v === void 0 ? void 0 : v.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(v === null || v === void 0 ? void 0 : v.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black",
|
|
children: v === null || v === void 0 ? void 0 : v.user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(v === null || v === void 0 ? void 0 : v.comment_time).format('YYYY-MM-DD HH:mm')
|
|
}), v.score !== null && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: "ml30 c-orange",
|
|
children: [v.score, "\u5206"]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: k === 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [v["delete"] && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
handleDeleteScore(v);
|
|
},
|
|
children: "\u5220\u9664"
|
|
}), v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
setShowApply({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u7533\u8BC9"
|
|
}), v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current ml10",
|
|
onClick: function onClick() {
|
|
return setShowApply({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u56DE\u590D"
|
|
}), !v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: "\u5931\u6548"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [v["delete"] && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
handleDeleteScore(v);
|
|
},
|
|
children: "\u5220\u9664"
|
|
}), v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
setShowApply({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u7533\u8BC9"
|
|
}), v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current ml10",
|
|
onClick: function onClick() {
|
|
return setShowApply({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u56DE\u590D"
|
|
}), !v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: "\u5931\u6548"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
span: 24,
|
|
children: [v.content && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: v.content
|
|
}), !v.content && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black",
|
|
children: "\u6682\u672A\u5199\u8BC4\u8BED"
|
|
}), v === null || v === void 0 ? void 0 : (_v$attachments = v.attachments) === null || _v$attachments === void 0 ? void 0 : _v$attachments.map(function (item, key) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
href: "".concat(env/* default.API_SERVER */.Z.API_SERVER).concat(item.url),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-fujian c-green font14"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-black",
|
|
children: item.title
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml20 font12",
|
|
children: item.filesize
|
|
})]
|
|
})
|
|
}, key);
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "w100",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: [Reviewmodules.comment, 'w100'].join(' '),
|
|
children: [v.appeal_info && v.appeal_info != '' && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "50px",
|
|
children: [(v === null || v === void 0 ? void 0 : (_v$appeal_info = v.appeal_info) === null || _v$appeal_info === void 0 ? void 0 : _v$appeal_info.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (v === null || v === void 0 ? void 0 : (_v$appeal_info2 = v.appeal_info) === null || _v$appeal_info2 === void 0 ? void 0 : _v$appeal_info2.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(v === null || v === void 0 ? void 0 : (_v$appeal_info3 = v.appeal_info) === null || _v$appeal_info3 === void 0 ? void 0 : _v$appeal_info3.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [v === null || v === void 0 ? void 0 : (_v$appeal_info4 = v.appeal_info) === null || _v$appeal_info4 === void 0 ? void 0 : _v$appeal_info4.user_name, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(v === null || v === void 0 ? void 0 : (_v$appeal_info5 = v.appeal_info) === null || _v$appeal_info5 === void 0 ? void 0 : _v$appeal_info5.time).format('YYYY-MM-DD HH:mm')
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-blue ml10",
|
|
children: "\u7533\u8BC9\u4E2D"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u5DF2\u64A4\u9500"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 3 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-blue ml10",
|
|
children: "\u7533\u8BC9\u6210\u529F"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 4 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u88AB\u62D2\u7EDD"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 5 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u5931\u8D25"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
children: [(v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee5() {
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
getData();
|
|
case 1:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
function onOk() {
|
|
return _onOk3.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-blue current",
|
|
children: "\u64A4\u9500\u7533\u8BC9"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee6() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
case 0:
|
|
_context6.next = 2;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
method: 'post',
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 3
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context6.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context6.stop();
|
|
}
|
|
}, _callee6);
|
|
}));
|
|
function onOk() {
|
|
return _onOk4.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-red current",
|
|
children: "\u63A5\u53D7\u7533\u8BC9"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee7() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
case 0:
|
|
_context7.next = 2;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
method: 'post',
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 4
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context7.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context7.stop();
|
|
}
|
|
}, _callee7);
|
|
}));
|
|
function onOk() {
|
|
return _onOk5.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-light-black current ml10",
|
|
children: "\u62D2\u7EDD\u7533\u8BC9"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: v === null || v === void 0 ? void 0 : v.appeal_info.content
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {})]
|
|
})
|
|
})
|
|
})
|
|
}), v.journals.map(function (val, key) {
|
|
var _val$user_info, _val$user_info2, _val$user_info3, _val$user_info4;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "50px",
|
|
children: [(val === null || val === void 0 ? void 0 : (_val$user_info = val.user_info) === null || _val$user_info === void 0 ? void 0 : _val$user_info.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (val === null || val === void 0 ? void 0 : (_val$user_info2 = val.user_info) === null || _val$user_info2 === void 0 ? void 0 : _val$user_info2.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(val === null || val === void 0 ? void 0 : (_val$user_info3 = val.user_info) === null || _val$user_info3 === void 0 ? void 0 : _val$user_info3.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [val === null || val === void 0 ? void 0 : (_val$user_info4 = val.user_info) === null || _val$user_info4 === void 0 ? void 0 : _val$user_info4.user_name, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(val === null || val === void 0 ? void 0 : val.time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: val.content
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: (val === null || val === void 0 ? void 0 : val.can_delete) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: "\u5220\u9664",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DeleteOutlined/* default */.Z, {
|
|
className: "current c-light-black",
|
|
onClick: function onClick() {
|
|
handleDelete(val);
|
|
}
|
|
})
|
|
})
|
|
})]
|
|
})
|
|
})
|
|
}, key), key !== v.journals.length - 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
|
|
}, key);
|
|
})]
|
|
})]
|
|
})]
|
|
}), showApply.show && k === showApply.active && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: ['bg-white'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
onChange: function onChange(v) {
|
|
setValue(v);
|
|
},
|
|
height: 150,
|
|
isFocus: true,
|
|
watch: true
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "tr",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "default",
|
|
size: "large",
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
case 0:
|
|
setShowApply({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
case 1:
|
|
case "end":
|
|
return _context8.stop();
|
|
}
|
|
}, _callee8);
|
|
})),
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "primary",
|
|
size: "large",
|
|
className: "ml20",
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
case 0:
|
|
if (!(value === '')) {
|
|
_context9.next = 4;
|
|
break;
|
|
}
|
|
message/* default.error */.ZP.error('请输入内容');
|
|
_context9.next = 14;
|
|
break;
|
|
case 4:
|
|
if (!(showApply.type === 0)) {
|
|
_context9.next = 10;
|
|
break;
|
|
}
|
|
_context9.next = 7;
|
|
return (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)({
|
|
comment: value,
|
|
userId: params.userId,
|
|
score_id: v.score_id
|
|
});
|
|
case 7:
|
|
res = _context9.sent;
|
|
_context9.next = 13;
|
|
break;
|
|
case 10:
|
|
_context9.next = 12;
|
|
return (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
comment: value,
|
|
score_id: v.score_id,
|
|
userId: params.userId
|
|
});
|
|
case 12:
|
|
res = _context9.sent;
|
|
case 13:
|
|
if (res.status === 0) {
|
|
message/* default.success */.ZP.success('操作成功');
|
|
setShowApply({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
getData();
|
|
}
|
|
case 14:
|
|
case "end":
|
|
return _context9.stop();
|
|
}
|
|
}, _callee9);
|
|
})),
|
|
children: showApply.type === 0 ? '回复' : '申诉'
|
|
})]
|
|
})
|
|
})]
|
|
})]
|
|
})]
|
|
}, k), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
|
|
}, k);
|
|
})]
|
|
}), (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: [Reviewmodules.replyList, 'bg-white'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
|
|
style: {
|
|
color: '#000000',
|
|
fontWeight: 500
|
|
},
|
|
children: ["\u70B9\u8BC4\u5185\u5BB9-\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1\uFF08", studentWorkCommon === null || studentWorkCommon === void 0 ? void 0 : (_studentWorkCommon$hi = studentWorkCommon.hidden_comment_scores) === null || _studentWorkCommon$hi === void 0 ? void 0 : _studentWorkCommon$hi.length, "\uFF09"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), studentWorkCommon === null || studentWorkCommon === void 0 ? void 0 : (_studentWorkCommon$hi2 = studentWorkCommon.hidden_comment_scores) === null || _studentWorkCommon$hi2 === void 0 ? void 0 : _studentWorkCommon$hi2.map(function (v, k) {
|
|
var _v$attachments2, _v$appeal_info6, _v$appeal_info7, _v$appeal_info8, _v$appeal_info9, _v$appeal_info10;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
gutter: [12, 12],
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "40px",
|
|
children: [(v === null || v === void 0 ? void 0 : v.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (v === null || v === void 0 ? void 0 : v.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(v === null || v === void 0 ? void 0 : v.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
align: "middle",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: 1,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black",
|
|
children: v === null || v === void 0 ? void 0 : v.user_name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(v === null || v === void 0 ? void 0 : v.comment_time).format('YYYY-MM-DD HH:mm')
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: k === 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [v["delete"] && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
handleDeleteScore(v);
|
|
},
|
|
children: "\u5220\u9664"
|
|
}), v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
setShowApplys({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u7533\u8BC9"
|
|
}), v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current ml10",
|
|
onClick: function onClick() {
|
|
return setShowApplys({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u56DE\u590D"
|
|
})]
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [v["delete"] && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
handleDeleteScore(v);
|
|
},
|
|
children: "\u5220\u9664"
|
|
}), v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current",
|
|
onClick: function onClick() {
|
|
setShowApplys({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u7533\u8BC9"
|
|
}), v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-blue current ml10",
|
|
onClick: function onClick() {
|
|
return setShowApplys({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
},
|
|
children: "\u56DE\u590D"
|
|
}), !v.can_reply && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: "\u5931\u6548"
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
span: 24,
|
|
children: [v.hidden_comment && /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: v.hidden_comment
|
|
}), !v.hidden_comment && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black",
|
|
children: "\u6682\u672A\u5199\u8BC4\u8BED"
|
|
}), v === null || v === void 0 ? void 0 : (_v$attachments2 = v.attachments) === null || _v$attachments2 === void 0 ? void 0 : _v$attachments2.map(function (item, key) {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
|
href: "".concat(env/* default.API_SERVER */.Z.API_SERVER).concat(item.url),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "iconfont icon-fujian c-green font14"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "ml10 c-black",
|
|
children: item.title
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml20 font12",
|
|
children: item.filesize
|
|
})]
|
|
})
|
|
}, key);
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: "w100",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: [Reviewmodules.comment, 'w100'].join(' '),
|
|
children: [v.appeal_info && v.appeal_info != '' && /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "50px",
|
|
children: [(v === null || v === void 0 ? void 0 : (_v$appeal_info6 = v.appeal_info) === null || _v$appeal_info6 === void 0 ? void 0 : _v$appeal_info6.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (v === null || v === void 0 ? void 0 : (_v$appeal_info7 = v.appeal_info) === null || _v$appeal_info7 === void 0 ? void 0 : _v$appeal_info7.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(v === null || v === void 0 ? void 0 : (_v$appeal_info8 = v.appeal_info) === null || _v$appeal_info8 === void 0 ? void 0 : _v$appeal_info8.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [v === null || v === void 0 ? void 0 : (_v$appeal_info9 = v.appeal_info) === null || _v$appeal_info9 === void 0 ? void 0 : _v$appeal_info9.user_name, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(v === null || v === void 0 ? void 0 : (_v$appeal_info10 = v.appeal_info) === null || _v$appeal_info10 === void 0 ? void 0 : _v$appeal_info10.time).format('YYYY-MM-DD HH:mm')
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-blue ml10",
|
|
children: "\u7533\u8BC9\u4E2D"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 2 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u5DF2\u64A4\u9500"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 3 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-blue ml10",
|
|
children: "\u7533\u8BC9\u6210\u529F"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 4 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u88AB\u62D2\u7EDD"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 5 && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "tag-style bg-grey-ede c-light-black ml10",
|
|
children: "\u7533\u8BC9\u5931\u8D25"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
children: [(v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && v.can_appeal && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee10() {
|
|
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
case 0:
|
|
getData();
|
|
case 1:
|
|
case "end":
|
|
return _context10.stop();
|
|
}
|
|
}, _callee10);
|
|
}));
|
|
function onOk() {
|
|
return _onOk6.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-blue current",
|
|
children: "\u64A4\u9500\u7533\u8BC9"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee11() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
|
|
while (1) switch (_context11.prev = _context11.next) {
|
|
case 0:
|
|
_context11.next = 2;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
method: 'post',
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 3
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context11.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context11.stop();
|
|
}
|
|
}, _callee11);
|
|
}));
|
|
function onOk() {
|
|
return _onOk7.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-red current",
|
|
children: "\u63A5\u53D7\u7533\u8BC9"
|
|
}), (v === null || v === void 0 ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
onClick: function onClick() {
|
|
es_modal/* default.confirm */.Z.confirm({
|
|
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
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 _callee12() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee12$(_context12) {
|
|
while (1) switch (_context12.prev = _context12.next) {
|
|
case 0:
|
|
_context12.next = 2;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/deal_appeal_score.json"), {
|
|
method: 'post',
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 4
|
|
}
|
|
});
|
|
case 2:
|
|
res = _context12.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context12.stop();
|
|
}
|
|
}, _callee12);
|
|
}));
|
|
function onOk() {
|
|
return _onOk8.apply(this, arguments);
|
|
}
|
|
return onOk;
|
|
}()
|
|
});
|
|
},
|
|
className: "c-light-black current ml10",
|
|
children: "\u62D2\u7EDD\u7533\u8BC9"
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: v === null || v === void 0 ? void 0 : v.appeal_info.content
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {})]
|
|
})
|
|
})
|
|
})
|
|
}), v.journals.map(function (val, key) {
|
|
var _val$user_info5, _val$user_info6, _val$user_info7, _val$user_info8;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
span: 24,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "50px",
|
|
children: [(val === null || val === void 0 ? void 0 : (_val$user_info5 = val.user_info) === null || _val$user_info5 === void 0 ? void 0 : _val$user_info5.user_image_url) === '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}), (val === null || val === void 0 ? void 0 : (_val$user_info6 = val.user_info) === null || _val$user_info6 === void 0 ? void 0 : _val$user_info6.user_image_url) !== '--' && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: "".concat(env/* default.IMG_SERVER */.Z.IMG_SERVER, "/images/").concat(val === null || val === void 0 ? void 0 : (_val$user_info7 = val.user_info) === null || _val$user_info7 === void 0 ? void 0 : _val$user_info7.user_image_url)
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
flex: "1",
|
|
children: [val === null || val === void 0 ? void 0 : (_val$user_info8 = val.user_info) === null || _val$user_info8 === void 0 ? void 0 : _val$user_info8.user_name, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: "c-light-black ml10",
|
|
children: moment_default()(val === null || val === void 0 ? void 0 : val.time).format('YYYY-MM-DD HH:mm')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
|
|
value: val.hidden_comment
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
children: (val === null || val === void 0 ? void 0 : val.can_delete) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: "\u5220\u9664",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DeleteOutlined/* default */.Z, {
|
|
className: "current c-light-black",
|
|
onClick: function onClick() {
|
|
handleDelete(val);
|
|
}
|
|
})
|
|
})
|
|
})]
|
|
})
|
|
})
|
|
}, key), key !== v.journals.length - 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
|
|
}, key);
|
|
})]
|
|
})]
|
|
})]
|
|
}), showApplys.show && k === showApplys.active && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
|
className: ['bg-white'].join(' '),
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
onChange: function onChange(v) {
|
|
setValue(v);
|
|
},
|
|
height: 150,
|
|
isFocus: true,
|
|
watch: true
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
|
span: 24,
|
|
className: "tr",
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "default",
|
|
size: "large",
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee13() {
|
|
return regeneratorRuntime_default()().wrap(function _callee13$(_context13) {
|
|
while (1) switch (_context13.prev = _context13.next) {
|
|
case 0:
|
|
setShowApplys({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
case 1:
|
|
case "end":
|
|
return _context13.stop();
|
|
}
|
|
}, _callee13);
|
|
})),
|
|
children: "\u53D6\u6D88"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
|
|
type: "primary",
|
|
size: "large",
|
|
className: "ml20",
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee14$(_context14) {
|
|
while (1) switch (_context14.prev = _context14.next) {
|
|
case 0:
|
|
if (!(value === '')) {
|
|
_context14.next = 4;
|
|
break;
|
|
}
|
|
message/* default.error */.ZP.error('请输入内容');
|
|
_context14.next = 14;
|
|
break;
|
|
case 4:
|
|
if (!(showApplys.type === 0)) {
|
|
_context14.next = 10;
|
|
break;
|
|
}
|
|
_context14.next = 7;
|
|
return (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)({
|
|
hidden_comment: value,
|
|
userId: params.userId,
|
|
score_id: v.score_id
|
|
});
|
|
case 7:
|
|
res = _context14.sent;
|
|
_context14.next = 13;
|
|
break;
|
|
case 10:
|
|
_context14.next = 12;
|
|
return (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
comment: value,
|
|
score_id: v.score_id,
|
|
userId: params.userId
|
|
});
|
|
case 12:
|
|
res = _context14.sent;
|
|
case 13:
|
|
if (res.status === 0) {
|
|
message/* default.success */.ZP.success('操作成功');
|
|
setShowApplys({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
getData();
|
|
}
|
|
case 14:
|
|
case "end":
|
|
return _context14.stop();
|
|
}
|
|
}, _callee14);
|
|
})),
|
|
children: showApplys.type === 0 ? '回复' : '申诉'
|
|
})]
|
|
})
|
|
})]
|
|
})]
|
|
})]
|
|
}, k), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
|
|
}, k);
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ChangeScore, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(AfterAppendix, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(image_preview/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, {
|
|
title: "\u786E\u8BA4\u6253\u56DE\u91CD\u505A",
|
|
open: isshow,
|
|
destroyOnClose: true,
|
|
forceRender: true,
|
|
onCancel: function onCancel() {
|
|
setisshow(false);
|
|
},
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee15() {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee15$(_context15) {
|
|
while (1) switch (_context15.prev = _context15.next) {
|
|
case 0:
|
|
if (comment) {
|
|
_context15.next = 3;
|
|
break;
|
|
}
|
|
message/* default.info */.ZP.info('评语不能为空');
|
|
return _context15.abrupt("return");
|
|
case 3:
|
|
_context15.next = 5;
|
|
return (0,fetch/* default */.ZP)("/api/student_works/".concat(params.userId, "/redo_modal.json"), {
|
|
method: 'post',
|
|
body: {
|
|
comment: comment,
|
|
id: params.userId
|
|
}
|
|
});
|
|
case 5:
|
|
res = _context15.sent;
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
message/* default.info */.ZP.info('打回重做成功');
|
|
setisshow(false);
|
|
getData();
|
|
}
|
|
case 7:
|
|
case "end":
|
|
return _context15.stop();
|
|
}
|
|
}, _callee15);
|
|
})),
|
|
width: 700,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
padding: '32px'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
children: ["\u786E\u8BA4\u5C06", studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.author_name, "\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
marginTop: '20px'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginRight: '5px',
|
|
color: 'red'
|
|
},
|
|
children: "*"
|
|
}), "\u8BC4\u8BED\uFF1A"]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
|
|
className: Reviewmodules.MdEditor,
|
|
onChange: function onChange(e) {
|
|
return setcomment(e);
|
|
},
|
|
defaultValue: "",
|
|
height: 250
|
|
})]
|
|
})]
|
|
})
|
|
}), contextHolder, /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
|
|
close: true,
|
|
data: data === null || data === void 0 ? void 0 : data.content,
|
|
type: data === null || data === void 0 ? void 0 : data.type,
|
|
hasMask: true
|
|
// style={{...stylesPrev}}
|
|
,
|
|
monacoEditor: {
|
|
value: monacoValueRef.current,
|
|
language: "txt",
|
|
onChange: function onChange() {},
|
|
options: {
|
|
readOnly: true,
|
|
fontSize: 14,
|
|
minimap: {
|
|
enabled: false
|
|
}
|
|
}
|
|
},
|
|
onClose: function onClose() {
|
|
return setData({
|
|
content: "",
|
|
type: ""
|
|
});
|
|
}
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Review = ((0,_umi_production_exports.connect)(function (_ref9) {
|
|
var shixunHomeworks = _ref9.shixunHomeworks,
|
|
loading = _ref9.loading,
|
|
user = _ref9.user,
|
|
globalSetting = _ref9.globalSetting;
|
|
return {
|
|
shixunHomeworks: shixunHomeworks,
|
|
globalSetting: globalSetting,
|
|
user: user,
|
|
loading: loading.effects
|
|
};
|
|
})(ExeriseReview));
|
|
|
|
/***/ })
|
|
|
|
}]); |