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.
1520 lines
79 KiB
1520 lines
79 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2338],{
|
|
|
|
/***/ 64124:
|
|
/*!************************************************************!*\
|
|
!*** ./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/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.less
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(7694);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/image/index.js + 26 modules
|
|
var es_image = __webpack_require__(89536);
|
|
;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var image_preview = (() => {
|
|
const [url, setUrl] = (0,_react_17_0_2_react.useState)("");
|
|
const [deg, setDeg] = (0,_react_17_0_2_react.useState)(0);
|
|
let [width, setwidth] = (0,_react_17_0_2_react.useState)();
|
|
let [height, setheight] = (0,_react_17_0_2_react.useState)();
|
|
const [down, setdown] = (0,_react_17_0_2_react.useState)(false);
|
|
const saveUrl = (0,_react_17_0_2_react.useRef)("");
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
const unSub = mediator/* default */.Z.subscribe("preview-image", (value) => {
|
|
setUrl(value);
|
|
console.log(imgref.current);
|
|
document.body.style.overflow = "hidden";
|
|
});
|
|
return unSub;
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
document.addEventListener("keydown", onViewEscClose);
|
|
return () => {
|
|
document.removeEventListener("keydown", onViewEscClose);
|
|
};
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
saveUrl.current = url;
|
|
}, [url]);
|
|
function onViewEscClose(e) {
|
|
if (e.keyCode == 27 && saveUrl.current) {
|
|
onClose();
|
|
}
|
|
}
|
|
function onClose() {
|
|
document.body.style.overflow = "auto";
|
|
setwidth(void 0);
|
|
setheight(void 0);
|
|
setDeg(0);
|
|
setUrl("");
|
|
}
|
|
function onRotate() {
|
|
setDeg(deg + 90);
|
|
}
|
|
function big() {
|
|
width = imgref.current.width * 1.1;
|
|
height = imgref.current.height * 1.1;
|
|
setheight(height);
|
|
setwidth(width);
|
|
}
|
|
function small() {
|
|
width = imgref.current.width / 1.1;
|
|
height = imgref.current.height / 1.1;
|
|
setheight(height);
|
|
setwidth(width);
|
|
}
|
|
const maskRef = (0,_react_17_0_2_react.useRef)();
|
|
const previewWrapperRef = (0,_react_17_0_2_react.useRef)();
|
|
const imgref = (0,_react_17_0_2_react.useRef)();
|
|
const handleMaskClick = (e) => {
|
|
if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) {
|
|
onClose();
|
|
}
|
|
};
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, !url ? null : /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
null,
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "preview-wrp-group", ref: previewWrapperRef }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_image/* default */.Z,
|
|
{
|
|
className: "image-preview",
|
|
src: url,
|
|
style: { display: "none" },
|
|
preview: {
|
|
visible: true,
|
|
src: url,
|
|
movable: false,
|
|
onVisibleChange: (value) => {
|
|
setUrl("");
|
|
}
|
|
},
|
|
alt: "\u9884\u89C8\u5927\u56FE"
|
|
}
|
|
))
|
|
));
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 86884:
|
|
/*!********************************************************************************!*\
|
|
!*** ./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/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 14 modules
|
|
var _umi_production_exports = __webpack_require__(87210);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var es_modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
var es_form = __webpack_require__(78241);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
|
|
var breadcrumb = __webpack_require__(66104);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
var row = __webpack_require__(95237);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
var col = __webpack_require__(43604);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
|
|
var divider = __webpack_require__(28103);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
|
var es_button = __webpack_require__(3113);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
var input_number = __webpack_require__(85731);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules
|
|
var ArrowLeftOutlined = __webpack_require__(68742);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules
|
|
var DeleteOutlined = __webpack_require__(47966);
|
|
// EXTERNAL MODULE: ./src/components/image-preview/index.tsx + 1 modules
|
|
var image_preview = __webpack_require__(64124);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(87101);
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 14 modules
|
|
var markdown_editor = __webpack_require__(20103);
|
|
// EXTERNAL MODULE: ./src/components/mediator.js
|
|
var mediator = __webpack_require__(7694);
|
|
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
|
|
var PreviewAll = __webpack_require__(11778);
|
|
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
|
|
var dayjs_min = __webpack_require__(9498);
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(64741);
|
|
// EXTERNAL MODULE: ./src/components/FileDownloadList/index.tsx + 1 modules
|
|
var FileDownloadList = __webpack_require__(29296);
|
|
// EXTERNAL MODULE: ./src/service/shixunHomeworks.ts
|
|
var service_shixunHomeworks = __webpack_require__(13597);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
var input = __webpack_require__(1056);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/components/ChangeScore.tsx
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var __spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (__hasOwnProp.call(b, prop))
|
|
__defNormalProp(a, prop, b[prop]);
|
|
if (__getOwnPropSymbols)
|
|
for (var prop of __getOwnPropSymbols(b)) {
|
|
if (__propIsEnum.call(b, prop))
|
|
__defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var __async = (__this, __arguments, generator) => {
|
|
return new Promise((resolve, reject) => {
|
|
var fulfilled = (value) => {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var rejected = (value) => {
|
|
try {
|
|
step(generator.throw(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
});
|
|
};
|
|
|
|
|
|
|
|
|
|
const DelShixun = ({ shixunHomeworks, dispatch }) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [coverAll, setCoverAll] = (0,_react_17_0_2_react.useState)(true);
|
|
const [form] = es_form["default"].useForm();
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u8C03\u5206",
|
|
open: shixunHomeworks.actionTabs.key === "\u8C03\u5206" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: () => __async(void 0, null, function* () {
|
|
yield form.validateFields();
|
|
const formValue = form.getFieldsValue();
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${shixunHomeworks.actionTabs.id}/adjust_score.json`,
|
|
{
|
|
method: "post",
|
|
body: __spreadValues({}, formValue)
|
|
}
|
|
);
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u8BC4\u9605\u6210\u529F");
|
|
form.resetFields();
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkCommon",
|
|
payload: __spreadValues({}, params)
|
|
});
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "tc" }, "\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"], { form, layout: "horizontal" }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", alignItems: "baseline" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u6210\u7EE9",
|
|
name: "score",
|
|
rules: [{ required: true, message: "\u8BF7\u8F93\u5165!" }]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { min: 0, placeholder: "\u8BF7\u586B\u5199\u5206\u6570" })
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, "\u5206")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "comment" }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"].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)(
|
|
({ 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__(12586);
|
|
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
var lodash = __webpack_require__(89392);
|
|
// EXTERNAL MODULE: ./src/components/MultiUpload/index.tsx + 3 modules
|
|
var MultiUpload = __webpack_require__(45982);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/components/AfterAppendix.tsx
|
|
var AfterAppendix_defProp = Object.defineProperty;
|
|
var __defProps = Object.defineProperties;
|
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var AfterAppendix_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var AfterAppendix_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var AfterAppendix_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var AfterAppendix_defNormalProp = (obj, key, value) => key in obj ? AfterAppendix_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var AfterAppendix_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (AfterAppendix_hasOwnProp.call(b, prop))
|
|
AfterAppendix_defNormalProp(a, prop, b[prop]);
|
|
if (AfterAppendix_getOwnPropSymbols)
|
|
for (var prop of AfterAppendix_getOwnPropSymbols(b)) {
|
|
if (AfterAppendix_propIsEnum.call(b, prop))
|
|
AfterAppendix_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
var AfterAppendix_async = (__this, __arguments, generator) => {
|
|
return new Promise((resolve, reject) => {
|
|
var fulfilled = (value) => {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var rejected = (value) => {
|
|
try {
|
|
step(generator.throw(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
});
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const PublishShixun = ({ classroomList, loading, dispatch }) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [form] = es_form["default"].useForm();
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u8865\u4EA4\u9644\u4EF6",
|
|
open: classroomList.actionTabs.key === "\u8865\u4EA4\u9644\u4EF6" ? true : false,
|
|
bodyStyle: { minHeight: 200 },
|
|
onOk: () => AfterAppendix_async(void 0, null, function* () {
|
|
var _a;
|
|
yield form.validateFields();
|
|
const formValue = AfterAppendix_spreadValues({}, form.getFieldValue());
|
|
const { selectArrs } = classroomList.actionTabs;
|
|
formValue.attachment_ids = (_a = formValue.attachment_ids) == null ? void 0 : _a.map((item) => item.response.id);
|
|
const res = yield (0,service_shixunHomeworks/* reviseAttachment */.mz)(__spreadProps(AfterAppendix_spreadValues({}, formValue), { homeworkId: selectArrs.work_id }));
|
|
if (res.status === 0) {
|
|
form.resetFields();
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkSupplyDetail",
|
|
payload: AfterAppendix_spreadValues({}, classroomList.actionTabs.params)
|
|
});
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
form.resetFields();
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
initialValues: {}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
name: "attachment_ids",
|
|
rules: [{ required: true, message: "\u8BF7\u4E0A\u4F20\u9644\u4EF6" }]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(MultiUpload/* default */.Z, null)
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "description" }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"].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)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(PublishShixun));
|
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(3163);
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
var authority = __webpack_require__(55830);
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
|
|
var ImagesIcon = __webpack_require__(43021);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/CommonHomework/Review/index.tsx
|
|
var Review_defProp = Object.defineProperty;
|
|
var Review_defProps = Object.defineProperties;
|
|
var Review_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var Review_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var Review_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var Review_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var Review_defNormalProp = (obj, key, value) => key in obj ? Review_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var Review_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (Review_hasOwnProp.call(b, prop))
|
|
Review_defNormalProp(a, prop, b[prop]);
|
|
if (Review_getOwnPropSymbols)
|
|
for (var prop of Review_getOwnPropSymbols(b)) {
|
|
if (Review_propIsEnum.call(b, prop))
|
|
Review_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var Review_spreadProps = (a, b) => Review_defProps(a, Review_getOwnPropDescs(b));
|
|
var Review_async = (__this, __arguments, generator) => {
|
|
return new Promise((resolve, reject) => {
|
|
var fulfilled = (value) => {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var rejected = (value) => {
|
|
try {
|
|
step(generator.throw(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
};
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
});
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ExeriseReview = ({
|
|
shixunHomeworks,
|
|
globalSetting,
|
|
loading,
|
|
user,
|
|
dispatch
|
|
}) => {
|
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
const [searchParams] = (0,_umi_production_exports.useSearchParams)();
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const boxWrap = (0,_react_17_0_2_react.useRef)();
|
|
const { userInfo } = user;
|
|
const {
|
|
studentWorkDetail,
|
|
studentWorkCommon,
|
|
studentWorkSupplyDetail,
|
|
workList
|
|
} = shixunHomeworks;
|
|
const [value, setValue] = (0,_react_17_0_2_react.useState)("");
|
|
const [showApply, setShowApply] = (0,_react_17_0_2_react.useState)({
|
|
show: false,
|
|
type: 0,
|
|
active: null
|
|
});
|
|
const [showApplys, setShowApplys] = (0,_react_17_0_2_react.useState)({
|
|
show: false,
|
|
type: 0,
|
|
active: null
|
|
});
|
|
const [modal, contextHolder] = es_modal["default"].useModal();
|
|
const [nextComment, setNextComment] = (0,_react_17_0_2_react.useState)({ last: false });
|
|
const [Previous, setPrevious] = (0,_react_17_0_2_react.useState)({ last: false });
|
|
const [form] = es_form["default"].useForm();
|
|
const [isshow, setisshow] = (0,_react_17_0_2_react.useState)(false);
|
|
const [comment, setcomment] = (0,_react_17_0_2_react.useState)("");
|
|
const [data, setData] = (0,_react_17_0_2_react.useState)({
|
|
content: "",
|
|
type: ""
|
|
});
|
|
const [btnLoading, setBtnLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const monacoValueRef = (0,_react_17_0_2_react.useRef)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const getData = () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkCommon",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkDetail",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkSupplyDetail",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
getData();
|
|
getDatas();
|
|
boxWrap.current.onclick = (e) => {
|
|
if (e.target.nodeName === "IMG" && e.target.alt !== "") {
|
|
mediator/* default */.Z.publish("preview-image", e.target.src);
|
|
}
|
|
};
|
|
}, [params.categoryId, params.userId]);
|
|
function getDatas() {
|
|
return Review_async(this, null, function* () {
|
|
const paylaod = JSON.parse(
|
|
sessionStorage["all_student_works_params"] || "{}"
|
|
);
|
|
let data2 = {};
|
|
if (searchParams.get("ids")) {
|
|
data2.course_group = searchParams.get("ids").split(",");
|
|
}
|
|
});
|
|
}
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (studentWorkDetail == null ? void 0 : studentWorkDetail.homework_id) {
|
|
if (studentWorkDetail == null ? void 0 : studentWorkDetail.prev_work_id) {
|
|
setPrevious({ student_work_id: studentWorkDetail == null ? void 0 : studentWorkDetail.prev_work_id });
|
|
} else {
|
|
setPrevious({ last: true });
|
|
}
|
|
if (studentWorkDetail == null ? void 0 : studentWorkDetail.next_work_id) {
|
|
setNextComment({ student_work_id: studentWorkDetail == null ? void 0 : studentWorkDetail.next_work_id });
|
|
} else {
|
|
setNextComment({ last: true });
|
|
}
|
|
}
|
|
}, [studentWorkDetail]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
dispatch({
|
|
type: "globalSetting/footerToggle",
|
|
payload: false
|
|
});
|
|
return () => {
|
|
dispatch({
|
|
type: "globalSetting/footerToggle",
|
|
payload: true
|
|
});
|
|
};
|
|
}, []);
|
|
const handleDelete = (d) => {
|
|
modal.confirm({
|
|
title: "\u662F\u5426\u786E\u8BA4\u5220\u9664?",
|
|
onOk: () => Review_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "shixunHomeworks/deleteReply",
|
|
payload: {
|
|
object_id: d.id,
|
|
object_type: "journals_for_message"
|
|
}
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
};
|
|
const handleDeleteScore = (d) => {
|
|
modal.confirm({
|
|
title: "\u662F\u5426\u786E\u8BA4\u5220\u9664?",
|
|
onOk: () => Review_async(void 0, null, function* () {
|
|
const res = yield (0,service_shixunHomeworks/* delStudentWorkScore */.QC)({
|
|
score_id: d.comment_id,
|
|
userId: params.userId
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
};
|
|
const handleSave = (value2) => Review_async(void 0, null, function* () {
|
|
var _a2;
|
|
value2.attachment_ids = (_a2 = value2.attachment_ids) == null ? void 0 : _a2.map(
|
|
(val) => {
|
|
var _a3;
|
|
return (_a3 = val == null ? void 0 : val.response) == null ? void 0 : _a3.id;
|
|
}
|
|
);
|
|
setBtnLoading(true);
|
|
const res = yield (0,service_shixunHomeworks/* addStudentWorkScore */.yy)(Review_spreadProps(Review_spreadValues({}, value2), {
|
|
userId: params.userId
|
|
}));
|
|
if (res.status === 0) {
|
|
form.resetFields();
|
|
if (studentWorkDetail == null ? void 0 : studentWorkDetail.next_work_id) {
|
|
message/* default */.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01\u5DF2\u4E3A\u60A8\u81EA\u52A8\u5207\u6362\u81F3\u4E0B\u4E00\u4E2A\u5F85\u8BC4\u9605\u7684\u5B66\u751F", 2);
|
|
handleNextAppraise("read");
|
|
} else {
|
|
message/* default */.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01", 2);
|
|
getData();
|
|
}
|
|
}
|
|
setBtnLoading(false);
|
|
});
|
|
const handleNextAppraise = (type) => Review_async(void 0, null, function* () {
|
|
const { comment: comment2, score, attachment_ids } = form.getFieldsValue();
|
|
const boolScore = !(0,lodash.isNil)(score);
|
|
if (comment2 || boolScore || attachment_ids) {
|
|
es_modal["default"].confirm({
|
|
centered: true,
|
|
okText: "\u79BB\u5F00",
|
|
cancelText: "\u53D6\u6D88",
|
|
title: "\u79BB\u5F00\u6B64\u9875\u63D0\u793A",
|
|
content: /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "tc" }, "\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539"),
|
|
onOk: () => {
|
|
form.resetFields();
|
|
if (type === "last") {
|
|
_umi_production_exports.history.push(
|
|
searchParams.get("ids") ? `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${Previous == null ? void 0 : Previous.student_work_id}?ids=${searchParams.get("ids")}` : `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${Previous == null ? void 0 : Previous.student_work_id}`
|
|
);
|
|
} else if (type === "read") {
|
|
_umi_production_exports.history.push(
|
|
searchParams.get("ids") ? `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${nextComment == null ? void 0 : nextComment.student_work_id}?ids=${searchParams.get("ids")}` : `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${nextComment == null ? void 0 : nextComment.student_work_id}`
|
|
);
|
|
} else {
|
|
_umi_production_exports.history.push(
|
|
`/classrooms/${params.coursesId}/common_homework/${params.categoryId}/detail`
|
|
);
|
|
}
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
if (type === "last") {
|
|
_umi_production_exports.history.push(
|
|
searchParams.get("ids") ? `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${Previous == null ? void 0 : Previous.student_work_id}?ids=${searchParams.get("ids")}` : `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${Previous == null ? void 0 : Previous.student_work_id}`
|
|
);
|
|
} else if (type === "read") {
|
|
_umi_production_exports.history.push(
|
|
searchParams.get("ids") ? `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${nextComment == null ? void 0 : nextComment.student_work_id}?ids=${searchParams.get("ids")}` : `/classrooms/${params == null ? void 0 : params.coursesId}/common_homework/${params == null ? void 0 : params.categoryId}/review/${nextComment == null ? void 0 : nextComment.student_work_id}`
|
|
);
|
|
} else {
|
|
_umi_production_exports.history.push(
|
|
`/classrooms/${params.coursesId}/common_homework/${params.categoryId}/detail`
|
|
);
|
|
}
|
|
});
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: "edu-container", ref: boxWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: "animated fadeIn" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "mt10" }, userInfo && /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z, { separator: ">" }, /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/classrooms/${params.coursesId}/common_homework/${!!((_a = studentWorkDetail == null ? void 0 : studentWorkDetail.category) == null ? void 0 : _a.main) ? "" : (_b = studentWorkDetail == null ? void 0 : studentWorkDetail.category) == null ? void 0 : _b.category_id}`
|
|
},
|
|
(_c = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _c.course_name
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/classrooms/${params.coursesId}/common_homework/${!!((_d = studentWorkDetail == null ? void 0 : studentWorkDetail.category) == null ? void 0 : _d.main) ? "" : (_e = studentWorkDetail == null ? void 0 : studentWorkDetail.category) == null ? void 0 : _e.category_id}`
|
|
},
|
|
(_f = studentWorkDetail == null ? void 0 : studentWorkDetail.category) == null ? void 0 : _f.category_name
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/classrooms/${params.coursesId}/common_homework/${params.categoryId}/detail`
|
|
},
|
|
"\u4F5C\u4E1A\u8BE6\u60C5"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z.Item, null, studentWorkDetail == null ? void 0 : studentWorkDetail.author_name))), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [Reviewmodules.title, "mt20"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { style: { width: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(_umi_production_exports.Link, { to: `/classrooms/${params.coursesId}/common_homework` }, /* @__PURE__ */ _react_17_0_2_react.createElement(ArrowLeftOutlined/* default */.Z, { className: "font16 c-black" })), /* @__PURE__ */ _react_17_0_2_react.createElement("strong", { className: "font20 ml5" }, studentWorkDetail == null ? void 0 : studentWorkDetail.homework_name), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
util/* StatusClassroomsTags */.VV,
|
|
{
|
|
status: studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (0,authority/* isStudent */.dE)() && ((_g = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _g.includes("\u8865\u4EA4\u4E2D")) && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u8865\u4EA4\u9644\u4EF6",
|
|
params,
|
|
selectArrs: {
|
|
homework_id: params.commonHomeworkId,
|
|
work_id: params.userId
|
|
}
|
|
}
|
|
});
|
|
},
|
|
className: "c-blue current font14"
|
|
},
|
|
"\u8865\u4EA4\u9644\u4EF6"
|
|
))))), /* @__PURE__ */ _react_17_0_2_react.createElement("ul", { className: Reviewmodules["nav-tab"] }, /* @__PURE__ */ _react_17_0_2_react.createElement("li", { className: "active" }, "\u4F5C\u4E1A\u8BE6\u60C5"), (0,authority/* isSuperAdmin */.j5)() && /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/classrooms/${params.coursesId}/common_homework/${params.categoryId}/lab-report-view/${params.userId}`
|
|
},
|
|
" ",
|
|
"\u5B9E\u9A8C\u62A5\u544A",
|
|
" "
|
|
))), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"section",
|
|
{
|
|
className: [Reviewmodules.bg, "pt30", "pl30", "pr30", "pb30"].join(" ")
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(spin/* default */.Z, { spinning: loading["shixunHomeworks/getStudentWorkDetail"] || loading["shixunHomeworks/getStudentWorkSupplyDetail"] }, (studentWorkDetail == null ? void 0 : studentWorkDetail.description) && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font16" }, "\u5185\u5BB9", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: "#FA6400", fontSize: 14 } }, "\uFF08\u5F53\u524D\u652F\u6301\u6279\u6CE8\u7684\u6587\u6863\u7C7B\u578B\uFF1A.docx\u3001.xlsx\u3001.pptx\uFF09")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "mt20" }, /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: (studentWorkDetail == null ? void 0 : studentWorkDetail.description) || "\u6682\u65E0\uFF5E" })), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
FileDownloadList/* default */.Z,
|
|
{
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkDetail",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkDetail == null ? void 0 : studentWorkDetail.attachments
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: " c-light-black" }, dayjs_min_default()(studentWorkDetail.commit_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, studentWorkDetail.commit_user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-light-black" }, "\u63D0\u4EA4"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-light-black" }, dayjs_min_default()(studentWorkDetail.update_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, studentWorkDetail.update_user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-light-black" }, "\u66F4\u65B0"))), (studentWorkDetail == null ? void 0 : studentWorkDetail.redo_description) && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font16" }, "\u91CD\u505A\u8BB0\u5F55"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 mt20" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
RenderHtml/* default */.Z,
|
|
{
|
|
value: (studentWorkDetail == null ? void 0 : studentWorkDetail.redo_description) || "\u6682\u65E0\uFF5E"
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
FileDownloadList/* default */.Z,
|
|
{
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkDetail",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkDetail == null ? void 0 : studentWorkDetail.redo_attachments
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: " c-light-black" }, dayjs_min_default()(studentWorkDetail.redo_commit_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, studentWorkDetail.commit_user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-light-black" }, "\u63D0\u4EA4"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-light-black" }, dayjs_min_default()(studentWorkDetail.redo_update_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, studentWorkDetail.update_user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-light-black" }, "\u66F4\u65B0"))), (studentWorkSupplyDetail == null ? void 0 : studentWorkSupplyDetail.revise_reason) && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font16" }, "\u8865\u4EA4\u5185\u5BB9"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 mt20" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
RenderHtml/* default */.Z,
|
|
{
|
|
value: (studentWorkSupplyDetail == null ? void 0 : studentWorkSupplyDetail.revise_reason) || "\u6682\u65E0\uFF5E"
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
FileDownloadList/* default */.Z,
|
|
{
|
|
authority: (0,authority/* isAdmin */.GJ)(),
|
|
callback: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/getStudentWorkSupplyDetail",
|
|
payload: Review_spreadValues({}, params)
|
|
});
|
|
},
|
|
dataSource: studentWorkSupplyDetail == null ? void 0 : studentWorkSupplyDetail.revise_attachments
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-light-black" }, dayjs_min_default()(studentWorkSupplyDetail.atta_update_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10" }, studentWorkSupplyDetail.atta_update_user), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-light-black" }, "\u66F4\u65B0"))))
|
|
), (studentWorkDetail == null ? void 0 : studentWorkDetail.anonymous_comment) && (0,authority/* isAdminOrTeacher */.G5)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"section",
|
|
{
|
|
className: [Reviewmodules.bg, "mt30", "pt30", "pl30", "pr30", "pb30"].join(
|
|
" "
|
|
)
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u533F\u8BC4\u5B66\u751F"),
|
|
!!((_h = studentWorkDetail == null ? void 0 : studentWorkDetail.no_commented_user_names) == null ? void 0 : _h.length) && /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u672A\u5B8C\u6210\u533F\u8BC4\uFF1A", studentWorkDetail.no_commented_user_names.join("\u3001")),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u5DF2\u5B8C\u6210\u533F\u8BC4\uFF1A", (_i = studentWorkDetail.commented_user_names) == null ? void 0 : _i.join("\u3001"))
|
|
), ((0,authority/* isAdminOrStudent */.RV)() || ((_j = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _j.includes("\u533F\u8BC4\u4E2D"))) && /* @__PURE__ */ _react_17_0_2_react.createElement("section", null, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [Reviewmodules.replyList, "bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { gutter: [10, 20] }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: 1 }), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { style: { lineHeight: "40px" } }, (0,authority/* isAdmin */.GJ)() && (studentWorkCommon == null ? void 0 : studentWorkCommon.ultimate) && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "font-16 c-blue current",
|
|
onClick: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {
|
|
key: "\u8C03\u5206",
|
|
selectArrs: studentWorkDetail,
|
|
id: params.userId,
|
|
params
|
|
}
|
|
});
|
|
}
|
|
},
|
|
"\u8C03\u5206"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (0,authority/* isAdminOrTeacher */.G5)() && (((_k = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _k.includes("\u63D0\u4EA4\u4E2D")) || ((_l = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _l.includes("\u8865\u4EA4\u4E2D")) || ((_m = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _m.includes(
|
|
"\u8FDB\u884C\u4E2D"
|
|
))) && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
style: { width: "124px", height: "40px" },
|
|
type: "primary",
|
|
onClick: () => setisshow(true)
|
|
},
|
|
"\u6253\u56DE\u91CD\u505A"
|
|
))), !studentWorkCommon.is_author && !(studentWorkCommon == null ? void 0 : studentWorkCommon.ultimate) && ((0,authority/* isAdmin */.GJ)() || ((_n = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _n.includes("\u533F\u8BC4\u4E2D"))) && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
layout: "vertical",
|
|
form,
|
|
onFinish: (value2) => handleSave(value2)
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle", justify: "start" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
name: "score",
|
|
label: "\u8BC4\u5206",
|
|
rules: [
|
|
{
|
|
required: (0,authority/* isAdmin */.GJ)() ? false : true,
|
|
message: "\u8BF7\u586B\u5199\u5206\u6570"
|
|
}
|
|
]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input_number/* default */.Z,
|
|
{
|
|
step: 0.1,
|
|
min: 0,
|
|
style: { width: 100 },
|
|
size: "middle",
|
|
placeholder: "\u8BF7\u586B\u5199\u5206\u6570"
|
|
}
|
|
)
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml5 mr20" }, "\u5206")))), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null))),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u8BC4\u8BED",
|
|
name: "comment"
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(markdown_editor/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED", defaultValue: "", height: 250 })
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "attachment_ids" }, /* @__PURE__ */ _react_17_0_2_react.createElement(MultiUpload/* default */.Z, null))),
|
|
(0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1",
|
|
name: "hidden_comment",
|
|
style: { marginTop: 10 }
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(markdown_editor/* default */.Z, { placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED", defaultValue: "", height: 250 })
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: `${Reviewmodules.buttonFixed}` }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "edu-container" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "default",
|
|
onClick: () => handleNextAppraise("list")
|
|
},
|
|
"\u8FD4\u56DE\u5217\u8868"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1", className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "default",
|
|
onClick: () => handleNextAppraise("last"),
|
|
disabled: Previous == null ? void 0 : Previous.last
|
|
},
|
|
"\u4E0A\u4E00\u4E2A"
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "default",
|
|
disabled: nextComment == null ? void 0 : nextComment.last,
|
|
style: {
|
|
marginLeft: "20px",
|
|
marginRight: "20px"
|
|
},
|
|
onClick: () => handleNextAppraise("read")
|
|
},
|
|
"\u4E0B\u4E00\u4E2A"
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(es_button/* default */.ZP, { loading: btnLoading, htmlType: "submit", type: "primary" }, "\u63D0\u4EA4\u8BC4\u9605")))))
|
|
))), ((0,authority/* isAdminOrStudent */.RV)() || ((_o = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _o.includes("\u533F\u8BC4\u4E2D")) || ((_p = studentWorkDetail == null ? void 0 : studentWorkDetail.homework_status) == null ? void 0 : _p.includes("\u7533\u8BC9\u4E2D"))) && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [Reviewmodules.replyList, "bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { color: "#000000", fontWeight: 500 } }, "\u70B9\u8BC4\u5185\u5BB9\uFF08", (_q = studentWorkCommon == null ? void 0 : studentWorkCommon.comment_scores) == null ? void 0 : _q.length, "\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), (_r = studentWorkCommon == null ? void 0 : studentWorkCommon.comment_scores) == null ? void 0 : _r.map(function(v, k) {
|
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { gutter: [12, 12], key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "40px" }, (v == null ? void 0 : v.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), (v == null ? void 0 : v.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${v == null ? void 0 : v.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: 1 }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, v == null ? void 0 : v.user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(v == null ? void 0 : v.comment_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), v.score !== null && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-orange" }, v.score, "\u5206")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, k === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, v.delete && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
handleDeleteScore(v);
|
|
}
|
|
},
|
|
"\u5220\u9664"
|
|
), v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
setShowApply({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
}
|
|
},
|
|
"\u7533\u8BC9"
|
|
), v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current ml10",
|
|
onClick: () => setShowApply({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
})
|
|
},
|
|
"\u56DE\u590D"
|
|
), !v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, "\u5931\u6548")) : /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, v.delete && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
handleDeleteScore(v);
|
|
}
|
|
},
|
|
"\u5220\u9664"
|
|
), v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
setShowApply({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
}
|
|
},
|
|
"\u7533\u8BC9"
|
|
), v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current ml10",
|
|
onClick: () => setShowApply({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
})
|
|
},
|
|
"\u56DE\u590D"
|
|
), !v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, "\u5931\u6548"))))), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, v.content && /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: v.content }), !v.content && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u6682\u672A\u5199\u8BC4\u8BED"), (_a2 = v == null ? void 0 : v.attachments) == null ? void 0 : _a2.map((item, key) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { key }, /* @__PURE__ */ _react_17_0_2_react.createElement("a", { href: `${env/* default */.Z.API_SERVER}${item.url}` }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "iconfont icon-fujian c-green font14" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-black" }, item.title), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml20 font12" }, item.filesize)));
|
|
})), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "w100" }, /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"aside",
|
|
{
|
|
className: [Reviewmodules.comment, "w100"].join(" ")
|
|
},
|
|
v.appeal_info && v.appeal_info != "" && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "50px" }, ((_b2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _b2.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), ((_c2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _c2.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${(_d2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _d2.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, (_e2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _e2.user_name, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(
|
|
(_f2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _f2.time
|
|
).format("YYYY-MM-DD HH:mm")), (v == null ? void 0 : v.appeal_status) === 1 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-blue ml10" }, "\u7533\u8BC9\u4E2D"), (v == null ? void 0 : v.appeal_status) === 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u5DF2\u64A4\u9500"), (v == null ? void 0 : v.appeal_status) === 3 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-blue ml10" }, "\u7533\u8BC9\u6210\u529F"), (v == null ? void 0 : v.appeal_status) === 4 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u88AB\u62D2\u7EDD"), (v == null ? void 0 : v.appeal_status) === 5 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u5931\u8D25")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (v == null ? void 0 : v.appeal_status) === 1 && v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
getData();
|
|
})
|
|
});
|
|
},
|
|
className: "c-blue current"
|
|
},
|
|
"\u64A4\u9500\u7533\u8BC9"
|
|
), (v == null ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u5E9F\u5F03\uFF0C\u8BC4\u9605\u4EBA\u7684\u4F5C\u54C1\u5C06\u88AB\u8FDD\u89C4\u6263\u5206", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${params.userId}/deal_appeal_score.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 3
|
|
}
|
|
}
|
|
);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
},
|
|
className: "c-red current"
|
|
},
|
|
"\u63A5\u53D7\u7533\u8BC9"
|
|
), (v == null ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${params.userId}/deal_appeal_score.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 4
|
|
}
|
|
}
|
|
);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
},
|
|
className: "c-light-black current ml10"
|
|
},
|
|
"\u62D2\u7EDD\u7533\u8BC9"
|
|
))), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
RenderHtml/* default */.Z,
|
|
{
|
|
value: v == null ? void 0 : v.appeal_info.content
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null))))),
|
|
v.journals.map(function(val, key) {
|
|
var _a3, _b3, _c3, _d3;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { key }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { key }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "50px" }, ((_a3 = val == null ? void 0 : val.user_info) == null ? void 0 : _a3.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), ((_b3 = val == null ? void 0 : val.user_info) == null ? void 0 : _b3.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${(_c3 = val == null ? void 0 : val.user_info) == null ? void 0 : _c3.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, (_d3 = val == null ? void 0 : val.user_info) == null ? void 0 : _d3.user_name, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(val == null ? void 0 : val.time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: val.content })), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (val == null ? void 0 : val.can_delete) && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5220\u9664" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
DeleteOutlined/* default */.Z,
|
|
{
|
|
className: "current c-light-black",
|
|
onClick: () => {
|
|
handleDelete(val);
|
|
}
|
|
}
|
|
)))))), key !== v.journals.length - 1 && /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null));
|
|
})
|
|
))), showApply.show && k === showApply.active && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: ["bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
markdown_editor/* default */.Z,
|
|
{
|
|
onChange: (v2) => {
|
|
setValue(v2);
|
|
},
|
|
height: 150,
|
|
isFocus: true,
|
|
watch: true
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24, className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "default",
|
|
size: "middle",
|
|
onClick: () => Review_async(this, null, function* () {
|
|
setShowApply({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
})
|
|
},
|
|
"\u53D6\u6D88"
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "primary",
|
|
size: "middle",
|
|
className: "ml20",
|
|
onClick: () => Review_async(this, null, function* () {
|
|
let res;
|
|
if (value === "") {
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
|
} else {
|
|
if (showApply.type === 0) {
|
|
res = yield (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)(
|
|
{
|
|
comment: value,
|
|
userId: params.userId,
|
|
score_id: v.score_id
|
|
}
|
|
);
|
|
} else {
|
|
res = yield (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
comment: value,
|
|
score_id: v.score_id,
|
|
userId: params.userId
|
|
});
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
setShowApply({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
getData();
|
|
}
|
|
}
|
|
})
|
|
},
|
|
showApply.type === 0 ? "\u56DE\u590D" : "\u7533\u8BC9"
|
|
)))))), /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null));
|
|
})), (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [Reviewmodules.replyList, "bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { color: "#000000", fontWeight: 500 } }, "\u70B9\u8BC4\u5185\u5BB9-\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1\uFF08", (_s = studentWorkCommon == null ? void 0 : studentWorkCommon.hidden_comment_scores) == null ? void 0 : _s.length, "\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), (_t = studentWorkCommon == null ? void 0 : studentWorkCommon.hidden_comment_scores) == null ? void 0 : _t.map(function(v, k) {
|
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { gutter: [12, 12], key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "40px" }, (v == null ? void 0 : v.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), (v == null ? void 0 : v.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${v == null ? void 0 : v.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: 1 }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, v == null ? void 0 : v.user_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(v == null ? void 0 : v.comment_time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
))), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, k === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, v.delete && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
handleDeleteScore(v);
|
|
}
|
|
},
|
|
"\u5220\u9664"
|
|
), v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
setShowApplys({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
}
|
|
},
|
|
"\u7533\u8BC9"
|
|
), v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current ml10",
|
|
onClick: () => setShowApplys({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
})
|
|
},
|
|
"\u56DE\u590D"
|
|
)) : /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, v.delete && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
handleDeleteScore(v);
|
|
}
|
|
},
|
|
"\u5220\u9664"
|
|
), v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current",
|
|
onClick: () => {
|
|
setShowApplys({
|
|
show: true,
|
|
type: 1,
|
|
active: k
|
|
});
|
|
}
|
|
},
|
|
"\u7533\u8BC9"
|
|
), v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "c-blue current ml10",
|
|
onClick: () => setShowApplys({
|
|
show: true,
|
|
type: 0,
|
|
active: k
|
|
})
|
|
},
|
|
"\u56DE\u590D"
|
|
), !v.can_reply && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, "\u5931\u6548"))))), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, v.hidden_comment && /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: v.hidden_comment }), !v.hidden_comment && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u6682\u672A\u5199\u8BC4\u8BED"), (_a2 = v == null ? void 0 : v.attachments) == null ? void 0 : _a2.map((item, key) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { key }, /* @__PURE__ */ _react_17_0_2_react.createElement("a", { href: `${env/* default */.Z.API_SERVER}${item.url}` }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "iconfont icon-fujian c-green font14" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml10 c-black" }, item.title), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml20 font12" }, item.filesize)));
|
|
})), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "w100" }, /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"aside",
|
|
{
|
|
className: [Reviewmodules.comment, "w100"].join(" ")
|
|
},
|
|
v.appeal_info && v.appeal_info != "" && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "50px" }, ((_b2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _b2.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), ((_c2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _c2.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${(_d2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _d2.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, (_e2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _e2.user_name, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(
|
|
(_f2 = v == null ? void 0 : v.appeal_info) == null ? void 0 : _f2.time
|
|
).format("YYYY-MM-DD HH:mm")), (v == null ? void 0 : v.appeal_status) === 1 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-blue ml10" }, "\u7533\u8BC9\u4E2D"), (v == null ? void 0 : v.appeal_status) === 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u5DF2\u64A4\u9500"), (v == null ? void 0 : v.appeal_status) === 3 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-blue ml10" }, "\u7533\u8BC9\u6210\u529F"), (v == null ? void 0 : v.appeal_status) === 4 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u88AB\u62D2\u7EDD"), (v == null ? void 0 : v.appeal_status) === 5 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml10" }, "\u7533\u8BC9\u5931\u8D25")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (v == null ? void 0 : v.appeal_status) === 1 && v.can_appeal && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
getData();
|
|
})
|
|
});
|
|
},
|
|
className: "c-blue current"
|
|
},
|
|
"\u64A4\u9500\u7533\u8BC9"
|
|
), (v == null ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u5E9F\u5F03\uFF0C\u8BC4\u9605\u4EBA\u7684\u4F5C\u54C1\u5C06\u88AB\u8FDD\u89C4\u6263\u5206", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${params.userId}/deal_appeal_score.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 3
|
|
}
|
|
}
|
|
);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
},
|
|
className: "c-red current"
|
|
},
|
|
"\u63A5\u53D7\u7533\u8BC9"
|
|
), (v == null ? void 0 : v.appeal_status) === 1 && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => {
|
|
es_modal["default"].confirm({
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),
|
|
onOk: () => Review_async(this, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${params.userId}/deal_appeal_score.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
score_id: v.score_id,
|
|
status: 4
|
|
}
|
|
}
|
|
);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
getData();
|
|
}
|
|
})
|
|
});
|
|
},
|
|
className: "c-light-black current ml10"
|
|
},
|
|
"\u62D2\u7EDD\u7533\u8BC9"
|
|
))), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
RenderHtml/* default */.Z,
|
|
{
|
|
value: v == null ? void 0 : v.appeal_info.content
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null))))),
|
|
v.journals.map(function(val, key) {
|
|
var _a3, _b3, _c3, _d3;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { key }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { key }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "50px" }, ((_a3 = val == null ? void 0 : val.user_info) == null ? void 0 : _a3.user_image_url) === "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: ImagesIcon/* anonyIcon */.xp
|
|
}
|
|
), ((_b3 = val == null ? void 0 : val.user_info) == null ? void 0 : _b3.user_image_url) !== "--" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
className: Reviewmodules.headpic,
|
|
width: "40",
|
|
src: `${env/* default */.Z.IMG_SERVER}/images/${(_c3 = val == null ? void 0 : val.user_info) == null ? void 0 : _c3.user_image_url}`
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, (_d3 = val == null ? void 0 : val.user_info) == null ? void 0 : _d3.user_name, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(val == null ? void 0 : val.time).format(
|
|
"YYYY-MM-DD HH:mm"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: val.hidden_comment })), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (val == null ? void 0 : val.can_delete) && /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: "\u5220\u9664" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
DeleteOutlined/* default */.Z,
|
|
{
|
|
className: "current c-light-black",
|
|
onClick: () => {
|
|
handleDelete(val);
|
|
}
|
|
}
|
|
)))))), key !== v.journals.length - 1 && /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null));
|
|
})
|
|
))), showApplys.show && k === showApplys.active && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: ["bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
markdown_editor/* default */.Z,
|
|
{
|
|
onChange: (v2) => {
|
|
setValue(v2);
|
|
},
|
|
height: 150,
|
|
isFocus: true,
|
|
watch: true
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24, className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "default",
|
|
size: "middle",
|
|
onClick: () => Review_async(this, null, function* () {
|
|
setShowApplys({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
})
|
|
},
|
|
"\u53D6\u6D88"
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "primary",
|
|
size: "middle",
|
|
className: "ml20",
|
|
onClick: () => Review_async(this, null, function* () {
|
|
let res;
|
|
if (value === "") {
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
|
} else {
|
|
if (showApplys.type === 0) {
|
|
res = yield (0,service_shixunHomeworks/* addStudentWorkScoreCommit */.qP)(
|
|
{
|
|
hidden_comment: value,
|
|
userId: params.userId,
|
|
score_id: v.score_id
|
|
}
|
|
);
|
|
} else {
|
|
res = yield (0,service_shixunHomeworks/* appealAnonymousScore */.R$)({
|
|
comment: value,
|
|
score_id: v.score_id,
|
|
userId: params.userId
|
|
});
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
setShowApplys({
|
|
show: false,
|
|
type: 0,
|
|
active: k
|
|
});
|
|
getData();
|
|
}
|
|
}
|
|
})
|
|
},
|
|
showApplys.type === 0 ? "\u56DE\u590D" : "\u7533\u8BC9"
|
|
)))))), /* @__PURE__ */ _react_17_0_2_react.createElement(divider/* default */.Z, null));
|
|
}))), /* @__PURE__ */ _react_17_0_2_react.createElement(ChangeScore, null), /* @__PURE__ */ _react_17_0_2_react.createElement(AfterAppendix, null), /* @__PURE__ */ _react_17_0_2_react.createElement(image_preview/* default */.Z, null), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_modal["default"],
|
|
{
|
|
title: "\u786E\u8BA4\u6253\u56DE\u91CD\u505A",
|
|
open: isshow,
|
|
destroyOnClose: true,
|
|
forceRender: true,
|
|
onCancel: () => {
|
|
setisshow(false);
|
|
},
|
|
onOk: () => Review_async(void 0, null, function* () {
|
|
if (!comment) {
|
|
message/* default */.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");
|
|
return;
|
|
}
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/student_works/${params.userId}/redo_modal.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
comment,
|
|
id: params.userId
|
|
}
|
|
}
|
|
);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.info("\u6253\u56DE\u91CD\u505A\u6210\u529F");
|
|
setisshow(false);
|
|
getData();
|
|
}
|
|
}),
|
|
width: 700
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { padding: "32px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u786E\u8BA4\u5C06", studentWorkDetail == null ? void 0 : studentWorkDetail.author_name, "\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { marginTop: "20px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("label", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { marginRight: "5px", color: "red" } }, "*"), "\u8BC4\u8BED\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
markdown_editor/* default */.Z,
|
|
{
|
|
className: Reviewmodules.MdEditor,
|
|
onChange: (e) => setcomment(e),
|
|
defaultValue: "",
|
|
height: 250
|
|
}
|
|
)))
|
|
), contextHolder, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
PreviewAll/* default */.Z,
|
|
{
|
|
close: true,
|
|
data: data == null ? void 0 : data.content,
|
|
type: data == null ? void 0 : data.type,
|
|
hasMask: true,
|
|
monacoEditor: {
|
|
value: monacoValueRef.current,
|
|
language: "txt",
|
|
onChange: () => {
|
|
},
|
|
options: {
|
|
readOnly: true,
|
|
fontSize: 14,
|
|
minimap: {
|
|
enabled: false
|
|
}
|
|
}
|
|
},
|
|
onClose: () => setData({ content: "", type: "" })
|
|
}
|
|
));
|
|
};
|
|
/* harmony default export */ var Review = ((0,_umi_production_exports.connect)(
|
|
({
|
|
shixunHomeworks,
|
|
loading,
|
|
user,
|
|
globalSetting
|
|
}) => ({
|
|
shixunHomeworks,
|
|
globalSetting,
|
|
user,
|
|
loading: loading.effects
|
|
})
|
|
)(ExeriseReview));
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |