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.
5729 lines
298 KiB
5729 lines
298 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[3282],{
|
|
|
|
/***/ 92821:
|
|
/*!******************************************************!*\
|
|
!*** ./src/components/CodeBox/index.tsx + 1 modules ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
Z: function() { return /* binding */ components_CodeBox; }
|
|
});
|
|
|
|
// UNUSED EXPORTS: CodeDeleteModal
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// 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/input/index.js + 5 modules
|
|
var input = __webpack_require__(98135);
|
|
;// CONCATENATED MODULE: ./src/components/CodeBox/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var CodeBoxmodules = ({"codeBox":"codeBox___WpkVl"});
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
|
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
|
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
|
;// CONCATENATED MODULE: ./src/components/CodeBox/index.tsx
|
|
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());
|
|
});
|
|
};
|
|
|
|
|
|
|
|
|
|
class CodeBox extends _react_17_0_2_react.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
// 生成一个随机数
|
|
this.randomNum = (min, max) => {
|
|
return Math.floor(Math.random() * (max - min) + min);
|
|
};
|
|
this.drawPic = () => {
|
|
this.randomCode();
|
|
};
|
|
this.reloadPic = () => {
|
|
this.drawPic();
|
|
};
|
|
// 输入验证码
|
|
this.changeCode = (e) => {
|
|
console.log(e.target.value, 222);
|
|
this.setState({
|
|
value: e.target.value,
|
|
showError: false
|
|
});
|
|
};
|
|
this.onVerify = () => {
|
|
let error;
|
|
if (this.state.value.toLowerCase() !== "" && this.state.value.toLowerCase() !== this.state.code.toLowerCase()) {
|
|
error = true;
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801");
|
|
this.reloadPic();
|
|
} else if (this.state.value.toLowerCase() === "") {
|
|
error = true;
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801");
|
|
} else if (this.state.value.toLowerCase() === this.state.code.toLowerCase()) {
|
|
error = false;
|
|
}
|
|
this.setState({
|
|
showError: error
|
|
});
|
|
return error;
|
|
};
|
|
this.canvas = _react_17_0_2_react.createRef();
|
|
this.state = {
|
|
value: "",
|
|
code: "",
|
|
codeLength: 4,
|
|
fontSizeMin: 20,
|
|
fontSizeMax: 22,
|
|
backgroundColorMin: 240,
|
|
backgroundColorMax: 250,
|
|
colorMin: 10,
|
|
colorMax: 20,
|
|
lineColorMin: 40,
|
|
lineColorMax: 180,
|
|
contentWidth: 96,
|
|
contentHeight: 38,
|
|
showError: false
|
|
// 默认不显示验证码的错误信息
|
|
};
|
|
}
|
|
componentDidMount() {
|
|
this.drawPic();
|
|
}
|
|
// 生成一个随机的颜色
|
|
randomColor(min, max) {
|
|
const r = this.randomNum(min, max);
|
|
const g = this.randomNum(min, max);
|
|
const b = this.randomNum(min, max);
|
|
return `rgb(${r}, ${g}, ${b})`;
|
|
}
|
|
drawText(ctx, txt, i) {
|
|
ctx.fillStyle = this.randomColor(this.state.colorMin, this.state.colorMax);
|
|
const fontSize = this.randomNum(this.state.fontSizeMin, this.state.fontSizeMax);
|
|
ctx.font = fontSize + "px SimHei";
|
|
const padding = 10;
|
|
const offset = (this.state.contentWidth - 40) / (this.state.code.length - 1);
|
|
let x = padding;
|
|
if (i > 0) {
|
|
x = padding + i * offset;
|
|
}
|
|
let y = this.randomNum(this.state.fontSizeMax, this.state.contentHeight - 5);
|
|
if (fontSize > 40) {
|
|
y = 40;
|
|
}
|
|
const deg = this.randomNum(-10, 10);
|
|
ctx.translate(x, y);
|
|
ctx.rotate(deg * Math.PI / 180);
|
|
ctx.fillText(txt, 0, 0);
|
|
ctx.rotate(-deg * Math.PI / 180);
|
|
ctx.translate(-x, -y);
|
|
}
|
|
drawLine(ctx) {
|
|
for (let i = 0; i < 1; i++) {
|
|
ctx.strokeStyle = this.randomColor(this.state.lineColorMin, this.state.lineColorMax);
|
|
ctx.beginPath();
|
|
ctx.moveTo(this.randomNum(0, this.state.contentWidth), this.randomNum(0, this.state.contentHeight));
|
|
ctx.lineTo(this.randomNum(0, this.state.contentWidth), this.randomNum(0, this.state.contentHeight));
|
|
ctx.stroke();
|
|
}
|
|
}
|
|
drawDot(ctx) {
|
|
for (let i = 0; i < 100; i++) {
|
|
ctx.fillStyle = this.randomColor(0, 255);
|
|
ctx.beginPath();
|
|
ctx.arc(this.randomNum(0, this.state.contentWidth), this.randomNum(0, this.state.contentHeight), 1, 0, 2 * Math.PI);
|
|
ctx.fill();
|
|
}
|
|
}
|
|
// 随机生成验证码
|
|
randomCode() {
|
|
let random = "";
|
|
const str = "QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";
|
|
for (let i = 0; i < this.state.codeLength; i++) {
|
|
const index = Math.floor(Math.random() * 57);
|
|
random += str[index];
|
|
}
|
|
this.setState({
|
|
code: random
|
|
}, () => {
|
|
const canvas = this.canvas.current;
|
|
const ctx = canvas.getContext("2d");
|
|
ctx.textBaseline = "bottom";
|
|
ctx.fillStyle = this.randomColor(this.state.backgroundColorMin, this.state.backgroundColorMax);
|
|
ctx.fillRect(0, 0, this.state.contentWidth, this.state.contentHeight);
|
|
for (let i = 0; i < this.state.code.length; i++) {
|
|
this.drawText(ctx, this.state.code[i], i);
|
|
}
|
|
this.drawLine(ctx);
|
|
this.drawDot(ctx);
|
|
});
|
|
}
|
|
render() {
|
|
const { className, width = 300 } = this.props;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: _classnames_2_5_1_classnames_default()(CodeBoxmodules.codeBox, className), style: { width } }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"],
|
|
{
|
|
value: this.state.value,
|
|
onChange: this.changeCode,
|
|
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"canvas",
|
|
{
|
|
onClick: this.reloadPic,
|
|
ref: this.canvas,
|
|
width: "100",
|
|
height: "30"
|
|
}
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "current", onClick: this.reloadPic }, "\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")));
|
|
}
|
|
}
|
|
const CodeDeleteModal = (cb, text) => {
|
|
let box;
|
|
Modal.confirm({
|
|
centered: true,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
title: "\u63D0\u793A",
|
|
content: /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", null, text), /* @__PURE__ */ React.createElement(CodeBox, { ref: (el) => box = el })),
|
|
onOk: () => __async(void 0, null, function* () {
|
|
if (box.onVerify()) {
|
|
return Promise.reject();
|
|
}
|
|
cb();
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_CodeBox = (CodeBox);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 87526:
|
|
/*!*****************************************!*\
|
|
!*** ./src/components/NoData/index.tsx ***!
|
|
\*****************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd */ 3113);
|
|
var __defProp = Object.defineProperty;
|
|
var __defProps = Object.defineProperties;
|
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
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 __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
|
|
|
|
|
const noData = ({
|
|
img,
|
|
buttonProps = {},
|
|
styles = {},
|
|
customText,
|
|
ButtonText,
|
|
ButtonClick,
|
|
Buttonclass,
|
|
ButtonTwo,
|
|
imgStyles,
|
|
loading = false
|
|
}) => {
|
|
return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
"section",
|
|
{
|
|
className: "tc animated fadeIn",
|
|
style: __spreadValues(__spreadValues({}, { color: "#999", margin: "100px auto", visibility: loading ? "hidden" : "visible" }), styles)
|
|
},
|
|
/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_1__, style: __spreadProps(__spreadValues({}, imgStyles), { pointerEvents: "none", userSelect: "none" }) }),
|
|
/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { className: "mt20 font14" }, customText || "\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),
|
|
ButtonText && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, __spreadValues({ className: Buttonclass, onClick: ButtonClick }, buttonProps), ButtonText),
|
|
ButtonTwo && ButtonTwo
|
|
);
|
|
};
|
|
/* harmony default export */ __webpack_exports__.Z = (noData);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 3336:
|
|
/*!*********************************************************!*\
|
|
!*** ./src/layouts/ShixunDetail/index.tsx + 32 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 */ ShixunDetail; }
|
|
});
|
|
|
|
// 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/layout/index.js
|
|
var layout = __webpack_require__(44000);
|
|
// 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);
|
|
// 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/popconfirm/index.js + 2 modules
|
|
var popconfirm = __webpack_require__(14478);
|
|
// 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/checkbox/index.js + 3 modules
|
|
var es_checkbox = __webpack_require__(24905);
|
|
// 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/popover/index.js
|
|
var popover = __webpack_require__(60324);
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
|
|
var ExclamationCircleOutlined = __webpack_require__(88289);
|
|
// EXTERNAL MODULE: ./src/service/classrooms.ts
|
|
var classrooms = __webpack_require__(65998);
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
var fetch = __webpack_require__(51165);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 17 modules
|
|
var tree_select = __webpack_require__(98228);
|
|
// 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/input/index.js + 5 modules
|
|
var input = __webpack_require__(98135);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddCategory.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 { TreeNode } = tree_select["default"];
|
|
const PublishShixun = ({ classroomList, loading, dispatch }) => {
|
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [categoryId, setCategoryId] = (0,_react_17_0_2_react.useState)();
|
|
const { actionTabs } = classroomList;
|
|
const [form] = es_form["default"].useForm();
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key == "\u6DFB\u52A0\u76EE\u5F55") {
|
|
form.resetFields();
|
|
}
|
|
;
|
|
}, [classroomList.actionTabs.key]);
|
|
if (classroomList.actionTabs.key !== "\u6DFB\u52A0\u76EE\u5F55")
|
|
return null;
|
|
console.log("---", classroomList.actionTabs.selectArrs);
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u65B0\u5EFA\u5B50\u76EE\u5F55",
|
|
open: classroomList.actionTabs.key === "\u6DFB\u52A0\u76EE\u5F55" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
bodyStyle: { minHeight: 100 },
|
|
confirmLoading,
|
|
onOk: () => __async(void 0, null, function* () {
|
|
var _a2;
|
|
yield form.validateFields();
|
|
const formValue = form.getFieldValue();
|
|
setConfirmLoading(true);
|
|
let fetchUrl = `/api/course_modules/${classroomList.actionTabs.selectArrs.category_id}/add_second_category.json`;
|
|
switch (classroomList.actionTabs.selectArrs.type) {
|
|
case "board":
|
|
fetchUrl = `/api/courses/${params.coursesId}/boards.json`;
|
|
break;
|
|
}
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
fetchUrl,
|
|
{
|
|
method: "post",
|
|
body: __spreadValues({
|
|
parent_id: categoryId === classroomList.actionTabs.selectArrs.category_id ? "" : categoryId || classroomList.actionTabs.selectArrs.parent_id
|
|
}, formValue)
|
|
}
|
|
);
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u6DFB\u52A0\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
const type = classroomList.actionTabs.selectArrs.type;
|
|
const id = (res == null ? void 0 : res.category_id) || 0;
|
|
let urlList = (_a2 = location.pathname) == null ? void 0 : _a2.split("/");
|
|
urlList[4] = id;
|
|
urlList[3] = (type === "hack" ? "program_homework" : type) || urlList[3];
|
|
const url = urlList == null ? void 0 : urlList.join("/");
|
|
_umi_production_exports.history.push(url);
|
|
if (actionTabs.cb) {
|
|
actionTabs.cb();
|
|
}
|
|
}
|
|
setConfirmLoading(false);
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
initialValues: {
|
|
["name"]: ""
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { className: "mt20", align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { style: { textAlign: "end" }, flex: "90px" }, "\u4E0A\u7EA7\u76EE\u5F55\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
tree_select["default"],
|
|
{
|
|
style: { width: "100%" },
|
|
dropdownStyle: { maxHeight: 400, overflow: "auto" },
|
|
treeDefaultExpandAll: true,
|
|
size: "middle",
|
|
defaultValue: ((_a = classroomList.actionTabs.selectArrs) == null ? void 0 : _a.parent_id) === "" ? (_b = classroomList.actionTabs.selectArrs) == null ? void 0 : _b.category_id : (_c = classroomList.actionTabs.selectArrs) == null ? void 0 : _c.parent_id,
|
|
disabled: ((_d = classroomList.actionTabs.selectArrs) == null ? void 0 : _d.parent_id) === "" ? false : true,
|
|
onChange: (value) => {
|
|
setCategoryId(value);
|
|
}
|
|
},
|
|
((_e = classroomList.actionTabs.selectArrs) == null ? void 0 : _e.parent_id) === "" && /* @__PURE__ */ _react_17_0_2_react.createElement(TreeNode, { value: (_f = classroomList.actionTabs.selectArrs) == null ? void 0 : _f.category_id, title: ((_h = (_g = classroomList.actionTabs.selectArrs) == null ? void 0 : _g.nodeModules) == null ? void 0 : _h.name) + "(\u6839\u76EE\u5F55)" }, (_k = (_j = (_i = classroomList.actionTabs.selectArrs) == null ? void 0 : _i.nodeModules) == null ? void 0 : _j.second_category) == null ? void 0 : _k.map((item, key) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(TreeNode, { value: item.category_id, title: item.category_name });
|
|
})),
|
|
((_l = classroomList.actionTabs.selectArrs) == null ? void 0 : _l.parent_id) !== "" && /* @__PURE__ */ _react_17_0_2_react.createElement(TreeNode, { value: (_n = (_m = classroomList.actionTabs.selectArrs) == null ? void 0 : _m.nodeModules) == null ? void 0 : _n.category_id, title: (_p = (_o = classroomList.actionTabs.selectArrs) == null ? void 0 : _o.nodeModules) == null ? void 0 : _p.category_name })
|
|
))),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "name", rules: [{ required: true, message: "\u8BF7\u8F93\u5165\u5B50\u76EE\u5F55\u540D\u79F0" }] }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { className: "mt20", align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { style: { textAlign: "end" }, flex: "90px", className: "font14" }, "\u5B50\u76EE\u5F55\u540D\u79F0\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26\n ", maxLength: 60 }))))
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var AddCategory = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(PublishShixun));
|
|
|
|
// 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);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/Rename.tsx
|
|
var Rename_defProp = Object.defineProperty;
|
|
var Rename_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var Rename_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var Rename_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var Rename_defNormalProp = (obj, key, value) => key in obj ? Rename_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var Rename_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (Rename_hasOwnProp.call(b, prop))
|
|
Rename_defNormalProp(a, prop, b[prop]);
|
|
if (Rename_getOwnPropSymbols)
|
|
for (var prop of Rename_getOwnPropSymbols(b)) {
|
|
if (Rename_propIsEnum.call(b, prop))
|
|
Rename_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var Rename_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 Rename_PublishShixun = ({ classroomList, loading, dispatch }) => {
|
|
var _a, _b, _c, _d, _e;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const { actionTabs } = classroomList;
|
|
const [form] = es_form["default"].useForm();
|
|
const [formValue, setFormValue] = (0,_react_17_0_2_react.useState)({ name: "string" });
|
|
const disabledDate = (current) => {
|
|
return current && current < dayjs_min_default()().startOf("day");
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a2, _b2, _c2, _d2;
|
|
if (classroomList.actionTabs.key === "\u76EE\u5F55\u91CD\u547D\u540D")
|
|
formValue.name = ((_a2 = actionTabs.selectArrs) == null ? void 0 : _a2.category_name) || ((_b2 = actionTabs.selectArrs) == null ? void 0 : _b2.name);
|
|
setFormValue(Rename_spreadValues({}, formValue));
|
|
form.setFieldsValue({
|
|
name: ((_c2 = actionTabs.selectArrs) == null ? void 0 : _c2.name) || ((_d2 = actionTabs.selectArrs) == null ? void 0 : _d2.category_name)
|
|
});
|
|
}, [classroomList.actionTabs.key]);
|
|
if (classroomList.actionTabs.key !== "\u76EE\u5F55\u91CD\u547D\u540D")
|
|
return null;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u76EE\u5F55\u91CD\u547D\u540D",
|
|
open: classroomList.actionTabs.key === "\u76EE\u5F55\u91CD\u547D\u540D" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
destroyOnClose: true,
|
|
bodyStyle: { minHeight: 150 },
|
|
confirmLoading,
|
|
onOk: () => Rename_async(void 0, null, function* () {
|
|
yield form.validateFields();
|
|
const formValue2 = form.getFieldValue();
|
|
let method = "post";
|
|
setConfirmLoading(true);
|
|
let fetchUrl = `/api/course_second_categories/${classroomList.actionTabs.selectArrs.category_id}/rename_category.json`;
|
|
if (actionTabs.selectArrs.main_id) {
|
|
fetchUrl = `/api/course_modules/${classroomList.actionTabs.selectArrs.main_id}/rename_module.json`;
|
|
}
|
|
if (classroomList.actionTabs.selectArrs.category_type === "board" || classroomList.actionTabs.selectArrs.type === "board") {
|
|
fetchUrl = `/api/boards/${classroomList.actionTabs.selectArrs.category_id}.json`;
|
|
method = "put";
|
|
}
|
|
const res = yield (0,fetch/* default */.ZP)(fetchUrl, {
|
|
method,
|
|
body: Rename_spreadValues({}, formValue2)
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u4FEE\u6539\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: { key: "\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F" }
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
if (actionTabs.cb) {
|
|
actionTabs.cb();
|
|
}
|
|
}
|
|
setConfirmLoading(false);
|
|
}),
|
|
onCancel: () => {
|
|
setFormValue({});
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
onChange: () => {
|
|
setFormValue(form.getFieldValue());
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
name: "name",
|
|
rules: [{ required: true, message: "\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0" }]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { className: "mt30", align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { className: "font14" }, "\u76EE\u5F55\u540D\u79F0\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"],
|
|
{
|
|
maxLength: ((_a = actionTabs.selectArrs) == null ? void 0 : _a.main_id) ? 20 : 60,
|
|
defaultValue: ((_b = actionTabs.selectArrs) == null ? void 0 : _b.category_name) || ((_c = actionTabs.selectArrs) == null ? void 0 : _c.name),
|
|
suffix: /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, ((_d = formValue == null ? void 0 : formValue.name) == null ? void 0 : _d.length) || 0, "/", ((_e = actionTabs.selectArrs) == null ? void 0 : _e.main_id) ? 20 : 60)
|
|
}
|
|
)))
|
|
)
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var Rename = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(Rename_PublishShixun));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
var es_select = __webpack_require__(57809);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js
|
|
var auto_complete = __webpack_require__(88522);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
var table = __webpack_require__(14491);
|
|
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
|
|
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
|
|
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
|
|
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 32 modules
|
|
var ImagesIcon = __webpack_require__(86231);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddTeacher.tsx
|
|
/* provided dependency */ var React = __webpack_require__(/*! react */ 59301);
|
|
var AddTeacher_defProp = Object.defineProperty;
|
|
var __defProps = Object.defineProperties;
|
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var AddTeacher_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var AddTeacher_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var AddTeacher_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var AddTeacher_defNormalProp = (obj, key, value) => key in obj ? AddTeacher_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var AddTeacher_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (AddTeacher_hasOwnProp.call(b, prop))
|
|
AddTeacher_defNormalProp(a, prop, b[prop]);
|
|
if (AddTeacher_getOwnPropSymbols)
|
|
for (var prop of AddTeacher_getOwnPropSymbols(b)) {
|
|
if (AddTeacher_propIsEnum.call(b, prop))
|
|
AddTeacher_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
var AddTeacher_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 AddTeacher = ({ classroomList, loading, dispatch, onShow }) => {
|
|
var _a, _b;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { actionTabs } = classroomList;
|
|
const [options, setOptions] = (0,_react_17_0_2_react.useState)([]);
|
|
const [hasMore, setHasmore] = (0,_react_17_0_2_react.useState)(true);
|
|
const [isLoading, setIsLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
const [tableData, setTableData] = (0,_react_17_0_2_react.useState)([]);
|
|
const [page, setPage] = (0,_react_17_0_2_react.useState)(0);
|
|
const [selectArrs, setSelectArrs] = (0,_react_17_0_2_react.useState)([]);
|
|
const [notSearch, setNotSearch] = (0,_react_17_0_2_react.useState)(true);
|
|
const autoCompleteRef = (0,_react_17_0_2_react.useRef)();
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u6DFB\u52A0\u8001\u5E08") {
|
|
setNotSearch(true);
|
|
getData();
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
const getData = () => AddTeacher_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "classroomList/getSchoolList",
|
|
payload: {}
|
|
});
|
|
setOptions(res.map((item) => {
|
|
return { value: item };
|
|
}));
|
|
});
|
|
const onFinish = () => {
|
|
var _a2;
|
|
if (((_a2 = form.getFieldValue()) == null ? void 0 : _a2.keyword) === "") {
|
|
setTableData([]);
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9");
|
|
return;
|
|
}
|
|
;
|
|
setNotSearch(false);
|
|
setHasmore(true);
|
|
setIsLoading(false);
|
|
setSelectArrs([]);
|
|
setTimeout(() => {
|
|
handleInfiniteOnLoad(true);
|
|
}, 200);
|
|
};
|
|
const saveSelect = (id) => {
|
|
id = String(id);
|
|
const key = selectArrs.indexOf(id);
|
|
if (key < 0) {
|
|
selectArrs.push(id);
|
|
} else {
|
|
selectArrs.splice(key, 1);
|
|
}
|
|
setSelectArrs([...selectArrs]);
|
|
};
|
|
const handleInfiniteOnLoad = (reload = false) => AddTeacher_async(void 0, null, function* () {
|
|
var _a2;
|
|
if ((reload || hasMore) && !isLoading) {
|
|
const formValue = form.getFieldValue();
|
|
setIsLoading(true);
|
|
setPage(reload ? 1 : page + 1);
|
|
const res = yield (0,classrooms/* searchSchoolTeacherList */.nQ)(AddTeacher_spreadValues({
|
|
page: reload ? 1 : page + 1,
|
|
container_id: params.coursesId,
|
|
container_type: 1,
|
|
school_name: formValue == null ? void 0 : formValue.school_name,
|
|
keyword: formValue == null ? void 0 : formValue.keyword
|
|
}, formValue));
|
|
reload ? setTableData([...res.users]) : setTableData([...tableData, ...res.users]);
|
|
setIsLoading(false);
|
|
if (((_a2 = res.users) == null ? void 0 : _a2.length) < 10)
|
|
setHasmore(false);
|
|
}
|
|
});
|
|
const onOK = () => AddTeacher_async(void 0, null, function* () {
|
|
if (selectArrs == "") {
|
|
message/* default */.ZP.error("\u8BF7\u9009\u62E9\u4EBA\u6570");
|
|
} else {
|
|
const res = yield (0,classrooms/* addTeacher */.uh)(__spreadProps(AddTeacher_spreadValues({}, params), {
|
|
role: 2,
|
|
user_list: selectArrs.map((v) => {
|
|
return { user_id: v };
|
|
})
|
|
}));
|
|
if ((res == null ? void 0 : res.status) === -4) {
|
|
onShow();
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u6DFB\u52A0\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
dispatch({
|
|
type: "teachers/getList",
|
|
payload: AddTeacher_spreadValues({}, params)
|
|
});
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/teachers`);
|
|
}
|
|
}
|
|
});
|
|
const columns = [
|
|
{
|
|
title: "",
|
|
dataIndex: "added",
|
|
width: 40,
|
|
ellipsis: true,
|
|
render: (add, record) => {
|
|
return /* @__PURE__ */ React.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
value: record.numid,
|
|
checked: selectArrs.includes(String(record.numid)),
|
|
disabled: !!add
|
|
}
|
|
);
|
|
}
|
|
},
|
|
{
|
|
title: "\u59D3\u540D",
|
|
width: 100,
|
|
ellipsis: true,
|
|
dataIndex: "username",
|
|
render: (text, record) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement(_umi_production_exports.Link, { className: "bold c-black", to: `/users/${record.login}`, target: "_blank" }, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u624B\u673A",
|
|
width: 100,
|
|
dataIndex: "phone",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u90AE\u7BB1",
|
|
dataIndex: "email",
|
|
width: 100,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u53F7/\u5DE5\u53F7",
|
|
width: 100,
|
|
dataIndex: "student_number",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u6821/\u5355\u4F4D",
|
|
width: 150,
|
|
dataIndex: "school_name",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u9662\u7CFB/\u90E8\u95E8",
|
|
dataIndex: "depart_name",
|
|
width: 130,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B9E\u540D\u8BA4\u8BC1",
|
|
dataIndex: "school_name",
|
|
width: 100,
|
|
render: (text) => text ? "\u662F" : "\u5426"
|
|
},
|
|
{
|
|
title: "\u6700\u540E\u767B\u5F55\u65F6\u95F4",
|
|
dataIndex: "last_login_on",
|
|
width: 140,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ React.createElement("span", null, dayjs_min_default()(text).format("YYYY-MM-DD HH:mm")));
|
|
}
|
|
},
|
|
{
|
|
title: "\u72B6\u6001",
|
|
dataIndex: "added",
|
|
width: 80,
|
|
render: (text) => {
|
|
if (text === 1) {
|
|
return /* @__PURE__ */ React.createElement("span", { className: "c-green" }, "\u5DF2\u6DFB\u52A0");
|
|
}
|
|
}
|
|
}
|
|
];
|
|
return /* @__PURE__ */ React.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u6DFB\u52A0\u8001\u5E08",
|
|
open: classroomList.actionTabs.key === "\u6DFB\u52A0\u8001\u5E08" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
width: 1100,
|
|
zIndex: 1e3,
|
|
bodyStyle: { minHeight: 200 },
|
|
onOk: () => AddTeacher_async(void 0, null, function* () {
|
|
onOK();
|
|
}),
|
|
onCancel: () => {
|
|
setSelectArrs([]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ React.createElement(
|
|
es_form["default"],
|
|
{
|
|
layout: "inline",
|
|
form,
|
|
initialValues: {
|
|
school_name: "",
|
|
keyword: "",
|
|
search_type: "1"
|
|
},
|
|
className: "mt10"
|
|
},
|
|
/* @__PURE__ */ React.createElement(es_form["default"].Item, { name: "search_type", label: "\u641C\u7D22\u7C7B\u578B" }, /* @__PURE__ */ React.createElement(es_select["default"], { style: { width: 90 } }, /* @__PURE__ */ React.createElement(es_select["default"].Option, { value: "1" }, "\u59D3\u540D"), /* @__PURE__ */ React.createElement(es_select["default"].Option, { value: "2" }, "\u624B\u673A\u53F7"), /* @__PURE__ */ React.createElement(es_select["default"].Option, { value: "3" }, "\u90AE\u7BB1"))),
|
|
/* @__PURE__ */ React.createElement(es_form["default"].Item, { name: "keyword", label: "\u641C\u7D22\u5185\u5BB9\uFF1A" }, /* @__PURE__ */ React.createElement(input["default"], { allowClear: true, style: { width: 250 }, size: "middle", defaultValue: ((_a = actionTabs.selectArrs) == null ? void 0 : _a.category_name) || ((_b = actionTabs.selectArrs) == null ? void 0 : _b.name) })),
|
|
/* @__PURE__ */ React.createElement(es_form["default"].Item, { name: "school_name", label: "\u5355\u4F4D\uFF1A" }, /* @__PURE__ */ React.createElement(
|
|
auto_complete/* default */.Z,
|
|
{
|
|
options,
|
|
style: { width: 390 },
|
|
size: "middle",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",
|
|
filterOption: (inputValue, option) => option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
|
|
}
|
|
)),
|
|
/* @__PURE__ */ React.createElement(es_form["default"].Item, null, /* @__PURE__ */ React.createElement(es_button/* default */.ZP, { htmlType: "submit", type: "primary", size: "middle", onClick: () => onFinish() }, "\u641C\u7D22"))
|
|
),
|
|
notSearch && /* @__PURE__ */ React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ React.createElement("img", { src: ImagesIcon/* searchIcon */.RL, width: "100", alt: "" }), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("p", { className: "mt20" }, "\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),
|
|
!notSearch && tableData == "" && !isLoading && /* @__PURE__ */ React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ React.createElement("img", { src: ImagesIcon/* noDataIcon */.z3, width: "100", alt: "" }), /* @__PURE__ */ React.createElement("br", null), /* @__PURE__ */ React.createElement("p", { className: "mt20" }, "\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),
|
|
(!notSearch && tableData != "" || isLoading) && /* @__PURE__ */ React.createElement("section", null, /* @__PURE__ */ React.createElement("div", { className: "flexd-table-header mt20" }, /* @__PURE__ */ React.createElement(table["default"], { pagination: false, dataSource: [], columns })), /* @__PURE__ */ React.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
maxHeight: 260,
|
|
overflow: "auto"
|
|
}
|
|
},
|
|
/* @__PURE__ */ React.createElement(
|
|
(_react_infinite_scroller_1_2_4_react_infinite_scroller_default()),
|
|
{
|
|
initialLoad: false,
|
|
pageStart: 1,
|
|
threshold: 20,
|
|
loadMore: (page2) => {
|
|
handleInfiniteOnLoad();
|
|
},
|
|
hasMore,
|
|
useWindow: false
|
|
},
|
|
/* @__PURE__ */ React.createElement(
|
|
table["default"],
|
|
{
|
|
loading: isLoading,
|
|
showHeader: false,
|
|
pagination: false,
|
|
dataSource: tableData,
|
|
columns,
|
|
onRow: (record) => {
|
|
return {
|
|
onClick: (event) => {
|
|
if (!event.currentTarget.querySelector("input").disabled)
|
|
saveSelect(event.currentTarget.querySelector("input").value);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
)
|
|
)
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_AddTeacher = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(AddTeacher));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddAssistant.tsx
|
|
/* provided dependency */ var AddAssistant_React = __webpack_require__(/*! react */ 59301);
|
|
var AddAssistant_defProp = Object.defineProperty;
|
|
var AddAssistant_defProps = Object.defineProperties;
|
|
var AddAssistant_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var AddAssistant_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var AddAssistant_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var AddAssistant_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var AddAssistant_defNormalProp = (obj, key, value) => key in obj ? AddAssistant_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var AddAssistant_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (AddAssistant_hasOwnProp.call(b, prop))
|
|
AddAssistant_defNormalProp(a, prop, b[prop]);
|
|
if (AddAssistant_getOwnPropSymbols)
|
|
for (var prop of AddAssistant_getOwnPropSymbols(b)) {
|
|
if (AddAssistant_propIsEnum.call(b, prop))
|
|
AddAssistant_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var AddAssistant_spreadProps = (a, b) => AddAssistant_defProps(a, AddAssistant_getOwnPropDescs(b));
|
|
var AddAssistant_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 AddAssistant_AddTeacher = ({ classroomList, loading, dispatch, onShow }) => {
|
|
var _a, _b;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { actionTabs } = classroomList;
|
|
const [options, setOptions] = (0,_react_17_0_2_react.useState)([]);
|
|
const [hasMore, setHasmore] = (0,_react_17_0_2_react.useState)(true);
|
|
const [isLoading, setIsLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
let [tableData, setTableData] = (0,_react_17_0_2_react.useState)([]);
|
|
const [page, setPage] = (0,_react_17_0_2_react.useState)(1);
|
|
const [selectArrs, setSelectArrs] = (0,_react_17_0_2_react.useState)([]);
|
|
const [notSearch, setNotSearch] = (0,_react_17_0_2_react.useState)(true);
|
|
const autoCompleteRef = (0,_react_17_0_2_react.useRef)();
|
|
const disabledDate = (current) => {
|
|
return current && current < dayjs_min_default()().startOf("day");
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u6DFB\u52A0\u52A9\u6559") {
|
|
setNotSearch(true);
|
|
getData();
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
const getData = () => AddAssistant_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "classroomList/getSchoolList",
|
|
payload: {}
|
|
});
|
|
setOptions(res.map((item) => {
|
|
return { value: item };
|
|
}));
|
|
});
|
|
const onFinish = () => {
|
|
var _a2;
|
|
if (((_a2 = form.getFieldValue()) == null ? void 0 : _a2.keyword) === "") {
|
|
setTableData([]);
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9");
|
|
return;
|
|
}
|
|
;
|
|
setNotSearch(false);
|
|
setHasmore(true);
|
|
setIsLoading(false);
|
|
setSelectArrs([]);
|
|
setTimeout(() => {
|
|
handleInfiniteOnLoad(true);
|
|
}, 200);
|
|
};
|
|
const saveSelect = (id) => {
|
|
id = String(id);
|
|
const key = selectArrs.indexOf(id);
|
|
if (key < 0) {
|
|
selectArrs.push(id);
|
|
} else {
|
|
selectArrs.splice(key, 1);
|
|
}
|
|
setSelectArrs([...selectArrs]);
|
|
};
|
|
const handleInfiniteOnLoad = (reload = false) => AddAssistant_async(void 0, null, function* () {
|
|
var _a2;
|
|
if (hasMore && !isLoading) {
|
|
const formValue = form.getFieldValue();
|
|
console.log("----", formValue);
|
|
setIsLoading(true);
|
|
setPage(reload ? 1 : page + 1);
|
|
const res = yield (0,classrooms/* searchSchoolTeacherList */.nQ)(AddAssistant_spreadValues({
|
|
page: reload ? 1 : page + 1,
|
|
container_id: params.coursesId,
|
|
container_type: 1,
|
|
school_name: formValue == null ? void 0 : formValue.school_name,
|
|
keyword: formValue == null ? void 0 : formValue.keyword
|
|
}, formValue));
|
|
setIsLoading(false);
|
|
reload ? setTableData([...res.users]) : setTableData([...tableData, ...res.users]);
|
|
if (((_a2 = res.users) == null ? void 0 : _a2.length) < 10)
|
|
setHasmore(false);
|
|
}
|
|
});
|
|
const onOK = () => AddAssistant_async(void 0, null, function* () {
|
|
if (selectArrs == "") {
|
|
message/* default */.ZP.error("\u8BF7\u9009\u62E9\u4EBA\u6570");
|
|
} else {
|
|
const res = yield (0,classrooms/* addTeacher */.uh)(AddAssistant_spreadProps(AddAssistant_spreadValues({}, params), {
|
|
role: 3,
|
|
user_list: selectArrs.map((v) => {
|
|
return { user_id: v };
|
|
})
|
|
}));
|
|
if ((res == null ? void 0 : res.status) === -4) {
|
|
onShow();
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u6DFB\u52A0\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
dispatch({
|
|
type: "teachers/getList",
|
|
payload: AddAssistant_spreadValues({}, params)
|
|
});
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/teachers`);
|
|
}
|
|
}
|
|
});
|
|
const columns = [
|
|
{
|
|
title: "",
|
|
dataIndex: "added",
|
|
width: 40,
|
|
ellipsis: true,
|
|
render: (add, record) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
value: record.numid,
|
|
checked: selectArrs.includes(String(record.numid)),
|
|
disabled: !!add
|
|
}
|
|
);
|
|
}
|
|
},
|
|
{
|
|
title: "\u59D3\u540D",
|
|
width: 100,
|
|
ellipsis: true,
|
|
dataIndex: "username",
|
|
render: (text, record) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement(_umi_production_exports.Link, { className: "bold c-black", to: `/users/${record.login}`, target: "_blank" }, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u624B\u673A",
|
|
width: 100,
|
|
dataIndex: "phone",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u90AE\u7BB1",
|
|
dataIndex: "email",
|
|
width: 100,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u53F7/\u5DE5\u53F7",
|
|
width: 100,
|
|
dataIndex: "student_number",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u6821/\u5355\u4F4D",
|
|
width: 150,
|
|
dataIndex: "school_name",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u9662\u7CFB/\u90E8\u95E8",
|
|
dataIndex: "depart_name",
|
|
width: 130,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B9E\u540D\u8BA4\u8BC1",
|
|
dataIndex: "school_name",
|
|
width: 100,
|
|
render: (text) => text ? "\u662F" : "\u5426"
|
|
},
|
|
{
|
|
title: "\u6700\u540E\u767B\u5F55\u65F6\u95F4",
|
|
dataIndex: "last_login_on",
|
|
width: 140,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddAssistant_React.createElement("span", null, dayjs_min_default()(text).format("YYYY-MM-DD HH:mm")));
|
|
}
|
|
},
|
|
{
|
|
title: "\u72B6\u6001",
|
|
dataIndex: "added",
|
|
width: 80,
|
|
render: (text) => {
|
|
if (text === 1) {
|
|
return /* @__PURE__ */ AddAssistant_React.createElement("span", { className: "c-green" }, "\u5DF2\u6DFB\u52A0");
|
|
}
|
|
}
|
|
}
|
|
];
|
|
return /* @__PURE__ */ AddAssistant_React.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u6DFB\u52A0\u52A9\u6559",
|
|
open: classroomList.actionTabs.key === "\u6DFB\u52A0\u52A9\u6559" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
width: 1100,
|
|
zIndex: 1e3,
|
|
bodyStyle: { minHeight: 200 },
|
|
onOk: () => AddAssistant_async(void 0, null, function* () {
|
|
onOK();
|
|
}),
|
|
onCancel: () => {
|
|
setSelectArrs([]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ AddAssistant_React.createElement(
|
|
es_form["default"],
|
|
{
|
|
layout: "inline",
|
|
form,
|
|
initialValues: {
|
|
school_name: "",
|
|
keyword: "",
|
|
search_type: "1"
|
|
},
|
|
className: "mt10"
|
|
},
|
|
/* @__PURE__ */ AddAssistant_React.createElement(es_form["default"].Item, { name: "search_type", label: "\u641C\u7D22\u7C7B\u578B" }, /* @__PURE__ */ AddAssistant_React.createElement(es_select["default"], { style: { width: 90 } }, /* @__PURE__ */ AddAssistant_React.createElement(es_select["default"].Option, { value: "1" }, "\u59D3\u540D"), /* @__PURE__ */ AddAssistant_React.createElement(es_select["default"].Option, { value: "2" }, "\u624B\u673A\u53F7"), /* @__PURE__ */ AddAssistant_React.createElement(es_select["default"].Option, { value: "3" }, "\u90AE\u7BB1"))),
|
|
/* @__PURE__ */ AddAssistant_React.createElement(es_form["default"].Item, { name: "keyword", label: "\u641C\u7D22\u5185\u5BB9\uFF1A" }, /* @__PURE__ */ AddAssistant_React.createElement(input["default"], { allowClear: true, style: { width: 260 }, placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9", size: "middle", defaultValue: ((_a = actionTabs.selectArrs) == null ? void 0 : _a.category_name) || ((_b = actionTabs.selectArrs) == null ? void 0 : _b.name) })),
|
|
/* @__PURE__ */ AddAssistant_React.createElement(es_form["default"].Item, { name: "school_name", label: "\u5355\u4F4D\uFF1A" }, /* @__PURE__ */ AddAssistant_React.createElement(
|
|
auto_complete/* default */.Z,
|
|
{
|
|
options,
|
|
style: { width: 390 },
|
|
size: "middle",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",
|
|
filterOption: (inputValue, option) => option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
|
|
}
|
|
)),
|
|
/* @__PURE__ */ AddAssistant_React.createElement(es_form["default"].Item, null, /* @__PURE__ */ AddAssistant_React.createElement(es_button/* default */.ZP, { htmlType: "submit", type: "primary", size: "middle", onClick: () => onFinish() }, "\u641C\u7D22"))
|
|
),
|
|
notSearch && /* @__PURE__ */ AddAssistant_React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ AddAssistant_React.createElement("img", { src: ImagesIcon/* searchIcon */.RL, width: "100", alt: "" }), /* @__PURE__ */ AddAssistant_React.createElement("br", null), /* @__PURE__ */ AddAssistant_React.createElement("p", { className: "mt20" }, "\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),
|
|
!notSearch && tableData == "" && !isLoading && /* @__PURE__ */ AddAssistant_React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ AddAssistant_React.createElement("img", { src: ImagesIcon/* noDataIcon */.z3, width: "100", alt: "" }), /* @__PURE__ */ AddAssistant_React.createElement("br", null), /* @__PURE__ */ AddAssistant_React.createElement("p", { className: "mt20" }, "\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),
|
|
(!notSearch && tableData != "" || isLoading) && /* @__PURE__ */ AddAssistant_React.createElement("section", null, /* @__PURE__ */ AddAssistant_React.createElement("div", { className: "flexd-table-header mt20" }, /* @__PURE__ */ AddAssistant_React.createElement(table["default"], { pagination: false, dataSource: [], columns })), /* @__PURE__ */ AddAssistant_React.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
maxHeight: 260,
|
|
overflow: "auto"
|
|
}
|
|
},
|
|
/* @__PURE__ */ AddAssistant_React.createElement(
|
|
(_react_infinite_scroller_1_2_4_react_infinite_scroller_default()),
|
|
{
|
|
initialLoad: false,
|
|
pageStart: 1,
|
|
threshold: 20,
|
|
loadMore: (page2) => {
|
|
handleInfiniteOnLoad();
|
|
},
|
|
hasMore,
|
|
useWindow: false
|
|
},
|
|
/* @__PURE__ */ AddAssistant_React.createElement(
|
|
table["default"],
|
|
{
|
|
loading: isLoading,
|
|
showHeader: false,
|
|
pagination: false,
|
|
dataSource: tableData,
|
|
columns,
|
|
onRow: (record) => {
|
|
return {
|
|
onClick: (event) => {
|
|
if (!event.currentTarget.querySelector("input").disabled)
|
|
saveSelect(event.currentTarget.querySelector("input").value);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
)
|
|
)
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var AddAssistant = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(AddAssistant_AddTeacher));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
|
|
var tabs = __webpack_require__(99313);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
|
|
var upload = __webpack_require__(46651);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddStudent.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var AddStudentmodules = ({"addStudentContainer":"addStudentContainer___OXJb6","listItem":"listItem___rZl7r","tips":"tips___DJ9S4","qrCode":"qrCode___FFf0X"});
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
|
|
var PlusOutlined = __webpack_require__(22415);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(13462);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(21873);
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
var authority = __webpack_require__(88141);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddStudent.tsx
|
|
/* provided dependency */ var AddStudent_React = __webpack_require__(/*! react */ 59301);
|
|
var AddStudent_defProp = Object.defineProperty;
|
|
var AddStudent_defProps = Object.defineProperties;
|
|
var AddStudent_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var AddStudent_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var AddStudent_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var AddStudent_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var AddStudent_defNormalProp = (obj, key, value) => key in obj ? AddStudent_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var AddStudent_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (AddStudent_hasOwnProp.call(b, prop))
|
|
AddStudent_defNormalProp(a, prop, b[prop]);
|
|
if (AddStudent_getOwnPropSymbols)
|
|
for (var prop of AddStudent_getOwnPropSymbols(b)) {
|
|
if (AddStudent_propIsEnum.call(b, prop))
|
|
AddStudent_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var AddStudent_spreadProps = (a, b) => AddStudent_defProps(a, AddStudent_getOwnPropDescs(b));
|
|
var AddStudent_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 { TabPane } = tabs["default"];
|
|
const AddStudent_AddTeacher = ({ classroomList, loading, dispatch, onShow, onShow1 }) => {
|
|
var _a, _b;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { actionTabs } = classroomList;
|
|
const [options, setOptions] = (0,_react_17_0_2_react.useState)([]);
|
|
let [hasMore, setHasmore] = (0,_react_17_0_2_react.useState)(true);
|
|
const [isLoading, setIsLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
const [tableData, setTableData] = (0,_react_17_0_2_react.useState)([]);
|
|
const [page, setPage] = (0,_react_17_0_2_react.useState)(1);
|
|
const [selectArrs, setSelectArrs] = (0,_react_17_0_2_react.useState)([]);
|
|
const [notSearch, setNotSearch] = (0,_react_17_0_2_react.useState)(true);
|
|
const [fileList, setFileList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [activeKey, setActiveKey] = (0,_react_17_0_2_react.useState)("1");
|
|
const [btnLoading, setBtnLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const autoCompleteRef = (0,_react_17_0_2_react.useRef)();
|
|
const disabledDate = (current) => {
|
|
return current && current < dayjs_min_default()().startOf("day");
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u6DFB\u52A0\u5B66\u751F") {
|
|
setNotSearch(true);
|
|
getData();
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
const getData = () => AddStudent_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "classroomList/getSchoolList",
|
|
payload: {}
|
|
});
|
|
setOptions(
|
|
res.map((item) => {
|
|
return { value: item };
|
|
})
|
|
);
|
|
});
|
|
const onFinish = () => {
|
|
var _a2;
|
|
if (((_a2 = form.getFieldValue()) == null ? void 0 : _a2.keyword) === "") {
|
|
setTableData([]);
|
|
message/* default */.ZP.error("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9");
|
|
return;
|
|
}
|
|
setNotSearch(false);
|
|
hasMore = true;
|
|
setHasmore(true);
|
|
setSelectArrs([]);
|
|
setIsLoading(false);
|
|
setTimeout(() => {
|
|
handleInfiniteOnLoad(true);
|
|
}, 300);
|
|
};
|
|
const saveSelect = (id) => {
|
|
id = String(id);
|
|
const key = selectArrs.indexOf(id);
|
|
if (key < 0) {
|
|
selectArrs.push(id);
|
|
} else {
|
|
selectArrs.splice(key, 1);
|
|
}
|
|
setSelectArrs([...selectArrs]);
|
|
};
|
|
const Draggers = {
|
|
onRemove: () => {
|
|
setFileList([]);
|
|
},
|
|
beforeUpload: (file) => {
|
|
let filelist = [];
|
|
filelist.push(file);
|
|
setFileList([...filelist]);
|
|
return false;
|
|
},
|
|
fileList,
|
|
accept: ".xls,.xlsx"
|
|
};
|
|
const handleInfiniteOnLoad = (reload = false) => AddStudent_async(void 0, null, function* () {
|
|
var _a2;
|
|
if (hasMore && !isLoading) {
|
|
const formValue = form.getFieldValue();
|
|
setIsLoading(true);
|
|
setPage(reload ? 1 : page + 1);
|
|
const res = yield (0,classrooms/* searchSchoolTeacherList */.nQ)(AddStudent_spreadProps(AddStudent_spreadValues({
|
|
page: reload ? 1 : page + 1,
|
|
container_id: params.coursesId,
|
|
container_type: 1,
|
|
school_name: formValue == null ? void 0 : formValue.school_name,
|
|
keyword: formValue == null ? void 0 : formValue.keyword
|
|
}, formValue), {
|
|
role: 4
|
|
}));
|
|
reload ? setTableData([...res.users]) : setTableData([...tableData, ...res.users]);
|
|
setIsLoading(false);
|
|
if (((_a2 = res.users) == null ? void 0 : _a2.length) < 10)
|
|
setHasmore(false);
|
|
}
|
|
});
|
|
const onOK = () => AddStudent_async(void 0, null, function* () {
|
|
if (selectArrs == "") {
|
|
message/* default */.ZP.error("\u8BF7\u9009\u62E9\u4EBA\u6570");
|
|
} else {
|
|
setBtnLoading(true);
|
|
const res = yield (0,classrooms/* addStudentBySearch */.aZ)(AddStudent_spreadProps(AddStudent_spreadValues({}, params), {
|
|
course_group_id: 0,
|
|
user_ids: selectArrs
|
|
}));
|
|
if ((res == null ? void 0 : res.status) === -4) {
|
|
onShow();
|
|
setBtnLoading(false);
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u6DFB\u52A0\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
dispatch({
|
|
type: "teachers/getStudentsList",
|
|
payload: AddStudent_spreadValues({}, params)
|
|
});
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/students`);
|
|
setBtnLoading(false);
|
|
if (localStorage.getItem("Noviceguide") === "0") {
|
|
} else {
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {
|
|
key: "\u5E95\u90E8\u5F39\u7A97",
|
|
type: 9,
|
|
text: /* @__PURE__ */ AddStudent_React.createElement("div", null, "\u606D\u559C\u60A8\uFF01\u6211\u4EEC\u5DF2\u7ECF\u5B8C\u6210\u3010\u6559\u5B66\u8BFE\u5802\u3011\u7684\u65B0\u5EFA\u4EFB\u52A1\u4E86\u3002\u600E\u4E48\u6837\uFF0C\u5F88\u7B80\u5355\u5427\uFF01\u63A5\u4E0B\u6765\uFF0C\u60A8\u53EF\u4EE5\u5F00\u59CB\u5728\u6559\u5B66\u8BFE\u5802\u7EE7\u7EED\u6DFB\u52A0\u60A8\u7684\u6559\u5B66\u5185\u5BB9\u3002 \u9047\u5230\u7591\u95EE\u65F6\uFF0C\u968F\u65F6\u53EC\u5524\u5C0F\u6B4C\uFF0C\u6211\u4F1A\u51FA\u73B0\u5728\u9875\u9762\u7684\u53F3\u4E0B\u89D2\u3002\u671F\u5F85\u4E0E\u4F60\u7684\u518D\u6B21\u534F\u4F5C\u3002")
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
const onFileOk = () => AddStudent_async(void 0, null, function* () {
|
|
var _a2;
|
|
if ((fileList == null ? void 0 : fileList.length) <= 0) {
|
|
message/* default */.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
|
|
return;
|
|
}
|
|
setBtnLoading(true);
|
|
const formData = new FormData();
|
|
formData.append("file", fileList[0]);
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/${params.coursesId}/import_course_members.json`,
|
|
{
|
|
method: "post",
|
|
body: formData
|
|
},
|
|
true
|
|
);
|
|
if (res.status === -4) {
|
|
setBtnLoading(false);
|
|
onShow1();
|
|
return;
|
|
}
|
|
if (res.status !== -1) {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: params.coursesId }
|
|
});
|
|
dispatch({
|
|
type: "teachers/getStudentsList",
|
|
payload: AddStudent_spreadValues({}, params)
|
|
});
|
|
if ((_a2 = res == null ? void 0 : res.fail) == null ? void 0 : _a2.length) {
|
|
modal["default"].confirm({
|
|
centered: true,
|
|
okText: "\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",
|
|
cancelText: "\u53D6\u6D88",
|
|
title: "\u63D0\u793A",
|
|
content: /* @__PURE__ */ AddStudent_React.createElement("div", null, "\u5BFC\u5165\u6587\u4EF6\u5185\u5B58\u5728\u4E0D\u5339\u914D\u4FE1\u606F\uFF0C\u8BF7", /* @__PURE__ */ AddStudent_React.createElement("span", { onClick: () => (0,util/* downLoadFile */.FH)("", (0,util/* setUrlQuery */.NY)({ url: env/* default */.Z.API_SERVER + `/api/courses/${params.coursesId}/get_fail_data.xlsx`, query: {} })), className: "c-light-primary ml5 mr5 current" }, "\u70B9\u51FB\u4E0B\u8F7D"), "\u67E5\u770B\u5E76\u8FDB\u884C\u4FEE\u6539\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01"),
|
|
onOk: () => AddStudent_async(void 0, null, function* () {
|
|
(0,util/* downLoadFile */.FH)("", (0,util/* setUrlQuery */.NY)({ url: env/* default */.Z.API_SERVER + `/api/courses/${params.coursesId}/get_fail_data.xlsx`, query: {} }));
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/students`);
|
|
}),
|
|
onCancel: () => {
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/students`);
|
|
}
|
|
});
|
|
} else {
|
|
message/* default */.ZP.success("\u5BFC\u5165\u6210\u529F");
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/students`);
|
|
}
|
|
}
|
|
setBtnLoading(false);
|
|
});
|
|
const columns = [
|
|
{
|
|
title: "",
|
|
dataIndex: "added",
|
|
width: 40,
|
|
ellipsis: true,
|
|
render: (add, record) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
value: record.numid,
|
|
checked: selectArrs.includes(String(record.numid)),
|
|
disabled: !!add
|
|
}
|
|
);
|
|
}
|
|
},
|
|
{
|
|
title: "\u59D3\u540D",
|
|
width: 100,
|
|
ellipsis: true,
|
|
dataIndex: "username",
|
|
render: (text, record) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: "bold c-black",
|
|
to: `/users/${record.login}`,
|
|
target: "_blank"
|
|
},
|
|
text || "--"
|
|
));
|
|
}
|
|
},
|
|
{
|
|
title: "\u624B\u673A",
|
|
width: 100,
|
|
dataIndex: "phone",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u90AE\u7BB1",
|
|
dataIndex: "email",
|
|
width: 100,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u53F7/\u5DE5\u53F7",
|
|
width: 100,
|
|
dataIndex: "student_number",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B66\u6821/\u5355\u4F4D",
|
|
width: 150,
|
|
dataIndex: "school_name",
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u9662\u7CFB/\u90E8\u95E8",
|
|
dataIndex: "depart_name",
|
|
width: 130,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, text || "--"));
|
|
}
|
|
},
|
|
{
|
|
title: "\u5B9E\u540D\u8BA4\u8BC1",
|
|
dataIndex: "school_name",
|
|
width: 100,
|
|
render: (text) => text ? "\u662F" : "\u5426"
|
|
},
|
|
{
|
|
title: "\u6700\u540E\u767B\u5F55\u65F6\u95F4",
|
|
dataIndex: "last_login_on",
|
|
width: 140,
|
|
ellipsis: true,
|
|
render: (text) => {
|
|
return /* @__PURE__ */ AddStudent_React.createElement(tooltip/* default */.Z, { placement: "bottom", title: text }, /* @__PURE__ */ AddStudent_React.createElement("span", null, dayjs_min_default()(text).format("YYYY-MM-DD HH:mm")));
|
|
}
|
|
},
|
|
{
|
|
title: "\u72B6\u6001",
|
|
dataIndex: "added",
|
|
width: 80,
|
|
render: (text) => {
|
|
if (text === 1) {
|
|
return /* @__PURE__ */ AddStudent_React.createElement("span", { className: "c-green" }, "\u5DF2\u6DFB\u52A0");
|
|
}
|
|
}
|
|
}
|
|
];
|
|
return /* @__PURE__ */ AddStudent_React.createElement(
|
|
modal["default"],
|
|
{
|
|
className: AddStudentmodules.addStudentWrapContainer,
|
|
centered: true,
|
|
title: "\u6DFB\u52A0\u5B66\u751F",
|
|
open: classroomList.actionTabs.key === "\u6DFB\u52A0\u5B66\u751F" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
width: activeKey === "1" ? 1100 : 600,
|
|
zIndex: 1e3,
|
|
afterClose: () => {
|
|
setFileList([]);
|
|
},
|
|
confirmLoading: btnLoading,
|
|
bodyStyle: { minHeight: 200 },
|
|
onOk: () => AddStudent_async(void 0, null, function* () {
|
|
if (activeKey === "1") {
|
|
onOK();
|
|
return;
|
|
}
|
|
onFileOk();
|
|
}),
|
|
onCancel: () => {
|
|
setSelectArrs([]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ AddStudent_React.createElement(tabs["default"], { activeKey, onChange: (k) => setActiveKey(k), className: AddStudentmodules.addStudentContainer }, /* @__PURE__ */ AddStudent_React.createElement(TabPane, { tab: "\u624B\u52A8\u6DFB\u52A0", key: "1" }, /* @__PURE__ */ AddStudent_React.createElement("div", { className: AddStudentmodules.listItem }, /* @__PURE__ */ AddStudent_React.createElement(
|
|
es_form["default"],
|
|
{
|
|
layout: "inline",
|
|
form,
|
|
initialValues: {
|
|
school_name: "",
|
|
keyword: "",
|
|
search_type: "1"
|
|
},
|
|
className: "mt10"
|
|
},
|
|
/* @__PURE__ */ AddStudent_React.createElement(es_form["default"].Item, { name: "search_type", label: "\u641C\u7D22\u7C7B\u578B" }, /* @__PURE__ */ AddStudent_React.createElement(es_select["default"], null, /* @__PURE__ */ AddStudent_React.createElement(es_select["default"].Option, { value: "1" }, "\u59D3\u540D"), /* @__PURE__ */ AddStudent_React.createElement(es_select["default"].Option, { value: "2" }, "\u624B\u673A\u53F7"), /* @__PURE__ */ AddStudent_React.createElement(es_select["default"].Option, { value: "3" }, "\u90AE\u7BB1"))),
|
|
/* @__PURE__ */ AddStudent_React.createElement(es_form["default"].Item, { name: "keyword", label: "\u641C\u7D22\u5185\u5BB9" }, /* @__PURE__ */ AddStudent_React.createElement(
|
|
input["default"],
|
|
{
|
|
allowClear: true,
|
|
style: { width: 240 },
|
|
size: "middle",
|
|
defaultValue: ((_a = actionTabs.selectArrs) == null ? void 0 : _a.category_name) || ((_b = actionTabs.selectArrs) == null ? void 0 : _b.name)
|
|
}
|
|
)),
|
|
/* @__PURE__ */ AddStudent_React.createElement(es_form["default"].Item, { name: "school_name", label: "\u5355\u4F4D\uFF1A" }, /* @__PURE__ */ AddStudent_React.createElement(
|
|
auto_complete/* default */.Z,
|
|
{
|
|
options,
|
|
style: { width: 400 },
|
|
size: "middle",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",
|
|
filterOption: (inputValue, option) => option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
|
|
}
|
|
)),
|
|
/* @__PURE__ */ AddStudent_React.createElement(es_form["default"].Item, null, /* @__PURE__ */ AddStudent_React.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
htmlType: "submit",
|
|
type: "primary",
|
|
size: "middle",
|
|
onClick: () => onFinish()
|
|
},
|
|
"\u641C\u7D22"
|
|
))
|
|
), notSearch && /* @__PURE__ */ AddStudent_React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ AddStudent_React.createElement("img", { src: ImagesIcon/* search1Icon */.L6, width: "250", alt: "" }), /* @__PURE__ */ AddStudent_React.createElement("br", null), /* @__PURE__ */ AddStudent_React.createElement("p", { className: "mt20" }, "\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")), !notSearch && tableData == "" && !isLoading && /* @__PURE__ */ AddStudent_React.createElement("div", { className: "tc font16 c-light-black mt40 pb30" }, /* @__PURE__ */ AddStudent_React.createElement("img", { src: ImagesIcon/* noDataIcon */.z3, width: "100", alt: "" }), /* @__PURE__ */ AddStudent_React.createElement("br", null), /* @__PURE__ */ AddStudent_React.createElement("p", { className: "mt20" }, "\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")), (!notSearch && tableData != "" || isLoading) && /* @__PURE__ */ AddStudent_React.createElement("section", null, /* @__PURE__ */ AddStudent_React.createElement("div", { className: "flexd-table-header mt20" }, /* @__PURE__ */ AddStudent_React.createElement(table["default"], { pagination: false, dataSource: [], columns })), /* @__PURE__ */ AddStudent_React.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
maxHeight: 260,
|
|
overflow: "auto"
|
|
}
|
|
},
|
|
/* @__PURE__ */ AddStudent_React.createElement(
|
|
(_react_infinite_scroller_1_2_4_react_infinite_scroller_default()),
|
|
{
|
|
initialLoad: false,
|
|
pageStart: 1,
|
|
threshold: 20,
|
|
loadMore: (page2) => {
|
|
handleInfiniteOnLoad();
|
|
},
|
|
hasMore,
|
|
useWindow: false
|
|
},
|
|
/* @__PURE__ */ AddStudent_React.createElement(
|
|
table["default"],
|
|
{
|
|
loading: isLoading,
|
|
showHeader: false,
|
|
pagination: false,
|
|
dataSource: tableData,
|
|
columns,
|
|
onRow: (record) => {
|
|
return {
|
|
onClick: (event) => {
|
|
if (!event.currentTarget.querySelector("input").disabled)
|
|
saveSelect(
|
|
event.currentTarget.querySelector("input").value
|
|
);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
)
|
|
)
|
|
)))), ((0,authority/* isSuperAdmins */.Ny)() || (0,authority/* isCreator */.d8)() && (0,authority/* userInfo */.eY)().role === 5) && /* @__PURE__ */ AddStudent_React.createElement(TabPane, { tab: "\u6279\u91CF\u5BFC\u5165", key: "2" }, /* @__PURE__ */ AddStudent_React.createElement("div", { className: AddStudentmodules.listItem }, /* @__PURE__ */ AddStudent_React.createElement("div", { className: "mt20", style: { marginLeft: 86 } }, /* @__PURE__ */ AddStudent_React.createElement("div", { className: "mb20" }, /* @__PURE__ */ AddStudent_React.createElement("span", { className: "mr40" }, "\u6B65\u9AA41\uFF1A"), "\u4E0B\u8F7D", /* @__PURE__ */ AddStudent_React.createElement("a", { className: "ml5 mr5", onClick: () => AddStudent_async(void 0, null, function* () {
|
|
(0,util/* downLoadFile */.FH)("", (0,util/* setUrlQuery */.NY)({ url: env/* default */.Z.API_SERVER + `/api/courses/down_course_members_template`, query: {} }));
|
|
}) }, "\u8BFE\u5802\u6210\u5458\u5BFC\u5165\u6A21\u677F"), "\u6279\u91CF\u5BFC\u5165\u6210\u5458\u3002"), /* @__PURE__ */ AddStudent_React.createElement("div", null, /* @__PURE__ */ AddStudent_React.createElement("span", { className: "mr40" }, "\u6B65\u9AA42\uFF1A"), "\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u8BFE\u5802\u6210\u5458\u5BFC\u5165\u6A21\u677F\u300B\u3002"), /* @__PURE__ */ AddStudent_React.createElement("div", { style: { margin: "4px 0px 20px 94px" } }, /* @__PURE__ */ AddStudent_React.createElement(upload["default"], AddStudent_spreadValues({}, Draggers), /* @__PURE__ */ AddStudent_React.createElement(es_button/* default */.ZP, { type: "primary", className: "mt10", icon: /* @__PURE__ */ AddStudent_React.createElement(PlusOutlined/* default */.Z, null) }, "\u9009\u62E9\u6587\u4EF6")))))))
|
|
);
|
|
};
|
|
/* harmony default export */ var AddStudent = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(AddStudent_AddTeacher));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
|
var es_radio = __webpack_require__(5112);
|
|
// 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/tree/index.js + 8 modules
|
|
var tree = __webpack_require__(48209);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/ExportScore.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var ExportScoremodules = ({"exportmodal":"exportmodal___e1u_C","searchWrap":"searchWrap___GunRy","addQuestionBtn":"addQuestionBtn___Qiuf5","search":"search___aHuEr","searchIcon":"searchIcon___SYYcy","loading":"loading___DAGDK"});
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
var NoData = __webpack_require__(87526);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListClass/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var TrfListClassmodules = ({"leftdiv":"leftdiv____DQvt","listClass":"listClass___NmeAK","spantitle":"spantitle___meGbS","rightdiv":"rightdiv___Ypfvm","searchWrap":"searchWrap___GXTGm","addQuestionBtn":"addQuestionBtn___DTPbT","search":"search___ti6sF","searchIcon":"searchIcon___BEcfO"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListClass/delete.png
|
|
var delete_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC";
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListClass/index.tsx
|
|
var TrfListClass_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 TrfListClass = ({
|
|
data,
|
|
value = [],
|
|
loading,
|
|
handleChangePage,
|
|
setSelectedRowKeys,
|
|
selectedRowKeys,
|
|
onChange = () => {
|
|
}
|
|
}) => {
|
|
const [leftList, setleftList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [rightList, setRightList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [checkoutList, setCheckoutList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [isloading, setisloading] = (0,_react_17_0_2_react.useState)(true);
|
|
let [page, setpage] = (0,_react_17_0_2_react.useState)(1);
|
|
let [sechar, setsechar] = (0,_react_17_0_2_react.useState)();
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
console.log(data);
|
|
console.log(loading);
|
|
setisloading(loading);
|
|
setleftList(data);
|
|
setRightList([]);
|
|
setCheckoutList([]);
|
|
}, [data]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (setSelectedRowKeys) {
|
|
setRightList(selectedRowKeys);
|
|
setCheckoutList(selectedRowKeys);
|
|
}
|
|
}, [selectedRowKeys]);
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", justifyContent: "space-between" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListClassmodules.leftdiv }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListClassmodules.searchWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"].Search,
|
|
{
|
|
allowClear: true,
|
|
suffix: /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: `iconfont icon-sousuo9 font14 ${TrfListClassmodules.searchIcon}` }),
|
|
className: TrfListClassmodules.search,
|
|
placeholder: "\u53EF\u8F93\u5165\u5B66\u751F\u540D\u79F0\u67E5\u8BE2",
|
|
size: "middle",
|
|
onChange: (e) => TrfListClass_async(void 0, null, function* () {
|
|
setleftList(
|
|
data.filter((item) => {
|
|
var _a;
|
|
return (_a = item == null ? void 0 : item.name) == null ? void 0 : _a.includes(e.target.value);
|
|
})
|
|
);
|
|
}),
|
|
placeholder: "\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "85%", overflow: "auto", overflowX: "hidden" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(spin/* default */.Z, { spinning: isloading }, /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, leftList.length === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, { styles: { margin: "45px auto" }, customText: "\u6682\u65E0\u5206\u73ED" }) : /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"].Group,
|
|
{
|
|
value: rightList.map((item) => `${item.id}`),
|
|
onChange: (e) => {
|
|
},
|
|
style: { marginTop: "10px", flexDirection: "column" }
|
|
},
|
|
leftList.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
row/* default */.Z,
|
|
{
|
|
key: item.id,
|
|
style: {
|
|
marginTop: "10px",
|
|
lineHeight: "24px",
|
|
display: "flex",
|
|
width: 200
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
style: {
|
|
display: "flex",
|
|
height: "24px",
|
|
alignItems: "center"
|
|
},
|
|
disabled: item.is_published,
|
|
value: `${item.id}`,
|
|
onChange: (e) => {
|
|
const flag = e.target.checked;
|
|
if (flag) {
|
|
const newarr = leftList.filter((item2) => e.target.value == item2.id);
|
|
setSelectedRowKeys([...selectedRowKeys, ...newarr]);
|
|
} else {
|
|
const newarr = selectedRowKeys.filter((item2) => e.target.value != item2.id);
|
|
setSelectedRowKeys(newarr);
|
|
}
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListClassmodules.listClass }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: TrfListClassmodules.spantitle,
|
|
style: { width: item.is_published ? "108px" : "170px" }
|
|
},
|
|
item.name
|
|
), item.is_published && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
style: {
|
|
width: "52px",
|
|
height: "24px",
|
|
background: "#B8B8B8",
|
|
borderRadius: "13px",
|
|
color: "white",
|
|
lineHeight: "24px",
|
|
textAlign: "center",
|
|
display: "inline-block"
|
|
}
|
|
},
|
|
"\u5DF2\u53D1\u5E03"
|
|
))
|
|
)
|
|
);
|
|
})
|
|
)))))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListClassmodules.rightdiv }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListClassmodules.searchWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"].Search,
|
|
{
|
|
allowClear: true,
|
|
suffix: /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: `iconfont icon-sousuo9 font14 ${TrfListClassmodules.searchIcon}` }),
|
|
className: TrfListClassmodules.search,
|
|
onChange: (e) => {
|
|
setCheckoutList(
|
|
rightList.filter(
|
|
(item) => item.name.includes(e.target.value)
|
|
)
|
|
);
|
|
},
|
|
size: "middle",
|
|
placeholder: "\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"
|
|
}
|
|
)), checkoutList.length === 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
NoData/* default */.Z,
|
|
{
|
|
styles: { margin: "45px auto" },
|
|
customText: "\u6682\u672A\u9009\u62E9\u5206\u73ED"
|
|
}
|
|
), checkoutList.length > 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
marginTop: "10px",
|
|
height: "85%",
|
|
overflow: "hidden",
|
|
position: "relative"
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
overflowX: "hidden",
|
|
overflowY: "scroll",
|
|
position: "absolute",
|
|
left: 0,
|
|
top: 0,
|
|
right: -17,
|
|
bottom: 0
|
|
}
|
|
},
|
|
checkoutList.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
row/* default */.Z,
|
|
{
|
|
justify: "space-between",
|
|
style: { marginTop: "10px" },
|
|
key: item.id
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
overflow: "hidden",
|
|
whiteSpace: "nowrap",
|
|
textOverflow: "ellipsis",
|
|
marginRight: "5px",
|
|
marginLeft: "5px",
|
|
width: "75%"
|
|
}
|
|
},
|
|
item.name
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
src: delete_namespaceObject,
|
|
style: {
|
|
cursor: "pointer",
|
|
height: "16px",
|
|
marginRight: 17
|
|
},
|
|
onClick: () => {
|
|
setSelectedRowKeys(
|
|
rightList.filter(
|
|
(items) => `${items.id}` != `${item.id}`
|
|
)
|
|
);
|
|
}
|
|
}
|
|
)
|
|
);
|
|
})
|
|
)
|
|
)));
|
|
};
|
|
/* harmony default export */ var components_TrfListClass = (TrfListClass);
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListStudent/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var TrfListStudentmodules = ({"leftdiv":"leftdiv___F3YNl","listClass":"listClass___Q_C6i","spantitle":"spantitle___SPfdV","rightdiv":"rightdiv___dvG3H","searchWrap":"searchWrap___CFcp_","addQuestionBtn":"addQuestionBtn___x16Cc","search":"search___eLYTt","searchIcon":"searchIcon___zNep3"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListStudent/delete.png
|
|
var TrfListStudent_delete_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC";
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/TrfListStudent/index.tsx
|
|
var TrfListStudent_defProp = Object.defineProperty;
|
|
var TrfListStudent_defProps = Object.defineProperties;
|
|
var TrfListStudent_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var TrfListStudent_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var TrfListStudent_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var TrfListStudent_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var TrfListStudent_defNormalProp = (obj, key, value) => key in obj ? TrfListStudent_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var TrfListStudent_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (TrfListStudent_hasOwnProp.call(b, prop))
|
|
TrfListStudent_defNormalProp(a, prop, b[prop]);
|
|
if (TrfListStudent_getOwnPropSymbols)
|
|
for (var prop of TrfListStudent_getOwnPropSymbols(b)) {
|
|
if (TrfListStudent_propIsEnum.call(b, prop))
|
|
TrfListStudent_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var TrfListStudent_spreadProps = (a, b) => TrfListStudent_defProps(a, TrfListStudent_getOwnPropDescs(b));
|
|
var TrfListStudent_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 TrfListStudent = ({
|
|
data,
|
|
value = [],
|
|
handleChangePage,
|
|
setSelectedRowKeys,
|
|
selectedRowKeys,
|
|
onChange = () => {
|
|
}
|
|
}) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [isloading, setLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [leftList, setleftList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [rightList, setRightList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [checkoutList, setCheckoutList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [searchValue, setSearchValue] = (0,_react_17_0_2_react.useState)();
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
setleftList([]);
|
|
setRightList([]);
|
|
setCheckoutList([]);
|
|
}, [data]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (setSelectedRowKeys) {
|
|
console.log(selectedRowKeys);
|
|
setRightList(selectedRowKeys);
|
|
setCheckoutList(selectedRowKeys);
|
|
}
|
|
}, [selectedRowKeys]);
|
|
const handleSearch = (e) => TrfListStudent_async(void 0, null, function* () {
|
|
setLoading(true);
|
|
const res = yield (0,fetch/* default */.ZP)(`/api/courses/${params.coursesId}/all_course_groups.json`, {
|
|
method: "get",
|
|
params: TrfListStudent_spreadProps(TrfListStudent_spreadValues({}, params), {
|
|
page: 1,
|
|
limit: 1e5,
|
|
keyword: e
|
|
})
|
|
});
|
|
setLoading(false);
|
|
setleftList(res == null ? void 0 : res.student_arr);
|
|
});
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { display: "flex", justifyContent: "space-between" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListStudentmodules.leftdiv }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListStudentmodules.searchWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"].Search,
|
|
{
|
|
allowClear: true,
|
|
suffix: /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: `iconfont icon-sousuo9 font14 ${TrfListStudentmodules.searchIcon}`, onClick: () => handleSearch(searchValue) }),
|
|
className: TrfListStudentmodules.search,
|
|
placeholder: "\u53EF\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u67E5\u8BE2",
|
|
size: "middle",
|
|
onChange: (e) => setSearchValue(e.target.value),
|
|
onSearch: (e) => TrfListStudent_async(void 0, null, function* () {
|
|
handleSearch(e);
|
|
})
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { height: "85%", overflow: "auto", overflowX: "hidden" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(spin/* default */.Z, { spinning: isloading }, leftList.length === 0 ? /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, { styles: { margin: "45px auto" }, customText: "\u8BF7\u901A\u8FC7\u4E0A\u65B9\u641C\u7D22\u6DFB\u52A0\u5B66\u751F" }) : /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"].Group,
|
|
{
|
|
value: rightList.map((item) => `${item.user_id}`),
|
|
onChange: (e) => {
|
|
console.log(e);
|
|
console.log(selectedRowKeys);
|
|
},
|
|
style: { marginTop: "10px", flexDirection: "column" }
|
|
},
|
|
leftList.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
row/* default */.Z,
|
|
{
|
|
key: item.id,
|
|
style: {
|
|
marginTop: "10px",
|
|
lineHeight: "24px",
|
|
display: "flex",
|
|
width: 200
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
style: {
|
|
display: "flex",
|
|
height: "24px",
|
|
alignItems: "center"
|
|
},
|
|
disabled: item.is_published,
|
|
value: `${item.user_id}`,
|
|
onChange: (e) => {
|
|
const flag = e.target.checked;
|
|
if (flag) {
|
|
const newarr = leftList.filter((item2) => e.target.value == item2.user_id);
|
|
setSelectedRowKeys([...selectedRowKeys, ...newarr]);
|
|
} else {
|
|
const newarr = selectedRowKeys.filter((item2) => e.target.value != item2.user_id);
|
|
setSelectedRowKeys(newarr);
|
|
}
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListStudentmodules.listClass }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"span",
|
|
{
|
|
className: TrfListStudentmodules.spantitle,
|
|
style: { width: item.is_published ? "108px" : "170px" }
|
|
},
|
|
item.user_name
|
|
))
|
|
)
|
|
);
|
|
})
|
|
))))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListStudentmodules.rightdiv }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: TrfListStudentmodules.searchWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"].Search,
|
|
{
|
|
allowClear: true,
|
|
suffix: /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: `iconfont icon-sousuo9 font14 ${TrfListStudentmodules.searchIcon}` }),
|
|
className: TrfListStudentmodules.search,
|
|
onChange: (e) => {
|
|
setCheckoutList(
|
|
rightList.filter(
|
|
(item) => item.user_name.includes(e.target.value)
|
|
)
|
|
);
|
|
},
|
|
size: "middle",
|
|
placeholder: "\u53EF\u8F93\u5165\u59D3\u540D\u8FDB\u884C\u67E5\u8BE2"
|
|
}
|
|
)), checkoutList.length === 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
NoData/* default */.Z,
|
|
{
|
|
styles: { margin: "45px auto" },
|
|
customText: "\u6682\u672A\u9009\u62E9\u5B66\u751F"
|
|
}
|
|
), checkoutList.length > 0 && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
marginTop: "10px",
|
|
height: "85%",
|
|
overflow: "hidden",
|
|
position: "relative"
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
overflowX: "hidden",
|
|
overflowY: "scroll",
|
|
position: "absolute",
|
|
left: 0,
|
|
top: 0,
|
|
right: -17,
|
|
bottom: 0
|
|
}
|
|
},
|
|
checkoutList.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
row/* default */.Z,
|
|
{
|
|
justify: "space-between",
|
|
style: { marginTop: "10px" },
|
|
key: item.user_id
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
overflow: "hidden",
|
|
whiteSpace: "nowrap",
|
|
textOverflow: "ellipsis",
|
|
marginRight: "5px",
|
|
marginLeft: "5px",
|
|
width: "75%"
|
|
}
|
|
},
|
|
item.user_name
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"img",
|
|
{
|
|
src: TrfListStudent_delete_namespaceObject,
|
|
style: {
|
|
cursor: "pointer",
|
|
height: "16px",
|
|
marginRight: 17
|
|
},
|
|
onClick: () => {
|
|
setSelectedRowKeys(
|
|
rightList.filter(
|
|
(items) => `${items.user_id}` != `${item.user_id}`
|
|
)
|
|
);
|
|
}
|
|
}
|
|
)
|
|
);
|
|
})
|
|
)
|
|
)));
|
|
};
|
|
/* harmony default export */ var components_TrfListStudent = (TrfListStudent);
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/ExportScore.tsx
|
|
/* provided dependency */ var ExportScore_React = __webpack_require__(/*! react */ 59301);
|
|
var ExportScore_defProp = Object.defineProperty;
|
|
var ExportScore_defProps = Object.defineProperties;
|
|
var ExportScore_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var ExportScore_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var ExportScore_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var ExportScore_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var ExportScore_defNormalProp = (obj, key, value) => key in obj ? ExportScore_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var ExportScore_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (ExportScore_hasOwnProp.call(b, prop))
|
|
ExportScore_defNormalProp(a, prop, b[prop]);
|
|
if (ExportScore_getOwnPropSymbols)
|
|
for (var prop of ExportScore_getOwnPropSymbols(b)) {
|
|
if (ExportScore_propIsEnum.call(b, prop))
|
|
ExportScore_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var ExportScore_spreadProps = (a, b) => ExportScore_defProps(a, ExportScore_getOwnPropDescs(b));
|
|
var ExportScore_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 Search = input["default"].Search;
|
|
const ExportScore = ({ classroomList, loading, dispatch }) => {
|
|
var _a, _b;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [isloading, setLoading] = (0,_react_17_0_2_react.useState)(true);
|
|
const [isloading1, setLoading1] = (0,_react_17_0_2_react.useState)(true);
|
|
const [page, setPage] = (0,_react_17_0_2_react.useState)(1);
|
|
const [list, setList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [title, settitle] = (0,_react_17_0_2_react.useState)("");
|
|
const [treeList, setTreeList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [targetKeys, settargetKeys] = (0,_react_17_0_2_react.useState)([]);
|
|
const [form] = es_form["default"].useForm();
|
|
const [count, setcount] = (0,_react_17_0_2_react.useState)(0);
|
|
const [isExercise, setIsExercise] = (0,_react_17_0_2_react.useState)(false);
|
|
const [formValue, setFormValue] = (0,_react_17_0_2_react.useState)({});
|
|
const [flag, setflag] = (0,_react_17_0_2_react.useState)(false);
|
|
const [expandedKeys, setExpandedKeys] = (0,_react_17_0_2_react.useState)([]);
|
|
const [searchValue, setSearchValue] = (0,_react_17_0_2_react.useState)("");
|
|
const [autoExpandParent, setAutoExpandParent] = (0,_react_17_0_2_react.useState)(true);
|
|
const [selectedKeys1, setselectedKeys1] = (0,_react_17_0_2_react.useState)([]);
|
|
const [selectedList, setselectedList] = (0,_react_17_0_2_react.useState)([]);
|
|
const disabledDate = (current) => {
|
|
return current && current < dayjs_min_default()().startOf("day");
|
|
};
|
|
const [treeData1, setTreeData1] = (0,_react_17_0_2_react.useState)([]);
|
|
const [treeData2, setTreeData2] = (0,_react_17_0_2_react.useState)([]);
|
|
params["id"] = params.coursesId;
|
|
let data = [
|
|
{ type: "normal", url: "normal_work_list" },
|
|
{ type: "group", url: "group_work_list" },
|
|
{ type: "hack", url: "hack_work_list" },
|
|
{ type: "practice", url: "shixun_work_list" },
|
|
{ type: "exercise", url: "exercise_score,export_exercise_users" }
|
|
];
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a2, _b2, _c, _d, _e;
|
|
if (classroomList.actionTabs.key === "\u5BFC\u51FA\u6210\u7EE9") {
|
|
getData();
|
|
getData1();
|
|
}
|
|
if (((_a2 = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _a2.exportType) === "exercise") {
|
|
setIsExercise(true);
|
|
} else {
|
|
setIsExercise(false);
|
|
}
|
|
setSearchValue("");
|
|
setFormValue({ sd_mode: "student", cate_range: 1, stu_range: 1 });
|
|
if (classroomList.actionTabs.category_id) {
|
|
form.setFieldValue("cate_range", 2);
|
|
setFormValue(ExportScore_spreadProps(ExportScore_spreadValues({}, formValue), { cate_range: 2 }));
|
|
}
|
|
setselectedKeys1([(_c = (_b2 = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _b2.category_id) == null ? void 0 : _c.toString()]);
|
|
let title2 = `\u5BFC\u51FA${(_d = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _d.type}\u6210\u7EE9`;
|
|
if ((_e = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _e.isReport) {
|
|
title2 = `\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A`;
|
|
}
|
|
settitle(title2);
|
|
}, [(_a = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _a.key]);
|
|
console.log("---", (_b = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _b.exportType);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
let filteredTree = filterTreeByTitle(loop(treeData2), searchValue);
|
|
setTreeData1(filteredTree);
|
|
}, [count]);
|
|
const getData = (nextPage) => ExportScore_async(void 0, null, function* () {
|
|
var _a2, _b2, _c;
|
|
setLoading1(true);
|
|
const res = yield (0,classrooms/* getAllCourseGroup */.c_)(ExportScore_spreadProps(ExportScore_spreadValues({}, params), {
|
|
page: nextPage ? nextPage : page,
|
|
limit: 2e4
|
|
}));
|
|
(_a2 = res == null ? void 0 : res.course_groups) == null ? void 0 : _a2.map((item, index) => {
|
|
item.key = item.id;
|
|
item.title = item.name;
|
|
item.disabled = item.is_published;
|
|
});
|
|
setLoading1(false);
|
|
if (res) {
|
|
if (res == null ? void 0 : res.no_class_course_members) {
|
|
setList([...(_b2 = res == null ? void 0 : res.course_groups) == null ? void 0 : _b2.concat(res == null ? void 0 : res.no_class_course_members)]);
|
|
} else {
|
|
setList([...res == null ? void 0 : res.course_groups]);
|
|
}
|
|
setTreeList(transformData((_c = res == null ? void 0 : res.course_groups) == null ? void 0 : _c.concat(res == null ? void 0 : res.no_class_course_members)));
|
|
}
|
|
});
|
|
const getData1 = () => ExportScore_async(void 0, null, function* () {
|
|
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
setLoading(true);
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/${params.coursesId}/left_banner_with_child.json`,
|
|
{
|
|
method: "get",
|
|
params: {
|
|
id: params.coursesId,
|
|
module_type: classroomList.actionTabs.exportType
|
|
}
|
|
}
|
|
);
|
|
let arr = [];
|
|
let data2 = (_a2 = res == null ? void 0 : res.course_modules) == null ? void 0 : _a2.filter((item) => item.name === classroomList.actionTabs.type);
|
|
let cateTree = ((_c = (_b2 = data2[0]) == null ? void 0 : _b2.second_category) == null ? void 0 : _c.length) === 0 ? (_d = data2[0]) == null ? void 0 : _d.detail : (_e = data2[0]) == null ? void 0 : _e.second_category;
|
|
if (((_g = (_f = data2[0]) == null ? void 0 : _f.second_category) == null ? void 0 : _g.length) === 0) {
|
|
cateTree == null ? void 0 : cateTree.map((item) => {
|
|
var _a3, _b3;
|
|
arr.push({
|
|
title: (item == null ? void 0 : item.category_name) || (item == null ? void 0 : item.name),
|
|
key: ((_a3 = item == null ? void 0 : item.category_id) == null ? void 0 : _a3.toString()) || ((_b3 = item == null ? void 0 : item.id) == null ? void 0 : _b3.toString())
|
|
});
|
|
});
|
|
} else {
|
|
cateTree == null ? void 0 : cateTree.filter((item) => {
|
|
var _a3;
|
|
return ((_a3 = item == null ? void 0 : item.detail) == null ? void 0 : _a3.concat(item == null ? void 0 : item.third_category).length) !== 0;
|
|
}).map((item) => {
|
|
var _a3, _b3, _c2;
|
|
arr.push({
|
|
title: (item == null ? void 0 : item.category_name) || (item == null ? void 0 : item.name),
|
|
key: ((_a3 = item == null ? void 0 : item.category_id) == null ? void 0 : _a3.toString()) || ((_b3 = item == null ? void 0 : item.id) == null ? void 0 : _b3.toString()),
|
|
children: transformTreeKey(((_c2 = item == null ? void 0 : item.detail) == null ? void 0 : _c2.concat(item == null ? void 0 : item.third_category)) || [])
|
|
// children: transformTreeKey([item.coruse_videos,item.categories] || [])
|
|
});
|
|
});
|
|
}
|
|
arr = arr.filter((item) => {
|
|
var _a3;
|
|
return ((_a3 = item == null ? void 0 : item.children) == null ? void 0 : _a3.length) !== 0;
|
|
});
|
|
setTreeData2(arr);
|
|
setTreeData1(loop(arr));
|
|
if ((_h = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _h.category_id) {
|
|
let getKeysWithoutChildren = function(node) {
|
|
const result = [];
|
|
if (!node.children) {
|
|
result.push(node.key);
|
|
} else {
|
|
result.push(...node.children.map((child) => getKeysWithoutChildren(child)));
|
|
}
|
|
return result.flat();
|
|
};
|
|
const key = (_j = (_i = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _i.category_id) == null ? void 0 : _j.toString();
|
|
setExpandedKeys([key]);
|
|
setAutoExpandParent(true);
|
|
const hasParent = getParentKey(key, arr) ? true : false;
|
|
let newarr = [];
|
|
if (hasParent) {
|
|
newarr = arr.filter((item) => item.key === getParentKey(key, arr))[0].children.filter((item) => item.key === key);
|
|
} else {
|
|
newarr = arr.filter((item) => item.key === key)[0].children;
|
|
}
|
|
const keysWithoutChildren = newarr.map((item) => getKeysWithoutChildren(item)).flat();
|
|
setselectedList(keysWithoutChildren);
|
|
}
|
|
setLoading(false);
|
|
});
|
|
const transformData = (data2) => {
|
|
return data2.filter((item) => (item == null ? void 0 : item.course_members.length) > 0).map((item) => {
|
|
const newItem = {
|
|
key: item.id.toString(),
|
|
title: item.name,
|
|
oldtitle: item.title,
|
|
children: item.course_members ? item.course_members.map((member) => ({
|
|
key: member.user_id.toString(),
|
|
title: member.user_name,
|
|
oldtitle: member.user_name,
|
|
parentkey: item.id.toString()
|
|
})) : []
|
|
};
|
|
return newItem;
|
|
});
|
|
};
|
|
const transformTreeKey = (data2) => {
|
|
return data2.filter((item) => {
|
|
var _a2;
|
|
return !((item == null ? void 0 : item.detail) && ((_a2 = item == null ? void 0 : item.detail) == null ? void 0 : _a2.length) === 0);
|
|
}).map((item) => {
|
|
var _a2, _b2, _c;
|
|
const newItem = {
|
|
key: ((_a2 = item == null ? void 0 : item.id) == null ? void 0 : _a2.toString()) || ((_b2 = item.category_id) == null ? void 0 : _b2.toString()),
|
|
title: (item == null ? void 0 : item.category_name) || (item == null ? void 0 : item.name),
|
|
children: (_c = item == null ? void 0 : item.detail) == null ? void 0 : _c.map((item2) => {
|
|
var _a3;
|
|
return {
|
|
key: (_a3 = item2 == null ? void 0 : item2.id) == null ? void 0 : _a3.toString(),
|
|
title: item2 == null ? void 0 : item2.name
|
|
};
|
|
})
|
|
};
|
|
return newItem;
|
|
});
|
|
};
|
|
const clear = () => {
|
|
form.resetFields();
|
|
setFormValue({});
|
|
setflag(false);
|
|
setList([]);
|
|
setTreeData1([]);
|
|
settargetKeys([]);
|
|
setselectedKeys1([]);
|
|
setselectedList([]);
|
|
};
|
|
const onCheck = (checkedKeys, info) => {
|
|
var _a2, _b2, _c, _d;
|
|
console.log("onCheck", checkedKeys, info);
|
|
if (searchValue) {
|
|
console.log(1111);
|
|
if (info.checked) {
|
|
if ((_a2 = info.node) == null ? void 0 : _a2.children) {
|
|
const arr = (_b2 = info.node) == null ? void 0 : _b2.children.map((item) => {
|
|
if (item == null ? void 0 : item.children) {
|
|
return item == null ? void 0 : item.children.map((item2) => item2.key);
|
|
} else {
|
|
return item.key;
|
|
}
|
|
}).flat();
|
|
const newarr = [.../* @__PURE__ */ new Set([...selectedKeys1, ...arr])];
|
|
const list2 = [.../* @__PURE__ */ new Set([...selectedList, ...arr])];
|
|
setselectedKeys1(newarr);
|
|
setselectedList(list2);
|
|
} else {
|
|
setselectedKeys1([...selectedKeys1, info.node.key]);
|
|
setselectedList([...selectedList, info.node.key]);
|
|
}
|
|
} else {
|
|
if ((_c = info.node) == null ? void 0 : _c.children) {
|
|
const ptkey = info.node.key;
|
|
const pptkey = getParentKey(ptkey, treeData2);
|
|
const arr = (_d = info.node) == null ? void 0 : _d.children.map((item) => {
|
|
if (item == null ? void 0 : item.children) {
|
|
return item == null ? void 0 : item.children.map((item2) => item2.key);
|
|
} else {
|
|
return item.key;
|
|
}
|
|
}).flat();
|
|
const newarr = selectedKeys1.filter((key) => !arr.includes(key) && key != ptkey && key != pptkey);
|
|
const list2 = selectedList.filter((key) => !arr.includes(key));
|
|
setselectedKeys1(newarr);
|
|
setselectedList(list2);
|
|
} else {
|
|
const ptkey = getParentKey(info.node.key, treeData2);
|
|
const pptkey = getParentKey(ptkey, treeData2);
|
|
const newarr = selectedKeys1.filter((key) => key != info.node.key && key != ptkey && key != pptkey);
|
|
const list2 = selectedList.filter((key) => key != info.node.key);
|
|
setselectedKeys1(newarr);
|
|
setselectedList(list2);
|
|
}
|
|
}
|
|
} else {
|
|
setselectedList(info.checkedNodes.filter((item) => !item.children).map((item) => item.key));
|
|
setselectedKeys1(checkedKeys);
|
|
}
|
|
};
|
|
const dataList = [];
|
|
const generateList = (data2) => {
|
|
for (let i = 0; i < data2.length; i++) {
|
|
const node = data2[i];
|
|
const { key, title: title2 } = node;
|
|
dataList.push({
|
|
key,
|
|
title: title2
|
|
});
|
|
if (node.children) {
|
|
generateList(node.children);
|
|
}
|
|
}
|
|
};
|
|
generateList(treeData2);
|
|
const getParentKey = (key, tree) => {
|
|
let parentKey;
|
|
for (let i = 0; i < tree.length; i++) {
|
|
const node = tree[i];
|
|
if (node.children) {
|
|
if (node.children.some((item) => item.key === key)) {
|
|
parentKey = node.key;
|
|
} else if (getParentKey(key, node.children)) {
|
|
parentKey = getParentKey(key, node.children);
|
|
}
|
|
}
|
|
}
|
|
return parentKey;
|
|
};
|
|
const onExpand = (newExpandedKeys) => {
|
|
setExpandedKeys(newExpandedKeys);
|
|
setAutoExpandParent(false);
|
|
};
|
|
const onChange2 = (e, type) => {
|
|
let newcount = count + 1;
|
|
setcount(newcount);
|
|
let value = "";
|
|
if (type === 1) {
|
|
value = e;
|
|
} else {
|
|
value = e.target.value;
|
|
}
|
|
if (value === "" || value === void 0) {
|
|
setExpandedKeys([]);
|
|
setSearchValue("");
|
|
} else {
|
|
const newExpandedKeys = dataList.map((item) => {
|
|
if (item.title.indexOf(value.trim()) > -1) {
|
|
return getParentKey(item.key, treeData2);
|
|
}
|
|
return null;
|
|
}).filter((item, i, self) => !!(item && self.indexOf(item) === i));
|
|
setExpandedKeys(newExpandedKeys);
|
|
setSearchValue(value);
|
|
}
|
|
setAutoExpandParent(true);
|
|
};
|
|
const loop = (data2) => {
|
|
return data2.map((item) => {
|
|
const strTitle = item.title;
|
|
const index = strTitle.indexOf(searchValue.trim());
|
|
const beforeStr = strTitle.substring(0, index);
|
|
const afterStr = strTitle.slice(index + searchValue.trim().length);
|
|
const title2 = index > -1 ? /* @__PURE__ */ ExportScore_React.createElement("span", null, beforeStr, /* @__PURE__ */ ExportScore_React.createElement("span", { className: "c-red" }, searchValue.trim()), afterStr) : /* @__PURE__ */ ExportScore_React.createElement("span", null, strTitle);
|
|
if (item.children) {
|
|
return { title: title2, key: item.key, oldtitle: item.title, children: loop(item.children) };
|
|
}
|
|
return {
|
|
title: title2,
|
|
key: item.key,
|
|
oldtitle: item.title
|
|
};
|
|
});
|
|
};
|
|
function filterTreeByTitle(tree, searchValue2) {
|
|
return tree.filter((node) => {
|
|
if (node.oldtitle && node.oldtitle.trim().includes(searchValue2.trim())) {
|
|
return true;
|
|
}
|
|
if (node.children && node.children.length > 0) {
|
|
node.children = filterTreeByTitle(node.children, searchValue2);
|
|
return node.children.length > 0;
|
|
}
|
|
return false;
|
|
});
|
|
}
|
|
return /* @__PURE__ */ ExportScore_React.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title,
|
|
open: classroomList.actionTabs.key === "\u5BFC\u51FA\u6210\u7EE9" ? true : false,
|
|
okText: "\u5BFC\u51FA",
|
|
cancelText: "\u53D6\u6D88",
|
|
destroyOnClose: true,
|
|
className: ExportScoremodules.exportmodal,
|
|
bodyStyle: { maxHeight: 520 },
|
|
width: 610,
|
|
confirmLoading,
|
|
onOk: () => ExportScore_async(void 0, null, function* () {
|
|
var _a2, _b2;
|
|
console.log(treeData2);
|
|
console.log(selectedList);
|
|
if (treeData2.length === 0) {
|
|
message/* default */.ZP.warning(`\u6CA1\u6709\u53EF\u5BFC\u51FA\u7684${isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"}`);
|
|
return;
|
|
}
|
|
let formData = {
|
|
course_id: params.coursesId,
|
|
ids: selectedList,
|
|
export_type: formValue.sd_mode,
|
|
homework_type: classroomList.actionTabs.exportType
|
|
};
|
|
if (formValue.stu_range === 2) {
|
|
formData.course_group_ids = targetKeys.map((item) => item.id.toString());
|
|
}
|
|
if (formValue.stu_range === 3) {
|
|
formData.user_ids = targetKeys.map((item) => item.user_id.toString());
|
|
}
|
|
setConfirmLoading(true);
|
|
const res = yield (0,fetch/* default */.ZP)(`/api/export_record/export_all.json`, {
|
|
method: "get",
|
|
params: ExportScore_spreadValues({}, formData)
|
|
});
|
|
setConfirmLoading(false);
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.info("\u5BFC\u51FA\u6210\u529F");
|
|
_umi_production_exports.history.push(`/classrooms/${params == null ? void 0 : params.coursesId}/exportlist/${(_a2 = data == null ? void 0 : data.find((item) => {
|
|
var _a3;
|
|
return item.type === ((_a3 = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _a3.exportType);
|
|
})) == null ? void 0 : _a2.url}`);
|
|
clear();
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
_umi_production_exports.history.push(`/classrooms/${params == null ? void 0 : params.coursesId}/exportlist/${(_b2 = data == null ? void 0 : data.find((item) => {
|
|
var _a3;
|
|
return item.type === ((_a3 = classroomList == null ? void 0 : classroomList.actionTabs) == null ? void 0 : _a3.exportType);
|
|
})) == null ? void 0 : _b2.url}`);
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
clear();
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ ExportScore_React.createElement("div", null, /* @__PURE__ */ ExportScore_React.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
initialValues: {
|
|
["sd_mode"]: "student",
|
|
["cate_range"]: 1,
|
|
["stu_range"]: 1
|
|
},
|
|
colon: false,
|
|
labelAlign: "right",
|
|
labelCol: { span: 4 },
|
|
onValuesChange: (changedValues, allValues) => {
|
|
if ("stu_range" in changedValues) {
|
|
settargetKeys([]);
|
|
}
|
|
setFormValue(form.getFieldValue());
|
|
}
|
|
},
|
|
/* @__PURE__ */ ExportScore_React.createElement(es_form["default"].Item, { label: "\u7EDF\u8BA1\u7EF4\u5EA6", name: "sd_mode" }, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default.Group */.ZP.Group, null, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: "student", className: "mr60" }, "\u5B66\u751F\u7EF4\u5EA6"), /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: "homework" }, isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A", "\u7EF4\u5EA6"))),
|
|
/* @__PURE__ */ ExportScore_React.createElement(es_form["default"].Item, { label: `\u5BFC\u51FA${isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"}\u8303\u56F4`, name: "cate_range" }, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default.Group */.ZP.Group, null, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: 1, className: "mr60" }, "\u5168\u90E8", isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"), /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: 2 }, "\u6307\u5B9A", isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"))),
|
|
formValue.cate_range === 2 && /* @__PURE__ */ ExportScore_React.createElement("div", { style: { width: 560, height: 300, border: "1px solid #F6F7F9", marginTop: -5, marginBottom: 10 } }, /* @__PURE__ */ ExportScore_React.createElement("div", { className: ExportScoremodules.searchWrap }, /* @__PURE__ */ ExportScore_React.createElement(
|
|
input["default"].Search,
|
|
{
|
|
allowClear: true,
|
|
suffix: /* @__PURE__ */ ExportScore_React.createElement("i", { className: `iconfont icon-sousuo9 font14 ${ExportScoremodules.searchIcon}`, onClick: (e) => onChange2(searchValue, 1) }),
|
|
className: ExportScoremodules.search,
|
|
placeholder: `\u641C\u7D22\u76EE\u5F55\u540D\u79F0\u6216${isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"}\u540D\u79F0`,
|
|
size: "middle",
|
|
onSearch: (e) => onChange2(e, 1),
|
|
onChange: (e) => setSearchValue(e.target.value)
|
|
}
|
|
)), /* @__PURE__ */ ExportScore_React.createElement("div", { style: { maxHeight: 213, overflow: "auto" } }, treeData2.length === 0 && !isloading ? /* @__PURE__ */ ExportScore_React.createElement(NoData/* default */.Z, { styles: { margin: "0 auto" }, customText: `\u6682\u65E0${isExercise ? "\u8BD5\u5377" : "\u4F5C\u4E1A"}` }) : /* @__PURE__ */ ExportScore_React.createElement(spin/* default */.Z, { spinning: isloading }, /* @__PURE__ */ ExportScore_React.createElement(
|
|
tree["default"],
|
|
{
|
|
style: { minHeight: 210 },
|
|
checkable: true,
|
|
selectable: false,
|
|
onExpand,
|
|
expandedKeys,
|
|
autoExpandParent,
|
|
checkedKeys: selectedKeys1,
|
|
onCheck,
|
|
treeData: treeData1
|
|
}
|
|
)))),
|
|
/* @__PURE__ */ ExportScore_React.createElement(es_form["default"].Item, { label: "\u5BFC\u51FA\u5B66\u751F\u8303\u56F4", name: "stu_range" }, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default.Group */.ZP.Group, null, /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: 1, className: "mr60" }, "\u5168\u90E8\u5B66\u751F"), /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: 2, className: "mr60" }, "\u6307\u5B9A\u5206\u73ED"), /* @__PURE__ */ ExportScore_React.createElement(es_radio/* default */.ZP, { value: 3 }, "\u6307\u5B9A\u5B66\u751F"))),
|
|
formValue.stu_range === 2 && /* @__PURE__ */ ExportScore_React.createElement("div", { style: { width: 560, height: 368, marginTop: -5 } }, /* @__PURE__ */ ExportScore_React.createElement("div", null, /* @__PURE__ */ ExportScore_React.createElement(
|
|
components_TrfListClass,
|
|
{
|
|
data: list,
|
|
treedata: treeList,
|
|
loading: isloading1,
|
|
selectedRowKeys: targetKeys,
|
|
setSelectedRowKeys: settargetKeys
|
|
}
|
|
))),
|
|
formValue.stu_range === 3 && /* @__PURE__ */ ExportScore_React.createElement("div", { style: { width: 560, height: 368, marginTop: -5 } }, /* @__PURE__ */ ExportScore_React.createElement("div", null, /* @__PURE__ */ ExportScore_React.createElement(
|
|
components_TrfListStudent,
|
|
{
|
|
data: list,
|
|
treedata: treeList,
|
|
selectedRowKeys: targetKeys,
|
|
setSelectedRowKeys: settargetKeys
|
|
}
|
|
)))
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_ExportScore = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(ExportScore));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/JoinCourses.tsx
|
|
/* provided dependency */ var JoinCourses_React = __webpack_require__(/*! react */ 59301);
|
|
var JoinCourses_defProp = Object.defineProperty;
|
|
var JoinCourses_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var JoinCourses_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var JoinCourses_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var JoinCourses_defNormalProp = (obj, key, value) => key in obj ? JoinCourses_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var JoinCourses_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (JoinCourses_hasOwnProp.call(b, prop))
|
|
JoinCourses_defNormalProp(a, prop, b[prop]);
|
|
if (JoinCourses_getOwnPropSymbols)
|
|
for (var prop of JoinCourses_getOwnPropSymbols(b)) {
|
|
if (JoinCourses_propIsEnum.call(b, prop))
|
|
JoinCourses_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var JoinCourses_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 JoinCourses = ({ classroomList, dispatch, user }) => {
|
|
const [show, setShow] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { userInfo } = user;
|
|
const onCancel = () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: { key: "" }
|
|
});
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u52A0\u5165\u8BFE\u5802") {
|
|
if (!(userInfo == null ? void 0 : userInfo.login) || (userInfo == null ? void 0 : userInfo.login) == "") {
|
|
dispatch({
|
|
type: "user/showPopLogin",
|
|
payload: {
|
|
showPopLogin: true,
|
|
showClosable: true
|
|
}
|
|
});
|
|
onCancel();
|
|
} else if (userInfo == null ? void 0 : userInfo.profile_completed) {
|
|
setShow(true);
|
|
} else {
|
|
modal["default"].confirm({
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
content: "\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",
|
|
okText: "\u7ACB\u5373\u5B8C\u5584",
|
|
cancelText: "\u7A0D\u540E\u5B8C\u5584",
|
|
onOk: () => {
|
|
setShow(true);
|
|
},
|
|
onCancel: () => onCancel()
|
|
});
|
|
}
|
|
} else {
|
|
setShow(false);
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
return /* @__PURE__ */ JoinCourses_React.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u52A0\u5165\u8BFE\u5802",
|
|
open: show,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
onOk: () => JoinCourses_async(void 0, null, function* () {
|
|
var _a;
|
|
yield form.validateFields();
|
|
const value = JoinCourses_spreadValues({}, form.getFieldValue());
|
|
let res1 = yield (0,fetch/* default */.ZP)(`/api/courses/get_pro_info.json`, {
|
|
method: "get",
|
|
params: {
|
|
invite_code: value.invite_code
|
|
}
|
|
});
|
|
if (res1 == null ? void 0 : res1.need_pro_auth) {
|
|
dispatch({
|
|
type: "account/setActionTabs",
|
|
payload: {
|
|
key: "Account-ProfessionalAuth",
|
|
code: value.inputValue,
|
|
checkedList: value.identity === "professor" ? [1] : value.identity === "assistant_professor" ? [2] : [3]
|
|
}
|
|
});
|
|
onCancel();
|
|
return;
|
|
}
|
|
(_a = value == null ? void 0 : value.identity) == null ? void 0 : _a.map((item) => {
|
|
value[item] = 1;
|
|
});
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/apply_to_join_course.json`,
|
|
{
|
|
method: "post",
|
|
body: JoinCourses_spreadValues({}, value)
|
|
}
|
|
);
|
|
console.log(
|
|
`/api/courses/apply_to_join_course.json`,
|
|
{
|
|
method: "post",
|
|
body: JoinCourses_spreadValues({}, value)
|
|
}
|
|
);
|
|
if (res.status === 0) {
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u52A0\u5165\u8BFE\u5802"]);
|
|
message/* default */.ZP.success("\u52A0\u5165\u6210\u529F");
|
|
window.location.reload(true);
|
|
}
|
|
}),
|
|
onCancel: () => onCancel()
|
|
},
|
|
/* @__PURE__ */ JoinCourses_React.createElement("section", { className: "pr20 pt10 pl10" }, /* @__PURE__ */ JoinCourses_React.createElement(es_form["default"], { form, hideRequiredMark: true }, /* @__PURE__ */ JoinCourses_React.createElement(es_form["default"].Item, { name: "invite_code", rules: [{ required: true, message: "\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801" }], label: /* @__PURE__ */ JoinCourses_React.createElement("div", { className: "tr", style: { width: 100 } }, "\u8BFE\u5802\u9080\u8BF7\u7801") }, /* @__PURE__ */ JoinCourses_React.createElement(input["default"], { size: "middle", placeholder: "\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801" })), /* @__PURE__ */ JoinCourses_React.createElement(es_form["default"].Item, { name: "identity", label: /* @__PURE__ */ JoinCourses_React.createElement("div", { className: "tr", style: { width: 100 } }, "\u8EAB\u4EFD") }, /* @__PURE__ */ JoinCourses_React.createElement(es_checkbox["default"].Group, null, /* @__PURE__ */ JoinCourses_React.createElement(es_checkbox["default"], { value: "professor" }, "\u6559\u5E08"), /* @__PURE__ */ JoinCourses_React.createElement(es_checkbox["default"], { value: "assistant_professor" }, "\u52A9\u6559"), /* @__PURE__ */ JoinCourses_React.createElement(es_checkbox["default"], { value: "student" }, "\u5B66\u751F/\u53C2\u8D5B\u8005")))))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_JoinCourses = ((0,_umi_production_exports.connect)(
|
|
({ classroomList, user }) => ({
|
|
classroomList,
|
|
user
|
|
})
|
|
)(JoinCourses));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var componentsmodules = ({"wrap":"wrap___fhpdw","content":"content___ebdwe","hint":"hint___MlzLZ","title":"title___CBiOM","titleWrap":"titleWrap___aNLFI","formWrap":"formWrap___MSAjb","identityWrap":"identityWrap____g2bF","schoolHintWrap":"schoolHintWrap___xD8gg","colorCDCDCD":"colorCDCDCD___k8y5q","color0152d9":"color0152d9___iFYej","submitButton":"submitButton___rTeEi","submitButtondiv":"submitButtondiv___QXI_6","glow":"glow___kDQHM"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/AddInfo.tsx
|
|
var AddInfo_defProp = Object.defineProperty;
|
|
var AddInfo_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var AddInfo_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var AddInfo_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var AddInfo_defNormalProp = (obj, key, value) => key in obj ? AddInfo_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var AddInfo_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (AddInfo_hasOwnProp.call(b, prop))
|
|
AddInfo_defNormalProp(a, prop, b[prop]);
|
|
if (AddInfo_getOwnPropSymbols)
|
|
for (var prop of AddInfo_getOwnPropSymbols(b)) {
|
|
if (AddInfo_propIsEnum.call(b, prop))
|
|
AddInfo_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var AddInfo_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 Option = es_select["default"].Option;
|
|
const MoocModal = ({ user, shixunHomeworks, loading, dispatch }) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
const MAX_NAME_LENGTH = 10;
|
|
const [formValue, setFormValue] = (0,_react_17_0_2_react.useState)({});
|
|
const [schoolList, setSchoolList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [filterSchoolList, setFilterSchoolList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [departmentList, setDepartmentList] = (0,_react_17_0_2_react.useState)([]);
|
|
const [filterDepartmentList, setFilterDepartmentList] = (0,_react_17_0_2_react.useState)([]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (shixunHomeworks.actionTabs.key === "\u586B\u5145\u4FE1\u606F\u5F39\u7A97" && !schoolList.length)
|
|
getSchoolOption();
|
|
}, [shixunHomeworks.actionTabs.key]);
|
|
const getSchoolOption = () => AddInfo_async(void 0, null, function* () {
|
|
const res = yield dispatch({
|
|
type: "account/getSchoolOption"
|
|
});
|
|
setSchoolList(res == null ? void 0 : res.schools);
|
|
});
|
|
const handleValuesChange = (changedValues) => {
|
|
setFormValue(AddInfo_spreadValues({}, form.getFieldsValue()));
|
|
if ("school" in changedValues) {
|
|
setFilterSchoolList(schoolList.filter((item) => item.name.includes(changedValues.school)));
|
|
const findSchoolId = (schoolList.find((item) => item.name === changedValues.school) || {}).id;
|
|
if (findSchoolId) {
|
|
handleSetDepartment(changedValues.school);
|
|
} else {
|
|
form.setFieldsValue({ department: "" });
|
|
setFormValue(AddInfo_spreadValues(AddInfo_spreadValues({}, formValue), { school: changedValues.school, department: "" }));
|
|
}
|
|
}
|
|
};
|
|
const handleSetDepartment = (school, departmentName) => AddInfo_async(void 0, null, function* () {
|
|
var _a, _b, _c;
|
|
const findSchoolId = (_a = schoolList.find((item) => item.name === school)) == null ? void 0 : _a.id;
|
|
const res = (yield getDepartmentOption(findSchoolId)) || {};
|
|
setDepartmentList(res == null ? void 0 : res.departments);
|
|
const name = departmentName || ((_c = (_b = res == null ? void 0 : res.departments) == null ? void 0 : _b[0]) == null ? void 0 : _c.name);
|
|
form.setFieldsValue({ department: name });
|
|
setFormValue(AddInfo_spreadValues(AddInfo_spreadValues({}, formValue), { school, department: name }));
|
|
});
|
|
const getDepartmentOption = (schoolId) => {
|
|
if (!schoolId) {
|
|
return;
|
|
}
|
|
return dispatch({
|
|
type: "account/getDepartmentOption",
|
|
payload: { id: schoolId }
|
|
});
|
|
};
|
|
const handleFinish = (values) => AddInfo_async(void 0, null, function* () {
|
|
var _a, _b;
|
|
const { nickname, gender, identity, studentNo, jobTitle, manager, school, department, edu_background, edu_entry_year, brief_introduction, name } = values;
|
|
const department_id = (_a = departmentList.find((item) => item.name === department)) == null ? void 0 : _a.id;
|
|
const school_id = (_b = schoolList.find((item) => item.name === school)) == null ? void 0 : _b.id;
|
|
const res = yield dispatch({
|
|
type: "account/updateAccount",
|
|
payload: {
|
|
id: user.userInfo.user_id,
|
|
department_id,
|
|
gender,
|
|
identity,
|
|
location,
|
|
// location_city,
|
|
nickname,
|
|
name,
|
|
school_id,
|
|
edu_background,
|
|
edu_entry_year,
|
|
brief_introduction,
|
|
student_id: identity === "student" ? studentNo : null,
|
|
technical_title: jobTitle || manager
|
|
}
|
|
});
|
|
if (res) {
|
|
window.location.reload();
|
|
localStorage.removeItem("addinfo");
|
|
}
|
|
});
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u586B\u5199\u8D44\u6599",
|
|
open: shixunHomeworks.actionTabs.key === "\u586B\u5145\u4FE1\u606F\u5F39\u7A97",
|
|
okText: "\u4FDD\u5B58",
|
|
cancelText: "\u53D6\u6D88",
|
|
width: 650,
|
|
bodyStyle: { minHeight: 150 },
|
|
confirmLoading,
|
|
onOk: () => {
|
|
form.submit();
|
|
},
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "shixunHomeworks/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
className: componentsmodules.formWrap,
|
|
layout: "horizontal",
|
|
onValuesChange: handleValuesChange,
|
|
onFinish: handleFinish
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u59D3\u540D",
|
|
name: "name",
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: `\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236${MAX_NAME_LENGTH}\u4E2A\u5B57\u7B26`
|
|
},
|
|
{ validator: util/* handleValidatorName */.HJ }
|
|
]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"],
|
|
{
|
|
placeholder: `\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236${MAX_NAME_LENGTH}\u4E2A\u5B57\u7B26`,
|
|
maxLength: MAX_NAME_LENGTH
|
|
}
|
|
)
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { gutter: [10, 0] }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "300px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u804C\u4E1A",
|
|
name: "identity",
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"
|
|
}]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], null, /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "teacher" }, "\u6559\u5E08"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "student" }, "\u5B66\u751F"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "professional" }, "\u4E13\u4E1A\u4EBA\u58EB"))
|
|
)), formValue.identity === "student" && /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "300px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
initialValue: formValue.studentNo,
|
|
name: "studentNo",
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"
|
|
}]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
input["default"],
|
|
{
|
|
type: "text",
|
|
placeholder: "\u8BF7\u8F93\u5165\u5B66\u53F7"
|
|
}
|
|
)
|
|
)), formValue.identity === "teacher" && /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "300px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
initialValue: formValue.jobTitle,
|
|
name: "jobTitle",
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u5148\u9009\u62E9\u804C\u79F0"
|
|
}]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], null, /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u6559\u6388" }, "\u6559\u6388"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u7814\u7A76\u5458" }, "\u7814\u7A76\u5458"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u526F\u6559\u6388" }, "\u526F\u6559\u6388"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u526F\u7814\u7A76\u5458" }, "\u526F\u7814\u7A76\u5458"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u8BB2\u5E08" }, "\u8BB2\u5E08"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u52A9\u7406\u7814\u7A76\u5458" }, "\u52A9\u7406\u7814\u7A76\u5458"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u52A9\u7406\u6559\u6388" }, "\u52A9\u7406\u6559\u6388"))
|
|
)), formValue.identity === "professional" && /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "300px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
initialValue: formValue.manager,
|
|
name: "manager",
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u5148\u9009\u62E9\u804C\u79F0"
|
|
}]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], null, /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u4F01\u4E1A\u7BA1\u7406\u8005" }, "\u4F01\u4E1A\u7BA1\u7406\u8005"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u90E8\u95E8\u7BA1\u7406\u8005" }, "\u90E8\u95E8\u7BA1\u7406\u8005"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08" }, "\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u5DE5\u7A0B\u5E08" }, "\u5DE5\u7A0B\u5E08"), /* @__PURE__ */ _react_17_0_2_react.createElement(Option, { value: "\u52A9\u7406\u5DE5\u7A0B\u5E08" }, "\u52A9\u7406\u5DE5\u7A0B\u5E08"))
|
|
))),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u5B66\u6821/\u5355\u4F4D",
|
|
name: "school",
|
|
wrapperCol: { span: 10 },
|
|
rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"
|
|
}]
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
auto_complete/* default */.Z,
|
|
{
|
|
showSearch: true,
|
|
options: filterSchoolList == null ? void 0 : filterSchoolList.map((item) => ({ value: item.name }))
|
|
}
|
|
)
|
|
),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"].Item,
|
|
{
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
name: "department",
|
|
wrapperCol: { span: 10 }
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
auto_complete/* default */.Z,
|
|
{
|
|
showSearch: true,
|
|
onChange: (value) => setFilterDepartmentList(departmentList.filter((item) => item.name.includes(value))),
|
|
options: filterDepartmentList == null ? void 0 : filterDepartmentList.map((item) => ({ value: item.name }))
|
|
}
|
|
)
|
|
)
|
|
)
|
|
);
|
|
};
|
|
/* harmony default export */ var AddInfo = ((0,_umi_production_exports.connect)(
|
|
({
|
|
shixunHomeworks,
|
|
loading,
|
|
user
|
|
}) => ({
|
|
shixunHomeworks,
|
|
loading,
|
|
user
|
|
})
|
|
)(MoocModal));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/SwitchStudents.tsx
|
|
var SwitchStudents_defProp = Object.defineProperty;
|
|
var SwitchStudents_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var SwitchStudents_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var SwitchStudents_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var SwitchStudents_defNormalProp = (obj, key, value) => key in obj ? SwitchStudents_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var SwitchStudents_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (SwitchStudents_hasOwnProp.call(b, prop))
|
|
SwitchStudents_defNormalProp(a, prop, b[prop]);
|
|
if (SwitchStudents_getOwnPropSymbols)
|
|
for (var prop of SwitchStudents_getOwnPropSymbols(b)) {
|
|
if (SwitchStudents_propIsEnum.call(b, prop))
|
|
SwitchStudents_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var SwitchStudents_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 SwitchStudents_PublishShixun = ({ classroomList, loading, dispatch }) => {
|
|
var _a;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const { actionTabs, courseGroups, allCourseGroups } = classroomList;
|
|
const [form] = es_form["default"].useForm();
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u5207\u6362\u4E3A\u5B66\u751F") {
|
|
dispatch({
|
|
type: "classroomList/getAllCourseGroup",
|
|
payload: SwitchStudents_spreadValues({}, params)
|
|
});
|
|
form.setFieldsValue({ course_group_id: "0" });
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u5207\u6362\u4E3A\u5B66\u751F",
|
|
open: classroomList.actionTabs.key === "\u5207\u6362\u4E3A\u5B66\u751F" ? true : false,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
bodyStyle: { minHeight: 150 },
|
|
confirmLoading,
|
|
onOk: () => SwitchStudents_async(void 0, null, function* () {
|
|
setConfirmLoading(true);
|
|
const res = yield (0,fetch/* default */.ZP)(`/api/courses/${params.coursesId}/switch_to_student.json`, { method: "post", body: form.getFieldValue() });
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u5207\u6362\u6210\u529F");
|
|
window.location.reload();
|
|
}
|
|
setConfirmLoading(false);
|
|
}),
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B"),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
initialValues: {
|
|
["course_group_id"]: "0"
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { className: "mt30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, "\u8FDB\u5165\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "course_group_id", rules: [{ required: true, message: "\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0" }], noStyle: true }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"], { defaultValue: "0", style: { width: "100%" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: "0" }, "\u672A\u5206\u73ED"), (_a = allCourseGroups == null ? void 0 : allCourseGroups.course_groups) == null ? void 0 : _a.map(function(val, key) {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(es_select["default"].Option, { value: val.id }, val.name);
|
|
})))))
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var SwitchStudents = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(SwitchStudents_PublishShixun));
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
|
var skeleton = __webpack_require__(56511);
|
|
// EXTERNAL MODULE: ./node_modules/_react-beautiful-dnd@13.0.0@react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 27 modules
|
|
var react_beautiful_dnd_esm = __webpack_require__(47766);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/index.d.ts
|
|
const SubmenuIcons = {
|
|
"shixun_homework": "iconfont icon-shixunzuoye1",
|
|
"graduation": "iconfont icon-biyezhuanhuan",
|
|
"exercise": "iconfont font17 icon-kaoshishijuan1",
|
|
"poll": "iconfont font17 icon-kaoshiwenjuan1",
|
|
"common_homework": "iconfont icon-putongzuoye1",
|
|
"group_homework": "iconfont icon-fenzuzuoye2",
|
|
"attendance": "iconfont icon-qiandao1",
|
|
"announcement": "iconfont icon-gonggaolan",
|
|
"attachment": "iconfont icon-xuexiziyuan1",
|
|
"video": "iconfont font14 icon-shipinzhibo1",
|
|
"board": "iconfont icon-taolun2",
|
|
"course_group": "iconfont font18 icon-fenban2",
|
|
"statistics": "iconfont font17 icon-tongji3",
|
|
"template": "iconfont icon-mobanguanli2",
|
|
"online_learning": "iconfont icon-kechengxuexi",
|
|
"ecs": "iconfont icon-gongchengrenzheng",
|
|
"program_homework": "iconfont icon-bianchengzuoye",
|
|
"new_graduation": "iconfont icon-biyesheji",
|
|
"resource_recommend": "iconfont icon-ziyuantuijian"
|
|
};
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var ShixunDetailmodules = ({"flex_box_center":"flex_box_center___ztP5B","flex_space_between":"flex_space_between___ZnBAF","flex_box_vertical_center":"flex_box_vertical_center___sIQLg","flex_box_center_end":"flex_box_center_end___Yjb4r","flex_box_column":"flex_box_column___wx6hu","wrp":"wrp___eXSKX","classroomInfo":"classroomInfo___zfzoC","title":"title___BCkXZ","titleLeft":"titleLeft___XPuIq","classroomUser":"classroomUser___b_ny2","headPic":"headPic___pR9pz","teacherInfo":"teacherInfo___BeE5H","classroomDesc":"classroomDesc___csaXO","classroomDescBg":"classroomDescBg___OQixb","joinCouses":"joinCouses___RT5bw","bg":"bg___zCz6k","task_count":"task_count___GC5OH","container":"container___m1Tgk","leftMenuActions":"leftMenuActions___H7kfl","leftMenu":"leftMenu___aMBG9","menuText":"menuText___vgQ83","totalCount":"totalCount___AoAB2","actions":"actions___MsngA","open":"open___inDJH","actived":"actived___rqjRz","actived2":"actived2___x7Wvg","tipJoin":"tipJoin___uzlgb","badge":"badge___s6J4T","num":"num____292N","classromediv":"classromediv___AQhQT","glow":"glow___Ucfx9","st":"st___KjyfC","link":"link___aoTXV","sLink":"sLink___moIi9","iconH":"iconH___N915X","shareClassroom":"shareClassroom___WbdZI","copy":"copy___plAJS","btnWrap":"btnWrap___UOuN_","btn":"btn___DfMBs","tip":"tip___FDQL5","export":"export___Dr4oV","bottom":"bottom___DezCj","yes":"yes___SmiO1","no":"no____2dJW","skeleton":"skeleton___fBWXQ","skeletonL":"skeletonL___m64NF","skeletonR":"skeletonR___ICZBM","skeletonR_2":"skeletonR_2___ttKxS","skeletonR_1":"skeletonR_1___koZuU"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/LeftMenus/index.tsx
|
|
var LeftMenus_defProp = Object.defineProperty;
|
|
var LeftMenus_defProps = Object.defineProperties;
|
|
var LeftMenus_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var LeftMenus_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var LeftMenus_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var LeftMenus_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var LeftMenus_defNormalProp = (obj, key, value) => key in obj ? LeftMenus_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var LeftMenus_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (LeftMenus_hasOwnProp.call(b, prop))
|
|
LeftMenus_defNormalProp(a, prop, b[prop]);
|
|
if (LeftMenus_getOwnPropSymbols)
|
|
for (var prop of LeftMenus_getOwnPropSymbols(b)) {
|
|
if (LeftMenus_propIsEnum.call(b, prop))
|
|
LeftMenus_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var LeftMenus_spreadProps = (a, b) => LeftMenus_defProps(a, LeftMenus_getOwnPropDescs(b));
|
|
var __objRest = (source, exclude) => {
|
|
var target = {};
|
|
for (var prop in source)
|
|
if (LeftMenus_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
target[prop] = source[prop];
|
|
if (source != null && LeftMenus_getOwnPropSymbols)
|
|
for (var prop of LeftMenus_getOwnPropSymbols(source)) {
|
|
if (exclude.indexOf(prop) < 0 && LeftMenus_propIsEnum.call(source, prop))
|
|
target[prop] = source[prop];
|
|
}
|
|
return target;
|
|
};
|
|
var LeftMenus_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 { TabPane: LeftMenus_TabPane } = tabs["default"];
|
|
const ShixunsListPage = (_a) => {
|
|
var _b = _a, {
|
|
classroomList,
|
|
globalSetting,
|
|
user,
|
|
loading,
|
|
dispatch,
|
|
children
|
|
} = _b, props = __objRest(_b, [
|
|
"classroomList",
|
|
"globalSetting",
|
|
"user",
|
|
"loading",
|
|
"dispatch",
|
|
"children"
|
|
]);
|
|
var _a2, _b2, _c;
|
|
const query = (0,_umi_production_exports.useParams)();
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
const { detailTopBanner, detailLeftMenus } = classroomList;
|
|
const [leftMenu, setLeftMenu] = (0,_react_17_0_2_react.useState)([]);
|
|
const [thirdOpen, setThirdOpen] = (0,_react_17_0_2_react.useState)([]);
|
|
const [secondOpen, setSecondOpen] = (0,_react_17_0_2_react.useState)([]);
|
|
const { userInfo } = user;
|
|
const { Content, Sider } = layout["default"];
|
|
const [modules, setModulse] = (0,_react_17_0_2_react.useState)();
|
|
const [openKeys, setOpenKeys] = (0,_react_17_0_2_react.useState)([]);
|
|
const [selectKeys, setSelectKeys] = (0,_react_17_0_2_react.useState)([]);
|
|
const [checkedValues, setcheckedValues] = (0,_react_17_0_2_react.useState)([]);
|
|
const [isShowModal, setIsshowModal] = (0,_react_17_0_2_react.useState)(false);
|
|
const checkboxOption = [
|
|
{ label: "\u516C\u544A\u680F", value: "announcement" },
|
|
{ label: "\u5B9E\u8BAD\u4F5C\u4E1A", value: "shixun_homework" },
|
|
{ label: "\u666E\u901A\u4F5C\u4E1A", value: "common_homework" },
|
|
((_a2 = user.userInfo) == null ? void 0 : _a2.main_site) && { label: "\u5206\u7EC4\u4F5C\u4E1A", value: "group_homework" },
|
|
{ label: "\u8BD5\u5377", value: "exercise" },
|
|
{ label: "\u95EE\u5377", value: "poll" },
|
|
{ label: "\u6559\u5B66\u8D44\u6599", value: "attachment" },
|
|
{ label: "\u89C6\u9891\u76F4\u64AD", value: "video" },
|
|
{ label: "\u8BA8\u8BBA", value: "board" },
|
|
{ label: "\u5206\u73ED", value: "course_group" },
|
|
{ label: "\u7EDF\u8BA1", value: "statistics" },
|
|
{ label: "\u7B7E\u5230", value: "attendance" },
|
|
((_b2 = user.userInfo) == null ? void 0 : _b2.admin) && { label: "\u6A21\u677F\u7BA1\u7406", value: "template" }
|
|
].filter((item) => {
|
|
var _a3;
|
|
if (!item)
|
|
return false;
|
|
if ((_a3 = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _a3.is_local) {
|
|
return item.label !== "\u89C6\u9891\u76F4\u64AD";
|
|
} else {
|
|
return true;
|
|
}
|
|
});
|
|
const getType = {
|
|
"shixun_homework": "practice",
|
|
"common_homework": "normal",
|
|
"group_homework": "group",
|
|
"program_homework": "hack",
|
|
"hack": "hack",
|
|
"exercise": "exercise"
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a3;
|
|
let course_modules = (_a3 = classroomList.detailLeftMenus) == null ? void 0 : _a3.course_modules;
|
|
if (course_modules) {
|
|
setLeftMenu(JSON.parse(JSON.stringify(course_modules)));
|
|
openMenu();
|
|
}
|
|
}, [classroomList.detailLeftMenus]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
openMenu();
|
|
}, [location.pathname]);
|
|
function getmodules() {
|
|
return LeftMenus_async(this, null, function* () {
|
|
let data = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/${query == null ? void 0 : query.coursesId}/modules_settings.json`,
|
|
{
|
|
method: "get"
|
|
}
|
|
);
|
|
setModulse(data);
|
|
setcheckedValues([...data == null ? void 0 : data.course_module_types]);
|
|
});
|
|
}
|
|
const openMenu = () => {
|
|
var _a3, _b3;
|
|
(_b3 = (_a3 = classroomList.detailLeftMenus) == null ? void 0 : _a3.course_modules) == null ? void 0 : _b3.map((item, key) => {
|
|
if (location.pathname.indexOf(item.category_url) > -1 || specialActive(item)) {
|
|
if (!secondOpen.includes(key))
|
|
secondOpen.push(key);
|
|
setSecondOpen([...secondOpen]);
|
|
}
|
|
});
|
|
};
|
|
const getMenus = () => {
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
};
|
|
const getleftmenus = () => LeftMenus_async(void 0, null, function* () {
|
|
var _a3;
|
|
let data = yield dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
_umi_production_exports.history.push(`${(_a3 = data == null ? void 0 : data.course_modules[0]) == null ? void 0 : _a3.category_url}`);
|
|
});
|
|
const confirm = (content2, okCb) => {
|
|
modal["default"].confirm({
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
icon: /* @__PURE__ */ _react_17_0_2_react.createElement(ExclamationCircleOutlined/* default */.Z, null),
|
|
content: content2,
|
|
okText: "\u786E\u8BA4",
|
|
onOk: () => okCb(),
|
|
cancelText: "\u53D6\u6D88"
|
|
});
|
|
};
|
|
const parentIndexOf = (node, parent) => {
|
|
if (node.localName === parent) {
|
|
return node;
|
|
}
|
|
for (let i = 0, n = node; n = n.parentNode; i++) {
|
|
if (n.localName === parent) {
|
|
return n;
|
|
}
|
|
if (n == document.documentElement) {
|
|
return false;
|
|
}
|
|
}
|
|
};
|
|
const setAppointId = (e) => {
|
|
if (!e)
|
|
return;
|
|
console.log(e, 444);
|
|
const dom = parentIndexOf(e.target, "li");
|
|
dom.setAttribute("id", "appointId");
|
|
};
|
|
const actionClick = (key, val, type, e) => LeftMenus_async(void 0, null, function* () {
|
|
var _a3;
|
|
let res;
|
|
switch (key) {
|
|
case 1:
|
|
const _payload = {
|
|
category_id: type === 2 ? val.root_id : val.id || val.category_id,
|
|
parent_id: type === 2 ? val.category_id : "",
|
|
nodeModules: val,
|
|
type: val.type || val.category_type
|
|
};
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u6DFB\u52A0\u76EE\u5F55",
|
|
selectArrs: _payload,
|
|
cb: () => {
|
|
getMenus();
|
|
}
|
|
}
|
|
});
|
|
break;
|
|
case 2:
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u76EE\u5F55\u91CD\u547D\u540D",
|
|
selectArrs: {
|
|
name: val.category_name || val.name,
|
|
category_id: val.category_id,
|
|
main_id: val.id,
|
|
category_type: val.category_type
|
|
},
|
|
cb: () => {
|
|
getMenus();
|
|
}
|
|
}
|
|
});
|
|
break;
|
|
case 3:
|
|
confirm(/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u9690\u85CF\u540E\u5C06\u4E0D\u518D\u663E\u793A\u6B64\u6A21\u5757,", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u540E\u7EED\u53EF\u5728\u8BFE\u5802\u8BBE\u7F6E\u4E2D\u91CD\u65B0\u52FE\u9009\u6A21\u5757\u6062\u590D\u663E\u793A"), () => LeftMenus_async(void 0, null, function* () {
|
|
res = yield (0,classrooms/* hiddenModule */.nX)({
|
|
id: val.id
|
|
});
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
}
|
|
}));
|
|
break;
|
|
case 4:
|
|
res = yield (0,classrooms/* stickyModule */.yd)({ id: val.id });
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
}
|
|
break;
|
|
case 5:
|
|
confirm(/* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u8BE5\u76EE\u5F55\u4E0B\u7684\u5185\u5BB9\u5C06\u88AB\u79FB\u52A8\u5230", ((_a3 = ["exercise", "board", "attachment"]) == null ? void 0 : _a3.includes(val.category_type)) ? "\u7236" : "\u672A\u5206\u914D", "\u76EE\u5F55,", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u5220\u9664?"), () => LeftMenus_async(void 0, null, function* () {
|
|
var _a4, _b3;
|
|
if (val.category_type === "board") {
|
|
res = yield (0,classrooms/* deleteBoardCategory */.i)({
|
|
id: val.category_id
|
|
});
|
|
} else {
|
|
res = yield (0,classrooms/* deleteSecondCategory */.Z0)({
|
|
id: val.category_id
|
|
});
|
|
}
|
|
if (res.status === 0) {
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
if (val.category_type === "board") {
|
|
let aa = (_a4 = detailLeftMenus == null ? void 0 : detailLeftMenus.course_modules) == null ? void 0 : _a4.filter((item) => (item == null ? void 0 : item.type) === "board");
|
|
_umi_production_exports.history.push(`/classrooms/${query.coursesId}/${val.category_type}/${(_b3 = aa == null ? void 0 : aa[0]) == null ? void 0 : _b3.main_id}`);
|
|
} else {
|
|
_umi_production_exports.history.push(`/classrooms/${query.coursesId}/${val.category_type}`);
|
|
}
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
}
|
|
}));
|
|
break;
|
|
case 6:
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u65B0\u5EFA\u5206\u73ED",
|
|
params: query
|
|
}
|
|
});
|
|
break;
|
|
case 7:
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u5BFC\u51FA\u6210\u7EE9",
|
|
type: val == null ? void 0 : val.name,
|
|
exportType: getType[val == null ? void 0 : val.type] || getType[val == null ? void 0 : val.category_type],
|
|
category_id: val == null ? void 0 : val.category_id,
|
|
isReport: e
|
|
}
|
|
});
|
|
break;
|
|
case 8:
|
|
if (val.type === "shixun_homework" || val.type === "program_homework") {
|
|
_umi_production_exports.history.push(`/classrooms/${query == null ? void 0 : query.coursesId}/exportlist/shixun_work_list`);
|
|
}
|
|
if (val.type === "exercise") {
|
|
_umi_production_exports.history.push(`/classrooms/${query == null ? void 0 : query.coursesId}/exportlist/exercise_score`);
|
|
}
|
|
if (val.type === "common_homework") {
|
|
_umi_production_exports.history.push(`/classrooms/${query == null ? void 0 : query.coursesId}/exportlist/normal_work_list`);
|
|
}
|
|
if (val.type === "group_homework") {
|
|
_umi_production_exports.history.push(`/classrooms/${query == null ? void 0 : query.coursesId}/exportlist/group_work_list`);
|
|
}
|
|
break;
|
|
}
|
|
});
|
|
const showAdd = (text) => {
|
|
if (text === "attendance" || text === "announcement" || text === "poll" || text === "graduation" || text === "course_group" || text === "new_graduation") {
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
};
|
|
const showExport = (val) => {
|
|
const text = (val == null ? void 0 : val.type) || (val == null ? void 0 : val.category_type);
|
|
if (text === "shixun_homework" || text === "common_homework" || text === "program_homework" || text === "exercise" || text === "group_homework" || text === "hack") {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
};
|
|
const content = (val, type) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
{ className: ShixunDetailmodules.leftMenuActions },
|
|
// (val.type != "course_group" && val.main_id || (val.category_type === 'attachment' && type === 2)) &&
|
|
showAdd(val.type) && type <= 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: (e) => actionClick(1, val, type, e) }, "\u65B0\u5EFA\u5B50\u76EE\u5F55"),
|
|
val.type === "course_group" && type === 1 && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: () => actionClick(6, val, type) }, "\u65B0\u5EFA\u5206\u73ED"),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: (e) => actionClick(2, val, type, e) }, "\u91CD\u547D\u540D"),
|
|
val.main_id && !(0,authority/* isAssistant */.Rm)() && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: () => actionClick(3, val, type) }, "\u9690\u85CF"),
|
|
showExport(val) && /* @__PURE__ */ _react_17_0_2_react.createElement(popover/* default */.Z, { destroyTooltipOnHide: true, placement: "right", content: /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShixunDetailmodules.export }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { onClick: () => actionClick(7, val, type) }, "\u5B66\u751F\u6210\u7EE9"), /* @__PURE__ */ _react_17_0_2_react.createElement("p", { onClick: (e) => {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
actionClick(8, val, type);
|
|
} }, "\u5386\u53F2\u5BFC\u51FA")), trigger: "hover" }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: (e) => {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
} }, "\u5BFC\u51FA")),
|
|
val.main_id && !(0,authority/* isAssistant */.Rm)() && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: () => actionClick(4, val, type) }, "\u7F6E\u9876"),
|
|
val.category_id && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "current", onClick: () => actionClick(5, val, type) }, "\u5220\u9664")
|
|
);
|
|
};
|
|
const getLink = (val, type) => {
|
|
if (type === 1) {
|
|
if (val.type === "board") {
|
|
return `/classrooms/${query.coursesId}/${val.type}/${val.main_id}`;
|
|
}
|
|
if (val.type === "graduation") {
|
|
return `/classrooms/${query.coursesId}/graduation_topics`;
|
|
}
|
|
return `/classrooms/${query.coursesId}/${val.type}`;
|
|
} else {
|
|
if (val.category_type === "hack" && type === 3)
|
|
return val.second_category_url;
|
|
if (val.category_type === "messages")
|
|
val.category_type = "board";
|
|
return `/classrooms/${query.coursesId}/${val.category_type}/${val.category_id}`;
|
|
}
|
|
};
|
|
const setDefaultOpen = () => {
|
|
const pathname = location.pathname.split("/");
|
|
setOpenKeys([`${pathname[3]}|${query.coursesId}`]);
|
|
setSelectKeys([`${pathname[3]}|${query.coursesId}`, `${pathname[3]}|${pathname[4]}`]);
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
try {
|
|
const p = sessionStorage._nav_.split(",");
|
|
const p2 = sessionStorage._nav_open_.split(",");
|
|
if (!sessionStorage._nav_open_) {
|
|
setDefaultOpen();
|
|
} else {
|
|
setOpenKeys(p2);
|
|
}
|
|
setSelectKeys(p);
|
|
} catch (e) {
|
|
setDefaultOpen();
|
|
}
|
|
return () => {
|
|
sessionStorage.removeItem("_nav_open_");
|
|
sessionStorage.removeItem("_nav_");
|
|
};
|
|
}, [classroomList.name, location == null ? void 0 : location.pathname]);
|
|
const onDragEnd = (data) => LeftMenus_async(void 0, null, function* () {
|
|
var _a3;
|
|
const { draggableId, source, destination } = data;
|
|
if (!destination)
|
|
return false;
|
|
const arr = draggableId.split("-");
|
|
const rootIndex = arr[1];
|
|
const sourceIndex = arr[2];
|
|
let res;
|
|
if (((_a3 = leftMenu[rootIndex]) == null ? void 0 : _a3.type) === "board") {
|
|
res = yield (0,classrooms/* moveboard */.Ab)({
|
|
id: arr[0],
|
|
position: destination.index + 1
|
|
});
|
|
} else {
|
|
res = yield (0,classrooms/* moveCategory */.Wr)({
|
|
id: arr[0],
|
|
position: destination.index + 1
|
|
});
|
|
}
|
|
if (res.status === 0) {
|
|
let obj;
|
|
if (arr.length === 3) {
|
|
obj = leftMenu[rootIndex]["second_category"][sourceIndex];
|
|
;
|
|
leftMenu[rootIndex]["second_category"].splice(sourceIndex, 1);
|
|
leftMenu[rootIndex]["second_category"].splice(destination.index, 0, obj);
|
|
} else {
|
|
obj = leftMenu[rootIndex]["second_category"][arr[2]]["third_category"][arr[3]];
|
|
leftMenu[rootIndex]["second_category"][arr[2]]["third_category"].splice(arr[3], 1);
|
|
leftMenu[rootIndex]["second_category"][arr[2]]["third_category"].splice(destination.index, 0, obj);
|
|
}
|
|
setLeftMenu([...leftMenu]);
|
|
}
|
|
});
|
|
const specialActive = (v) => {
|
|
return location.pathname.indexOf("student_statistics") > -1 && v.type === "statistics";
|
|
};
|
|
const scrollToBody = () => {
|
|
};
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
Sider,
|
|
{
|
|
width: 264,
|
|
style: { marginTop: 24, height: "auto", background: "none" }
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: ShixunDetailmodules.leftMenu }, /* @__PURE__ */ _react_17_0_2_react.createElement(skeleton/* default */.Z, { loading: detailLeftMenus.course_modules ? false : true }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
open: isShowModal,
|
|
title: "\u8BFE\u5802\u6A21\u5757\u8BBE\u7F6E",
|
|
centered: true,
|
|
onOk: () => LeftMenus_async(void 0, null, function* () {
|
|
if (!(0,authority/* isAdminOrCreator */.aN)()) {
|
|
message/* default */.ZP.info("\u529F\u80FD\u83DC\u5355\u8BBE\u7F6E\u53EA\u6709\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4EE5\u8C03\u6574");
|
|
return;
|
|
}
|
|
if ((checkedValues == null ? void 0 : checkedValues.length) <= 0) {
|
|
message/* default */.ZP.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u8BFE\u5802\u6A21\u5757");
|
|
return;
|
|
}
|
|
let data = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/${query == null ? void 0 : query.coursesId}/update_modules_settings.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
course_module_types: checkedValues
|
|
}
|
|
}
|
|
);
|
|
if ((data == null ? void 0 : data.status) === 0) {
|
|
getleftmenus();
|
|
setIsshowModal(false);
|
|
}
|
|
}),
|
|
onCancel: () => {
|
|
setIsshowModal(false);
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u901A\u8FC7\u52FE\u9009\u53EF\u4EE5\u663E\u793A/\u9690\u85CF\u6A21\u5757"), /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"].Group, { onChange: (checkedValues2) => {
|
|
setcheckedValues([...checkedValues2]);
|
|
}, style: { marginTop: "10px" }, value: checkedValues }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, (_c = modules == null ? void 0 : modules.course_modules) == null ? void 0 : _c.map((item, index) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 6, style: { marginTop: "10px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement(es_checkbox["default"], { value: item.module_type, style: { fontSize: "14px" } }, item.module_name));
|
|
}))))
|
|
), leftMenu == null ? void 0 : leftMenu.map(function(v, k) {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("ul", { key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"li",
|
|
{
|
|
className: location.pathname.indexOf(v.category_url) > -1 || specialActive(v) ? ShixunDetailmodules.actived : "",
|
|
onClick: () => {
|
|
if (location.pathname === v.category_url) {
|
|
if (secondOpen.includes(k)) {
|
|
secondOpen.splice(secondOpen.indexOf(k), 1);
|
|
if (secondOpen.includes(k)) {
|
|
secondOpen.splice(secondOpen.indexOf(k), 1);
|
|
}
|
|
} else {
|
|
secondOpen.push(k);
|
|
}
|
|
setSecondOpen([...secondOpen]);
|
|
} else {
|
|
v.type == "new_graduation" ? window.open(v.category_url) : _umi_production_exports.history.push(v.category_url);
|
|
scrollToBody();
|
|
}
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { style: { padding: "13px 0 13px 24px" }, align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1", className: "pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${SubmenuIcons[v.type]}` }), " ", v.name), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { className: "tr" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ShixunDetailmodules.totalCount }, v.task_count === 0 ? "" : v.task_count), (0,authority/* isAdmins */.eB)() && (v.type !== "statistics" && v.type !== "ecs" && v.type !== "new_graduation") && /* @__PURE__ */ _react_17_0_2_react.createElement(popover/* default */.Z, { getPopupContainer: (trigger) => trigger.parentNode, destroyTooltipOnHide: true, placement: "right", content: () => content(v, 1), trigger: "hover" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ["iconfont icon-sandian", ShixunDetailmodules.actions].join(" ") }))))
|
|
), /* @__PURE__ */ _react_17_0_2_react.createElement(react_beautiful_dnd_esm/* DragDropContext */.Z5, { onDragEnd }, /* @__PURE__ */ _react_17_0_2_react.createElement(react_beautiful_dnd_esm/* Droppable */.bK, { isDropDisabled: (0,authority/* isAdmin */.GJ)() ? false : true, droppableId: String(v.id) }, (provided, snapshot) => {
|
|
var _a3;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"ul",
|
|
LeftMenus_spreadProps(LeftMenus_spreadValues({
|
|
ref: provided.innerRef
|
|
}, provided.droppableProps), {
|
|
onScroll: () => {
|
|
},
|
|
className: secondOpen.includes(k) ? ShixunDetailmodules.open : ""
|
|
}),
|
|
(_a3 = v.second_category) == null ? void 0 : _a3.map(function(val, key) {
|
|
var _a4;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
react_beautiful_dnd_esm/* Draggable */._l,
|
|
{
|
|
draggableId: `${(_a4 = val.category_id) == null ? void 0 : _a4.toString()}-${k}-${key}`,
|
|
index: key,
|
|
key: val.category_id
|
|
},
|
|
(provided2, snapshot2) => /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"div",
|
|
LeftMenus_spreadValues(LeftMenus_spreadValues({
|
|
key,
|
|
ref: provided2.innerRef
|
|
}, provided2.draggableProps), provided2.dragHandleProps),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("li", { onClick: (e) => {
|
|
e.stopPropagation();
|
|
if (thirdOpen.includes(val == null ? void 0 : val.category_id)) {
|
|
thirdOpen.splice(thirdOpen.indexOf(val == null ? void 0 : val.category_id), 1);
|
|
} else {
|
|
thirdOpen.push(val == null ? void 0 : val.category_id);
|
|
}
|
|
setThirdOpen([...thirdOpen]);
|
|
}, className: location.pathname.indexOf(val.second_category_url) > -1 ? ShixunDetailmodules.actived2 : "" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 20 }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: ["font14", ShixunDetailmodules.menuText].join(" "),
|
|
style: { marginLeft: 16, padding: "16px 2px" },
|
|
to: val.second_category_url,
|
|
onClick: (e) => {
|
|
e.preventDefault();
|
|
if (location.pathname.indexOf(val.second_category_url) > -1) {
|
|
} else {
|
|
if (!thirdOpen.includes(key))
|
|
thirdOpen.push(key);
|
|
setThirdOpen([...thirdOpen]);
|
|
if (["shixun_homework", "hack", "common_homework", "group_homework"].includes(val.category_type)) {
|
|
_umi_production_exports.history.replace(`${val.second_category_url}?tabs=0`);
|
|
} else if (["exercise"].includes(val.category_type)) {
|
|
_umi_production_exports.history.replace(val.second_category_url + "?tabs=all");
|
|
} else {
|
|
_umi_production_exports.history.replace(val.second_category_url);
|
|
}
|
|
scrollToBody();
|
|
}
|
|
}
|
|
},
|
|
val.category_name
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { span: 4, className: "tr" }, (0,authority/* isAdmins */.eB)() && v.type.indexOf("statistics") < 0 && (val == null ? void 0 : val.category_name) !== "\u672A\u5206\u914D\u76EE\u5F55" && /* @__PURE__ */ _react_17_0_2_react.createElement(popover/* default */.Z, { autoAdjustOverflow: false, getPopupContainer: (trigger) => trigger.parentNode.parentNode, placement: "right", content: () => content(val, 2), trigger: "hover" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ["iconfont icon-sandian", ShixunDetailmodules.actions].join(" ") })), val.category_count != 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ShixunDetailmodules.totalCount }, val.category_count)))),
|
|
val.third_category && /* @__PURE__ */ _react_17_0_2_react.createElement(react_beautiful_dnd_esm/* DragDropContext */.Z5, { onDragEnd }, /* @__PURE__ */ _react_17_0_2_react.createElement(react_beautiful_dnd_esm/* Droppable */.bK, { isDropDisabled: (0,authority/* isAdmin */.GJ)() ? false : true, droppableId: String(val.category_id) }, (provided3, snapshot3) => {
|
|
var _a5;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"ul",
|
|
LeftMenus_spreadProps(LeftMenus_spreadValues({
|
|
ref: provided3.innerRef
|
|
}, provided3.droppableProps), {
|
|
onScroll: () => {
|
|
},
|
|
className: thirdOpen.includes(val == null ? void 0 : val.category_id) ? ShixunDetailmodules.open : ""
|
|
}),
|
|
(_a5 = val.third_category) == null ? void 0 : _a5.map(function(value, index) {
|
|
var _a6;
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
react_beautiful_dnd_esm/* Draggable */._l,
|
|
{
|
|
draggableId: `${(_a6 = value.category_id) == null ? void 0 : _a6.toString()}-${k}-${key}-${index}`,
|
|
index,
|
|
key: value.category_id
|
|
},
|
|
(provided4, snapshot4) => /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
"li",
|
|
LeftMenus_spreadValues(LeftMenus_spreadValues({
|
|
key: index,
|
|
ref: provided4.innerRef
|
|
}, provided4.draggableProps), provided4.dragHandleProps),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { align: "middle", className: location.pathname.indexOf(value.second_category_url) > -1 && ShixunDetailmodules.actived2 }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: ["font14", ShixunDetailmodules.menuText].join(" "),
|
|
to: getLink(value, 3),
|
|
style: { marginLeft: 9, padding: "16px 0px", width: "85%" },
|
|
onClick: () => {
|
|
scrollToBody();
|
|
}
|
|
},
|
|
value.category_name
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, (0,authority/* isAdmins */.eB)() && /* @__PURE__ */ _react_17_0_2_react.createElement(popover/* default */.Z, { placement: "right", content: () => content(value, 3), trigger: "hover" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ["iconfont icon-sandian", ShixunDetailmodules.actions].join(" ") })), value.category_count != 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ShixunDetailmodules.totalCount }, value.category_count)))
|
|
)
|
|
);
|
|
})
|
|
);
|
|
}))
|
|
)
|
|
);
|
|
})
|
|
);
|
|
})));
|
|
}), (0,authority/* isAdmins */.eB)() && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShixunDetailmodules.st, onClick: () => {
|
|
setIsshowModal(true);
|
|
getmodules();
|
|
} }, " ", /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { marginRight: 6 }, className: "iconfont icon-shezhi6" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "font16" }, "\u8BBE\u7F6E"))))
|
|
);
|
|
};
|
|
/* harmony default export */ var LeftMenus = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading,
|
|
globalSetting,
|
|
user
|
|
}) => ({
|
|
classroomList,
|
|
globalSetting,
|
|
user,
|
|
loading: loading.models.index
|
|
})
|
|
)(ShixunsListPage));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/MoocModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var MoocModalmodules = ({"modal":"modal___g9KyH","tip":"tip___bce7X"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/MoocModal/index.tsx
|
|
var MoocModal_defProp = Object.defineProperty;
|
|
var MoocModal_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var MoocModal_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var MoocModal_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var MoocModal_defNormalProp = (obj, key, value) => key in obj ? MoocModal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var MoocModal_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (MoocModal_hasOwnProp.call(b, prop))
|
|
MoocModal_defNormalProp(a, prop, b[prop]);
|
|
if (MoocModal_getOwnPropSymbols)
|
|
for (var prop of MoocModal_getOwnPropSymbols(b)) {
|
|
if (MoocModal_propIsEnum.call(b, prop))
|
|
MoocModal_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var MoocModal_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 MoocModal_MoocModal = ({ classroomList, user, loading, dispatch }) => {
|
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [form] = es_form["default"].useForm();
|
|
const [name, setname] = (0,_react_17_0_2_react.useState)([]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a2;
|
|
if (classroomList.actionTabs.key === "\u586B\u5199\u6155\u8BFE\u8D44\u6599" && ((_a2 = classroomList.detailTopBanner) == null ? void 0 : _a2.mooc_user_id)) {
|
|
getEditData();
|
|
}
|
|
}, [classroomList.actionTabs.key, (_a = classroomList.detailTopBanner) == null ? void 0 : _a.mooc_user_id]);
|
|
const getEditData = () => MoocModal_async(void 0, null, function* () {
|
|
var _a2, _b2;
|
|
const res = yield (0,classrooms/* getMoocEditData */.ih)({ coursesId: params.coursesId, user_id: (_a2 = classroomList.detailTopBanner) == null ? void 0 : _a2.mooc_user_id });
|
|
if ((res == null ? void 0 : res.status) > -1) {
|
|
form.setFieldsValue(MoocModal_spreadValues({}, res == null ? void 0 : res.mooc_user));
|
|
setname((_b2 = res == null ? void 0 : res.mooc_user) == null ? void 0 : _b2.name);
|
|
}
|
|
});
|
|
const handleOk = () => MoocModal_async(void 0, null, function* () {
|
|
var _a2, _b2;
|
|
yield form.validateFields();
|
|
setConfirmLoading(true);
|
|
const isEdit = !!((_a2 = classroomList.detailTopBanner) == null ? void 0 : _a2.mooc_user_id);
|
|
const query = MoocModal_spreadValues({
|
|
coursesId: params.coursesId,
|
|
user_id: (_b2 = classroomList.detailTopBanner) == null ? void 0 : _b2.mooc_user_id
|
|
}, form.getFieldsValue());
|
|
const res = isEdit ? yield (0,classrooms/* updateMoocData */.tB)(query) : yield (0,classrooms/* createMoocData */.s)(query);
|
|
setConfirmLoading(false);
|
|
if ((res == null ? void 0 : res.status) > -1) {
|
|
message/* default */.ZP.info(isEdit ? "\u4FEE\u6539\u6210\u529F" : "\u6DFB\u52A0\u6210\u529F");
|
|
dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
});
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u586B\u5199\u8D44\u6599",
|
|
open: classroomList.actionTabs.key === "\u586B\u5199\u6155\u8BFE\u8D44\u6599",
|
|
okText: "\u4FDD\u5B58",
|
|
cancelText: "\u53D6\u6D88",
|
|
width: 760,
|
|
bodyStyle: { minHeight: 150 },
|
|
confirmLoading,
|
|
className: MoocModalmodules.modal,
|
|
onOk: handleOk,
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "pl30 pr30" }, !((_b = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _b.third_part_login_url) ? /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: MoocModalmodules.tip }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-tianxiedisanfangmuke font14 mr5 icon-jingshi1 c-yellow-feb" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "1.\u8BF7\u586B\u5199\u4F60\u5728"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-light-primary" }, (_c = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _c.third_party_name), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "\u5E73\u53F0\u7684\u8D26\u53F7\u8D44\u6599\uFF1B")), /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "c-grey-333 ml20" }, "2.\u8BE5\u8BFE\u7A0B\u652F\u6301\u4E3A\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u63D0\u4F9B\u6210\u7EE9\uFF0C\u4E3A\u4E86\u4FDD\u8BC1\u4F60\u6210\u7EE9\u7684\u51C6\u786E\u65E0\u8BEF\uFF0C\u8BF7\u5982\u5B9E\u586B\u5199\u76F8\u5173\u4FE1\u606F\u3002")) : /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: MoocModalmodules.tip, style: { height: "50px" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "c-grey-333 ml20" }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-tianxiedisanfangmuke font14 mr5 icon-jingshi1 c-yellow-feb" }), "\u8BE5\u8BFE\u7A0B\u652F\u6301\u4E3A\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u63D0\u4F9B\u6210\u7EE9\uFF0C\u4E3A\u4E86\u4FDD\u8BC1\u4F60\u6210\u7EE9\u7684\u51C6\u786E\u65E0\u8BEF\uFF0C\u8BF7\u5982\u5B9E\u586B\u5199\u76F8\u5173\u4FE1\u606F\u3002")), ((_d = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _d.need_third_part_logined) && /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "\u70B9\u51FB"), /* @__PURE__ */ _react_17_0_2_react.createElement("a", { target: "_blank", href: (_e = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _e.third_part_login_url }, "\u7231\u8BFE\u7A0B\uFF08\u4E2D\u56FD\u5927\u5B66mooc\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "\u5E73\u53F0\uFF0C\u8FDB\u884C\u767B\u5F55\u6388\u6743"))), ((_f = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _f.third_party_name) === "\u5B66\u5802\u5728\u7EBF" && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_form["default"],
|
|
{
|
|
form,
|
|
labelCol: { span: 6 },
|
|
wrapperCol: { span: 12 },
|
|
labelAlign: "right"
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { label: "\u7528\u6237\u6635\u79F0\uFF1A", name: "name", rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"
|
|
}] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0" })),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { label: "\u7528\u6237id\uFF1A", name: "mooc_user_id", rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u8F93\u5165\u7528\u6237id"
|
|
}] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u7528\u6237id" })),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { label: "\u7528\u6237\u90AE\u7BB1\uFF1A", name: "email", rules: [{ type: "email", message: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7528\u6237\u90AE\u7BB1" }] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u90AE\u7BB1" })),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { label: "\u771F\u5B9E\u59D3\u540D\uFF1A", name: "real_name", rules: [{
|
|
required: true,
|
|
message: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"
|
|
}] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D" })),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { label: "\u624B\u673A\u53F7\uFF1A", name: "phone", rules: [{ pattern: /(^(1[0-9])\d{9}$)/i, message: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u624B\u673A\u53F7" }] }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"], { placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7" }))
|
|
), !((_g = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _g.need_third_part_logined) && /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { style: { fontSize: "30px", color: "#3da440" }, className: "iconfont icon-wanchengjindu mr5" }), "\u6388\u6743\u6210\u529F"), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u6388\u6743\u4FE1\u606F\uFF1A"), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "\u7528\u6237\u6635\u79F0\uFF1A", name), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "\u4F60\u53EF\u4EE5\u70B9\u51FB"), /* @__PURE__ */ _react_17_0_2_react.createElement("a", { target: "_blank", href: (_h = classroomList == null ? void 0 : classroomList.detailTopBanner) == null ? void 0 : _h.third_part_login_url }, "\u7231\u8BFE\u7A0B\uFF08\u4E2D\u56FD\u5927\u5B66mooc\uFF09"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, "\u5E73\u53F0\uFF0C\u91CD\u65B0\u8FDB\u884C\u767B\u5F55\u6388\u6743"))), /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "font14 c-grey-999 mt10 tc" }, "\u203B \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732!"), ((_j = (_i = classroomList.actionTabs) == null ? void 0 : _i.params) == null ? void 0 : _j.showHint) && /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
className: "font14 c-grey-999 mt10",
|
|
defaultChecked: false,
|
|
onChange: (e) => {
|
|
e.target.checked ? window.localStorage.setItem("classrooms-mooc-modal-hint-flag", "1") : window.localStorage.removeItem("classrooms-mooc-modal-hint-flag");
|
|
}
|
|
},
|
|
"\u4E0D\u518D\u63D0\u793A"
|
|
))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_MoocModal = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading,
|
|
user
|
|
}) => ({
|
|
classroomList,
|
|
loading,
|
|
user
|
|
})
|
|
)(MoocModal_MoocModal));
|
|
|
|
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
|
var verifyLogin = __webpack_require__(81261);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/ShareModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var ShareModalmodules = ({"shareModalContainer":"shareModalContainer___glPiP","shareContent":"shareContent___YTYCr","listItem":"listItem___U9gBM","label":"label___RPksG","invitationCode":"invitationCode___K2gpu","code":"code___nEgsJ","first":"first___B4_LD","copy":"copy___rgntz","tips":"tips___EBHVj"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/ShareModal/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
const ShareModal = ({ classroomList, dispatch }) => {
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
const { detailTopBanner } = classroomList;
|
|
if (detailTopBanner.invite_code_halt === 1) {
|
|
message/* default */.ZP.error("\u5DF2\u505C\u7528");
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null);
|
|
}
|
|
const getCopyText = (type) => {
|
|
if (type === "1") {
|
|
(0,util/* copyTextFuc */.RG)(
|
|
`\u3010\u6559\u5B66\u8BFE\u5802\u9080\u8BF7\u3011${detailTopBanner == null ? void 0 : detailTopBanner.copy_teacher_name}\u8001\u5E08\u9080\u8BF7\u60A8\u52A0\u5165\u5934\u6B4C\u5E73\u53F0\u6559\u5B66\u8BFE\u5802-\u300A${detailTopBanner == null ? void 0 : detailTopBanner.name}\u300B\uFF0C\u60A8\u53EF\u4EE5\u590D\u5236\u9080\u8BF7\u7801\uFF0C\u5728\u4E0B\u65B9\u7684\u94FE\u63A5\u4E2D\uFF0C\u70B9\u51FB\u201C\u52A0\u5165\u8BFE\u5802\u201D\u6309\u94AE\uFF0C\u5728\u5F39\u7A97\u4E2D\u8F93\u5165\u9080\u8BF7\u7801\u548C\u9009\u62E9\u8EAB\u4EFD\u540E\uFF0C\u52A0\u5165\u8BE5\u6559\u5B66\u8BFE\u5802\u201D
|
|
\u94FE\u63A5\uFF1A${window.location.origin}/classrooms
|
|
\u9080\u8BF7\u7801\uFF1A${detailTopBanner == null ? void 0 : detailTopBanner.invite_code}`
|
|
);
|
|
}
|
|
if (type === "2") {
|
|
(0,util/* copyTextFuc */.RG)(
|
|
`\u3010\u6559\u5B66\u8BFE\u5802\u9080\u8BF7\u3011${detailTopBanner == null ? void 0 : detailTopBanner.copy_teacher_name}\u8001\u5E08\u9080\u8BF7\u60A8\u52A0\u5165\u5934\u6B4C\u5E73\u53F0\u6559\u5B66\u8BFE\u5802-\u300A${detailTopBanner == null ? void 0 : detailTopBanner.name}\u300B\uFF0C\u60A8\u53EF\u4EE5\u8BBF\u95EE\u4E0B\u65B9\u7684\u94FE\u63A5\uFF0C\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BE5\u6559\u5B66\u8BFE\u5802\u3002\u201D
|
|
\u94FE\u63A5\uFF1A${window.location.origin}/classrooms/${params.coursesId}?code=${detailTopBanner == null ? void 0 : detailTopBanner.invite_code}`
|
|
);
|
|
}
|
|
};
|
|
const onCancel = () => {
|
|
dispatch({
|
|
type: "classroomList/save",
|
|
payload: {
|
|
shareStatus: false
|
|
}
|
|
});
|
|
};
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
width: 800,
|
|
title: "\u5206\u4EAB\u8BFE\u5802",
|
|
open: true,
|
|
className: ShareModalmodules.shareModalContainer,
|
|
footer: [],
|
|
onCancel
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.shareContent }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.listItem }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.label }, "\u5206\u4EAB\u65B9\u5F0F\u4E00\uFF1A\u5206\u4EAB\u9080\u8BF7\u7801"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.invitationCode }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: `${ShareModalmodules.first} ${ShareModalmodules.code}` }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, detailTopBanner.invite_code)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { onClick: () => getCopyText("1"), className: ShareModalmodules.copy }, "\u590D\u5236\u9080\u8BF7\u7801")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.tips }, "\u901A\u8FC7\u9080\u8BF7\u7801\u52A0\u5165\u8BFE\u5802\u65F6\uFF0C\u53EF\u4EE5\u9009\u62E9\u52A0\u5165\u8BFE\u5802\u7684\u8EAB\u4EFD\uFF08\u9009\u62E9\u6559\u5E08\u6216\u52A9\u6559\u65F6\uFF0C\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\uFF09")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.listItem }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.label }, "\u5206\u4EAB\u65B9\u5F0F\u4E8C\uFF1A\u5206\u4EAB\u94FE\u63A5", detailTopBanner.invite_code_halt === 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u9080\u8BF7\u94FE\u63A5\u5DF2\u7ECF\u5BF9\u5B66\u751F\u7981\u7528\uFF0C\u65E0\u6CD5\u4F7F\u7528\u5206\u4EAB\u65B9\u5F0F")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.invitationCode }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.code }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, window.location.origin, "/classrooms/", params.coursesId, "?code=", detailTopBanner.invite_code)), detailTopBanner.invite_code_halt !== 2 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.copy, onClick: () => getCopyText("2") }, "\u590D\u5236\u94FE\u63A5")), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShareModalmodules.tips }, "\u901A\u8FC7\u5206\u4EAB\u94FE\u63A5\u8BBF\u95EE\u8BFE\u5802\u65F6\uFF0C\u5DF2\u767B\u5F55\u7528\u6237\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BFE\u5802\uFF0C\u672A\u6CE8\u518C/\u767B\u5F55\u7528\u6237\u5728\u6CE8\u518C/\u767B\u5F55\u540E\u53EF\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u8BFE\u5802\u3002")))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_ShareModal = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(ShareModal));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyRecordModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var CopyRecordModalmodules = ({});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyRecordModal/index.tsx
|
|
var CopyRecordModal_defProp = Object.defineProperty;
|
|
var CopyRecordModal_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var CopyRecordModal_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var CopyRecordModal_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var CopyRecordModal_defNormalProp = (obj, key, value) => key in obj ? CopyRecordModal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var CopyRecordModal_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (CopyRecordModal_hasOwnProp.call(b, prop))
|
|
CopyRecordModal_defNormalProp(a, prop, b[prop]);
|
|
if (CopyRecordModal_getOwnPropSymbols)
|
|
for (var prop of CopyRecordModal_getOwnPropSymbols(b)) {
|
|
if (CopyRecordModal_propIsEnum.call(b, prop))
|
|
CopyRecordModal_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var CopyRecordModal_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 CopyRecordModal = ({ classroomList, user, dispatch }) => {
|
|
const urlParams = (0,_umi_production_exports.useParams)();
|
|
const [params, setParams] = (0,_react_17_0_2_react.useState)({
|
|
page: 1,
|
|
limit: 10
|
|
});
|
|
const [loading, setLoading] = (0,_react_17_0_2_react.useState)(true);
|
|
const [total, setTotal] = (0,_react_17_0_2_react.useState)(0);
|
|
const [tableData, setTableData] = (0,_react_17_0_2_react.useState)([]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u590D\u5236\u8BB0\u5F55") {
|
|
getData(params);
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
const handleChangePage = (param, limit, sorter) => {
|
|
params.page = param == null ? void 0 : param.current;
|
|
params.limit = param == null ? void 0 : param.pageSize;
|
|
setParams(CopyRecordModal_spreadValues({}, params));
|
|
getData(params);
|
|
};
|
|
const getData = (record) => CopyRecordModal_async(void 0, null, function* () {
|
|
setLoading(true);
|
|
const res = yield (0,fetch/* default */.ZP)(`/api/courses/${urlParams == null ? void 0 : urlParams.coursesId}/copy_list.json`, {
|
|
method: "get",
|
|
params: record
|
|
});
|
|
setLoading(false);
|
|
setTotal(res == null ? void 0 : res.total_count);
|
|
setTableData((res == null ? void 0 : res.users) || []);
|
|
});
|
|
const columns = [
|
|
{
|
|
title: "\u59D3\u540D",
|
|
dataIndex: "real_name",
|
|
ellipsis: true,
|
|
width: 120
|
|
},
|
|
{
|
|
title: "\u9662\u6821/\u5355\u4F4D",
|
|
dataIndex: "school_name",
|
|
showSorterTooltip: false,
|
|
ellipsis: true
|
|
},
|
|
{
|
|
title: "\u590D\u5236\u65F6\u95F4",
|
|
dataIndex: "copy_time",
|
|
showSorterTooltip: false,
|
|
width: 176
|
|
}
|
|
];
|
|
const handleOk = () => CopyRecordModal_async(void 0, null, function* () {
|
|
});
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
centered: true,
|
|
title: "\u590D\u5236\u8BB0\u5F55",
|
|
open: classroomList.actionTabs.key === "\u590D\u5236\u8BB0\u5F55",
|
|
width: 760,
|
|
footer: null,
|
|
className: CopyRecordModalmodules.modal,
|
|
onOk: handleOk,
|
|
onCancel: () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
setParams({
|
|
page: 1,
|
|
limit: 10
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
table["default"],
|
|
{
|
|
className: CopyRecordModalmodules.customTable,
|
|
dataSource: tableData,
|
|
scroll: tableData.length > 7 ? { y: 300 } : {},
|
|
bordered: false,
|
|
columns,
|
|
rowClassName: CopyRecordModalmodules.row,
|
|
loading,
|
|
onChange: handleChangePage,
|
|
pagination: {
|
|
pageSize: params.limit,
|
|
total,
|
|
current: params.page,
|
|
showQuickJumper: true,
|
|
hideOnSinglePage: true,
|
|
showSizeChanger: false,
|
|
position: ["bottomCenter"],
|
|
showTotal: (total2) => /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "mr10" }, "\u5171", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-orange" }, total2), "\u6761\u6570\u636E")
|
|
}
|
|
}
|
|
)
|
|
);
|
|
};
|
|
/* harmony default export */ var components_CopyRecordModal = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
user
|
|
}) => ({
|
|
classroomList,
|
|
user
|
|
})
|
|
)(CopyRecordModal));
|
|
|
|
// EXTERNAL MODULE: ./src/assets/images/delete.png
|
|
var images_delete = __webpack_require__(9936);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyClossRoomModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var CopyClossRoomModalmodules = ({"copyCourseMod":"copyCourseMod___aGSAc","explain":"explain___TYv11","copyType":"copyType___MbYAW"});
|
|
// EXTERNAL MODULE: ./src/assets/images/403Qrcode.png
|
|
var _403Qrcode = __webpack_require__(25510);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyClossRoomModal/index.tsx
|
|
var CopyClossRoomModal_defProp = Object.defineProperty;
|
|
var CopyClossRoomModal_defProps = Object.defineProperties;
|
|
var CopyClossRoomModal_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
var CopyClossRoomModal_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var CopyClossRoomModal_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var CopyClossRoomModal_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var CopyClossRoomModal_defNormalProp = (obj, key, value) => key in obj ? CopyClossRoomModal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var CopyClossRoomModal_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (CopyClossRoomModal_hasOwnProp.call(b, prop))
|
|
CopyClossRoomModal_defNormalProp(a, prop, b[prop]);
|
|
if (CopyClossRoomModal_getOwnPropSymbols)
|
|
for (var prop of CopyClossRoomModal_getOwnPropSymbols(b)) {
|
|
if (CopyClossRoomModal_propIsEnum.call(b, prop))
|
|
CopyClossRoomModal_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var CopyClossRoomModal_spreadProps = (a, b) => CopyClossRoomModal_defProps(a, CopyClossRoomModal_getOwnPropDescs(b));
|
|
var CopyClossRoomModal_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 CopyClossRoomModal = ({
|
|
classroomList,
|
|
dispatch,
|
|
openCopyCourse = false,
|
|
copyCourseConfirmLoading = false,
|
|
copyCourseParams,
|
|
setCopyCourseConfirmLoading,
|
|
setOpenCopyCourse,
|
|
setCopyCourseParams
|
|
}) => {
|
|
const query = (0,_umi_production_exports.useParams)();
|
|
const localtion = (0,_umi_production_exports.useLocation)();
|
|
const statusModel = (text = "", text2 = "") => {
|
|
modal["default"].info({
|
|
centered: true,
|
|
icon: /* @__PURE__ */ _react_17_0_2_react.createElement(ExclamationCircleOutlined/* default */.Z, { style: { color: "#faad14" } }),
|
|
width: 460,
|
|
title: "\u63D0\u793A",
|
|
content: /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "tc", style: { marginLeft: -38 } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { textAlign: "center", margin: "12px 0" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, text), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, text2)), /* @__PURE__ */ _react_17_0_2_react.createElement("img", { style: { border: "4px solid #0152d9", borderRadius: "4px" }, src: _403Qrcode, alt: "\u4E8C\u7EF4\u7801", width: 160 })),
|
|
okText: "\u6211\u77E5\u9053\u4E86"
|
|
});
|
|
};
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
open: openCopyCourse,
|
|
confirmLoading: copyCourseConfirmLoading,
|
|
width: 806,
|
|
centered: true,
|
|
title: "\u590D\u5236\u8BFE\u5802",
|
|
okText: "\u786E\u8BA4",
|
|
onOk: () => CopyClossRoomModal_async(void 0, null, function* () {
|
|
var _a, _b;
|
|
let selectVlas = [].concat(...Object.values(copyCourseParams));
|
|
if (selectVlas.length == 0) {
|
|
message/* default */.ZP.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u8BFE\u5802\u5185\u5BB9\u8FDB\u884C\u590D\u5236");
|
|
return;
|
|
}
|
|
setCopyCourseConfirmLoading(true);
|
|
const res = yield (0,classrooms/* duplicateCourse */.S9)(CopyClossRoomModal_spreadProps(CopyClossRoomModal_spreadValues({}, query), {
|
|
course_module_names: selectVlas
|
|
}));
|
|
if ((res == null ? void 0 : res.status) === 2) {
|
|
statusModel("\u9488\u5BF9\u4E00\u4E2A\u8BFE\u5802\u4E00\u5929\u53EA\u53EF\u590D\u5236\u4E00\u6B21,", "\u5982\u679C\u9700\u8981\u590D\u5236\u591A\u6B21\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u3002");
|
|
}
|
|
if ((res == null ? void 0 : res.status) === 3) {
|
|
statusModel("\u60A8\u4ECA\u5929\u590D\u5236\u8BFE\u5802\u7684\u6B21\u6570\u5DF2\u8FBE\u4E0A\u9650\uFF0C", "\u8BF7\u660E\u5929\u518D\u5C1D\u8BD5\u6216\u8054\u7CFB\u8FD0\u8425\u83B7\u53D6\u5E2E\u52A9\u3002");
|
|
}
|
|
if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.identifier) {
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
setOpenCopyCourse(false);
|
|
window.open(`/classrooms/${(_b = res == null ? void 0 : res.data) == null ? void 0 : _b.identifier}/teachers`);
|
|
}
|
|
setCopyCourseConfirmLoading(false);
|
|
}),
|
|
onCancel: () => setOpenCopyCourse(false)
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyClossRoomModalmodules.copyCourseMod }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyClossRoomModalmodules.explain }, "\u8BF4\u660E\uFF1A\u201C\u590D\u5236\u201D\u529F\u80FD\u5C06\u4F1A\u4E3A\u60A8\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u8BFE\u5802\uFF0C\u9009\u4E2D\u7684\u65E7\u8BFE\u5802\u4F5C\u4E1A\u3001\u8003\u8BD5\u3001\u8D44\u6599\u548C\u73ED\u7EA7\u6210\u5458\u7B49\u90FD\u5C06\u590D\u5236\u5230\u65B0\u7684\u8BFE\u5802\u3002"), /* @__PURE__ */ _react_17_0_2_react.createElement("ul", null, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyClossRoomModalmodules.copyType }, "\u8BFE\u4E1A\u8003\u67E5"), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"].Group,
|
|
{
|
|
value: copyCourseParams == null ? void 0 : copyCourseParams.aaa,
|
|
options: [
|
|
{ label: "\u8BFE\u5802\u5B9E\u9A8C", value: "practice" },
|
|
{ label: "\u56FE\u6587\u4F5C\u4E1A", value: "normal" },
|
|
{ label: "\u5206\u7EC4\u4F5C\u4E1A", value: "group" },
|
|
{ label: "\u7F16\u7A0B\u4F5C\u4E1A", value: "hack" },
|
|
{ label: "\u5728\u7EBF\u8003\u8BD5", value: "exercise" }
|
|
],
|
|
onChange: (e) => {
|
|
setCopyCourseParams((val) => CopyClossRoomModal_spreadProps(CopyClossRoomModal_spreadValues({}, val), { aaa: e }));
|
|
}
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyClossRoomModalmodules.copyType }, "\u4EA4\u6D41\u4E92\u52A8"), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"].Group,
|
|
{
|
|
value: copyCourseParams == null ? void 0 : copyCourseParams.bbb,
|
|
options: [
|
|
{ label: "\u95EE\u5377\u8C03\u67E5", value: "poll" },
|
|
{ label: "\u4E92\u52A8\u8BA8\u8BBA", value: "board" },
|
|
{ label: "\u73ED\u7EA7\u4E0E\u5B66\u751F", value: "course_group" }
|
|
],
|
|
onChange: (e) => {
|
|
setCopyCourseParams((val) => CopyClossRoomModal_spreadProps(CopyClossRoomModal_spreadValues({}, val), { bbb: e }));
|
|
}
|
|
}
|
|
)), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyClossRoomModalmodules.copyType }, "\u6559\u5B66\u8D44\u6E90"), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
es_checkbox["default"].Group,
|
|
{
|
|
value: copyCourseParams == null ? void 0 : copyCourseParams.ccc,
|
|
options: [
|
|
{ label: "\u6559\u5B66\u8D44\u6599", value: "attachment" },
|
|
{ label: "\u89C6\u9891\u76F4\u64AD", value: "course_video" }
|
|
],
|
|
onChange: (e) => {
|
|
setCopyCourseParams((val) => CopyClossRoomModal_spreadProps(CopyClossRoomModal_spreadValues({}, val), { ccc: e }));
|
|
}
|
|
}
|
|
))))
|
|
);
|
|
};
|
|
/* harmony default export */ var components_CopyClossRoomModal = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(CopyClossRoomModal));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyingClossRoomModal/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var CopyingClossRoomModalmodules = ({"copyWarp":"copyWarp___uxCLd"});
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/CopyingClossRoomModal/index.tsx
|
|
|
|
|
|
|
|
const CopyingClossRoomModal_CopyClossRoomModal = ({ classroomList, dispatch }) => {
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: CopyingClossRoomModalmodules.copyWarp }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { src: __webpack_require__(/*! @/assets/images/classrooms/copy_classroom.png */ 74265), style: { width: 172, height: 172, marginLeft: 60 } }), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { style: { marginTop: 17, color: "#fff", textAlign: "center" } }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u8BFE\u5802\u5185\u5BB9\u6B63\u5728\u590D\u5236\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u2026"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, "\u5B8C\u6210\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u5448\u73B0\u6700\u65B0\u7684\u8BFE\u5802\u5185\u5BB9\u3002"))));
|
|
};
|
|
/* harmony default export */ var CopyingClossRoomModal = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading
|
|
}) => ({
|
|
classroomList,
|
|
loading
|
|
})
|
|
)(CopyingClossRoomModal_CopyClossRoomModal));
|
|
|
|
// EXTERNAL MODULE: ./src/components/CodeBox/index.tsx + 1 modules
|
|
var CodeBox = __webpack_require__(92821);
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/components/DelClassrooms.tsx
|
|
var DelClassrooms_defProp = Object.defineProperty;
|
|
var DelClassrooms_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var DelClassrooms_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var DelClassrooms_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var DelClassrooms_defNormalProp = (obj, key, value) => key in obj ? DelClassrooms_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var DelClassrooms_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (DelClassrooms_hasOwnProp.call(b, prop))
|
|
DelClassrooms_defNormalProp(a, prop, b[prop]);
|
|
if (DelClassrooms_getOwnPropSymbols)
|
|
for (var prop of DelClassrooms_getOwnPropSymbols(b)) {
|
|
if (DelClassrooms_propIsEnum.call(b, prop))
|
|
DelClassrooms_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var DelClassrooms_objRest = (source, exclude) => {
|
|
var target = {};
|
|
for (var prop in source)
|
|
if (DelClassrooms_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
target[prop] = source[prop];
|
|
if (source != null && DelClassrooms_getOwnPropSymbols)
|
|
for (var prop of DelClassrooms_getOwnPropSymbols(source)) {
|
|
if (exclude.indexOf(prop) < 0 && DelClassrooms_propIsEnum.call(source, prop))
|
|
target[prop] = source[prop];
|
|
}
|
|
return target;
|
|
};
|
|
var DelClassrooms_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 = (_a) => {
|
|
var _b = _a, { classroomList, dispatch, match, location, user } = _b, props = DelClassrooms_objRest(_b, ["classroomList", "dispatch", "match", "location", "user"]);
|
|
const query = (0,_umi_production_exports.useParams)();
|
|
const [confirmLoading, setConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(false);
|
|
const delBox = (0,_react_17_0_2_react.useRef)(null);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (classroomList.actionTabs.key === "\u5220\u9664\u8BFE\u5802") {
|
|
setVisible(true);
|
|
} else {
|
|
setVisible(false);
|
|
}
|
|
}, [classroomList.actionTabs.key]);
|
|
const cancel = () => {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {}
|
|
});
|
|
};
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
modal["default"],
|
|
{
|
|
width: 460,
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
open: visible,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
destroyOnClose: true,
|
|
confirmLoading,
|
|
onOk: () => DelClassrooms_async(void 0, null, function* () {
|
|
var _a2;
|
|
if ((_a2 = delBox.current) == null ? void 0 : _a2.onVerify())
|
|
return;
|
|
setConfirmLoading(true);
|
|
const res = yield (0,classrooms/* deleteCourse */.A)(DelClassrooms_spreadValues({}, query));
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
_umi_production_exports.history.replace("/classrooms/index");
|
|
}
|
|
setConfirmLoading(false);
|
|
}),
|
|
onCancel: () => {
|
|
cancel();
|
|
}
|
|
},
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("p", { style: { color: "#DD0000" } }, "\u5220\u9664\u8BFE\u5802\u4F1A\u6E05\u9664\u8BFE\u5802\u5185\u6240\u6709\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(CodeBox/* default */.Z, { ref: (el) => delBox.current = el })
|
|
);
|
|
};
|
|
/* harmony default export */ var DelClassrooms = ((0,_umi_production_exports.connect)(
|
|
({ classroomList, user }) => ({
|
|
classroomList,
|
|
user
|
|
})
|
|
)(DelShixun));
|
|
|
|
;// CONCATENATED MODULE: ./src/layouts/ShixunDetail/index.tsx
|
|
/* provided dependency */ var ShixunDetail_React = __webpack_require__(/*! react */ 59301);
|
|
var ShixunDetail_defProp = Object.defineProperty;
|
|
var ShixunDetail_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
var ShixunDetail_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var ShixunDetail_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
var ShixunDetail_defNormalProp = (obj, key, value) => key in obj ? ShixunDetail_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
var ShixunDetail_spreadValues = (a, b) => {
|
|
for (var prop in b || (b = {}))
|
|
if (ShixunDetail_hasOwnProp.call(b, prop))
|
|
ShixunDetail_defNormalProp(a, prop, b[prop]);
|
|
if (ShixunDetail_getOwnPropSymbols)
|
|
for (var prop of ShixunDetail_getOwnPropSymbols(b)) {
|
|
if (ShixunDetail_propIsEnum.call(b, prop))
|
|
ShixunDetail_defNormalProp(a, prop, b[prop]);
|
|
}
|
|
return a;
|
|
};
|
|
var ShixunDetail_objRest = (source, exclude) => {
|
|
var target = {};
|
|
for (var prop in source)
|
|
if (ShixunDetail_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
target[prop] = source[prop];
|
|
if (source != null && ShixunDetail_getOwnPropSymbols)
|
|
for (var prop of ShixunDetail_getOwnPropSymbols(source)) {
|
|
if (exclude.indexOf(prop) < 0 && ShixunDetail_propIsEnum.call(source, prop))
|
|
target[prop] = source[prop];
|
|
}
|
|
return target;
|
|
};
|
|
var ShixunDetail_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 { Content } = layout["default"];
|
|
const ShixunDetail_ShixunsListPage = (_a) => {
|
|
var _b = _a, {
|
|
classroomList,
|
|
globalSetting,
|
|
shixunHomeworks,
|
|
user,
|
|
loading,
|
|
dispatch
|
|
} = _b, props = ShixunDetail_objRest(_b, [
|
|
"classroomList",
|
|
"globalSetting",
|
|
"shixunHomeworks",
|
|
"user",
|
|
"loading",
|
|
"dispatch"
|
|
]);
|
|
var _a2, _b2, _c, _d, _e, _f, _g, _h;
|
|
const query = (0,_umi_production_exports.useParams)();
|
|
const { detailTopBanner, detailLeftMenus, shareStatus } = classroomList;
|
|
const { userInfo } = user;
|
|
const [openKeys, setOpenKeys] = (0,_react_17_0_2_react.useState)(["shixun_homework|1309"]);
|
|
const [usetitle, setUseTitle] = (0,_react_17_0_2_react.useState)();
|
|
const [ischeck, setIsCheck] = (0,_react_17_0_2_react.useState)(false);
|
|
const [isshow, setisshow] = (0,_react_17_0_2_react.useState)(false);
|
|
const [modalVisble, setModalVisible] = (0,_react_17_0_2_react.useState)(false);
|
|
const [modalVisble1, setModalVisible1] = (0,_react_17_0_2_react.useState)(false);
|
|
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(false);
|
|
const [tipsVisible, setTipsVisible] = (0,_react_17_0_2_react.useState)(false);
|
|
const [openCopyCourse, setOpenCopyCourse] = (0,_react_17_0_2_react.useState)(false);
|
|
const [copyCourseParams, setCopyCourseParams] = (0,_react_17_0_2_react.useState)({
|
|
aaa: ["practice", "exercise"],
|
|
bbb: [],
|
|
ccc: ["attachment"]
|
|
});
|
|
const [copyCourseConfirmLoading, setCopyCourseConfirmLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
const localtion = (0,_umi_production_exports.useLocation)();
|
|
const [searchParams] = (0,_umi_production_exports.useSearchParams)();
|
|
console.log("------", searchParams.get("code"));
|
|
const actionArr = [
|
|
{ name: "\u6DFB\u52A0\u8001\u5E08", icon: /* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "mr5 iconfont icon-tianjialaoshi1" }) },
|
|
{ name: "\u6DFB\u52A0\u52A9\u6559", icon: /* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "mr5 iconfont icon-tianjiazhujiao1" }) },
|
|
{ name: "\u6DFB\u52A0\u5B66\u751F", icon: /* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "mr5 iconfont icon-tianjiaxuesheng1" }) }
|
|
].filter((item) => {
|
|
if ((0,authority/* isAssistant */.Rm)()) {
|
|
return item.name !== "\u6DFB\u52A0\u8001\u5E08";
|
|
} else {
|
|
return true;
|
|
}
|
|
});
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
dispatch({
|
|
type: "globalSetting/delayTipToggle",
|
|
payload: true
|
|
});
|
|
return () => {
|
|
dispatch({
|
|
type: "globalSetting/delayTipToggle",
|
|
payload: false
|
|
});
|
|
};
|
|
}, []);
|
|
const [classroomscloseisshow, setclassroomscloseisshow] = (0,_react_17_0_2_react.useState)(false);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
let time = dayjs_min_default()().add(0, "days").unix();
|
|
let lasttime = localStorage.getItem("classroomsclose");
|
|
if (!lasttime) {
|
|
setclassroomscloseisshow(true);
|
|
return;
|
|
}
|
|
if (time > parseInt(lasttime)) {
|
|
setclassroomscloseisshow(true);
|
|
}
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
setVisible((detailTopBanner == null ? void 0 : detailTopBanner.student_count) >= 10 ? false : isshow);
|
|
return () => {
|
|
setVisible(false);
|
|
};
|
|
}, [detailTopBanner]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
setTimeout(() => {
|
|
setVisible(false);
|
|
}, 5e3);
|
|
}, []);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
const now = dayjs_min_default()();
|
|
const recordStr = `${userInfo == null ? void 0 : userInfo.login}-${query.coursesId}-date`;
|
|
let record = localStorage.getItem(recordStr);
|
|
if (record) {
|
|
if (now <= dayjs_min_default()(record)) {
|
|
setTipsVisible(false);
|
|
} else {
|
|
localStorage.removeItem(recordStr);
|
|
setTipsVisible(true);
|
|
}
|
|
} else {
|
|
setTipsVisible(true);
|
|
}
|
|
return () => {
|
|
setTipsVisible(false);
|
|
};
|
|
}, [detailTopBanner]);
|
|
const closeTips = () => {
|
|
const recordStr = `${userInfo == null ? void 0 : userInfo.login}-${query.coursesId}-date`;
|
|
const date = dayjs_min_default()().endOf("day").format("YYYY-MM-DD HH:mm:ss");
|
|
localStorage.setItem(recordStr, date);
|
|
setTipsVisible(false);
|
|
};
|
|
const IdentityChangeText = {
|
|
5: {
|
|
text: "\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B",
|
|
url: `/api/courses/${query.coursesId}/switch_to_student.json`
|
|
},
|
|
6: {
|
|
text: "\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u6559\u5E08\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",
|
|
url: `/api/courses/${query.coursesId}/switch_to_teacher.json`
|
|
},
|
|
7: {
|
|
text: "\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u52A9\u6559\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",
|
|
url: `/api/courses/${query.coursesId}/switch_to_assistant.json`
|
|
}
|
|
};
|
|
const getMenus = () => {
|
|
dispatch({
|
|
type: "classroomList/getClassroomLeftMenus",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
};
|
|
const getTopBar = () => ShixunDetail_async(void 0, null, function* () {
|
|
let res = yield dispatch({
|
|
type: "classroomList/getClassroomTopBanner",
|
|
payload: { id: query.coursesId }
|
|
});
|
|
if ((res == null ? void 0 : res.name) && !(res == null ? void 0 : res.copy_completed)) {
|
|
setTimeout(() => {
|
|
getTopBar();
|
|
}, 1e4);
|
|
} else {
|
|
getMenus();
|
|
}
|
|
});
|
|
function addinfo(code) {
|
|
return ShixunDetail_async(this, null, function* () {
|
|
let res1 = yield (0,fetch/* default */.ZP)(`/api/courses/get_pro_info.json`, {
|
|
method: "get",
|
|
params: {
|
|
invite_code: code
|
|
}
|
|
});
|
|
if ((res1 == null ? void 0 : res1.need_pro_auth) && !(res1 == null ? void 0 : res1.existing_student) && !(res1 == null ? void 0 : res1.teacher_already_exist)) {
|
|
dispatch({
|
|
type: "account/setActionTabs",
|
|
payload: {
|
|
key: "Account-ProfessionalAuth",
|
|
code,
|
|
checkedList: [3]
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
const res = yield (0,fetch/* default */.ZP)(`/api/courses/apply_to_join_course.json`, {
|
|
method: "post",
|
|
body: {
|
|
invite_code: code,
|
|
student: 1
|
|
}
|
|
});
|
|
if ((res == null ? void 0 : res.status) === -4) {
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u5230\u671F\u63D0\u793A"
|
|
}
|
|
});
|
|
}
|
|
if (res.status === 401) {
|
|
localStorage.setItem("addinfo", "1");
|
|
localStorage.setItem(
|
|
"classromeurl",
|
|
location.pathname + localtion.search
|
|
);
|
|
} else {
|
|
getTopBar();
|
|
getMenus();
|
|
}
|
|
});
|
|
}
|
|
const confirm = (content, okCb) => {
|
|
modal["default"].confirm({
|
|
centered: true,
|
|
title: "\u63D0\u793A",
|
|
icon: /* @__PURE__ */ ShixunDetail_React.createElement(ExclamationCircleOutlined/* default */.Z, null),
|
|
content,
|
|
okText: "\u786E\u8BA4",
|
|
onOk: () => okCb(),
|
|
cancelText: "\u53D6\u6D88"
|
|
});
|
|
};
|
|
const handleClick = (key) => ShixunDetail_async(void 0, null, function* () {
|
|
var _a3, _b3;
|
|
let res;
|
|
switch (key) {
|
|
case 0:
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u8BBE\u4E3A\u516C\u5F00/\u79C1\u6709"]);
|
|
let text = /* @__PURE__ */ ShixunDetail_React.createElement("p", null, "\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B", /* @__PURE__ */ ShixunDetail_React.createElement("br", null), "\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F");
|
|
if (detailTopBanner.is_public)
|
|
text = /* @__PURE__ */ ShixunDetail_React.createElement("p", null, "\u60A8\u786E\u5B9A\u8981\u8BBE\u7F6E\u4E3A\u79C1\u6709?");
|
|
confirm(text, () => ShixunDetail_async(void 0, null, function* () {
|
|
res = yield (0,classrooms/* setPublicOrPrivate */.sb)(ShixunDetail_spreadValues({}, query));
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.success("\u8BBE\u7F6E\u6210\u529F");
|
|
getTopBar();
|
|
}
|
|
}));
|
|
break;
|
|
case 1:
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u505C\u7528/\u542F\u7528\u9080\u8BF7\u7801"]);
|
|
if (detailTopBanner == null ? void 0 : detailTopBanner.invite_code) {
|
|
confirm(
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("p", null, "\u8BFE\u5802\u9080\u8BF7\u7801\u505C\u7528\u540E\uFF0C\u7528\u6237\u4E0D\u80FD\u4E3B\u52A8\u52A0\u5165\u8BE5\u8BFE\u5802\u4E86", /* @__PURE__ */ ShixunDetail_React.createElement("br", null), "\u60A8\u662F\u5426\u786E\u8BA4\u505C\u7528?"),
|
|
() => ShixunDetail_async(void 0, null, function* () {
|
|
res = yield (0,classrooms/* setInviteCodeHalt */.L$)(ShixunDetail_spreadValues({}, query));
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.success("\u8BBE\u7F6E\u6210\u529F");
|
|
getTopBar();
|
|
}
|
|
})
|
|
);
|
|
} else {
|
|
res = yield (0,classrooms/* setInviteCodeHalt */.L$)(ShixunDetail_spreadValues({}, query));
|
|
}
|
|
break;
|
|
case 2:
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u7F16\u8F91\u8BFE\u5802"]);
|
|
if (detailTopBanner == null ? void 0 : detailTopBanner.excellent) {
|
|
_umi_production_exports.history.push(`/classrooms/${query.coursesId}/newgolds/settings`);
|
|
} else {
|
|
_umi_production_exports.history.push(`/classrooms/${query.coursesId}/edit`);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (!((_a3 = user.userInfo) == null ? void 0 : _a3.professional_certification)) {
|
|
message/* default */.ZP.warning("\u9700\u8981\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u540E\u624D\u80FD\u590D\u5236\u8BFE\u5802");
|
|
return;
|
|
}
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u590D\u5236\u8BFE\u5802"]);
|
|
setCopyCourseParams({ aaa: ["practice", "exercise"], bbb: [], ccc: ["attachment"] });
|
|
setOpenCopyCourse(true);
|
|
break;
|
|
case 4:
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u5220\u9664\u8BFE\u5802"]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: { key: "\u5220\u9664\u8BFE\u5802" }
|
|
});
|
|
break;
|
|
case 5:
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u5207\u6362\u4E3A\u5B66\u751F"]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: { key: "\u5207\u6362\u4E3A\u5B66\u751F" }
|
|
});
|
|
break;
|
|
case 6:
|
|
case 7:
|
|
modal["default"].confirm({
|
|
centered: true,
|
|
okText: "\u786E\u5B9A",
|
|
cancelText: "\u53D6\u6D88",
|
|
title: "\u5207\u6362\u8EAB\u4EFD",
|
|
content: IdentityChangeText[key]["text"],
|
|
onOk: () => ShixunDetail_async(void 0, null, function* () {
|
|
(0,util/* trackEvent */.L9)([
|
|
"\u6559\u5B66\u8BFE\u5802",
|
|
"\u8BFE\u5802\u8BE6\u60C5",
|
|
key == 6 ? "\u5207\u6362\u4E3A\u8001\u5E08" : " \u5207\u6362\u4E3A\u52A9\u6559"
|
|
]);
|
|
const res2 = yield (0,fetch/* default */.ZP)(IdentityChangeText[key]["url"], {
|
|
method: "post"
|
|
});
|
|
if (res2.status === 0) {
|
|
message/* default */.ZP.success("\u5207\u6362\u6210\u529F");
|
|
window.location.reload();
|
|
}
|
|
})
|
|
});
|
|
break;
|
|
case 8:
|
|
if (detailTopBanner == null ? void 0 : detailTopBanner.invite_code) {
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u9000\u51FA\u8BFE\u5802"]);
|
|
confirm(
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("p", null, "\u9000\u51FA\u540E\u60A8\u5C06\u4E0D\u518D\u662F\u672C\u8BFE\u5802\u7684\u6210\u5458,\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664"),
|
|
() => ShixunDetail_async(void 0, null, function* () {
|
|
res = yield (0,classrooms/* exitCourse */.fN)(ShixunDetail_spreadValues({}, query));
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.success("\u9000\u51FA\u6210\u529F");
|
|
_umi_production_exports.history.push(`/users/${userInfo.login}`);
|
|
}
|
|
})
|
|
);
|
|
} else {
|
|
res = yield (0,classrooms/* setInviteCodeHalt */.L$)(ShixunDetail_spreadValues({}, query));
|
|
}
|
|
break;
|
|
case 9:
|
|
if (!((_b3 = user.userInfo) == null ? void 0 : _b3.professional_certification)) {
|
|
message/* default */.ZP.warning("\u9700\u8981\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u540E\u624D\u80FD\u67E5\u770B\u590D\u5236\u8BB0\u5F55");
|
|
return;
|
|
}
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u590D\u5236\u8BB0\u5F55"
|
|
}
|
|
});
|
|
break;
|
|
}
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.success("\u8BBE\u7F6E\u6210\u529F");
|
|
getTopBar();
|
|
}
|
|
});
|
|
const switchContent = /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: "tc current" }, /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, (detailTopBanner == null ? void 0 : detailTopBanner.switch_to_student) && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(5) }, "\u5207\u6362\u4E3A\u5B66\u751F"), (detailTopBanner == null ? void 0 : detailTopBanner.switch_to_teacher) && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(6) }, "\u5207\u6362\u4E3A\u8001\u5E08"), (detailTopBanner == null ? void 0 : detailTopBanner.switch_to_assistant) && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(7) }, "\u5207\u6362\u4E3A\u52A9\u6559")));
|
|
const renderSign = () => {
|
|
var _a3, _b3, _c2, _d2;
|
|
let str = "";
|
|
if (((detailTopBanner == null ? void 0 : detailTopBanner.switch_to_student) || (detailTopBanner == null ? void 0 : detailTopBanner.switch_to_teacher) || (detailTopBanner == null ? void 0 : detailTopBanner.switch_to_assistant)) && !(detailTopBanner == null ? void 0 : detailTopBanner.excellent)) {
|
|
str = " \u25BC";
|
|
}
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { pointerEvents: str ? "all" : "none" } }, ((_a3 = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _a3.course_role) === 8 && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "c-white ml15" }, "\u5F53\u524D\u8EAB\u4EFD\uFF1A\u8001\u5E08", str), ((_b3 = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _b3.course_role) === 5 && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "c-white ml15" }, "\u5F53\u524D\u8EAB\u4EFD\uFF1A\u8001\u5E08", str), ((_c2 = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _c2.course_role) === 12 && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "c-white ml15" }, "\u5F53\u524D\u8EAB\u4EFD\uFF1A\u52A9\u6559", str), ((_d2 = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _d2.course_role) === 15 && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "c-white ml15" }, "\u5F53\u524D\u8EAB\u4EFD\uFF1A\u5B66\u751F", str));
|
|
};
|
|
const popContent = /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: "tc current" }, (detailTopBanner == null ? void 0 : detailTopBanner.excellent) ? /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(2) }, "\u7F16\u8F91\u8BFE\u5802"), (0,authority/* isAdminOrAuthor */.oF)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(4) }, "\u5220\u9664\u8BFE\u5802")) : /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, (0,authority/* isAdminOrCreator */.aN)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(0) }, (detailTopBanner == null ? void 0 : detailTopBanner.is_public) ? "\u8BBE\u4E3A\u79C1\u6709" : "\u8BBE\u4E3A\u516C\u5F00"), (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(2) }, "\u7F16\u8F91\u8BFE\u5802"), (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(3) }, "\u590D\u5236\u8BFE\u5802"), (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(9) }, "\u590D\u5236\u8BB0\u5F55"), (0,authority/* isStudent */.dE)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(8) }, "\u9000\u51FA\u8BFE\u5802"), (0,authority/* isAdminOrCreator */.aN)() && /* @__PURE__ */ ShixunDetail_React.createElement("p", { onClick: () => handleClick(4) }, "\u5220\u9664\u8BFE\u5802")));
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a3;
|
|
if ((_a3 = user == null ? void 0 : user.userInfo) == null ? void 0 : _a3.course) {
|
|
if ((0,authority/* isStudent */.dE)()) {
|
|
setVisible(false);
|
|
return;
|
|
} else {
|
|
let coursesIds = JSON.parse(localStorage == null ? void 0 : localStorage.getItem("coursesIdstimies"));
|
|
if ((coursesIds == null ? void 0 : coursesIds.length) > 0) {
|
|
let coursesitem = coursesIds.filter(
|
|
(item) => item.coursesId === (query == null ? void 0 : query.coursesId)
|
|
);
|
|
if ((coursesitem == null ? void 0 : coursesitem.length) > 0) {
|
|
if (dayjs_min_default()(coursesitem[0].time).add(
|
|
parseInt(coursesitem[0].Tooltiptype),
|
|
"days"
|
|
) < dayjs_min_default()(/* @__PURE__ */ new Date())) {
|
|
setisshow(true);
|
|
}
|
|
} else {
|
|
setisshow(true);
|
|
}
|
|
} else {
|
|
setisshow(true);
|
|
}
|
|
}
|
|
}
|
|
}, [user]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (searchParams.get("code")) {
|
|
addinfo(searchParams.get("code"));
|
|
} else {
|
|
getTopBar();
|
|
}
|
|
}, [query.coursesId]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
if (window.localStorage.getItem("classrooms-mooc-modal-hint-flag") === "1" || !(detailTopBanner == null ? void 0 : detailTopBanner.third_party_tip) || !(0,authority/* isStudent */.dE)() || !(detailTopBanner == null ? void 0 : detailTopBanner.excellent)) {
|
|
return;
|
|
}
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u586B\u5199\u6155\u8BFE\u8D44\u6599",
|
|
params: { showHint: true }
|
|
}
|
|
});
|
|
}, [detailTopBanner == null ? void 0 : detailTopBanner.third_party_tip]);
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
let pathname = localtion.pathname.split("/")[3];
|
|
if ((pathname == null ? void 0 : pathname.indexOf("graduation")) > -1) {
|
|
pathname = "graduation";
|
|
}
|
|
setOpenKeys([`${pathname}|${query.coursesId}`]);
|
|
}, [localtion.pathname]);
|
|
if (detailTopBanner == null ? void 0 : detailTopBanner.name)
|
|
(0,util/* setDocumentTitle */.Dk)(detailTopBanner == null ? void 0 : detailTopBanner.name);
|
|
const renderCodeTitle = () => {
|
|
if ((detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) === 0) {
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u6210\u5458\u53EF\u4EE5\u901A\u8FC7\u9080\u8BF7\u7801\u4E3B\u52A8\u52A0\u5165\u8BFE\u5802", /* @__PURE__ */ ShixunDetail_React.createElement("br", null), "\u70B9\u51FB\u7ACB\u523B\u590D\u5236\u9080\u8BF7\u7801");
|
|
} else if ((detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) === 2) {
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u5F53\u524D\u9080\u8BF7\u7801\u5DF2\u5BF9\u5B66\u751F\u505C\u7528", /* @__PURE__ */ ShixunDetail_React.createElement("br", null), "\u7528\u6237\u53EA\u80FD\u4EE5\u8001\u5E08/\u52A9\u6559\u8EAB\u4EFD\u7533\u8BF7\u52A0\u5165\u8BFE\u5802");
|
|
}
|
|
return null;
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
var _a3, _b3;
|
|
if (detailTopBanner == null ? void 0 : detailTopBanner.professors) {
|
|
let teachername = "";
|
|
(_a3 = detailTopBanner == null ? void 0 : detailTopBanner.professors) == null ? void 0 : _a3.map((item, index) => {
|
|
var _a4, _b4;
|
|
if (index === ((_a4 = detailTopBanner == null ? void 0 : detailTopBanner.professors) == null ? void 0 : _a4.length) - 1 && ((_b4 = detailTopBanner == null ? void 0 : detailTopBanner.assistants) == null ? void 0 : _b4.length) === 0) {
|
|
teachername += item;
|
|
} else {
|
|
teachername += item + "\u3001";
|
|
}
|
|
});
|
|
(_b3 = detailTopBanner == null ? void 0 : detailTopBanner.assistants) == null ? void 0 : _b3.map((item, index) => {
|
|
var _a4;
|
|
if (index === ((_a4 = detailTopBanner == null ? void 0 : detailTopBanner.assistants) == null ? void 0 : _a4.length) - 1) {
|
|
teachername += item + "\uFF08\u52A9\u6559\uFF09";
|
|
} else {
|
|
teachername += item + "\uFF08\u52A9\u6559\uFF09\u3001";
|
|
}
|
|
});
|
|
setUseTitle(teachername);
|
|
}
|
|
}, [detailTopBanner]);
|
|
const LeftMenu = () => {
|
|
const countNum = detailTopBanner.all_applies_count > 0 ? 24 : 0;
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement("div", { style: { display: "inline-flex", alignItems: "center" } }, (0,authority/* isAdmins */.eB)() && /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.badge, style: { paddingRight: countNum } }, (0,authority/* isAdmins */.eB)() && detailTopBanner.all_applies_count > 0 && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: ShixunDetailmodules.num }, detailTopBanner.all_applies_count > 100 ? "99+" : detailTopBanner.all_applies_count), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
tooltip/* default */.Z,
|
|
{
|
|
zIndex: 10,
|
|
title: /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "c-black" }, "\u65B0\u6536\u5230", detailTopBanner == null ? void 0 : detailTopBanner.all_applies_count, "\u6761\u52A0\u5165\u8BFE\u5802\u7684\u7533\u8BF7", /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: (0,authority/* isAssistant */.Rm)() ? `/classrooms/${query.coursesId}/students?tab=applicant` : `/classrooms/${query.coursesId}/teachers?tab=1`,
|
|
className: "c-orange"
|
|
},
|
|
"\u53BB\u5BA1\u6279"
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"i",
|
|
{
|
|
onClick: closeTips,
|
|
className: "iconfont icon-guanbi1",
|
|
style: {
|
|
fontSize: 12,
|
|
color: "#666",
|
|
marginLeft: 10,
|
|
cursor: "pointer"
|
|
}
|
|
}
|
|
)),
|
|
color: "#FFF",
|
|
key: "#FFF",
|
|
open: detailTopBanner.all_applies_count > 0 && tipsVisible
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
onClick: (e) => {
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
|
|
e.preventDefault();
|
|
return;
|
|
}
|
|
},
|
|
style: { display: "inline-flex", alignItems: "center" },
|
|
className: "c-white",
|
|
to: `/classrooms/${query.coursesId}/course_group`
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "iconfont icon-chengyuanguanli1 mr5" }),
|
|
"\u6210\u5458\u7BA1\u7406"
|
|
)
|
|
)), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
onClick: (e) => {
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
|
|
e.preventDefault();
|
|
return;
|
|
}
|
|
},
|
|
className: (0,authority/* isAdmins */.eB)() ? ShixunDetailmodules.link : ShixunDetailmodules.sLink,
|
|
to: `/classrooms/${query.coursesId}/students`
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u5B66\u751F"),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "ml5" }, detailTopBanner.student_count)
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: ShixunDetailmodules.link,
|
|
onClick: (e) => {
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
|
|
e.preventDefault();
|
|
return;
|
|
}
|
|
},
|
|
to: `/classrooms/${query.coursesId}/teachers`
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u6559\u5E08"),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "ml5" }, detailTopBanner.teacher_count)
|
|
), (0,authority/* isStudent */.dE)() && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
className: "ml40 mr20",
|
|
onClick: () => ShixunDetail_async(void 0, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/apply_to_join_course.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
invite_code: detailTopBanner == null ? void 0 : detailTopBanner.invite_code,
|
|
professor: 1
|
|
}
|
|
}
|
|
);
|
|
if (res) {
|
|
message/* default */.ZP.info(res == null ? void 0 : res.message);
|
|
}
|
|
})
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(tooltip/* default */.Z, { title: "\u7533\u8BF7\u6210\u4E3A\u6559\u5E08" }, /* @__PURE__ */ ShixunDetail_React.createElement("a", { className: "c-white iconfont icon-shenqingchengweijiaoshi" }))
|
|
), (0,authority/* isStudent */.dE)() && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
onClick: () => ShixunDetail_async(void 0, null, function* () {
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
`/api/courses/apply_to_join_course.json`,
|
|
{
|
|
method: "post",
|
|
body: {
|
|
invite_code: detailTopBanner == null ? void 0 : detailTopBanner.invite_code,
|
|
assistant_professor: 1
|
|
}
|
|
}
|
|
);
|
|
if (res) {
|
|
message/* default */.ZP.info(res == null ? void 0 : res.message);
|
|
}
|
|
})
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(tooltip/* default */.Z, { title: "\u7533\u8BF7\u6210\u4E3A\u52A9\u6559" }, /* @__PURE__ */ ShixunDetail_React.createElement("a", { className: "c-white iconfont icon-shenqingchengweizhujiao" }))
|
|
));
|
|
};
|
|
const copyText = `\u3010\u6559\u5B66\u8BFE\u5802\u9080\u8BF7\u3011${detailTopBanner == null ? void 0 : detailTopBanner.copy_teacher_name}\u8001\u5E08\u9080\u8BF7\u60A8\u52A0\u5165\u5934\u6B4C\u5E73\u53F0\u6559\u5B66\u8BFE\u5802-\u300A${detailTopBanner == null ? void 0 : detailTopBanner.name}\u300B\uFF0C\u60A8\u53EF\u4EE5\u590D\u5236\u9080\u8BF7\u7801\uFF0C\u5728\u4E0B\u65B9\u7684\u94FE\u63A5\u4E2D\uFF0C\u70B9\u51FB\u201C\u52A0\u5165\u8BFE\u5802\u201D\u6309\u94AE\u52A0\u5165\u8BE5\u6559\u5B66\u8BFE\u5802\u3002
|
|
\u94FE\u63A5\uFF1Ahttps://www.educoder.net/classrooms/${query.coursesId}?code=${detailTopBanner == null ? void 0 : detailTopBanner.invite_code}
|
|
\u9080\u8BF7\u7801\uFF1A${detailTopBanner == null ? void 0 : detailTopBanner.invite_code}`;
|
|
const onShare = () => {
|
|
dispatch({
|
|
type: "classroomList/save",
|
|
payload: {
|
|
shareStatus: true
|
|
}
|
|
});
|
|
};
|
|
const handleCopy = () => {
|
|
handleClick(3);
|
|
};
|
|
const showYourCurrentClass = (0,_react_17_0_2_react.useMemo)(() => {
|
|
var _a3;
|
|
const accessibleLeftMenu = (_a3 = detailLeftMenus == null ? void 0 : detailLeftMenus.course_modules) == null ? void 0 : _a3.map((item) => item == null ? void 0 : item.type);
|
|
if ((0,authority/* isStudent */.dE)() && !(detailTopBanner == null ? void 0 : detailTopBanner.excellent) && (detailTopBanner == null ? void 0 : detailTopBanner.group_name) && (accessibleLeftMenu == null ? void 0 : accessibleLeftMenu.includes("course_group"))) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}, [user, classroomList]);
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement("section", { className: ShixunDetailmodules.bg }, /* @__PURE__ */ ShixunDetail_React.createElement("section", { className: ShixunDetailmodules.classroomInfo }, /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: "edu-container" }, /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: ShixunDetailmodules.title }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.titleLeft }, /* @__PURE__ */ ShixunDetail_React.createElement("strong", null, detailTopBanner.name), (detailTopBanner == null ? void 0 : detailTopBanner.excellent) && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "tag-style bg-orange ml20" }, "\u5F00\u653E\u8BFE\u7A0B"), !(0,authority/* courseIsEnd */.aQ)() && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "tag-style bg-blue ml20" }, (detailTopBanner == null ? void 0 : detailTopBanner.is_public) ? "\u516C\u5F00" : "\u79C1\u6709"), (0,authority/* courseIsEnd */.aQ)() && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "tag-style bg-grey-ede c-light-black ml20" }, "\u5DF2\u7ED3\u675F"), /* @__PURE__ */ ShixunDetail_React.createElement("br", null), !!detailTopBanner.credit && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u5B66\u5206 ", detailTopBanner.credit), !!detailTopBanner.class_period && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "ml5 mr5" }, "|"), "\u5B66\u65F6 ", detailTopBanner.class_period), !!detailTopBanner.visits && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "ml5 mr5" }, "|"), "\u8BFE\u5802\u8BBF\u95EE\u91CF ", detailTopBanner.visits)), detailTopBanner.copy_completed && document.domain !== "kepukehuan.educoder.net" && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"div",
|
|
{
|
|
className: ShixunDetailmodules.titleRight,
|
|
style: { height: "20px", display: "flex", alignItems: "center" }
|
|
},
|
|
((_a2 = userInfo == null ? void 0 : userInfo.course) == null ? void 0 : _a2.course_role) === null && (userInfo == null ? void 0 : userInfo.identity) === "teacher" && (detailTopBanner == null ? void 0 : detailTopBanner.allow_copy) && /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.copy }, /* @__PURE__ */ ShixunDetail_React.createElement("span", { onClick: handleCopy }, "\u590D\u5236\u8BFE\u5802"), /* @__PURE__ */ ShixunDetail_React.createElement("span", null, detailTopBanner == null ? void 0 : detailTopBanner.copied_courses_count)),
|
|
(detailTopBanner == null ? void 0 : detailTopBanner.course_identity) < 6 && !(detailTopBanner == null ? void 0 : detailTopBanner.excellent) && (detailTopBanner == null ? void 0 : detailTopBanner.show_invite_code) && /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, /* @__PURE__ */ ShixunDetail_React.createElement("strong", { className: "font14" }, "\u9080\u8BF7\u7801\uFF1A"), (detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) === 1 && /* @__PURE__ */ ShixunDetail_React.createElement("strong", { className: "font14" }, /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u5DF2\u505C\u7528")), (detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) !== 1 && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
popconfirm/* default */.Z,
|
|
{
|
|
zIndex: 1,
|
|
cancelText: "",
|
|
overlayClassName: ShixunDetailmodules.tipJoin,
|
|
overlayStyle: { width: 270 },
|
|
open: visible,
|
|
placement: "bottom",
|
|
title: /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
style: {
|
|
color: "#000",
|
|
fontSize: 14,
|
|
fontWeight: 200
|
|
}
|
|
},
|
|
"\u590D\u5236\u5E76\u53D1\u7ED9\u5B66\u751F\uFF0C\u9080\u8BF7\u5B66\u751F\u5FEB\u901F\u52A0\u5165",
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("br", null),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"div",
|
|
{
|
|
style: {
|
|
borderBottom: "1px solid #efefef",
|
|
marginTop: "12px",
|
|
marginLeft: -18
|
|
}
|
|
}
|
|
),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(row/* default */.Z, { className: "mt10" }, /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
col/* default */.Z,
|
|
{
|
|
flex: "1",
|
|
style: { textAlign: "right", marginRight: 10 }
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
es_checkbox["default"],
|
|
{
|
|
style: { marginLeft: -18, color: "#999" },
|
|
onChange: (e) => {
|
|
setIsCheck(e.target.checked);
|
|
}
|
|
},
|
|
detailTopBanner.student_count === 0 ? "\u4ECA\u5929\u4E0D\u518D\u63D0\u793A" : "\u672C\u5468\u4E0D\u518D\u63D0\u793A"
|
|
)
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(col/* default */.Z, null, /* @__PURE__ */ ShixunDetail_React.createElement(es_button/* default */.ZP, { size: "small", type: "primary" }, /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
style: { cursor: "pointer" },
|
|
onClick: () => {
|
|
(0,util/* copyTextFuc */.RG)(copyText);
|
|
if (ischeck) {
|
|
if (localStorage.getItem(
|
|
"coursesIdstimies"
|
|
)) {
|
|
let aa = JSON.parse(
|
|
localStorage.getItem(
|
|
"coursesIdstimies"
|
|
)
|
|
);
|
|
if (aa.filter(
|
|
(item) => item.coursesId === query.coursesId
|
|
).length > 0) {
|
|
} else {
|
|
aa.push({
|
|
coursesId: query.coursesId,
|
|
time: /* @__PURE__ */ new Date(),
|
|
Tooltiptype: detailTopBanner.student_count === 0 ? "1" : "7"
|
|
});
|
|
localStorage.setItem(
|
|
"coursesIdstimies",
|
|
JSON.stringify(aa)
|
|
);
|
|
}
|
|
} else {
|
|
localStorage.setItem(
|
|
"coursesIdstimies",
|
|
JSON.stringify([
|
|
{
|
|
coursesId: query.coursesId,
|
|
time: /* @__PURE__ */ new Date(),
|
|
Tooltiptype: detailTopBanner.student_count === 0 ? "1" : "7"
|
|
}
|
|
])
|
|
);
|
|
}
|
|
setVisible(false);
|
|
} else {
|
|
setVisible(false);
|
|
}
|
|
}
|
|
},
|
|
"\u786E\u5B9A"
|
|
))))
|
|
)
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("strong", { className: "font14" }, /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
className: (detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) === 1 ? "" : "c-yellow"
|
|
},
|
|
(detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) === 1 ? "\u5DF2\u505C\u7528" : detailTopBanner == null ? void 0 : detailTopBanner.invite_code
|
|
))
|
|
), (detailTopBanner == null ? void 0 : detailTopBanner.invite_code_halt) !== 1 && /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.shareClassroom, onClick: onShare }, /* @__PURE__ */ ShixunDetail_React.createElement("span", null, /* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "iconfont icon-fenxiangketang" })), /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u5206\u4EAB\u8BFE\u5802"))),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
popover/* default */.Z,
|
|
{
|
|
placement: "bottom",
|
|
content: switchContent,
|
|
trigger: "hover"
|
|
},
|
|
renderSign()
|
|
),
|
|
(0,authority/* isAdminOrStudent */.RV)() && /* @__PURE__ */ ShixunDetail_React.createElement("span", { className: "ml10 mr10" }, "|"),
|
|
(0,authority/* isAdminOrStudent */.RV)() && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
popover/* default */.Z,
|
|
{
|
|
placement: "bottom",
|
|
content: popContent,
|
|
trigger: "hover"
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", { className: ShixunDetailmodules.iconH }, (0,authority/* isAdminOrCreator */.aN)() && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u8BFE\u5802\u7BA1\u7406"), ((0,authority/* isTeacher */.IR)() || (0,authority/* isAssistant */.Rm)()) && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, !(detailTopBanner == null ? void 0 : detailTopBanner.excellent) && "\u590D\u5236/", "\u8BFE\u5802\u7BA1\u7406"), (0,authority/* isStudent */.dE)() && !(detailTopBanner == null ? void 0 : detailTopBanner.excellent) && /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\u9000\u51FA\u8BFE\u5802"))
|
|
)
|
|
)), /* @__PURE__ */ ShixunDetail_React.createElement(row/* default */.Z, null, /* @__PURE__ */ ShixunDetail_React.createElement(col/* default */.Z, { flex: 1 }, /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: ShixunDetailmodules.classroomUser }, document.domain !== "kepukehuan.educoder.net" && /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, /* @__PURE__ */ ShixunDetail_React.createElement("p", { className: ShixunDetailmodules.headPic }, /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/users/${detailTopBanner == null ? void 0 : detailTopBanner.teacher_login}/classrooms`
|
|
},
|
|
(detailTopBanner == null ? void 0 : detailTopBanner.teacher_img) && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"img",
|
|
{
|
|
src: env/* default */.Z.IMG_SERVER + "/images/" + detailTopBanner.teacher_img,
|
|
alt: ""
|
|
}
|
|
)
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
to: `/users/${detailTopBanner == null ? void 0 : detailTopBanner.teacher_login}/classrooms`
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("strong", { className: "c-white" }, detailTopBanner.teacher_name)
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement("span", null, "\uFF08", detailTopBanner.teacher_school, "\uFF09"), !!(detailTopBanner == null ? void 0 : detailTopBanner.subject_identifier) && !(0,authority/* isNotMember */.Jd)() && /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.btnWrap }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { onClick: () => (0,util/* openNewWindow */.xg)(`/paths/${detailTopBanner == null ? void 0 : detailTopBanner.subject_identifier}`), className: ShixunDetailmodules.btn }, /* @__PURE__ */ ShixunDetail_React.createElement("i", { className: "iconfont icon-jinrushijiankecheng font13 mr5" }), "\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"), /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.tip }, "\u8FDB\u5165\u5F00\u653E\u8BFE\u5802\u5BF9\u5E94\u7684\u5B9E\u8DF5\u8BFE\u7A0B")))))), (0,authority/* isNotMember */.Jd)() && /* @__PURE__ */ ShixunDetail_React.createElement(col/* default */.Z, null, /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
es_button/* default */.ZP,
|
|
{
|
|
onClick: () => dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: { key: "\u52A0\u5165\u8BFE\u5802" }
|
|
}),
|
|
size: "middle",
|
|
type: "primary",
|
|
className: ShixunDetailmodules.joinCouses
|
|
},
|
|
"\u52A0\u5165\u8BFE\u5802"
|
|
))), /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: ShixunDetailmodules.classroomDescBg }), /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: ShixunDetailmodules.classroomDesc }, detailTopBanner.copy_completed && document.domain !== "kepukehuan.educoder.net" ? /* @__PURE__ */ ShixunDetail_React.createElement(ShixunDetail_React.Fragment, null, " ", /* @__PURE__ */ ShixunDetail_React.createElement("div", null, (detailTopBanner == null ? void 0 : detailTopBanner.excellent) && (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ ShixunDetail_React.createElement(LeftMenu, null), !(detailTopBanner == null ? void 0 : detailTopBanner.excellent) && /* @__PURE__ */ ShixunDetail_React.createElement(LeftMenu, null)), /* @__PURE__ */ ShixunDetail_React.createElement("div", null, (0,authority/* isAdmin */.GJ)() && actionArr.map(function(item, index) {
|
|
return /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
key: index,
|
|
className: shixunHomeworks.actionTabs.type === 13 && item.name === "\u6DFB\u52A0\u5B66\u751F" ? ShixunDetailmodules.classromediv : "",
|
|
onClick: () => {
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", item.name]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: item.name
|
|
}
|
|
});
|
|
}
|
|
},
|
|
item.icon,
|
|
item.name
|
|
);
|
|
}), showYourCurrentClass && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
_umi_production_exports.Link,
|
|
{
|
|
className: "c-white",
|
|
to: `/classrooms/${query.coursesId}/course_group`
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { fontSize: "14px" } }, "\u4F60\u5F53\u524D\u6240\u5728\u73ED\u7EA7\uFF1A"),
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
tooltip/* default */.Z,
|
|
{
|
|
title: ((_b2 = detailTopBanner == null ? void 0 : detailTopBanner.group_name) == null ? void 0 : _b2.length) > 10 ? detailTopBanner == null ? void 0 : detailTopBanner.group_name : ""
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { fontSize: "14px" } }, ((_c = detailTopBanner == null ? void 0 : detailTopBanner.group_name) == null ? void 0 : _c.length) > 10 ? ((_d = detailTopBanner == null ? void 0 : detailTopBanner.group_name) == null ? void 0 : _d.substr(0, 10)) + "..." : detailTopBanner == null ? void 0 : detailTopBanner.group_name)
|
|
)
|
|
), (0,authority/* isStudent */.dE)() && (detailTopBanner == null ? void 0 : detailTopBanner.third_party_name) && /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"span",
|
|
{
|
|
className: "current",
|
|
onClick: () => {
|
|
(0,util/* trackEvent */.L9)(["\u6559\u5B66\u8BFE\u5802", "\u8BFE\u5802\u8BE6\u60C5", "\u586B\u5199\u6155\u8BFE\u8D44\u6599"]);
|
|
dispatch({
|
|
type: "classroomList/setActionTabs",
|
|
payload: {
|
|
key: "\u586B\u5199\u6155\u8BFE\u8D44\u6599"
|
|
}
|
|
});
|
|
}
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement(
|
|
"i",
|
|
{
|
|
className: `iconfont icon-tianxiedisanfangmuke font14 mr5`
|
|
}
|
|
),
|
|
"\u586B\u5199\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u8D26\u53F7\u4FE1\u606F",
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("i", { className: `iconfont icon-you font14 mr5 ml5` })
|
|
))) : /* @__PURE__ */ ShixunDetail_React.createElement("div", null)))), /* @__PURE__ */ ShixunDetail_React.createElement("div", null, (0,authority/* isStudent */.dE)() && classroomscloseisshow && ((_f = (_e = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _e.adv_course) == null ? void 0 : _f.image_url) && /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: "edu-container" }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { onClick: () => {
|
|
var _a3, _b3;
|
|
return window.open((_b3 = (_a3 = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _a3.adv_course) == null ? void 0 : _b3.jump_url);
|
|
}, style: { backgroundImage: `url(${env/* default */.Z.IMG_SERVER + ((_h = (_g = globalSetting == null ? void 0 : globalSetting.setting) == null ? void 0 : _g.adv_course) == null ? void 0 : _h.image_url)})`, width: "1200px", height: 60, margin: "0px auto", display: "flex", marginTop: "10px", cursor: "pointer", backgroundSize: "cover" } }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { style: { marginLeft: 61, position: "relative", marginRight: 82, height: 60, display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" } }), /* @__PURE__ */ ShixunDetail_React.createElement("img", { src: images_delete, onClick: (e) => {
|
|
e.stopPropagation();
|
|
localStorage.setItem("classroomsclose", dayjs_min_default()().add(1, "days").unix() + "");
|
|
setclassroomscloseisshow(false);
|
|
}, style: { width: 16, height: 16, marginRight: 6, marginTop: 6, cursor: "pointer" } })))), /* @__PURE__ */ ShixunDetail_React.createElement("aside", { className: "edu-container mb20" }, detailTopBanner.copy_completed ? /* @__PURE__ */ ShixunDetail_React.createElement(layout["default"], { style: { background: "none" } }, /* @__PURE__ */ ShixunDetail_React.createElement(LeftMenus, null), /* @__PURE__ */ ShixunDetail_React.createElement(layout["default"], { style: { background: "none", overflow: "initial" } }, /* @__PURE__ */ ShixunDetail_React.createElement(Content, { className: ShixunDetailmodules.container }, /* @__PURE__ */ ShixunDetail_React.createElement(_umi_production_exports.Outlet, null)))) : (
|
|
// 骨架内容
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.skeleton }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.skeletonL }), /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.skeletonR }, /* @__PURE__ */ ShixunDetail_React.createElement("div", { className: ShixunDetailmodules.skeletonR_1 }), Array.from({ length: 5 }, (_, index) => /* @__PURE__ */ ShixunDetail_React.createElement("div", { key: index, className: ShixunDetailmodules.skeletonR_2 }))))
|
|
)), /* @__PURE__ */ ShixunDetail_React.createElement(AddCategory, null), /* @__PURE__ */ ShixunDetail_React.createElement(Rename, null), /* @__PURE__ */ ShixunDetail_React.createElement(components_ExportScore, null), /* @__PURE__ */ ShixunDetail_React.createElement(components_AddTeacher, { onShow: () => setModalVisible1(true) }), /* @__PURE__ */ ShixunDetail_React.createElement(AddAssistant, { onShow: () => setModalVisible1(true) }), /* @__PURE__ */ ShixunDetail_React.createElement(AddStudent, { onShow: () => setModalVisible1(true), onShow1: () => setModalVisible(true) }), /* @__PURE__ */ ShixunDetail_React.createElement(components_JoinCourses, null), /* @__PURE__ */ ShixunDetail_React.createElement(SwitchStudents, null), /* @__PURE__ */ ShixunDetail_React.createElement(components_MoocModal, null), /* @__PURE__ */ ShixunDetail_React.createElement(components_CopyRecordModal, null), /* @__PURE__ */ ShixunDetail_React.createElement(AddInfo, null), shareStatus && /* @__PURE__ */ ShixunDetail_React.createElement(components_ShareModal, null), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
modal["default"],
|
|
{
|
|
open: modalVisble,
|
|
width: 464,
|
|
centered: true,
|
|
title: /* @__PURE__ */ ShixunDetail_React.createElement("span", null, /* @__PURE__ */ ShixunDetail_React.createElement(ExclamationCircleOutlined/* default */.Z, { style: { color: "#faad14", fontSize: "18px" } }), " \u63D0\u793A"),
|
|
okText: "\u786E\u5B9A",
|
|
onCancel: () => setModalVisible(false),
|
|
onOk: () => setModalVisible(false)
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("div", null, "\u5BFC\u5165\u5931\u8D25\uFF0C\u5F53\u524D\u5BFC\u5165\u7684\u6570\u636E\u5DF2\u8D85\u8FC750\u4EBA\u3002\u76EE\u524D\u60A8\u7684\u6559\u5B66\u8BFE\u5802", /* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { color: "#FF9D18" } }, "\u4EC5\u652F\u630150\u4EBA\u4EE5\u4E0B"), "\u7684\u6559\u5B66\u6D3B\u52A8\u3002")
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
modal["default"],
|
|
{
|
|
open: modalVisble1,
|
|
width: 464,
|
|
centered: true,
|
|
title: /* @__PURE__ */ ShixunDetail_React.createElement("span", null, /* @__PURE__ */ ShixunDetail_React.createElement(ExclamationCircleOutlined/* default */.Z, { style: { color: "#faad14", fontSize: "18px" } }), " \u63D0\u793A"),
|
|
okText: "\u7533\u8BF7\u5EF6\u671F",
|
|
onOk: () => ShixunDetail_async(void 0, null, function* () {
|
|
let res = yield (0,fetch/* default */.ZP)(`/api/business_contacts.json`, {
|
|
method: "post"
|
|
});
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
message/* default */.ZP.info("\u7533\u8BF7\u6210\u529F");
|
|
}
|
|
}),
|
|
onCancel: () => setModalVisible1(false)
|
|
},
|
|
/* @__PURE__ */ ShixunDetail_React.createElement("div", null, "\u5C0A\u656C\u7684\u8001\u5E08\u60A8\u597D\uFF0C\u8D35\u5355\u4F4D\u8BD5\u7528\u671F\u5DF2\u8FC7\uFF0C\u76EE\u524D\u60A8\u7684\u6559\u5B66\u8BFE\u5802", /* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { color: "#FF9D18" } }, "\u4EC5\u652F\u630150\u4EBA\u4EE5\u4E0B"), "\u7684\u6559\u5B66\u6D3B\u52A8\uFF0C\u4E3A\u786E\u4FDD\u60A8\u7684\u8BFE\u7A0B\u540E\u7EED\u8BD5\u7528\u4E0D\u53D7\u5F71\u54CD\uFF0C\u8BF7\u5148\u70B9\u51FB\u53F3\u4FA7\u7684\u201C", /* @__PURE__ */ ShixunDetail_React.createElement("span", { style: { color: "#165DFF" } }, "\u7533\u8BF7\u5EF6\u671F"), "\u201D\u6309\u94AE\uFF0C\u5E73\u53F0\u5C06\u63A8\u52A8\u89E3\u51B3\u76F8\u5173\u4E8B\u5B9C\u3002")
|
|
), /* @__PURE__ */ ShixunDetail_React.createElement(
|
|
components_CopyClossRoomModal,
|
|
{
|
|
openCopyCourse,
|
|
copyCourseConfirmLoading,
|
|
copyCourseParams,
|
|
setCopyCourseConfirmLoading: (e) => {
|
|
setCopyCourseConfirmLoading(e);
|
|
},
|
|
setOpenCopyCourse: (e) => {
|
|
setOpenCopyCourse(e);
|
|
},
|
|
setCopyCourseParams: (e) => {
|
|
setCopyCourseParams(e);
|
|
}
|
|
}
|
|
), !detailTopBanner.copy_completed && /* @__PURE__ */ ShixunDetail_React.createElement(CopyingClossRoomModal, null), /* @__PURE__ */ ShixunDetail_React.createElement(DelClassrooms, null));
|
|
};
|
|
/* harmony default export */ var ShixunDetail = ((0,_umi_production_exports.connect)(
|
|
({
|
|
classroomList,
|
|
loading,
|
|
globalSetting,
|
|
user,
|
|
shixunHomeworks
|
|
}) => ({
|
|
classroomList,
|
|
globalSetting,
|
|
user,
|
|
loading: loading.effects,
|
|
shixunHomeworks
|
|
})
|
|
)(ShixunDetail_ShixunsListPage));
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 74265:
|
|
/*!*********************************************************!*\
|
|
!*** ./src/assets/images/classrooms/copy_classroom.png ***!
|
|
\*********************************************************/
|
|
/***/ (function(module) {
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVgAAAFYCAYAAAAWbORAAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQe8HFXV/999Pb2RhFRiCFV6lSpSEkoqSLWDSlFEpGr087NBEiCQSrGLoiiKCB/g90lREKQIKEJIIMl76a+3rbMz98uZt7Nv3mb37czOzO7M7rm/Xwgv795zz/3fO/+5c+655whwYQQYAUaghAhIKUNoXPpbCLwHUfUUpk57UYgL1RKq5FrXwjVJLIgRYAQYgQIQkE1LL4Emf9XfVOxECA9CVv9UTL/+PwWI9E0TJljfTAUrwghUHgJSPlyFxk3vANgvx+hfhggtx7TpjwRxV8sEW3lrmkfMCPgGAdl4x6ch1Z9aUKgJIazA0IYHxNhruy3U90UVJlhfTAMrwQhUHgJSPluNplfXQcqZNkbfhZBYidCQu8WUL7XZaFeSqkywJYGdO2UEGAG5eekVgHygICQEegGsRNXQO/1MtEywBc0uN2IEGAEnCMidy4YippHtd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1J7i/Od6SRn9ZlvzucaRiyTzkqeJR8zzMpj+e5C5ac5olxojQk39G71TaNcaCG+BsiTY9CqXkmIWnASATAd6Di/Tw2IsrMEeznwPdDaSNdpkLubBHp5MHawQRq422cg524OdDwsr+ufTu5Axu6W/1TFnroNMXMzkla1urjHmW1/GJibfCy9TfiZRZc6BnXnL9vI1WyKyEbbxIjLvqPOtRbPOuXAxj5NIlHAhcjX+vSyI1Vhcgd7BZr41pNS/ECluwb4ApgMYbrLTZnsQsz00g5GtFSLJ98Dl2/3k6t8s1+quPN8DMdiLI5OAnOJH7bOaF/K8DO1gbocY7c5zvnkpBEs7688J/vk2F7l0z/fyKkT/zDb0M60LMnioQbSzZvKQ+eeyIthsA02ZEWiHS+aEzDfsYNgYiytfm8xPqaxq5OvI9Pt88vL93tyVlbpu1clGyF5jkUkAuWC2MkbWf0/0BsONfpfv2RgMU/1lW26Emgnh/wMOah85k7bP2gAAAABJRU5ErkJggg==";
|
|
|
|
/***/ }),
|
|
|
|
/***/ 9936:
|
|
/*!**************************************!*\
|
|
!*** ./src/assets/images/delete.png ***!
|
|
\**************************************/
|
|
/***/ (function(module) {
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA0lJREFUWEfFl0tIVFEYx7/vDnNNIWRUdB4hRYQunAHz0ULBFoWMoozgg6k2LhQLXCS0CBcqIUMQCuqEWUtDJBBXiYuidkpORD7KCK0BdRZpEPiYuXS/ODPdaR73zr1XJmYWl7ncc77/73yvcw6Cxl9FRYVxd1ewE8EVIioGgDxEyGPTieAAAA4Q0Y8Iy1arcdXn8wlaTKPaoOJiuykUQjcAXSWibLXx7DsiHgPgG56nGb9/9WeqOYoAkRUHO4jARQRZWoQTxyBCEBHmrdasWSWPyAL8XXU/kVhyGuFkEG6T52lYzhtJAEVFjguINEBE+ekQl2wg4j6AYTAQ+PAt1m4cQGTlMJpu8VgInoe7sZ6IArCY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