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.
865 lines
40 KiB
865 lines
40 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[8882],{
|
|
|
|
/***/ 10501:
|
|
/*!**********************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/index.tsx + 7 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 */ Detail; }
|
|
});
|
|
|
|
// 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 + 15 modules
|
|
var _umi_production_exports = __webpack_require__(67866);
|
|
// 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/tabs/index.js + 24 modules
|
|
var tabs = __webpack_require__(99313);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules
|
|
var ArrowLeftOutlined = __webpack_require__(22596);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(13462);
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 15 modules
|
|
var markdown_editor = __webpack_require__(96180);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(21873);
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx
|
|
var RenderHtml = __webpack_require__(16921);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
var modal = __webpack_require__(43418);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
var message = __webpack_require__(8591);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkDescription/components/DelComponents.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)();
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
open: shixunHomeworks.actionTabs.key === "\u5220\u9664" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: () => __async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "shixunHomeworks/deleteReply",
|
|
payload: {
|
|
object_id: shixunHomeworks.actionTabs.selectArr.id,
|
|
object_type: "journals_for_message"
|
|
}
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "shixunHomeworks/getReplyList",
|
|
payload: __spreadValues({}, shixunHomeworks.actionTabs.params)
|
|
});
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F")
|
|
);
|
|
};
|
|
/* harmony default export */ var DelComponents = ((0,_umi_production_exports.connect)(
|
|
({ shixunHomeworks }) => ({
|
|
shixunHomeworks
|
|
})
|
|
)(DelShixun));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.11@dayjs/dayjs.min.js
|
|
var dayjs_min = __webpack_require__(99232);
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
// 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/input/index.js + 5 modules
|
|
var input = __webpack_require__(98135);
|
|
// 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/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
var pagination = __webpack_require__(53864);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules
|
|
var DeleteOutlined = __webpack_require__(20360);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LikeOutlined.js + 1 modules
|
|
var LikeOutlined = __webpack_require__(62426);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkDescription/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var WorkDescriptionmodules = ({"flex_box_center":"flex_box_center___XZOIk","flex_space_between":"flex_space_between___Yg4Dl","flex_box_vertical_center":"flex_box_vertical_center___uGbSz","flex_box_center_end":"flex_box_center_end___y3xze","flex_box_column":"flex_box_column___uiCa0","listItem":"listItem___ZZCkK","description":"description___WfCjN","liked":"liked___mHx4H","likedActive":"likedActive___zTpzg","reply":"reply___H7MjG","replyList":"replyList___Aweik","comment":"comment___ej0Vc"});
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkDescription/index.tsx
|
|
var WorkDescription_defProp = Object.defineProperty;
|
|
var WorkDescription_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var WorkDescription_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var WorkDescription_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var WorkDescription_defNormalProp = (obj, key, value) => key in obj ? WorkDescription_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var WorkDescription_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (WorkDescription_hasOwnProp.call(b, prop))
|
|
WorkDescription_defNormalProp(a, prop, b[prop]);
|
|
if (WorkDescription_getOwnPropSymbols)
|
|
for (var prop of WorkDescription_getOwnPropSymbols(b)) {
|
|
if (WorkDescription_propIsEnum.call(b, prop))
|
|
WorkDescription_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var WorkDescription_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());
|
|
});
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dayjs_min_default().locale("ZH-cn");
|
|
const ShixunsListPage = ({
|
|
graduation,
|
|
classroomList,
|
|
globalSetting,
|
|
loading,
|
|
dispatch
|
|
}) => {
|
|
var _a;
|
|
const [params, setParams] = (0,_react_17_0_2_react.useState)(WorkDescription_spreadValues({}, (0,_umi_production_exports.useParams)()));
|
|
const [showReply, setShowReply] = (0,_react_17_0_2_react.useState)(false);
|
|
const [showItemReply, setShowItemReply] = (0,_react_17_0_2_react.useState)(-1);
|
|
const [value, setValue] = (0,_react_17_0_2_react.useState)("");
|
|
const { detailLeftMenus } = classroomList;
|
|
const { graduationDetail, replyList, detail, tasksDetail } = graduation;
|
|
const type = { 1: "\u8BBE\u8BA1", 2: "\u8BBA\u6587", 3: "\u521B\u4F5C" };
|
|
const source = { 1: "\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645", 2: "\u7ED3\u5408\u79D1\u7814", 3: "\u5176\u5B83" };
|
|
const first = { 1: "\u771F\u9898", 2: "\u6A21\u62DF\u9898" };
|
|
const second = { 1: "\u7EB5\u5411\u8BFE\u9898", 2: "\u6A2A\u5411\u8BFE\u9898", 3: "\u81EA\u9009" };
|
|
const repeat = { 1: "\u65B0\u9898", 2: "\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42", 3: "\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42" };
|
|
params["page_size"] = 10;
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
dispatch({
|
|
type: "graduation/getTopisDetail",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
}, [params.categoryId]);
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: WorkDescriptionmodules.bg }, /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: " edu-container" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [WorkDescriptionmodules.desc, "c-black", "font14", "bg-white"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement("h1", { className: WorkDescriptionmodules.description }, detail.description), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "mt30" }, /* @__PURE__ */ _react_17_0_2_react.createElement("ul", { className: WorkDescriptionmodules.listItem }, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u7C7B\u578B\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, type[detail == null ? void 0 : detail.topic_type] || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u6765\u6E90\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, source[detail == null ? void 0 : detail.topic_source] || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u6027\u8D281\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, first[detail == null ? void 0 : detail.topic_property_first] || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u6027\u8D282\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, second[detail == null ? void 0 : detail.topic_property_second] || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, repeat[detail == null ? void 0 : detail.topic_repeat] || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, detail.city || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", { className: "fl with50" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black" }, "\u8BFE\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, detail.source_unit || "--")))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30" }, (_a = tasksDetail == null ? void 0 : tasksDetail.attachments) == null ? void 0 : _a.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__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("aside", { className: [WorkDescriptionmodules.reply, "bg-white", "mt20"].join(" ") }, showReply && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
markdown_editor/* default */.Z,
|
|
{
|
|
onChange: (v) => {
|
|
setValue(v);
|
|
},
|
|
height: 200,
|
|
isFocus: true,
|
|
watch: true
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { onClick: () => {
|
|
setShowReply(true);
|
|
} }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, !showReply && /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { size: "middle", className: "current", placeholder: "\u8BF4\u70B9\u4EC0\u4E48", disabled: true })), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
type: "primary",
|
|
size: "middle",
|
|
onClick: () => WorkDescription_async(void 0, null, function* () {
|
|
if (value === "") {
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
|
} else {
|
|
const res = yield dispatch({
|
|
type: "graduation/createReply",
|
|
payload: {
|
|
journals_for_message: {
|
|
jour_id: params.categoryId,
|
|
jour_type: "HomeworkCommon",
|
|
reply_id: 1,
|
|
notes: value
|
|
}
|
|
}
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u53D1\u5E03\u6210\u529F");
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
setShowReply(false);
|
|
}
|
|
}
|
|
})
|
|
},
|
|
"\u53D1\u8868"
|
|
)))), (replyList == null ? void 0 : replyList.comments) && replyList.comments != "" && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [WorkDescriptionmodules.replyList, "bg-white"].join(" ") }, replyList == null ? void 0 : replyList.comments.map(function(v, k) {
|
|
var _a2, _b;
|
|
return /* @__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" }, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { width: "40", src: `${env/* default */.Z.IMG_SERVER}/images/${(_a2 = v == null ? void 0 : v.author) == null ? void 0 : _a2.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("span", { className: "c-light-black" }, (_b = v == null ? void 0 : v.author) == null ? void 0 : _b.name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(v == null ? void 0 : v.created_on).fromNow(), " \u53D1\u5E03")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24 }, /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: v.content })), v.children && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: WorkDescriptionmodules.comment }, v.children.map(function(val, key) {
|
|
return /* @__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: "1" }, val.author.name, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-black ml10" }, dayjs_min_default()(val == null ? void 0 : val.created_on).fromNow())), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__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",
|
|
onClick: () => {
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {
|
|
key: "\u5220\u9664",
|
|
params,
|
|
selectArr: v
|
|
}
|
|
});
|
|
}
|
|
}
|
|
))))), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("strong", null, /* @__PURE__ */ _react_17_0_2_react.createElement(RenderHtml/* default */.Z, { value: val.content }))));
|
|
})), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 24, className: "mt5 c-light-black" }, showItemReply === k && /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
markdown_editor/* default */.Z,
|
|
{
|
|
onChange: (v2) => {
|
|
setValue(v2);
|
|
},
|
|
height: 150,
|
|
isFocus: 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: "primary",
|
|
size: "middle",
|
|
onClick: () => WorkDescription_async(this, null, function* () {
|
|
if (value === "") {
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");
|
|
} else {
|
|
yield dispatch({
|
|
type: "graduation/createReply",
|
|
payload: {
|
|
journals_for_message: {
|
|
jour_id: params.categoryId,
|
|
jour_type: "HomeworkCommon",
|
|
m_parent_id: v.id,
|
|
reply_id: 1,
|
|
notes: value
|
|
}
|
|
}
|
|
});
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
message/* default */.ZP.success("\u53D1\u5E03\u6210\u529F");
|
|
setShowItemReply(-1);
|
|
}
|
|
})
|
|
},
|
|
"\u53D1\u8868"
|
|
)))), showItemReply !== k && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "iconfont icon-huifu1 mr5 ml30", onClick: () => setShowItemReply(k) }), v.liked && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-orange" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
LikeOutlined/* default */.Z,
|
|
{
|
|
className: "mr5 ml30",
|
|
onClick: () => WorkDescription_async(this, null, function* () {
|
|
yield dispatch({
|
|
type: "graduation/replyUnLike",
|
|
payload: {
|
|
object_id: v.id,
|
|
object_type: "message"
|
|
}
|
|
});
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
})
|
|
}
|
|
), v.praises_count), !v.liked && /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
LikeOutlined/* default */.Z,
|
|
{
|
|
className: "mr5 ml30",
|
|
onClick: () => WorkDescription_async(this, null, function* () {
|
|
yield dispatch({
|
|
type: "graduation/replyLike",
|
|
payload: {
|
|
object_id: v.id,
|
|
object_type: "message"
|
|
}
|
|
});
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
})
|
|
}
|
|
), v.praises_count))))));
|
|
}))), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tc mt30 pb30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
pagination/* default */.Z,
|
|
{
|
|
defaultCurrent: 1,
|
|
total: replyList == null ? void 0 : replyList.total_count,
|
|
hideOnSinglePage: true,
|
|
current: params.page || 1,
|
|
onChange: (page) => {
|
|
params["page"] = page;
|
|
dispatch({
|
|
type: "graduation/getReplyList",
|
|
payload: WorkDescription_spreadValues({}, params)
|
|
});
|
|
}
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(DelComponents, null));
|
|
};
|
|
/* harmony default export */ var WorkDescription = ((0,_umi_production_exports.connect)(
|
|
({
|
|
graduation,
|
|
classroomList,
|
|
loading,
|
|
globalSetting
|
|
}) => ({
|
|
graduation,
|
|
globalSetting,
|
|
classroomList,
|
|
loading: loading.effects
|
|
})
|
|
)(ShixunsListPage));
|
|
|
|
// 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/table/index.js + 85 modules
|
|
var table = __webpack_require__(14491);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkList/components/Refuse.tsx
|
|
var Refuse_defProp = Object.defineProperty;
|
|
var Refuse_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var Refuse_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var Refuse_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var Refuse_defNormalProp = (obj, key, value) => key in obj ? Refuse_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var Refuse_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (Refuse_hasOwnProp.call(b, prop))
|
|
Refuse_defNormalProp(a, prop, b[prop]);
|
|
if (Refuse_getOwnPropSymbols)
|
|
for (var prop of Refuse_getOwnPropSymbols(b)) {
|
|
if (Refuse_propIsEnum.call(b, prop))
|
|
Refuse_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var __objRest = (source, exclude) => {
|
|
var target = {};
|
|
for (var prop in source)
|
|
if (Refuse_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
target[prop] = source[prop];
|
|
if (source != null && Refuse_getOwnPropSymbols)
|
|
for (var prop of Refuse_getOwnPropSymbols(source)) {
|
|
if (exclude.indexOf(prop) < 0 && Refuse_propIsEnum.call(source, prop))
|
|
target[prop] = source[prop];
|
|
}
|
|
return target;
|
|
};
|
|
var Refuse_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 Refuse_DelShixun = (_a) => {
|
|
var _b = _a, { graduation, dispatch } = _b, props = __objRest(_b, ["graduation", "dispatch"]);
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
open: graduation.actionTabs.key === "\u62D2\u7EDD" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: () => Refuse_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "graduation/refuseTopic",
|
|
payload: Refuse_spreadValues({
|
|
student_graduation_topic: graduation.actionTabs.selectArrs.id
|
|
}, params)
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u62D2\u7EDD\u6210\u529F");
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "graduation/getTopisDetailList",
|
|
payload: Refuse_spreadValues({}, graduation.actionTabs.params)
|
|
});
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u5B66\u751F\u9009\u9898?")
|
|
);
|
|
};
|
|
/* harmony default export */ var Refuse = ((0,_umi_production_exports.connect)(
|
|
({ graduation }) => ({
|
|
graduation
|
|
})
|
|
)(Refuse_DelShixun));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
var es_select = __webpack_require__(57809);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkList/components/Agree.tsx
|
|
var Agree_defProp = Object.defineProperty;
|
|
var Agree_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var Agree_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var Agree_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var Agree_defNormalProp = (obj, key, value) => key in obj ? Agree_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var Agree_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (Agree_hasOwnProp.call(b, prop))
|
|
Agree_defNormalProp(a, prop, b[prop]);
|
|
if (Agree_getOwnPropSymbols)
|
|
for (var prop of Agree_getOwnPropSymbols(b)) {
|
|
if (Agree_propIsEnum.call(b, prop))
|
|
Agree_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var Agree_objRest = (source, exclude) => {
|
|
var target = {};
|
|
for (var prop in source)
|
|
if (Agree_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
target[prop] = source[prop];
|
|
if (source != null && Agree_getOwnPropSymbols)
|
|
for (var prop of Agree_getOwnPropSymbols(source)) {
|
|
if (exclude.indexOf(prop) < 0 && Agree_propIsEnum.call(source, prop))
|
|
target[prop] = source[prop];
|
|
}
|
|
return target;
|
|
};
|
|
var Agree_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 Agree_DelShixun = (_a) => {
|
|
var _b = _a, { graduation, dispatch } = _b, props = Agree_objRest(_b, ["graduation", "dispatch"]);
|
|
var _a2;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { detailList } = graduation;
|
|
const [form] = es_form["default"].useForm();
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u540C\u610F\u9009\u9898",
|
|
open: graduation.actionTabs.key === "\u540C\u610F" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: () => Agree_async(void 0, null, function* () {
|
|
var _a3;
|
|
yield form.validateFields();
|
|
const value = form.getFieldsValue();
|
|
const res = yield dispatch({
|
|
type: "graduation/agreeTopic",
|
|
payload: Agree_spreadValues({
|
|
group_id: value.group_id,
|
|
course_group_name: (_a3 = detailList == null ? void 0 : detailList.group_list) == null ? void 0 : _a3.filter((item) => item.group_id == value.group_id)[0]["group_name"],
|
|
student_graduation_topic: graduation.actionTabs.selectArrs.id
|
|
}, params)
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u540C\u610F\u6210\u529F");
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "graduation/getTopisDetailList",
|
|
payload: Agree_spreadValues({}, graduation.actionTabs.params)
|
|
});
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u786E\u8BA4\u540C\u610F\u5B66\u751F\u7684\u9009\u9898\uFF0C\u5C06\u5B66\u751F\u52A0\u5165\u6211\u7684\u5206\u73ED"),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "group_id", label: "\u9009\u62E9\uFF1A", rules: [{ required: true, message: "\u8BF7\u9009\u62E9\u5206\u73ED" }] }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { placeholder: "\u8BF7\u9009\u62E9\u5206\u73ED", size: "middle" }, (_a2 = detailList == null ? void 0 : detailList.group_list) == null ? void 0 : _a2.map(function(item, key) {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: item.group_id }, item.group_name);
|
|
})))
|
|
)
|
|
);
|
|
};
|
|
/* harmony default export */ var Agree = ((0,_umi_production_exports.connect)(
|
|
({ graduation }) => ({
|
|
graduation
|
|
})
|
|
)(Agree_DelShixun));
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/components/WorkList/index.tsx
|
|
var WorkList_defProp = Object.defineProperty;
|
|
var WorkList_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var WorkList_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var WorkList_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var WorkList_defNormalProp = (obj, key, value) => key in obj ? WorkList_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var WorkList_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (WorkList_hasOwnProp.call(b, prop))
|
|
WorkList_defNormalProp(a, prop, b[prop]);
|
|
if (WorkList_getOwnPropSymbols)
|
|
for (var prop of WorkList_getOwnPropSymbols(b)) {
|
|
if (WorkList_propIsEnum.call(b, prop))
|
|
WorkList_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const WorkList = ({ graduation, loading, dispatch }) => {
|
|
const [params, setParams] = (0,_react_17_0_2_react.useState)(WorkList_spreadValues({}, (0,_umi_production_exports.useParams)()));
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const { detailList } = graduation;
|
|
const [filterSelect, setFilterSelect] = (0,_react_17_0_2_react.useState)({});
|
|
const [form] = es_form["default"].useForm();
|
|
const onShowSizeChange = (current, pageSize) => {
|
|
params.page = current;
|
|
params.limit = 20;
|
|
dispatch({
|
|
type: "graduation/getTopisDetailList",
|
|
payload: WorkList_spreadValues({}, params)
|
|
});
|
|
};
|
|
const columns = [
|
|
{
|
|
title: "\u5E8F\u53F7",
|
|
dataIndex: "name",
|
|
width: 200,
|
|
align: "center",
|
|
render: (text, record, index) => index + 1
|
|
},
|
|
{
|
|
title: "\u59D3\u540D",
|
|
dataIndex: "student_name"
|
|
},
|
|
{
|
|
title: "\u5B66\u53F7",
|
|
dataIndex: "student_id"
|
|
},
|
|
{
|
|
title: "\u5206\u73ED",
|
|
dataIndex: "class_group_name"
|
|
},
|
|
{
|
|
title: "\u9009\u9898\u65F6\u95F4",
|
|
dataIndex: "selected_time"
|
|
},
|
|
{
|
|
title: "\u786E\u8BA4\u7ED3\u679C",
|
|
dataIndex: "result",
|
|
render: (text) => {
|
|
if (text === "\u5DF2\u62D2\u7EDD") {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-orange" }, "\u5DF2\u62D2\u7EDD");
|
|
} else {
|
|
return text;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
title: "\u64CD\u4F5C",
|
|
dataInex: "action",
|
|
render: (text, record) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, (record.result === "\u5F85\u786E\u8BA4" || record.result === "\u5DF2\u540C\u610F") && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "current",
|
|
onClick: () => {
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {
|
|
key: "\u62D2\u7EDD",
|
|
selectArrs: record,
|
|
params
|
|
}
|
|
});
|
|
}
|
|
},
|
|
"\u62D2\u7EDD"
|
|
), record.result === "\u5F85\u786E\u8BA4" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: "current ml20 c-blue",
|
|
onClick: () => {
|
|
dispatch({
|
|
type: "graduation/setActionTabs",
|
|
payload: {
|
|
key: "\u540C\u610F",
|
|
selectArrs: record,
|
|
params
|
|
}
|
|
});
|
|
}
|
|
},
|
|
"\u540C\u610F"
|
|
));
|
|
}
|
|
}
|
|
];
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: "minH500 bg-white " }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
table["default"],
|
|
{
|
|
loading: loading["graduation/getTopisDetailList"],
|
|
pagination: false,
|
|
dataSource: detailList.users_list,
|
|
columns
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(Refuse, null), /* @__PURE__ */ _react_17_0_2_react.createElement(Agree, null)), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "tc mb50 mt30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
pagination/* default */.Z,
|
|
{
|
|
hideOnSinglePage: true,
|
|
showSizeChanger: false,
|
|
onChange: onShowSizeChange,
|
|
defaultCurrent: params.page || 1,
|
|
current: params.page || 1,
|
|
defaultPageSize: 15,
|
|
total: graduation.users_count
|
|
}
|
|
)));
|
|
};
|
|
/* harmony default export */ var components_WorkList = ((0,_umi_production_exports.connect)(
|
|
({
|
|
graduation,
|
|
loading
|
|
}) => ({
|
|
graduation,
|
|
loading: loading.effects
|
|
})
|
|
)(WorkList));
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___ZPOJ5","flex_space_between":"flex_space_between___GmCrk","flex_box_vertical_center":"flex_box_vertical_center___XpcAN","flex_box_center_end":"flex_box_center_end___krRXE","flex_box_column":"flex_box_column___DLzSN","title":"title___KDcLT","menuTabs":"menuTabs___nxQqE","rightMenu":"rightMenu___MVID9","shixunDetail":"shixunDetail___NvT9l"});
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Graduation/Tasks/Detail/index.tsx
|
|
var Detail_defProp = Object.defineProperty;
|
|
var Detail_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var Detail_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var Detail_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var Detail_defNormalProp = (obj, key, value) => key in obj ? Detail_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var Detail_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (Detail_hasOwnProp.call(b, prop))
|
|
Detail_defNormalProp(a, prop, b[prop]);
|
|
if (Detail_getOwnPropSymbols)
|
|
for (var prop of Detail_getOwnPropSymbols(b)) {
|
|
if (Detail_propIsEnum.call(b, prop))
|
|
Detail_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Detail_ShixunsListPage = ({
|
|
graduation,
|
|
globalSetting,
|
|
loading,
|
|
dispatch
|
|
}) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [searchParams] = (0,_umi_production_exports.useSearchParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const [selectArrs, setSelectArrs] = (0,_react_17_0_2_react.useState)([]);
|
|
const [activeTabs, setActiveTabs] = (0,_react_17_0_2_react.useState)(searchParams.get("tabs") || 0);
|
|
const { detailTaskList, tasksDetail } = graduation;
|
|
let courseModules;
|
|
params["category"] = searchParams.get("category_id");
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
dispatch({
|
|
type: "graduation/getTasksDetail",
|
|
payload: Detail_spreadValues({}, params)
|
|
});
|
|
dispatch({
|
|
type: "graduation/getTasksListDetail",
|
|
payload: Detail_spreadValues({}, params)
|
|
});
|
|
}, [params.coursesId]);
|
|
const tabsArr = [
|
|
{ name: "\u4EFB\u52A1\u5217\u8868", id: 0, compontent: /* @__PURE__ */ _react_17_0_2_react.createElement(components_WorkList, null) },
|
|
{
|
|
name: "\u4EFB\u52A1\u63CF\u8FF0",
|
|
id: 1,
|
|
compontent: /* @__PURE__ */ _react_17_0_2_react.createElement(WorkDescription, null)
|
|
}
|
|
];
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("section", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "edu-container" }, detailTaskList.course_name && /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: "animated fadeIn" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "mt10" }, /* @__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/${detailTaskList.course_id}/shixun_homework`
|
|
},
|
|
detailTaskList.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/${detailTaskList.course_id}/graduation_tasks`
|
|
},
|
|
"\u6BD5\u8BBE\u4EFB\u52A1"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(breadcrumb/* default */.Z.Item, null, "\u4EFB\u52A1\u8BE6\u60C5"))), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: [Detailmodules.title, "mt20"].join(" ") }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/classrooms/${detailTaskList.course_id}/graduation_tasks`
|
|
},
|
|
/* @__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" }, detailTaskList.task_name), /* @__PURE__ */ _react_17_0_2_react.createElement(util/* StatusClassroomsTags */.VV, { status: [detailTaskList.status_name] }))), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "mt30 relative" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: Detailmodules.rightMenu }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: Detailmodules.shixunDetail,
|
|
to: `/classrooms/${params.coursesId}/graduation_tasks/${params.categoryId}/edit`
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "iconfont icon-shixunxiangqing" }),
|
|
"\u7F16\u8F91\u4EFB\u52A1"
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"], { defaultActiveKey: activeTabs, className: Detailmodules.menuTabs }, tabsArr.map((v, k) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(tabs["default"].TabPane, { tab: v.name, key: v.id }, v.compontent);
|
|
})))));
|
|
};
|
|
/* harmony default export */ var Detail = ((0,_umi_production_exports.connect)(
|
|
({
|
|
graduation,
|
|
loading,
|
|
globalSetting
|
|
}) => ({
|
|
graduation,
|
|
globalSetting,
|
|
loading: loading.effects
|
|
})
|
|
)(Detail_ShixunsListPage));
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |