Auto Submit

pull/1/head
autosubmit 3 years ago
parent 6739eb61ec
commit 0401a02815

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10375,15569,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10375,15569,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -309,7 +309,7 @@ var _disabledTime = function disabledTime(current, compared) {
var RangePicker = antd__WEBPACK_IMPORTED_MODULE_15__["default"].RangePicker;
var Option = antd__WEBPACK_IMPORTED_MODULE_16__["default"].Option;
var WorkList = function WorkList(_ref) {
var _workList$homework_st2, _classroomList$Assist3, _workSetting$group_se4, _workSetting$group_se5, _workList$homework_st4, _workList$homework_st5, _classroomList$Assist4, _classroomList$Assist5, _groupSettings2, _workSetting$group_se7;
var _headerInfo$homework_2, _classroomList$Assist3, _workSetting$group_se4, _workSetting$group_se5, _headerInfo$homework_4, _headerInfo$homework_5, _classroomList$Assist4, _classroomList$Assist5, _groupSettings2, _workSetting$group_se7;
var shixunHomeworks = _ref.shixunHomeworks,
loading = _ref.loading,
dispatch = _ref.dispatch,
@ -317,6 +317,8 @@ var WorkList = function WorkList(_ref) {
var params = (0,umi__WEBPACK_IMPORTED_MODULE_12__.useParams)();
var workSetting = shixunHomeworks.workSetting,
workList = shixunHomeworks.workList,
shixunWorkList = shixunHomeworks.shixunWorkList,
headerInfo = shixunHomeworks.headerInfo,
changeData = shixunHomeworks.changeData;
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(true),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4___default()(_useState, 2),
@ -531,7 +533,7 @@ var WorkList = function WorkList(_ref) {
//校验弹框
var setVerify = function setVerify(bodyData) {
var _ref2, _workList$homework_st;
var _ref2, _headerInfo$homework_;
if (bodyData.total_score === null) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");
return;
@ -574,7 +576,7 @@ var WorkList = function WorkList(_ref) {
setDisabled(true);
getData();
dispatch({
type: 'shixunHomeworks/getWorkList',
type: 'shixunHomeworks/getShixunWorkHeadInfo',
payload: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
});
}
@ -590,7 +592,7 @@ var WorkList = function WorkList(_ref) {
return _ref3.apply(this, arguments);
};
}();
if (!(0,lodash__WEBPACK_IMPORTED_MODULE_9__.isEqual)(changeData, newChangeData) && !(workList !== null && workList !== void 0 && (_workList$homework_st = workList.homework_status) !== null && _workList$homework_st !== void 0 && _workList$homework_st.includes("未发布"))) {
if (!(0,lodash__WEBPACK_IMPORTED_MODULE_9__.isEqual)(changeData, newChangeData) && !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_ = headerInfo.homework_status) !== null && _headerInfo$homework_ !== void 0 && _headerInfo$homework_.includes("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z.confirm({
title: "更新成绩",
content: "您改动了本次作业的关卡得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",
@ -647,7 +649,7 @@ var WorkList = function WorkList(_ref) {
// !hasEndedGroup ||
(workSetting === null || workSetting === void 0 ? void 0 : workSetting.allow_late) || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.all_group_late)
);
}, [workSetting, workList]);
}, [workSetting, headerInfo]);
var unifiedLateTimeDisabled = workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment;
var groupLateTimeDisabled = function groupLateTimeDisabled(id) {
if (!id) {
@ -710,11 +712,11 @@ var WorkList = function WorkList(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("label", {
children: "\u53D1\u5E03\u65B9\u5F0F\uFF1A"
}), " ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"].Group */ .ZP.Group, {
disabled: disabled || !(workList !== null && workList !== void 0 && (_workList$homework_st2 = workList.homework_status) !== null && _workList$homework_st2 !== void 0 && _workList$homework_st2.includes("未发布")) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist3 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist3 !== void 0 && _classroomList$Assist3.can_publish),
disabled: disabled || !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_2 = headerInfo.homework_status) !== null && _headerInfo$homework_2 !== void 0 && _headerInfo$homework_2.includes("未发布")) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist3 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist3 !== void 0 && _classroomList$Assist3.can_publish),
value: data.unified_setting,
onChange: function onChange(e) {
var _workList$homework_st3;
if (!(workList !== null && workList !== void 0 && (_workList$homework_st3 = workList.homework_status) !== null && _workList$homework_st3 !== void 0 && _workList$homework_st3.includes("未发布"))) {
var _headerInfo$homework_3;
if (!(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_3 = headerInfo.homework_status) !== null && _headerInfo$homework_3 !== void 0 && _headerInfo$homework_3.includes("未发布"))) {
antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");
return;
}
@ -764,7 +766,7 @@ var WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
className: "ml5",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
disabled: (disabled ? disabled : workList !== null && workList !== void 0 && (_workList$homework_st4 = workList.homework_status) !== null && _workList$homework_st4 !== void 0 && _workList$homework_st4.includes("未发布") || workList !== null && workList !== void 0 && (_workList$homework_st5 = workList.homework_status) !== null && _workList$homework_st5 !== void 0 && _workList$homework_st5.includes("未开始") ? false : true) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist4 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist4 !== void 0 && _classroomList$Assist4.can_publish),
disabled: (disabled ? disabled : headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_4 = headerInfo.homework_status) !== null && _headerInfo$homework_4 !== void 0 && _headerInfo$homework_4.includes("未发布") || headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_5 = headerInfo.homework_status) !== null && _headerInfo$homework_5 !== void 0 && _headerInfo$homework_5.includes("未开始") ? false : true) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist4 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist4 !== void 0 && _classroomList$Assist4.can_publish),
style: {
width: 170
},
@ -871,7 +873,7 @@ var WorkList = function WorkList(_ref) {
})]
})
}), groupSettings && groupSettings.map(function (v, k) {
var _workList$homework_st6, _classroomList$Assist6, _findGroupItemById, _workSetting$group_se6;
var _headerInfo$homework_6, _classroomList$Assist6, _findGroupItemById, _workSetting$group_se6;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
span: 24,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
@ -888,7 +890,7 @@ var WorkList = function WorkList(_ref) {
maxWidth: 300
},
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__["default"], {
disabled: (disabled ? disabled : workList !== null && workList !== void 0 && (_workList$homework_st6 = workList.homework_status) !== null && _workList$homework_st6 !== void 0 && _workList$homework_st6.includes("未发布") && v.id || moment__WEBPACK_IMPORTED_MODULE_6___default()() < moment__WEBPACK_IMPORTED_MODULE_6___default()(v === null || v === void 0 ? void 0 : v.publish_time) ? false : v !== null && v !== void 0 && v.publish_time ? true : false) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist6 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist6 !== void 0 && _classroomList$Assist6.can_publish),
disabled: (disabled ? disabled : headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_6 = headerInfo.homework_status) !== null && _headerInfo$homework_6 !== void 0 && _headerInfo$homework_6.includes("未发布") && v.id || moment__WEBPACK_IMPORTED_MODULE_6___default()() < moment__WEBPACK_IMPORTED_MODULE_6___default()(v === null || v === void 0 ? void 0 : v.publish_time) ? false : v !== null && v !== void 0 && v.publish_time ? true : false) || (0,_utils_authority__WEBPACK_IMPORTED_MODULE_7__/* .isAssistant */ .Rm)() && !((_classroomList$Assist6 = classroomList.AssistantObject.practice) !== null && _classroomList$Assist6 !== void 0 && _classroomList$Assist6.can_publish),
className: "ml20",
mode: "multiple",
style: {
@ -1195,7 +1197,7 @@ var WorkList = function WorkList(_ref) {
})]
})]
}) : repairSettings.map(function (v, k) {
var _workList$homework_st7;
var _headerInfo$homework_7;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
span: 24,
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
@ -1207,7 +1209,7 @@ var WorkList = function WorkList(_ref) {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("span", {
children: ["\u8865\u4EA4\u89C4\u5219", k + 1, "\uFF1A"]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__["default"], {
disabled: disabled || !(workList !== null && workList !== void 0 && (_workList$homework_st7 = workList.homework_status) !== null && _workList$homework_st7 !== void 0 && _workList$homework_st7.includes("未发布")) && v.id || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
disabled: disabled || !(headerInfo !== null && headerInfo !== void 0 && (_headerInfo$homework_7 = headerInfo.homework_status) !== null && _headerInfo$homework_7 !== void 0 && _headerInfo$homework_7.includes("未发布")) && v.id || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
mode: "multiple",
style: {
width: 306

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12312,15569,54747,73168,18080,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12312,15569,54747,73168,18080,64802,34668,54512,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -844,6 +844,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -913,11 +918,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -1241,7 +1241,7 @@ var Join = function Join(_ref) {
if (!(user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.is_shixun_marker)) isShixunsHidden = true;
}
var JoinOverlay = function JoinOverlay(joinProps) {
var _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$navigationInfo, _user$userInfo7, _user$navigationInfo2, _user$userInfo8, _user$userInfo9, _user$userInfo10, _globalSetting$settin5, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14, _user$userInfo15, _globalSetting$settin6, _user$userInfo16, _user$userInfo17, _user$userInfo18, _user$userInfo19, _globalSetting$settin7;
var _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$navigationInfo, _user$userInfo7, _user$navigationInfo2, _user$userInfo8, _user$userInfo9, _user$userInfo10, _globalSetting$settin5, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14, _user$userInfo15, _globalSetting$settin7, _user$userInfo16, _user$userInfo17, _user$userInfo18, _user$userInfo19, _globalSetting$settin8;
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
justify: "space-around",
@ -1272,8 +1272,8 @@ var Join = function Join(_ref) {
})), !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin5 = globalSetting.setting) !== null && _globalSetting$settin5 !== void 0 && _globalSetting$settin5.is_local) && ((_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.main_site) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
var _user$navigationInfo3;
return handleAddVerify("".concat((_user$navigationInfo3 = user.navigationInfo) === null || _user$navigationInfo3 === void 0 || (_user$navigationInfo3 = _user$navigationInfo3.top) === null || _user$navigationInfo3 === void 0 ? void 0 : _user$navigationInfo3.old_url, "/projects/deposit/new"), VerifyType.Projects);
var _globalSetting$settin6;
return handleAddVerify("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.old_url, "/projects/deposit/new"), VerifyType.Projects);
},
children: "\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"
})
@ -1296,7 +1296,7 @@ var Join = function Join(_ref) {
},
children: (_user$userInfo14 = user.userInfo) !== null && _user$userInfo14 !== void 0 && _user$userInfo14.main_site ? '加入教学课堂' : '加入课堂'
})
})), ((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin6 = globalSetting.setting) !== null && _globalSetting$settin6 !== void 0 && _globalSetting$settin6.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Projects);
@ -1321,7 +1321,7 @@ var Join = function Join(_ref) {
},
children: (_user$userInfo18 = user.userInfo) !== null && _user$userInfo18 !== void 0 && _user$userInfo18.main_site ? '加入教学课堂' : '加入课堂'
})
})), ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin7 = globalSetting.setting) !== null && _globalSetting$settin7 !== void 0 && _globalSetting$settin7.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
})), ((_user$userInfo19 = user.userInfo) === null || _user$userInfo19 === void 0 ? void 0 : _user$userInfo19.main_site) && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin8 = globalSetting.setting) !== null && _globalSetting$settin8 !== void 0 && _globalSetting$settin8.is_local) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, joinProps), {}, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
return handleJoinVerify(VerifyType.Projects);
@ -1475,7 +1475,7 @@ var User = function User(_ref) {
})
});
} else {
var _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14, _user$navigationInfo, _user$navigationInfo2, _user$navigationInfo3, _user$navigationInfo4, _user$navigationInfo5, _user$navigationInfo6;
var _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _user$userInfo13, _user$userInfo14;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z, {
className: "".concat(Usermodules.rightMenu, " ").concat(Usermodules.menuWrap),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
@ -1533,21 +1533,6 @@ var User = function User(_ref) {
},
children: "\u8BD5\u5377\u5E93"
})
}), ((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.customer_management_url) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: (_user$navigationInfo2 = user.navigationInfo) === null || _user$navigationInfo2 === void 0 || (_user$navigationInfo2 = _user$navigationInfo2.top) === null || _user$navigationInfo2 === void 0 ? void 0 : _user$navigationInfo2.customer_management_url,
children: "\u5BA2\u6237\u7BA1\u7406"
})
}), ((_user$navigationInfo3 = user.navigationInfo) === null || _user$navigationInfo3 === void 0 || (_user$navigationInfo3 = _user$navigationInfo3.top) === null || _user$navigationInfo3 === void 0 ? void 0 : _user$navigationInfo3.college_identifier) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/colleges/".concat((_user$navigationInfo4 = user.navigationInfo) === null || _user$navigationInfo4 === void 0 || (_user$navigationInfo4 = _user$navigationInfo4.top) === null || _user$navigationInfo4 === void 0 ? void 0 : _user$navigationInfo4.college_identifier, "/statistics"),
children: "\u5B66\u9662\u7EDF\u8BA1"
})
}), ((_user$navigationInfo5 = user.navigationInfo) === null || _user$navigationInfo5 === void 0 || (_user$navigationInfo5 = _user$navigationInfo5.top) === null || _user$navigationInfo5 === void 0 ? void 0 : _user$navigationInfo5.laboratory_admin_url) && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
href: (_user$navigationInfo6 = user.navigationInfo) === null || _user$navigationInfo6 === void 0 || (_user$navigationInfo6 = _user$navigationInfo6.top) === null || _user$navigationInfo6 === void 0 ? void 0 : _user$navigationInfo6.laboratory_admin_url,
children: "\u540E\u53F0\u7BA1\u7406"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
onClick: function onClick() {
@ -1956,12 +1941,15 @@ var HeaderComponents = function HeaderComponents(_ref) {
QQVisible = _useState6[0],
setQQVisible = _useState6[1];
var payload = getCourseParam();
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'user/getNavigationInfo',
payload: objectSpread2_default()({}, payload)
});
}, [globalSetting.name]);
// useEffect(() => {
// dispatch({
// type: 'user/getNavigationInfo',
// payload: {
// ...payload,
// },
// })
// }, [globalSetting.name])
(0,_react_17_0_2_react.useEffect)(function () {
if (shixunHomeworks.actionTabs.key === '底部弹窗') {
if (Header_showLinks !== null && Header_showLinks !== void 0 && Header_showLinks.includes(location === null || location === void 0 ? void 0 : location.pathname) || (location === null || location === void 0 ? void 0 : location.pathname.indexOf('/classrooms')) === 0) {} else {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15569,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15569,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18080,15569,12312,54747,73168,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18080,15569,12312,54747,73168,64802,34668,54512,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18900,15569,19523,34712,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18900,15569,19523,34712,10375,64802,34668,54512],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19523,15569,18900,34712,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19523,15569,18900,34712,10375,64802,34668,54512],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25223,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25223,64802,34668,54512],{
/***/ 42813:
/*!**********************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27315,15569,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27315,15569,10375,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27829,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27829,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -322,6 +322,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -391,11 +396,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29414,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29414,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31465,15569,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31465,15569,10375,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34668,64802],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34668,64802,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34712,15569,19523,18900,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34712,15569,19523,18900,10375,64802,34668,54512],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,47 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[31809,24578,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37706,2595,53936,67897,87557,55127,89360,64447,21105],{
/***/ 68742:
/*!***********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
\***********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_ArrowLeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js
// This icon file is generated automatically.
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ArrowLeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ArrowLeftOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined));
/***/ }),
/***/ 15997:
/*!*****************************************************************************************************!*\
@ -61,6 +103,499 @@ function useForceUpdate() {
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(5090);
// 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/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 24905:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38077,85794,15569,12312,54747,73168,18080,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38077,85794,15569,12312,54747,73168,18080,64802,34668,54512,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42309,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[42309,64802,34668,54512],{
/***/ 28720:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45159,2595,55127,89360,64447,38177,47256,85081,53555,64802,34668,52312,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45159,2595,55127,89360,64447,38177,47256,85081,53555,64802,34668,54512,52312,21105],{
/***/ 47966:
/*!********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47256,38177,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47256,38177,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82080,15569,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47358,15569,10375,64802,34668,54512,16703],{
/***/ 75769:
/*!*******************************************************************************************************!*\
@ -43,6 +43,48 @@ if (false) {}
/***/ }),
/***/ 42884:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_DownOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/DownOutlined.js
// This icon file is generated automatically.
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined));
/***/ }),
/***/ 15997:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
@ -145,6 +187,499 @@ function useForceUpdate() {
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(5090);
// 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/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 38854:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49011,38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49011,38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1807,6 +1807,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -1876,11 +1881,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53359,38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53359,38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53555,38177,47256,85081,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53555,38177,47256,85081,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -0,0 +1,781 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54512,64802,34668],{
/***/ 15997:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
/***/ }),
/***/ 38854:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ es_dropdown; }
});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
var EllipsisOutlined = __webpack_require__(93319);
// 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/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
var space = __webpack_require__(81327);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
var style = __webpack_require__(47211);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const DropdownButton = props => {
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'default',
danger,
disabled,
loading,
onClick,
htmlType,
children,
className,
menu,
arrow,
autoFocus,
overlay,
trigger,
align,
open,
onOpenChange,
placement,
getPopupContainer,
href,
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
title,
buttonsRender = buttons => buttons,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
} = props,
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
const buttonPrefixCls = `${prefixCls}-button`;
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
const dropdownProps = {
menu,
arrow,
autoFocus,
align,
disabled,
trigger: disabled ? [] : trigger,
onOpenChange,
getPopupContainer: getPopupContainer || getContextPopupContainer,
mouseEnterDelay,
mouseLeaveDelay,
overlayClassName,
overlayStyle,
destroyPopupOnHide,
dropdownRender
};
const {
compactSize,
compactItemClassnames
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const classes = _classnames_2_3_2_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
if ('overlay' in props) {
dropdownProps.overlay = overlay;
}
if ('open' in props) {
dropdownProps.open = open;
}
if ('placement' in props) {
dropdownProps.placement = placement;
} else {
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
}
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
disabled: disabled,
loading: loading,
onClick: onClick,
htmlType: htmlType,
href: href,
title: title
}, children);
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
type: type,
danger: danger,
icon: icon
});
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
className: classes,
size: compactSize,
block: true
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
};
DropdownButton.__ANT_BUTTON = true;
/* harmony default export */ var dropdown_button = (DropdownButton);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
"use client";
const Dropdown = dropdown/* default */.Z;
Dropdown.Button = dropdown_button;
/* harmony default export */ var es_dropdown = (Dropdown);
/***/ }),
/***/ 1056:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ input; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// 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/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
var form_context = __webpack_require__(32441);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
var style = __webpack_require__(9937);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
"use client";
const Group = props => {
const {
getPrefixCls,
direction
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className
} = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${prefixCls}-compact`]: props.compact,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, hashId, className);
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
isFormItemInput: false
}), [formItemContext]);
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: cls,
style: props.style,
onMouseEnter: props.onMouseEnter,
onMouseLeave: props.onMouseLeave,
onFocus: props.onFocus,
onBlur: props.onBlur
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
value: groupFormItemContext
}, props.children)));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
var Input = __webpack_require__(9432);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeInvisibleOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
var EyeOutlined = __webpack_require__(15997);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/omit.js
var omit = __webpack_require__(39029);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/ref.js
var es_ref = __webpack_require__(9681);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
var useRemovePasswordTimeout = __webpack_require__(59412);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
const ActionMap = {
click: 'onClick',
hover: 'onMouseOver'
};
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
visibilityToggle = true
} = props;
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
const inputRef = (0,_react_17_0_2_react.useRef)(null);
_react_17_0_2_react.useEffect(() => {
if (visibilityControlled) {
setVisible(visibilityToggle.visible);
}
}, [visibilityControlled, visibilityToggle]);
// Remove Password value
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
const onVisibleChange = () => {
const {
disabled
} = props;
if (disabled) {
return;
}
if (visible) {
removePasswordTimeout();
}
setVisible(prevState => {
var _a;
const newState = !prevState;
if (typeof visibilityToggle === 'object') {
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
}
return newState;
});
};
const getIcon = prefixCls => {
const {
action = 'click',
iconRender = defaultIconRender
} = props;
const iconTrigger = ActionMap[action] || '';
const icon = iconRender(visible);
const iconProps = {
[iconTrigger]: onVisibleChange,
className: `${prefixCls}-icon`,
key: 'passwordIcon',
onMouseDown: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
onMouseUp: e => {
// Prevent caret position change
// https://github.com/ant-design/ant-design/issues/23524
e.preventDefault();
}
};
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
};
const {
className,
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
size
} = props,
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
const suffixIcon = visibilityToggle && getIcon(prefixCls);
const inputClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, {
[`${prefixCls}-${size}`]: !!size
});
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
type: visible ? 'text' : 'password',
className: inputClassName,
prefixCls: inputPrefixCls,
suffix: suffixIcon
});
if (size) {
omittedProps.size = size;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
}, omittedProps));
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
var SearchOutlined = __webpack_require__(46820);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// 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/config-provider/hooks/useSize.js
var useSize = __webpack_require__(19716);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
"use client";
var Search_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
prefixCls: customizePrefixCls,
inputPrefixCls: customizeInputPrefixCls,
className,
size: customizeSize,
suffix,
enterButton = false,
addonAfter,
loading,
disabled,
onSearch: customOnSearch,
onChange: customOnChange,
onCompositionStart,
onCompositionEnd
} = props,
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const composedRef = _react_17_0_2_react.useRef(false);
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
const {
compactSize
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
const size = (0,useSize/* default */.Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
const inputRef = _react_17_0_2_react.useRef(null);
const onChange = e => {
if (e && e.target && e.type === 'click' && customOnSearch) {
customOnSearch(e.target.value, e, {
source: 'clear'
});
}
if (customOnChange) {
customOnChange(e);
}
};
const onMouseDown = e => {
var _a;
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
e.preventDefault();
}
};
const onSearch = e => {
var _a, _b;
if (customOnSearch) {
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
source: 'input'
});
}
};
const onPressEnter = e => {
if (composedRef.current || loading) {
return;
}
onSearch(e);
};
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
const btnClassName = `${prefixCls}-button`;
let button;
const enterButtonAsElement = enterButton || {};
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
if (isAntdButton || enterButtonAsElement.type === 'button') {
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
onMouseDown,
onClick: e => {
var _a, _b;
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
onSearch(e);
},
key: 'enterButton'
}, isAntdButton ? {
className: btnClassName,
size
} : {}));
} else {
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
className: btnClassName,
type: enterButton ? 'primary' : undefined,
size: size,
disabled: disabled,
key: "enterButton",
onMouseDown: onMouseDown,
onClick: onSearch,
loading: loading,
icon: searchIcon
}, enterButton);
}
if (addonAfter) {
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
key: 'addonAfter'
})];
}
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-${size}`]: !!size,
[`${prefixCls}-with-button`]: !!enterButton
}, className);
const handleOnCompositionStart = e => {
composedRef.current = true;
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
};
const handleOnCompositionEnd = e => {
composedRef.current = false;
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
};
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
onPressEnter: onPressEnter
}, restProps, {
size: size,
onCompositionStart: handleOnCompositionStart,
onCompositionEnd: handleOnCompositionEnd,
prefixCls: inputPrefixCls,
addonAfter: button,
suffix: suffix,
onChange: onChange,
className: cls,
disabled: disabled
}));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
var TextArea = __webpack_require__(1643);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
"use client";
const input_Input = Input/* default */.Z;
if (false) {}
input_Input.Group = input_Group;
input_Input.Search = input_Search;
input_Input.TextArea = TextArea/* default */.Z;
input_Input.Password = input_Password;
/* harmony default export */ var input = (input_Input);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ space; }
});
// UNUSED EXPORTS: SpaceContext
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38930);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
var Compact = __webpack_require__(33234);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
latestIndex: 0
});
const SpaceContextProvider = SpaceContext.Provider;
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
"use client";
const Item = _ref => {
let {
className,
index,
children,
split,
style
} = _ref;
const {
latestIndex
} = _react_17_0_2_react.useContext(SpaceContext);
if (children === null || children === undefined) {
return null;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
className: className,
style: style
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${className}-split`
}, split));
};
/* harmony default export */ var space_Item = (Item);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
var space_style = __webpack_require__(2856);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
function isPresetSize(size) {
return ['small', 'middle', 'large'].includes(size);
}
function isValidGapNumber(size) {
if (!size) {
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
return false;
}
return typeof size === 'number' && !Number.isNaN(size);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
var _a, _b;
const {
getPrefixCls,
space,
direction: directionConfig
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
align,
className,
rootClassName,
children,
direction = 'horizontal',
prefixCls: customizePrefixCls,
split,
style,
wrap = false,
classNames: customClassNames,
styles
} = props,
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
const isPresetVerticalSize = isPresetSize(verticalSize);
const isPresetHorizontalSize = isPresetSize(horizontalSize);
const isValidVerticalSize = isValidGapNumber(verticalSize);
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
const childNodes = (0,toArray/* default */.Z)(children, {
keepEmpty: true
});
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
const prefixCls = getPrefixCls('space', customizePrefixCls);
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
const cls = _classnames_2_3_2_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
}, className, rootClassName);
const itemClassName = _classnames_2_3_2_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
// Calculate latest one
let latestIndex = 0;
const nodes = childNodes.map((child, i) => {
var _a, _b;
if (child !== null && child !== undefined) {
latestIndex = i;
}
const key = child && child.key || `${itemClassName}-${i}`;
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
className: itemClassName,
key: key,
index: i,
split: split,
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
}, child);
});
const spaceContext = _react_17_0_2_react.useMemo(() => ({
latestIndex
}), [latestIndex]);
// =========================== Render ===========================
if (childNodes.length === 0) {
return null;
}
const gapStyle = {};
if (wrap) {
gapStyle.flexWrap = 'wrap';
}
if (!isPresetHorizontalSize && isValidHorizontalSize) {
gapStyle.columnGap = horizontalSize;
}
if (!isPresetVerticalSize && isValidVerticalSize) {
gapStyle.rowGap = verticalSize;
}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
ref: ref,
className: cls,
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
value: spaceContext
}, nodes)));
});
if (false) {}
const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54747,15569,12312,73168,18080,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54747,15569,12312,73168,18080,64802,34668,54512,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96843],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55496],{
/***/ 51299:
/*!*********************************************************!*\
@ -68,6 +68,247 @@ var TipsButton = function TipsButton(_ref) {
/***/ }),
/***/ 69867:
/*!****************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/components/Addpaperlibrary.tsx ***!
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/fetch */ 97174);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 66660);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var Addpaperlibrary = function Addpaperlibrary(_ref) {
var exercise = _ref.exercise,
dispatch = _ref.dispatch;
var params = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useParams)();
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
isshow = _useState2[0],
setisshow = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(),
_useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
item = _useState4[0],
setitem = _useState4[1];
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
if (exercise.actionTabs.key === '单个加入试卷库') {
checkexercise();
}
}, [exercise.actionTabs]);
function checkexercise() {
return _checkexercise.apply(this, arguments);
}
function _checkexercise() {
_checkexercise = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3() {
var _res$cover_exercises;
var res, _res$cover_exercises2, _res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/check_exercise_cover.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 2:
res = _context3.sent;
if (!((res === null || res === void 0 || (_res$cover_exercises = res.cover_exercises) === null || _res$cover_exercises === void 0 ? void 0 : _res$cover_exercises.length) > 0)) {
_context3.next = 8;
break;
}
setisshow(true);
setitem(res === null || res === void 0 || (_res$cover_exercises2 = res.cover_exercises) === null || _res$cover_exercises2 === void 0 ? void 0 : _res$cover_exercises2[0]);
_context3.next = 13;
break;
case 8:
_context3.next = 10;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 10:
_res = _context3.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((_res === null || _res === void 0 ? void 0 : _res.status) === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
case 13:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _checkexercise.apply(this, arguments);
}
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
open: isshow,
centered: true,
onCancel: /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(e) {
var res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(e.target.outerText === '覆盖原来的试卷')) {
_context.next = 8;
break;
}
_context.next = 3;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs,
update: 1
}
});
case 3:
res = _context.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisshow(false);
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
_context.next = 10;
break;
case 8:
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
setisshow(false);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}(),
okText: "\u5F62\u6210\u65B0\u8BD5\u5377",
cancelText: "\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
var res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 2:
res = _context2.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisshow(false);
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
})),
title: "\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("p", {
children: "\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: ["\u8BD5\u5377\uFF1A", item === null || item === void 0 ? void 0 : item.origin_exercise_nam]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: ["\u539F\u8BD5\u5377\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("a", {
href: "/paperlibrary/see/".concat(item === null || item === void 0 ? void 0 : item.examination_bank_id, "?defaultActiveKey=0"),
target: "_blank",
children: item === null || item === void 0 ? void 0 : item.examination_bank_name
})]
})]
})]
})
})
});
};
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref4) {
var exercise = _ref4.exercise;
return {
exercise: exercise
};
})(Addpaperlibrary));
/***/ }),
/***/ 87617:
/*!**********************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/components/CutOffNow.tsx ***!

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57889,27829,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[57889,27829,64802,34668,54512],{
/***/ 47966:
/*!********************************************************************************************************!*\

@ -1,47 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37243,52720],{
/***/ 68742:
/*!***********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
\***********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_ArrowLeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js
// This icon file is generated automatically.
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ArrowLeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ArrowLeftOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined));
/***/ }),
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58921],{
/***/ 60936:
/*!*******************************************************************************************************!*\
@ -85,499 +43,6 @@ if (false) {}
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(5090);
// 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/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60590,38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60590,38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61952,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61952,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1,5 +1,47 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[24578,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67897,2595,87557,55127,89360,64447,21105],{
/***/ 68742:
/*!***********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
\***********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_ArrowLeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js
// This icon file is generated automatically.
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowLeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_ArrowLeftOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_ArrowLeftOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined));
/***/ }),
/***/ 15997:
/*!*****************************************************************************************************!*\
@ -61,6 +103,499 @@ function useForceUpdate() {
/***/ }),
/***/ 66104:
/*!**************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ breadcrumb; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(38930);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(5090);
// 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/_util/reactNode.js
var reactNode = __webpack_require__(92343);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
var DownOutlined = __webpack_require__(42884);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
var dropdown = __webpack_require__(91857);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
"use client";
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getBreadcrumbName(route, params) {
if (route.title === undefined || route.title === null) {
return null;
}
const paramsKeys = Object.keys(params).join('|');
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
}
function renderItem(prefixCls, item, children, href) {
if (children === null || children === undefined) {
return null;
}
const {
className,
onClick
} = item,
restItem = __rest(item, ["className", "onClick"]);
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
data: true,
aria: true
})), {
onClick
});
if (href !== undefined) {
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className),
href: href
}), children);
}
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className)
}), children);
}
function useItemRender(prefixCls, itemRender) {
const mergedItemRender = (item, params, routes, path, href) => {
if (itemRender) {
return itemRender(item, params, routes, path);
}
const name = getBreadcrumbName(item, params);
return renderItem(prefixCls, item, name, href);
};
return mergedItemRender;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
"use client";
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const InternalBreadcrumbItem = props => {
const {
prefixCls,
separator = '/',
children,
menu,
overlay,
dropdownProps,
href
} = props;
// Warning for deprecated usage
if (false) {}
/** If overlay is have Wrap a Dropdown */
const renderBreadcrumbNode = breadcrumbItem => {
if (menu || overlay) {
const mergeDropDownProps = Object.assign({}, dropdownProps);
if (menu) {
const _a = menu || {},
{
items
} = _a,
menuProps = BreadcrumbItem_rest(_a, ["items"]);
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
var {
key,
title,
label,
path
} = _a,
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
let mergedLabel = label !== null && label !== void 0 ? label : title;
if (path) {
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
href: `${href}${path}`
}, mergedLabel);
}
return Object.assign(Object.assign({}, itemProps), {
key: key !== null && key !== void 0 ? key : index,
label: mergedLabel
});
})
});
} else if (overlay) {
mergeDropDownProps.overlay = overlay;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
placement: "bottom"
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-overlay-link`
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
}
return breadcrumbItem;
};
// wrap to dropDown
const link = renderBreadcrumbNode(children);
if (link !== undefined && link !== null) {
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
}
return null;
};
const BreadcrumbItem = props => {
const {
prefixCls: customizePrefixCls,
children,
href
} = props,
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
const {
getPrefixCls
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
prefixCls: prefixCls
}), renderItem(prefixCls, restProps, children, href));
};
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
const genBreadcrumbStyle = token => {
const {
componentCls,
iconCls
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
color: token.itemColor,
fontSize: token.fontSize,
[iconCls]: {
fontSize: token.iconFontSize
},
ol: {
display: 'flex',
flexWrap: 'wrap',
margin: 0,
padding: 0,
listStyle: 'none'
},
a: Object.assign({
color: token.linkColor,
transition: `color ${token.motionDurationMid}`,
padding: `0 ${token.paddingXXS}px`,
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
marginInline: -token.marginXXS,
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover
}
}, (0,style/* genFocusStyle */.Qy)(token)),
[`li:last-child`]: {
color: token.lastItemColor
},
[`${componentCls}-separator`]: {
marginInline: token.separatorMargin,
color: token.separatorColor
},
[`${componentCls}-link`]: {
[`
> ${iconCls} + span,
> ${iconCls} + a
`]: {
marginInlineStart: token.marginXXS
}
},
[`${componentCls}-overlay-link`]: {
borderRadius: token.borderRadiusSM,
height: token.lineHeight * token.fontSize,
display: 'inline-block',
padding: `0 ${token.paddingXXS}px`,
marginInline: -token.marginXXS,
[`> ${iconCls}`]: {
marginInlineStart: token.marginXXS,
fontSize: token.fontSizeIcon
},
'&:hover': {
color: token.linkHoverColor,
backgroundColor: token.colorBgTextHover,
a: {
color: token.linkHoverColor
}
},
a: {
'&:hover': {
backgroundColor: 'transparent'
}
}
},
// rtl style
[`&${token.componentCls}-rtl`]: {
direction: 'rtl'
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
return [genBreadcrumbStyle(BreadcrumbToken)];
}, token => ({
itemColor: token.colorTextDescription,
lastItemColor: token.colorText,
iconFontSize: token.fontSize,
linkColor: token.colorTextDescription,
linkHoverColor: token.colorText,
separatorColor: token.colorTextDescription,
separatorMargin: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
var useItems_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function route2item(route) {
const {
breadcrumbName,
children
} = route,
rest = useItems_rest(route, ["breadcrumbName", "children"]);
const clone = Object.assign({
title: breadcrumbName
}, rest);
if (children) {
clone.menu = {
items: children.map(_a => {
var {
breadcrumbName: itemBreadcrumbName
} = _a,
itemProps = useItems_rest(_a, ["breadcrumbName"]);
return Object.assign(Object.assign({}, itemProps), {
title: itemBreadcrumbName
});
})
};
}
return clone;
}
function useItems(items, routes) {
return (0,_react_17_0_2_react.useMemo)(() => {
if (items) {
return items;
}
if (routes) {
return routes.map(route2item);
}
return null;
}, [items, routes]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
"use client";
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const getPath = (params, path) => {
if (path === undefined) {
return path;
}
let mergedPath = (path || '').replace(/^\//, '');
Object.keys(params).forEach(key => {
mergedPath = mergedPath.replace(`:${key}`, params[key]);
});
return mergedPath;
};
const Breadcrumb = props => {
const {
prefixCls: customizePrefixCls,
separator = '/',
style,
className,
rootClassName,
routes: legacyRoutes,
items,
children,
itemRender,
params = {}
} = props,
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
const {
getPrefixCls,
direction,
breadcrumb
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
let crumbs;
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
const mergedItems = useItems(items, legacyRoutes);
if (false) {}
const mergedItemRender = useItemRender(prefixCls, itemRender);
if (mergedItems && mergedItems.length > 0) {
// generated by route
const paths = [];
const itemRenderRoutes = items || legacyRoutes;
crumbs = mergedItems.map((item, index) => {
const {
path,
key,
type,
menu,
overlay,
onClick,
className: itemClassName,
separator: itemSeparator,
dropdownProps
} = item;
const mergedPath = getPath(params, path);
if (mergedPath !== undefined) {
paths.push(mergedPath);
}
const mergedKey = key !== null && key !== void 0 ? key : index;
if (type === 'separator') {
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
key: mergedKey
}, itemSeparator);
}
const itemProps = {};
const isLastItem = index === mergedItems.length - 1;
if (menu) {
itemProps.menu = menu;
} else if (overlay) {
itemProps.overlay = overlay;
}
let {
href
} = item;
if (paths.length && mergedPath !== undefined) {
href = `#/${paths.join('/')}`;
}
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
key: mergedKey
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
data: true,
aria: true
}), {
className: itemClassName,
dropdownProps: dropdownProps,
href: href,
separator: isLastItem ? '' : separator,
onClick: onClick,
prefixCls: prefixCls
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
});
} else if (children) {
const childrenLength = (0,toArray/* default */.Z)(children).length;
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
if (!element) {
return element;
}
// =================== Warning =====================
if (false) {}
false ? 0 : void 0;
const isLastItem = index === childrenLength - 1;
return (0,reactNode/* cloneElement */.Tm)(element, {
separator: isLastItem ? '' : separator,
key: index
});
});
}
const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
[`${prefixCls}-rtl`]: direction === 'rtl'
}, className, rootClassName, hashId);
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
className: breadcrumbClassName,
style: mergedStyle
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
};
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
if (false) {}
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
"use client";
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
/***/ }),
/***/ 1056:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72274,15569,27315,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[72274,15569,27315,10375,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73168,15569,12312,54747,18080,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[73168,15569,12312,54747,18080,64802,34668,54512,21105],{
/***/ 15997:
/*!*****************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88100,15569,12312,54747,73168,18080,64802,34668,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[75430,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\
@ -43,63 +43,112 @@ if (false) {}
/***/ }),
/***/ 80354:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules ***!
\************************************************************************************************************/
/***/ 88522:
/*!*****************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js ***!
\*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 38930);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 39029);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 92343);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 57809);
"use client";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_FolderOpenOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/FolderOpenOutlined.js
// This icon file is generated automatically.
var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, "name": "folder-open", "theme": "outlined" };
/* harmony default export */ var asn_FolderOpenOutlined = (FolderOpenOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FolderOpenOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var FolderOpenOutlined_FolderOpenOutlined = function FolderOpenOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_FolderOpenOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_FolderOpenOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOpenOutlined_FolderOpenOutlined));
/***/ }),
/***/ 56762:
/*!************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
\************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
function useForceUpdate() {
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
return forceUpdate;
const {
Option
} = _select__WEBPACK_IMPORTED_MODULE_3__["default"];
function isSelectOptionOrSelectOptGroup(child) {
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
}
const AutoComplete = (props, ref) => {
const {
prefixCls: customizePrefixCls,
className,
popupClassName,
dropdownClassName,
children,
dataSource
} = props;
const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
// ============================= Input =============================
let customizeInput;
if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
[customizeInput] = childNodes;
}
const getInputElement = customizeInput ? () => customizeInput : undefined;
// ============================ Options ============================
let optionChildren;
// [Legacy] convert `children` or `dataSource` into option children
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
optionChildren = children;
} else {
optionChildren = dataSource ? dataSource.map(item => {
if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
return item;
}
switch (typeof item) {
case 'string':
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
key: item,
value: item
}, item);
case 'object':
{
const {
value: optionValue
} = item;
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
key: optionValue,
value: optionValue
}, item.text);
}
default:
false ? 0 : void 0;
return undefined;
}
}) : [];
}
if (false) {}
const {
getPrefixCls
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__["default"], Object.assign({
ref: ref,
suffixIcon: null
}, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
prefixCls: prefixCls,
popupClassName: popupClassName || dropdownClassName,
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
mode: _select__WEBPACK_IMPORTED_MODULE_3__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE
}, {
// Internal api
getInputElement
}), optionChildren);
};
const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
RefAutoComplete.Option = Option;
RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__.Z = (RefAutoComplete);
/***/ }),
@ -658,224 +707,6 @@ input_Input.Password = input_Password;
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 39029);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ 81327:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
@ -1054,480 +885,6 @@ const CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
/***/ }),
/***/ 51218:
/*!********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ tree; }
});
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules
var es = __webpack_require__(10253);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(42371);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FileOutlined.js + 1 modules
var FileOutlined = __webpack_require__(87970);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules
var FolderOpenOutlined = __webpack_require__(80354);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(26508);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/FolderOutlined.js
// This icon file is generated automatically.
var FolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, "name": "folder", "theme": "outlined" };
/* harmony default export */ var asn_FolderOutlined = (FolderOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(91851);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FolderOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var FolderOutlined_FolderOutlined = function FolderOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_FolderOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_FolderOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOutlined_FolderOutlined));
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/util.js
var util = __webpack_require__(35654);
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js
var treeUtil = __webpack_require__(71430);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/HolderOutlined.js
// This icon file is generated automatically.
var HolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, "name": "holder", "theme": "outlined" };
/* harmony default export */ var asn_HolderOutlined = (HolderOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/HolderOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var HolderOutlined_HolderOutlined = function HolderOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_HolderOutlined
}));
};
if (false) {}
/* harmony default export */ var icons_HolderOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(HolderOutlined_HolderOutlined));
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js
var _util_motion = __webpack_require__(62892);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js
var tree_style = __webpack_require__(20648);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dropIndicator.js
"use client";
const offset = 4;
function dropIndicatorRender(props) {
const {
dropPosition,
dropLevelOffset,
prefixCls,
indent,
direction = 'ltr'
} = props;
const startPosition = direction === 'ltr' ? 'left' : 'right';
const endPosition = direction === 'ltr' ? 'right' : 'left';
const style = {
[startPosition]: -dropLevelOffset * indent + offset,
[endPosition]: 0
};
switch (dropPosition) {
case -1:
style.top = -3;
break;
case 1:
style.bottom = -3;
break;
default:
// dropPosition === 0
style.bottom = -3;
style[startPosition] = indent + offset;
break;
}
return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
style: style,
className: `${prefixCls}-drop-indicator`
});
}
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules
var iconUtil = __webpack_require__(1711);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/Tree.js
"use client";
const Tree = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
const {
getPrefixCls,
direction,
virtual,
tree
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className,
showIcon = false,
showLine,
switcherIcon,
blockNode = false,
children,
checkable = false,
selectable = true,
draggable,
motion: customMotion,
style
} = props;
const prefixCls = getPrefixCls('tree', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, (0,_util_motion/* default */.Z)(rootPrefixCls)), {
motionAppear: false
});
const newProps = Object.assign(Object.assign({}, props), {
checkable,
selectable,
showIcon,
motion,
blockNode,
showLine: Boolean(showLine),
dropIndicatorRender: dropIndicatorRender
});
const [wrapSSR, hashId] = (0,tree_style/* default */.ZP)(prefixCls);
const draggableConfig = _react_17_0_2_react.useMemo(() => {
if (!draggable) {
return false;
}
let mergedDraggable = {};
switch (typeof draggable) {
case 'function':
mergedDraggable.nodeDraggable = draggable;
break;
case 'object':
mergedDraggable = Object.assign({}, draggable);
break;
default:
break;
// Do nothing
}
if (mergedDraggable.icon !== false) {
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/_react_17_0_2_react.createElement(icons_HolderOutlined, null);
}
return mergedDraggable;
}, [draggable]);
const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(iconUtil/* default */.Z, {
prefixCls: prefixCls,
switcherIcon: switcherIcon,
treeNodeProps: nodeProps,
showLine: showLine
});
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
itemHeight: 20,
ref: ref,
virtual: virtual
}, newProps, {
// newProps may contain style so declare style below it
style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style),
prefixCls: prefixCls,
className: _classnames_2_3_2_classnames_default()({
[`${prefixCls}-icon-hide`]: !showIcon,
[`${prefixCls}-block-node`]: blockNode,
[`${prefixCls}-unselectable`]: !selectable,
[`${prefixCls}-rtl`]: direction === 'rtl'
}, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId),
direction: direction,
checkable: checkable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-checkbox-inner`
}) : checkable,
selectable: selectable,
switcherIcon: renderSwitcherIcon,
draggable: draggableConfig
}), children));
});
if (false) {}
/* harmony default export */ var tree_Tree = (Tree);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dictUtil.js
var Record;
(function (Record) {
Record[Record["None"] = 0] = "None";
Record[Record["Start"] = 1] = "Start";
Record[Record["End"] = 2] = "End";
})(Record || (Record = {}));
function traverseNodesKey(treeData, callback) {
function processNode(dataNode) {
const {
key,
children
} = dataNode;
if (callback(key, dataNode) !== false) {
traverseNodesKey(children || [], callback);
}
}
treeData.forEach(processNode);
}
/** 计算选中范围只考虑expanded情况以优化性能 */
function calcRangeKeys(_ref) {
let {
treeData,
expandedKeys,
startKey,
endKey
} = _ref;
const keys = [];
let record = Record.None;
if (startKey && startKey === endKey) {
return [startKey];
}
if (!startKey || !endKey) {
return [];
}
function matchKey(key) {
return key === startKey || key === endKey;
}
traverseNodesKey(treeData, key => {
if (record === Record.End) {
return false;
}
if (matchKey(key)) {
// Match test
keys.push(key);
if (record === Record.None) {
record = Record.Start;
} else if (record === Record.Start) {
record = Record.End;
return false;
}
} else if (record === Record.Start) {
// Append selection
keys.push(key);
}
return expandedKeys.includes(key);
});
return keys;
}
function convertDirectoryKeysToNodes(treeData, keys) {
const restKeys = (0,toConsumableArray/* default */.Z)(keys);
const nodes = [];
traverseNodesKey(treeData, (key, node) => {
const index = restKeys.indexOf(key);
if (index !== -1) {
nodes.push(node);
restKeys.splice(index, 1);
}
return !!restKeys.length;
});
return nodes;
}
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/DirectoryTree.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
function getIcon(props) {
const {
isLeaf,
expanded
} = props;
if (isLeaf) {
return /*#__PURE__*/_react_17_0_2_react.createElement(FileOutlined/* default */.Z, null);
}
return expanded ? /*#__PURE__*/_react_17_0_2_react.createElement(FolderOpenOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_FolderOutlined, null);
}
function getTreeData(_ref) {
let {
treeData,
children
} = _ref;
return treeData || (0,treeUtil/* convertTreeToData */.zn)(children);
}
const DirectoryTree = (_a, ref) => {
var {
defaultExpandAll,
defaultExpandParent,
defaultExpandedKeys
} = _a,
props = __rest(_a, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]);
// Shift click usage
const lastSelectedKey = _react_17_0_2_react.useRef();
const cachedSelectedKeys = _react_17_0_2_react.useRef();
const getInitExpandedKeys = () => {
const {
keyEntities
} = (0,treeUtil/* convertDataToEntities */.I8)(getTreeData(props));
let initExpandedKeys;
// Expanded keys
if (defaultExpandAll) {
initExpandedKeys = Object.keys(keyEntities);
} else if (defaultExpandParent) {
initExpandedKeys = (0,util/* conductExpandParent */.r7)(props.expandedKeys || defaultExpandedKeys || [], keyEntities);
} else {
initExpandedKeys = props.expandedKeys || defaultExpandedKeys;
}
return initExpandedKeys;
};
const [selectedKeys, setSelectedKeys] = _react_17_0_2_react.useState(props.selectedKeys || props.defaultSelectedKeys || []);
const [expandedKeys, setExpandedKeys] = _react_17_0_2_react.useState(() => getInitExpandedKeys());
_react_17_0_2_react.useEffect(() => {
if ('selectedKeys' in props) {
setSelectedKeys(props.selectedKeys);
}
}, [props.selectedKeys]);
_react_17_0_2_react.useEffect(() => {
if ('expandedKeys' in props) {
setExpandedKeys(props.expandedKeys);
}
}, [props.expandedKeys]);
const onExpand = (keys, info) => {
var _a;
if (!('expandedKeys' in props)) {
setExpandedKeys(keys);
}
// Call origin function
return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info);
};
const onSelect = (keys, event) => {
var _a;
const {
multiple
} = props;
const {
node,
nativeEvent
} = event;
const {
key = ''
} = node;
const treeData = getTreeData(props);
// const newState: DirectoryTreeState = {};
// We need wrap this event since some value is not same
const newEvent = Object.assign(Object.assign({}, event), {
selected: true
});
// Windows / Mac single pick
const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;
// Generate new selected keys
let newSelectedKeys;
if (multiple && ctrlPick) {
// Control click
newSelectedKeys = keys;
lastSelectedKey.current = key;
cachedSelectedKeys.current = newSelectedKeys;
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
} else if (multiple && shiftPick) {
// Shift click
newSelectedKeys = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(cachedSelectedKeys.current || []), (0,toConsumableArray/* default */.Z)(calcRangeKeys({
treeData,
expandedKeys,
startKey: key,
endKey: lastSelectedKey.current
})))));
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
} else {
// Single click
newSelectedKeys = [key];
lastSelectedKey.current = key;
cachedSelectedKeys.current = newSelectedKeys;
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
}
(_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent);
if (!('selectedKeys' in props)) {
setSelectedKeys(newSelectedKeys);
}
};
const {
getPrefixCls,
direction
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
className,
showIcon = true,
expandAction = 'click'
} = props,
otherProps = __rest(props, ["prefixCls", "className", "showIcon", "expandAction"]);
const prefixCls = getPrefixCls('tree', customizePrefixCls);
const connectClassName = _classnames_2_3_2_classnames_default()(`${prefixCls}-directory`, {
[`${prefixCls}-directory-rtl`]: direction === 'rtl'
}, className);
return /*#__PURE__*/_react_17_0_2_react.createElement(tree_Tree, Object.assign({
icon: getIcon,
ref: ref,
blockNode: true
}, otherProps, {
showIcon: showIcon,
expandAction: expandAction,
prefixCls: prefixCls,
className: connectClassName,
expandedKeys: expandedKeys,
selectedKeys: selectedKeys,
onSelect: onSelect,
onExpand: onExpand
}));
};
const ForwardDirectoryTree = /*#__PURE__*/_react_17_0_2_react.forwardRef(DirectoryTree);
if (false) {}
/* harmony default export */ var tree_DirectoryTree = (ForwardDirectoryTree);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js
"use client";
const es_tree_Tree = tree_Tree;
es_tree_Tree.DirectoryTree = tree_DirectoryTree;
es_tree_Tree.TreeNode = es/* TreeNode */.O;
/* harmony default export */ var tree = (es_tree_Tree);
/***/ })
}]);

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79399,15569,19523,18900,34712,10375,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[79399,15569,19523,18900,34712,10375,64802,34668,54512],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85081,38177,47256,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85081,38177,47256,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86854,15569,10375,38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86854,15569,10375,38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94439,38177,47256,85081,53555,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94439,38177,47256,85081,53555,64802,34668,54512],{
/***/ 80045:
/*!*******************************************************************************************************************!*\

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -3685,7 +3685,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: ShixunDetailmodules.totalCount,
children: v.task_count === 0 ? "" : v.task_count
}), (0,authority/* isAdmins */.eB)() && v.type !== 'statistics' && v.type !== 'ecs' && /*#__PURE__*/(0,jsx_runtime.jsx)(popover/* default */.Z, {
}), (0,authority/* isAdmins */.eB)() && v.type !== 'statistics' && v.type !== 'ecs' && v.type !== "new_graduation" && /*#__PURE__*/(0,jsx_runtime.jsx)(popover/* default */.Z, {
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},

@ -243,7 +243,7 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
_umi_production_exports.history.replace('/account/secure?active=3');
window.location.href = '/account/secure?active=3';
dispatch({
type: 'user/showPopLogin',
payload: {
@ -3074,7 +3074,6 @@ var _excluded = ["loading", "globalSetting", "user", "dispatch"];
// import themes from '@/styles/';
@ -3164,7 +3163,13 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
}, [globalSetting.theme]);
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [location.pathname]);
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/query',
payload: {}
});
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _window$location$href, _window$location$href2;
if (location.pathname.indexOf("classrooms") > -1 && location.pathname.indexOf("detail") === -1) {} else {
@ -3183,10 +3188,6 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
window.location.href = "https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";
return;
}
dispatch({
type: 'globalSetting/query',
payload: {}
});
dispatch({
type: "globalSetting/setGlobalLoading",
payload: {

@ -829,6 +829,14 @@ var util = __webpack_require__(27291);
var listPlanLibrary = [{
icon_type: "lesson",
name: "好课展示",
icon: 'iconfont icon-haokezhanshi'
}, {
icon_type: "discussion",
name: "交流研讨",
icon: 'iconfont icon-jiaoliuyantao'
}, {
icon_type: "homepage",
name: "101计划-软件工程",
icon: 'iconfont icon-a-101jihua'

@ -389,7 +389,7 @@
box-orient: block-axis;
}
.menuWrap___oMbDo {
width: 223px;
width: 200px;
flex-shrink: 0;
border-right: 1px solid #dbdce0;
background-color: #fff;
@ -403,7 +403,7 @@
position: relative;
display: flex;
align-items: center;
padding: 12px 12px 12px 45px;
padding: 12px 12px 12px 40px;
font-size: 16px;
font-weight: 400;
color: #5f6367;

@ -108,6 +108,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -177,11 +182,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -51,6 +51,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -120,11 +125,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -1807,6 +1807,7 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('发布成功');
groupIdsInitialValues = [];
form.resetFields();
dispatch({
type: 'attachment/setActionTabs',
payload: {}
@ -1856,6 +1857,11 @@ var CuttOffNowShixun = function CuttOffNowShixun(_ref) {
type: 'attachment/setActionTabs',
payload: {}
});
setQuery({
page: 0,
page_size: 20,
search: ""
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: SelectAttchmentmodules.search,

File diff suppressed because it is too large Load Diff

@ -1065,6 +1065,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -1134,11 +1139,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}
@ -1590,8 +1597,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
}
function _getDatas() {
_getDatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee16() {
var _res$all_student_work, _res$all_student_work2;
var paylaod, data, res, key, _res$all_student_work3, _res$all_student_work4;
var paylaod, data;
return regeneratorRuntime_default()().wrap(function _callee16$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
@ -1600,32 +1606,31 @@ var ExeriseReview = function ExeriseReview(_ref) {
if (searchParams.get("ids")) {
data.course_group = searchParams.get("ids").split(',');
}
_context16.next = 5;
return dispatch({
type: 'shixunHomeworks/getAllStudentWorks',
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, params), paylaod), data)
});
case 5:
res = _context16.sent;
// setSpinning(false);
key = (_res$all_student_work = res['all_student_works']) === null || _res$all_student_work === void 0 ? void 0 : _res$all_student_work.map(function (item) {
return String(item.student_work_id);
}).indexOf(params.userId);
if (key === ((_res$all_student_work2 = res['all_student_works']) === null || _res$all_student_work2 === void 0 ? void 0 : _res$all_student_work2.length) - 1) {
setNextComment({
last: true
});
} else {
setNextComment((_res$all_student_work3 = res['all_student_works']) === null || _res$all_student_work3 === void 0 ? void 0 : _res$all_student_work3[key + 1]);
}
if (key === 0) {
setPrevious({
last: true
});
} else {
setPrevious((_res$all_student_work4 = res['all_student_works']) === null || _res$all_student_work4 === void 0 ? void 0 : _res$all_student_work4[key - 1]);
}
case 9:
// const res = await dispatch({
// type: 'shixunHomeworks/getAllStudentWorks',
// payload: {
// ...params,
// ...paylaod,
// ...data
// },
// });
// // setSpinning(false);
// const key = res['all_student_works']
// ?.map((item: any) => String(item.student_work_id))
// .indexOf(params.userId);
// if (key === res['all_student_works']?.length - 1) {
// setNextComment({ last: true });
// } else {
// setNextComment(res['all_student_works']?.[key + 1]);
// }
// if (key === 0) {
// setPrevious({ last: true });
// } else {
// setPrevious(res['all_student_works']?.[key - 1]);
// }
case 3:
case "end":
return _context16.stop();
}
@ -1633,6 +1638,28 @@ var ExeriseReview = function ExeriseReview(_ref) {
}));
return _getDatas.apply(this, arguments);
}
(0,_react_17_0_2_react.useEffect)(function () {
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.homework_id) {
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.prev_work_id) {
setPrevious({
student_work_id: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.prev_work_id
});
} else {
setPrevious({
last: true
});
}
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.next_work_id) {
setNextComment({
student_work_id: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.next_work_id
});
} else {
setNextComment({
last: true
});
}
}
}, [studentWorkDetail]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
@ -1735,8 +1762,15 @@ var ExeriseReview = function ExeriseReview(_ref) {
res = _context3.sent;
if (res.status === 0) {
form.resetFields();
message/* default */.ZP.success('提交成功');
getData();
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.next_work_id) {
message/* default */.ZP.success('评阅成功!已为您自动切换至下一个待评阅的学生', 2);
handleNextAppraise('read');
} else {
message/* default */.ZP.success('评阅成功!', 2);
getData();
}
// form.resetFields();
// getData();
}
case 5:
case "end":
@ -2073,25 +2107,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
onFinish: function onFinish(value) {
return handleSave(value);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u8BED",
name: "comment",
rules: [{
required: true,
message: '请输入评语'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED",
defaultValue: "",
height: 250
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
@ -2100,8 +2116,8 @@ var ExeriseReview = function ExeriseReview(_ref) {
justify: "start",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,
name: "score",
label: "\u8BC4\u5206",
rules: [{
required: (0,authority/* isAdmin */.GJ)() ? false : true,
message: '请填写分数'
@ -2125,6 +2141,21 @@ var ExeriseReview = function ExeriseReview(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u8BED",
name: "comment"
// rules={[{ required: true, message: '请输入评语' }]}
,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
placeholder: "\u8BF7\u8F93\u5165\u8BC4\u8BED",
defaultValue: "",
height: 250
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
})
}), (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1",
name: "hidden_comment",
@ -2154,14 +2185,14 @@ var ExeriseReview = function ExeriseReview(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "1",
className: "tr",
children: [!(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
onClick: function onClick() {
return handleNextAppraise('last');
},
disabled: Previous === null || Previous === void 0 ? void 0 : Previous.last,
children: "\u4E0A\u4E00\u4E2A"
}), !(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
disabled: nextComment === null || nextComment === void 0 ? void 0 : nextComment.last,
style: {

File diff suppressed because one or more lines are too long

@ -5759,7 +5759,7 @@ var input_number = __webpack_require__(69532);
var es_button = __webpack_require__(3113);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___aPGWN","flex_space_between":"flex_space_between___MQNX5","flex_box_vertical_center":"flex_box_vertical_center___Z7QdK","flex_box_center_end":"flex_box_center_end___JQl5O","flex_box_column":"flex_box_column___IhYhx","bg":"bg___Kg8x_","title":"title___UhsVG","titleLeft":"titleLeft___NPVwn","titleRight":"titleRight___UGtmZ","formWrap":"formWrap___Jowb2","baseLineHeight":"baseLineHeight___N68WX","radioBtnWrapper":"radioBtnWrapper___bX7Pi","radiogroup":"radiogroup___ukf8u","easy":"easy___ZHYPU","medium":"medium___piewx","hard":"hard___HMXyt","selectdiv":"selectdiv___gkuBG","divitem":"divitem___vNm0q","bottmodiv":"bottmodiv___assW5","cancelBtn":"cancelBtn___Nl6Pi","confirmBtn":"confirmBtn___BNoFU","baseFormItem":"baseFormItem___ILZ2V","cascaderPopup":"cascaderPopup___QPxW3"});
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___aPGWN","flex_space_between":"flex_space_between___MQNX5","flex_box_vertical_center":"flex_box_vertical_center___Z7QdK","flex_box_center_end":"flex_box_center_end___JQl5O","flex_box_column":"flex_box_column___IhYhx","bg":"bg___Kg8x_","title":"title___UhsVG","titleLeft":"titleLeft___NPVwn","titleRight":"titleRight___UGtmZ","formWrap":"formWrap___Jowb2","baseLineHeight":"baseLineHeight___N68WX","radioBtnWrapper":"radioBtnWrapper___bX7Pi","radiogroup":"radiogroup___ukf8u","easy":"easy___ZHYPU","medium":"medium___piewx","hard":"hard___HMXyt","selectdiv":"selectdiv___gkuBG","divitem":"divitem___vNm0q","bottmodiv":"bottmodiv___assW5","cancelBtn":"cancelBtn___Nl6Pi","confirmBtn":"confirmBtn___BNoFU","baseFormItem":"baseFormItem___ILZ2V","cascaderPopup":"cascaderPopup___QPxW3","addQuestionBtn":"addQuestionBtn___OjehS"});
// 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/date-picker/index.js + 66 modules
@ -10478,14 +10478,14 @@ var ReuseShixunModal = __webpack_require__(59386);
var AddQuestionsModal_AddModal = function AddModal(_ref) {
var _datas$tag_discipline;
var _datas$tag_discipline, _grouplist$share_bank, _grouplist$my_banks_g;
var setScoreShow = _ref.setScoreShow,
ScoreShow = _ref.ScoreShow,
onOk = _ref.onOk,
isshixuns = _ref.isshixuns,
isloadings = _ref.isloadings;
var _useState = (0,_react_17_0_2_react.useState)({
type: '1',
type: '0',
page: 1,
per_page: 10,
updated_at: '',
@ -10868,8 +10868,10 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
onChange: function onChange(e) {
param.type = e;
param.page = 1;
param.updated_at = '', param.quotes = '', param.item_type = null, param.courseid = '', param.tag_discipline_id = null, param.difficulty = null, param.keyword = null, param.group_id = null, form.setFieldsValue({
item_type: null,
param.updated_at = '', param.quotes = '',
// param.item_type = null,
param.courseid = '', param.tag_discipline_id = null, param.difficulty = null, param.keyword = null, param.group_id = null, form.setFieldsValue({
// item_type: null,
courseid: '',
tag_discipline_id: null,
difficulty: null,
@ -11025,11 +11027,11 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: "\u6839\u76EE\u5F55"
}, 0), param.type === '3' && (grouplist === null || grouplist === void 0 ? void 0 : grouplist.share_banks_groups.map(function (item) {
}, 0), param.type === '3' && (grouplist === null || grouplist === void 0 || (_grouplist$share_bank = grouplist.share_banks_groups) === null || _grouplist$share_bank === void 0 ? void 0 : _grouplist$share_bank.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: item.name
}, item.id);
})), param.type === '0' && (grouplist === null || grouplist === void 0 ? void 0 : grouplist.my_banks_groups.map(function (item) {
})), param.type === '0' && (grouplist === null || grouplist === void 0 || (_grouplist$my_banks_g = grouplist.my_banks_groups) === null || _grouplist$my_banks_g === void 0 ? void 0 : _grouplist$my_banks_g.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: item.name
}, item.id);
@ -12927,10 +12929,10 @@ var AddNewPaper = function AddNewPaper(_ref) {
_context8.next = 15;
break;
case 14:
if (res.status === -2) {
if (res.status === -4) {
modal/* default */.Z.confirm({
title: '提示',
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7F16\u7A0B\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
@ -13084,6 +13086,8 @@ var AddNewPaper = function AddNewPaper(_ref) {
var DigitalLabel = __webpack_require__(29059);
// EXTERNAL MODULE: ./src/pages/Paperlibrary/Add/TitleEditor.tsx
var TitleEditor = __webpack_require__(16934);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/components/Addpaperlibrary.tsx
var Addpaperlibrary = __webpack_require__(69867);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Add/index.tsx
@ -13104,6 +13108,8 @@ var Add_excluded = ["classroomList", "globalSetting", "problemset", "loading", "
var ExerciseAdd = function ExerciseAdd(_ref) {
var _problemset$disciplin4, _userInfo$course, _exercise$editData, _exercise$editData8, _exercise$editData9, _exercise$editData10, _exercise$editData11, _exercise$editData12;
var classroomList = _ref.classroomList,
@ -13349,6 +13355,42 @@ var ExerciseAdd = function ExerciseAdd(_ref) {
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'inline-flex',
background: 'rgba(233, 146, 55, 0.05)',
borderRadius: 4,
height: 40,
lineHeight: '40px',
width: '100%',
padding: '0px 10px',
alignItems: 'center',
marginTop: 20
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
marginRight: 5,
color: '#E99237'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1,
color: '#E99237'
},
children: "\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Addmodules.addQuestionBtn,
onClick: function onClick() {
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: '单个加入试卷库',
selectArrs: [params.exerciseId]
}
});
},
children: "\u52A0\u5165\u8BD5\u5377\u5E93"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Addpaperlibrary/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "bg-white",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
@ -13924,7 +13966,7 @@ var UploadQuestions = function UploadQuestions(_ref) {
children: "3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: UploadQuestionsmodules.infoText,
children: "4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63015\u4E2A\u586B\u7A7A\u9879\u3002"
children: "4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
@ -13990,6 +14032,247 @@ var UploadQuestions = function UploadQuestions(_ref) {
/***/ }),
/***/ 69867:
/*!****************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Exercise/components/Addpaperlibrary.tsx ***!
\****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ 43418);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/fetch */ 97174);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 66660);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var Addpaperlibrary = function Addpaperlibrary(_ref) {
var exercise = _ref.exercise,
dispatch = _ref.dispatch;
var params = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useParams)();
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),
_useState2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
isshow = _useState2[0],
setisshow = _useState2[1];
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(),
_useState4 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
item = _useState4[0],
setitem = _useState4[1];
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
if (exercise.actionTabs.key === '单个加入试卷库') {
checkexercise();
}
}, [exercise.actionTabs]);
function checkexercise() {
return _checkexercise.apply(this, arguments);
}
function _checkexercise() {
_checkexercise = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3() {
var _res$cover_exercises;
var res, _res$cover_exercises2, _res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/check_exercise_cover.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 2:
res = _context3.sent;
if (!((res === null || res === void 0 || (_res$cover_exercises = res.cover_exercises) === null || _res$cover_exercises === void 0 ? void 0 : _res$cover_exercises.length) > 0)) {
_context3.next = 8;
break;
}
setisshow(true);
setitem(res === null || res === void 0 || (_res$cover_exercises2 = res.cover_exercises) === null || _res$cover_exercises2 === void 0 ? void 0 : _res$cover_exercises2[0]);
_context3.next = 13;
break;
case 8:
_context3.next = 10;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 10:
_res = _context3.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((_res === null || _res === void 0 ? void 0 : _res.status) === 0) {
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
case 13:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _checkexercise.apply(this, arguments);
}
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
open: isshow,
centered: true,
onCancel: /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(e) {
var res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!(e.target.outerText === '覆盖原来的试卷')) {
_context.next = 8;
break;
}
_context.next = 3;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs,
update: 1
}
});
case 3:
res = _context.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisshow(false);
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
_context.next = 10;
break;
case 8:
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
setisshow(false);
case 10:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}(),
okText: "\u5F62\u6210\u65B0\u8BD5\u5377",
cancelText: "\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",
onOk: /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
var res;
return _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/exercises/join_examination_banks.json"), {
method: 'post',
body: {
check_ids: exercise.actionTabs.selectArrs
}
});
case 2:
res = _context2.sent;
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: ''
}
});
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setisshow(false);
antd__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.confirm({
title: '提示',
icon: null,
centered: true,
content: '操作成功!可以前往试卷库进行编辑',
okText: '前往试卷库',
cancelText: '稍后再说',
onOk: function onOk() {
umi__WEBPACK_IMPORTED_MODULE_5__.history.push("/paperlibrary");
}
});
}
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
})),
title: "\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("p", {
children: "\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: ["\u8BD5\u5377\uFF1A", item === null || item === void 0 ? void 0 : item.origin_exercise_nam]
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", {
children: ["\u539F\u8BD5\u5377\uFF1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("a", {
href: "/paperlibrary/see/".concat(item === null || item === void 0 ? void 0 : item.examination_bank_id, "?defaultActiveKey=0"),
target: "_blank",
children: item === null || item === void 0 ? void 0 : item.examination_bank_name
})]
})]
})]
})
})
});
};
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref4) {
var exercise = _ref4.exercise;
return {
exercise: exercise
};
})(Addpaperlibrary));
/***/ }),
/***/ 75051:
/*!*****************************************************************!*\
!*** ./src/pages/MyProblem/TestCasePanel/index.tsx + 1 modules ***!

@ -192,6 +192,31 @@
color: #3061D0;
font-weight: 400;
}
.addQuestionBtn___OjehS {
background: #F8F9FC;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 4px;
color: #3061D0;
border: 1px solid #BACFFE;
text-shadow: none;
height: 32px;
line-height: 32px;
padding: 0px 15px;
cursor: pointer;
}
.addQuestionBtn___OjehS i {
color: #3061D0;
font-size: 14px;
font-weight: 600;
}
.addQuestionBtn___OjehS:hover {
background: #3061D0;
color: #fff;
border-color: transparent;
}
.addQuestionBtn___OjehS:hover i {
color: #fff;
}
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Add/EngineeringPoints/index.less?modules ***!

@ -10,6 +10,7 @@
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -22,7 +23,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -32,6 +33,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -44,6 +49,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -196,14 +202,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -13084,6 +13131,10 @@ var DragSubject = function DragSubject(_ref) {
/* harmony default export */ var components_DragSubject = ((0,_umi_production_exports.connect)()(DragSubject));
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/Export/components/Head/index.tsx + 1 modules
var Head = __webpack_require__(46759);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/components/Addpaperlibrary.tsx
var Addpaperlibrary = __webpack_require__(69867);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(80045);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/ReferenceAnswer/index.tsx
@ -13098,6 +13149,8 @@ var Head = __webpack_require__(46759);
var ReferenceAnswer_WorkList = function WorkList(_ref) {
var _editData$exercise;
var exercise = _ref.exercise,
@ -13164,16 +13217,53 @@ var ReferenceAnswer_WorkList = function WorkList(_ref) {
});
};
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "minH1050 mb20 pt30 pb30 pl60 bg-white relative",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.Z, {
isPreview: true,
activeTabs: activeTabs,
showExportBtn: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_DragSubject, {
data: editData === null || editData === void 0 ? void 0 : editData.exercise_question_types,
isDragDisabled: true,
markBtnVisible: exercise_status === 3 && ((editData === null || editData === void 0 || (_editData$exercise = editData.exercise) === null || _editData$exercise === void 0 ? void 0 : _editData$exercise.is_creator) || (0,authority/* isSuperAdmins */.Ny)())
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'inline-flex',
background: 'rgba(233, 146, 55, 0.05)',
borderRadius: 4,
height: 40,
lineHeight: '40px',
width: '100%',
padding: '0px 10px',
alignItems: 'center',
marginTop: 20
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
style: {
marginRight: 5,
color: '#E99237'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
flex: 1,
color: '#E99237'
},
children: "\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: '单个加入试卷库',
selectArrs: [params.categoryId]
}
});
},
children: "\u52A0\u5165\u8BD5\u5377\u5E93"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "minH1050 mb20 pt30 pb30 pl60 bg-white relative",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.Z, {
isPreview: true,
activeTabs: activeTabs,
showExportBtn: true
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_DragSubject, {
data: editData === null || editData === void 0 ? void 0 : editData.exercise_question_types,
isDragDisabled: true,
markBtnVisible: exercise_status === 3 && ((editData === null || editData === void 0 || (_editData$exercise = editData.exercise) === null || _editData$exercise === void 0 ? void 0 : _editData$exercise.is_creator) || (0,authority/* isSuperAdmins */.Ny)())
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Addpaperlibrary/* default */.Z, {})]
})]
});
};
@ -13354,6 +13444,7 @@ var ExerciseRedo = function ExerciseRedo(_ref) {
handleInfiniteOnLoad(1);
};
var handleOK = function handleOK() {
var aa = true;
var put = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
@ -13362,6 +13453,7 @@ var ExerciseRedo = function ExerciseRedo(_ref) {
case 0:
_context2.next = 2;
return (0,service_exercise/* redoExercise */.q6)(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
is_reset: aa,
user_ids: userId
}));
case 2:
@ -13395,13 +13487,15 @@ var ExerciseRedo = function ExerciseRedo(_ref) {
style: {
margin: '13px 0 0px 0'
},
className: Redomodules.title,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
style: {
objectFit: 'contain'
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: "\u786E\u5B9A\u5C06\u9009\u4E2D\u7684\u5B66\u751F\u6253\u56DE\u91CD\u505A\u5417\uFF1F"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
defaultChecked: true,
onChange: function onChange(e) {
aa = e.target.checked;
},
src: jinshi/* default */.Z
}), "\u5F53\u524D\u64CD\u4F5C\u5C06\u6E05\u7A7A\u5B66\u751F\u6210\u7EE9\u548C\u7B54\u9898\u8BB0\u5F55\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F"]
children: "\u6E05\u7A7A\u5B66\u751F\u7684\u7B54\u9898\u8BB0\u5F55"
})]
}),
onOk: put
});

@ -3354,6 +3354,25 @@ button[class~='ant-btn-default']:disabled.btn___In02G {
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Detail/components/ExamMonitoring/index.less?modules ***!

@ -1427,7 +1427,7 @@ var Export = function Export(_ref) {
} else if (exportType == 'pdf') {
exportReport("all");
} else if (exportType == 'word') {
exportReport2("all");
(allStudents === null || allStudents === void 0 ? void 0 : allStudents.length) > 0 ? exportReport2("all") : antd__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .ZP.info('没有可导出的学生试卷');
}
setismodal(false);
},

@ -84,6 +84,7 @@ var AsyncButton = function AsyncButton(_ref) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -96,7 +97,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -106,6 +107,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -118,6 +123,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -270,14 +276,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -2848,8 +2895,12 @@ var BehavioralAnalysis = __webpack_require__(94912);
var Intelligent = function Intelligent(_ref) {
var _parentData$photos, _parentData$photos2;
var _dealOncFnc, _parentData$photos, _parentData$photos2, _parentData$photos3;
var parentData = _ref.parentData;
var empty = ((_dealOncFnc = (0,BehavioralAnalysis/* dealOncFnc */.Uf)(parentData)) === null || _dealOncFnc === void 0 ? void 0 : _dealOncFnc.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(parentData !== null && parentData !== void 0 && (_parentData$photos = parentData.photos) !== null && _parentData$photos !== void 0 && _parentData$photos.length);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Intelligentmodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -2858,22 +2909,24 @@ var Intelligent = function Intelligent(_ref) {
children: "\u8003\u8BD5\u7167\u7247"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: parentData === null || parentData === void 0 || (_parentData$photos = parentData.photos) === null || _parentData$photos === void 0 ? void 0 : _parentData$photos.length
children: parentData === null || parentData === void 0 || (_parentData$photos2 = parentData.photos) === null || _parentData$photos2 === void 0 ? void 0 : _parentData$photos2.length
}), "\u5F20"]
})]
}), !!(parentData !== null && parentData !== void 0 && (_parentData$photos2 = parentData.photos) !== null && _parentData$photos2 !== void 0 && _parentData$photos2.length) ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
}), empty ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(parentData)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Intelligentmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
dataSource: parentData === null || parentData === void 0 ? void 0 : parentData.photos,
right: 21,
col: 3,
wrapWidth: 856
}), !!(parentData !== null && parentData !== void 0 && (_parentData$photos3 = parentData.photos) !== null && _parentData$photos3 !== void 0 && _parentData$photos3.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Intelligentmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
dataSource: parentData === null || parentData === void 0 ? void 0 : parentData.photos,
right: 21,
col: 3,
wrapWidth: 856
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u5B66\u751F\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u7ED3\u679C"
})]
});
};

@ -143,6 +143,25 @@
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Exercise/Review/component/Drawer/index.less?modules ***!

@ -2280,6 +2280,18 @@ var List = function List(_ref) {
};
}(),
children: "\u5220\u9664\u8BD5\u5377"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
onClick: function onClick() {
dispatch({
type: 'exercise/setActionTabs',
payload: {
key: '单个加入试卷库',
selectArrs: [v.id],
params: params
}
});
},
children: "\u52A0\u5165\u8BD5\u5377\u5E93"
}),
// 判断 是否具有结束考试权限
((0,authority/* isAdmin */.GJ)() || (classroomList === null || classroomList === void 0 || (_classroomList$Assist3 = classroomList.AssistantObject) === null || _classroomList$Assist3 === void 0 || (_classroomList$Assist3 = _classroomList$Assist3.exercise) === null || _classroomList$Assist3 === void 0 ? void 0 : _classroomList$Assist3.can_stop)) && /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
@ -2602,6 +2614,8 @@ var TabMenu = __webpack_require__(63989);
var SearchSortController = __webpack_require__(54957);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/components/BottomControl/index.tsx + 1 modules
var BottomControl = __webpack_require__(9046);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Exercise/components/Addpaperlibrary.tsx
var Addpaperlibrary = __webpack_require__(69867);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(80045);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/index.tsx
@ -2633,6 +2647,7 @@ var Exercise_excluded = ["user", "classroomList", "globalSetting", "loading", "d
var ShixunsListPage = function ShixunsListPage(_ref) {
@ -3307,7 +3322,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
children: "\u5F62\u6210\u65B0\u8BD5\u5377"
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Addpaperlibrary/* default */.Z, {})]
});
};
/* harmony default export */ var Exercise = ((0,_umi_production_exports.connect)(function (_ref7) {

File diff suppressed because it is too large Load Diff

@ -1065,6 +1065,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -1134,11 +1139,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}
@ -1201,10 +1208,10 @@ var col = __webpack_require__(43604);
var spin = __webpack_require__(71418);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(28103);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
var es_checkbox = __webpack_require__(24905);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
var input_number = __webpack_require__(69532);
// 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/tooltip/index.js + 3 modules
@ -1491,7 +1498,7 @@ var _excluded = ["shixunHomeworks", "globalSetting", "loading", "user", "dispatc
var questionType = (/* unused pure expression or super */ null && (['单选题', '多选题', '判断题', '填空题', '简答题', '实训题']));
var ExeriseReview = function ExeriseReview(_ref) {
var _userInfo$course, _studentWorkDetail$ho, _studentWorkDetail$pr, _studentWorkDetail$pr2, _studentWorkDetail$pr3, _studentWorkDetail$pr4, _user$navigationInfo, _studentWorkDetail$pr5, _studentWorkDetail$pr6, _studentWorkDetail$pr7, _studentWorkDetail$wo, _studentWorkDetail$wo2, _studentWorkDetail$no, _studentWorkDetail$no2, _studentWorkDetail$no3, _studentWorkDetail$co, _studentWorkDetail$ho2, _studentWorkCommon$co, _studentWorkCommon$co2, _studentWorkCommon$co3, _studentWorkCommon$hi, _studentWorkCommon$hi2;
var _userInfo$course, _studentWorkDetail$ho, _studentWorkDetail$pr, _studentWorkDetail$pr2, _studentWorkDetail$pr3, _studentWorkDetail$pr4, _globalSetting$settin, _studentWorkDetail$pr5, _studentWorkDetail$pr6, _studentWorkDetail$pr7, _studentWorkDetail$wo, _studentWorkDetail$wo2, _studentWorkDetail$no, _studentWorkDetail$no2, _studentWorkDetail$no3, _studentWorkDetail$co, _studentWorkDetail$ho2, _studentWorkCommon$co, _studentWorkCommon$co2, _studentWorkCommon$co3, _studentWorkCommon$hi, _studentWorkCommon$hi2;
var shixunHomeworks = _ref.shixunHomeworks,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
@ -1592,41 +1599,29 @@ var ExeriseReview = function ExeriseReview(_ref) {
}
function _getDatas() {
_getDatas = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var _res$all_student_work, _res$all_student_work2;
var paylaod, res, key, _res$all_student_work3, _res$all_student_work4;
var paylaod;
return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
// const paylaod = JSON.parse(sessionStorage['all_student_works_params'] || '{}')
paylaod = JSON.parse(localStorage.getItem('all_student_works_param') || '{}'); // console.log('----------',paylaod);
_context10.next = 3;
return dispatch({
type: 'shixunHomeworks/getAllStudentWorks',
payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, {
categoryId: params.commonHomeworkId
}, paylaod)
});
case 3:
res = _context10.sent;
// const res = await dispatch({
// type: 'shixunHomeworks/getAllStudentWorks',
// payload: { ...params, categoryId: params.commonHomeworkId, ...paylaod },
// })
// setSpinning(false);
key = (_res$all_student_work = res['all_student_works']) === null || _res$all_student_work === void 0 ? void 0 : _res$all_student_work.map(function (item) {
return String(item.student_work_id);
}).indexOf(params.userId);
if (key === ((_res$all_student_work2 = res['all_student_works']) === null || _res$all_student_work2 === void 0 ? void 0 : _res$all_student_work2.length) - 1) {
setNextComment({
last: true
});
} else {
setNextComment((_res$all_student_work3 = res['all_student_works']) === null || _res$all_student_work3 === void 0 ? void 0 : _res$all_student_work3[key + 1]);
}
if (key === 0) {
setPrevious({
last: true
});
} else {
setPrevious((_res$all_student_work4 = res['all_student_works']) === null || _res$all_student_work4 === void 0 ? void 0 : _res$all_student_work4[key - 1]);
}
case 7:
// const key = res['all_student_works']?.map((item: any) => String(item.student_work_id)).indexOf(params.userId)
// if (key === res['all_student_works']?.length - 1) {
// setNextComment({ last: true })
// } else {
// setNextComment(res['all_student_works']?.[key + 1])
// }
// if (key === 0) {
// setPrevious({ last: true })
// } else {
// setPrevious(res['all_student_works']?.[key - 1])
// }
case 1:
case "end":
return _context10.stop();
}
@ -1634,6 +1629,28 @@ var ExeriseReview = function ExeriseReview(_ref) {
}));
return _getDatas.apply(this, arguments);
}
(0,_react_17_0_2_react.useEffect)(function () {
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.homework_id) {
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.prev_work_id) {
setPrevious({
student_work_id: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.prev_work_id
});
} else {
setPrevious({
last: true
});
}
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.next_work_id) {
setNextComment({
student_work_id: studentWorkDetail === null || studentWorkDetail === void 0 ? void 0 : studentWorkDetail.next_work_id
});
} else {
setNextComment({
last: true
});
}
}
}, [studentWorkDetail]);
var handleDelete = function handleDelete(d) {
modal.confirm({
title: "是否确认删除?",
@ -1721,9 +1738,17 @@ var ExeriseReview = function ExeriseReview(_ref) {
case 3:
res = _context3.sent;
if (res.status === 0) {
message/* default */.ZP.success("提交成功");
form.resetFields();
getData();
if (studentWorkDetail !== null && studentWorkDetail !== void 0 && studentWorkDetail.next_work_id) {
message/* default */.ZP.success('评阅成功!已为您自动切换至下一个待评阅的学生', 2);
handleNextAppraise('read');
} else {
message/* default */.ZP.success('评阅成功!', 2);
getData();
}
// message.success('评阅成功!已为您自动切换至下一个待评阅的学生', 2);
// handleNextAppraise('read')
// getData()
}
case 5:
case "end":
@ -1735,31 +1760,6 @@ var ExeriseReview = function ExeriseReview(_ref) {
return _ref2.apply(this, arguments);
};
}();
// const handleNextAppraise = async (type: string) => {
// const { comment, score } = form.getFieldsValue();
// const boolScore = !isNil(score);
// if (type === 'read') {
// if (comment && boolScore) {
// const res = await addStudentWorkScore({
// ...form.getFieldsValue(),
// userId: params.userId
// })
// if (res.status === -1) return;
// }
// if (!comment && boolScore) {
// form.setFields([{
// name: 'comment',
// errors: ['请填写评语'],
// }])
// return;
// }
// }
// form.resetFields()
// history.push(`/classrooms/${params?.coursesId}/group_homework/${params?.commonHomeworkId}/review/${studentWorkDetail?.next_work_id}`)
// }
var handleNextAppraise = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(type) {
var _form$getFieldsValue, comment, score, attachment_ids, boolScore;
@ -1803,23 +1803,6 @@ var ExeriseReview = function ExeriseReview(_ref) {
} else {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/group_homework/").concat(params.commonHomeworkId, "/detail"));
}
// if (comment && boolScore) {
// const res = await addStudentWorkScore({
// ...form.getFieldsValue(),
// userId: params.userId
// })
// if (res.status === -1) return;
// if (!comment && boolScore) {
// form.setFields([{
// name: 'comment',
// errors: ['请填写评语'],
// }])
// return;
// }
// }
// form.resetFields()
// history.push(`/classrooms/${params?.coursesId}/common_homework/${params?.categoryId}/review/${studentWorkDetail?.next_work_id}`)
case 7:
case "end":
return _context4.stop();
@ -1830,7 +1813,6 @@ var ExeriseReview = function ExeriseReview(_ref) {
return _ref3.apply(this, arguments);
};
}();
console.log(studentWorkCommon, 'studentWorkCommon');
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
ref: boxWrap,
@ -2032,7 +2014,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
children: studentWorkDetail === null || studentWorkDetail === void 0 || (_studentWorkDetail$pr3 = studentWorkDetail.project_info) === null || _studentWorkDetail$pr3 === void 0 ? void 0 : _studentWorkDetail$pr3.name
}), (studentWorkDetail === null || studentWorkDetail === void 0 || (_studentWorkDetail$pr4 = studentWorkDetail.project_info) === null || _studentWorkDetail$pr4 === void 0 ? void 0 : _studentWorkDetail$pr4.id) !== -1 && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
target: "_blank",
href: "".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url).concat(studentWorkDetail === null || studentWorkDetail === void 0 || (_studentWorkDetail$pr5 = studentWorkDetail.project_info) === null || _studentWorkDetail$pr5 === void 0 ? void 0 : _studentWorkDetail$pr5.id),
href: "".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.old_url).concat(studentWorkDetail === null || studentWorkDetail === void 0 || (_studentWorkDetail$pr5 = studentWorkDetail.project_info) === null || _studentWorkDetail$pr5 === void 0 ? void 0 : _studentWorkDetail$pr5.id),
children: studentWorkDetail === null || studentWorkDetail === void 0 || (_studentWorkDetail$pr6 = studentWorkDetail.project_info) === null || _studentWorkDetail$pr6 === void 0 ? void 0 : _studentWorkDetail$pr6.name
})]
})]
@ -2127,32 +2109,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
initialValues: {
same_score: true
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u8BED",
name: "comment",
rules: [{
required: true,
message: "请填写评语"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26",
maxLength: 2000,
defaultValue: "",
height: 200
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "same_score",
valuePropName: "checked",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
children: "\u6574\u7EC4\u540C\u8BC4(\u9009\u4E2D\uFF0C\u5219\u672C\u6B21\u8BC4\u9605\u5BF9\u8C61\u6307\u5C0F\u7EC4\u5168\u90E8\u6210\u5458\uFF0C\u5426\u5219\u4EC5\u8BC4\u9605\u6B64\u6210\u54581\u4EBA )"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mt10",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
@ -2161,7 +2118,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
justify: "start",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
noStyle: true,
label: "\u8BC4\u5206",
name: "score",
rules: [{
required: (0,authority/* isAdmin */.GJ)() ? false : true,
@ -2186,6 +2143,26 @@ var ExeriseReview = function ExeriseReview(_ref) {
})
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u8BC4\u8BED",
name: "comment",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26",
maxLength: 2000,
defaultValue: "",
height: 200
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "same_score",
valuePropName: "checked",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
children: "\u6574\u7EC4\u540C\u8BC4(\u9009\u4E2D\uFF0C\u5219\u672C\u6B21\u8BC4\u9605\u5BF9\u8C61\u6307\u5C0F\u7EC4\u5168\u90E8\u6210\u5458\uFF0C\u5426\u5219\u4EC5\u8BC4\u9605\u6B64\u6210\u54581\u4EBA )"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "attachment_ids",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MultiUpload/* default */.Z, {})
})
}), (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1",
name: "hidden_comment",
@ -2215,14 +2192,14 @@ var ExeriseReview = function ExeriseReview(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
flex: "1",
className: "tr",
children: [!(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
onClick: function onClick() {
return handleNextAppraise('last');
},
disabled: Previous === null || Previous === void 0 ? void 0 : Previous.last,
children: "\u4E0A\u4E00\u4E2A"
}), !(0,authority/* isStudent */.dE)() && /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
disabled: nextComment === null || nextComment === void 0 ? void 0 : nextComment.last,
style: {

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -84,6 +84,9 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(39343);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/createForOfIteratorHelper.js
var createForOfIteratorHelper = __webpack_require__(98190);
var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(11006);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
@ -1938,6 +1941,7 @@ var ui_customization = __webpack_require__(6487);
var _excluded = ["classroomList", "user", "globalSetting", "loading", "dispatch"];
@ -2108,6 +2112,35 @@ var Stage = function Stage(_ref) {
}
setTypeCount(count);
}, [data, visibleType, keywords]);
(0,_react_17_0_2_react.useEffect)(function () {
if (!content.current) {
return;
}
function onLayout() {
var _content$current;
var ro = new ResizeObserver(function (entries) {
var _iterator = createForOfIteratorHelper_default()(entries),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var entry = _step.value;
setShowExpansion(entry.target.offsetHeight >= 110);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
});
ro.observe((_content$current = content.current) === null || _content$current === void 0 ? void 0 : _content$current.firstElementChild);
return ro;
}
var ro = onLayout();
return function () {
var _content$current2, _content$current3;
((_content$current2 = content.current) === null || _content$current2 === void 0 ? void 0 : _content$current2.firstElementChild) && ro.unobserve((_content$current3 = content.current) === null || _content$current3 === void 0 ? void 0 : _content$current3.firstElementChild);
};
}, [content.current, data]);
var updateSort = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(d) {
var res;

@ -142,6 +142,13 @@
max-height: 110px;
overflow: hidden;
}
.introContent___dSvDD {
text-align: justify;
}
.introContentMaxHeight___NxSzO {
max-height: 110px;
overflow: hidden;
}
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/OnlineLearning/components/SelectShixuns/index.less?modules ***!

@ -264,6 +264,7 @@ var apiPref = _utils_env__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.API_SE
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -276,7 +277,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -286,6 +287,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -298,6 +303,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -450,14 +456,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -4238,9 +4285,7 @@ var html2pdf = __webpack_require__(44425);
var html2pdf_default = /*#__PURE__*/__webpack_require__.n(html2pdf);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunPhoto/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ShixunPhotomodules = ({"wrap":"wrap___LZOi9","head":"head___mAG8H","line":"line___oju0L"});
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
/* harmony default export */ var ShixunPhotomodules = ({"wrap":"wrap___LZOi9","line":"line___oju0L"});
// EXTERNAL MODULE: ./src/components/BehavioralAnalysis/index.tsx + 1 modules
var BehavioralAnalysis = __webpack_require__(94912);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunPhoto/index.tsx
@ -4250,29 +4295,33 @@ var BehavioralAnalysis = __webpack_require__(94912);
var ShixunPhoto = function ShixunPhoto(_ref) {
var _detailData$photos;
var detailData = _ref.detailData;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ShixunPhotomodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ShixunPhotomodules.head,
children: "\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790"
}), !!(detailData !== null && detailData !== void 0 && (_detailData$photos = detailData.photos) !== null && _detailData$photos !== void 0 && _detailData$photos.length) ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(BehavioralAnalysis/* AnalysisNoData */.ij, {
hideBar: true,
actionAnalysis: true,
loading: false,
emptyData: [(0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData), (detailData === null || detailData === void 0 ? void 0 : detailData.photos) || []],
title: "\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",
noDataText: "\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
hideBar: true,
title: "\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ShixunPhotomodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
dataSource: detailData === null || detailData === void 0 ? void 0 : detailData.photos,
right: 21,
col: 3,
wrapWidth: 1140
}), !!(detailData !== null && detailData !== void 0 && (_detailData$photos = detailData.photos) !== null && _detailData$photos !== void 0 && _detailData$photos.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: ShixunPhotomodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
dataSource: detailData === null || detailData === void 0 ? void 0 : detailData.photos,
right: 21,
col: 3,
wrapWidth: 1140
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "\u6682\u65E0\u5B66\u751F\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790"
})]
})
});
};
/* harmony default export */ var components_ShixunPhoto = (ShixunPhoto);
@ -4364,36 +4413,34 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_useState20 = slicedToArray_default()(_useState19, 2),
num = _useState20[0],
setNum = _useState20[1];
var _useState21 = (0,_react_17_0_2_react.useState)([]),
var _useState21 = (0,_react_17_0_2_react.useState)(false),
_useState22 = slicedToArray_default()(_useState21, 2),
allStudentWorks = _useState22[0],
setAllStudentWorks = _useState22[1];
isshow = _useState22[0],
setIsshow = _useState22[1];
var _useState23 = (0,_react_17_0_2_react.useState)(false),
_useState24 = slicedToArray_default()(_useState23, 2),
isshow = _useState24[0],
setIsshow = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(false),
isshows = _useState24[0],
setIsshows = _useState24[1];
var _useState25 = (0,_react_17_0_2_react.useState)(""),
_useState26 = slicedToArray_default()(_useState25, 2),
isshows = _useState26[0],
setIsshows = _useState26[1];
var _useState27 = (0,_react_17_0_2_react.useState)(""),
_useState28 = slicedToArray_default()(_useState27, 2),
score = _useState28[0],
setscore = _useState28[1];
score = _useState26[0],
setscore = _useState26[1];
// 判断是否为老师
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
isTeacher = _useState30[0],
setisTeacher = _useState30[1];
var _useState27 = (0,_react_17_0_2_react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
isTeacher = _useState28[0],
setisTeacher = _useState28[1];
// 如果不是老师就禁用输入框:
var _useState31 = (0,_react_17_0_2_react.useState)(true),
var _useState29 = (0,_react_17_0_2_react.useState)(true),
_useState30 = slicedToArray_default()(_useState29, 2),
isDisabled = _useState30[0],
setisDisabled = _useState30[1];
var _useState31 = (0,_react_17_0_2_react.useState)(0),
_useState32 = slicedToArray_default()(_useState31, 2),
isDisabled = _useState32[0],
setisDisabled = _useState32[1];
var _useState33 = (0,_react_17_0_2_react.useState)(0),
_useState34 = slicedToArray_default()(_useState33, 2),
last_score = _useState34[0],
setlast_score = _useState34[1];
last_score = _useState32[0],
setlast_score = _useState32[1];
var otherPramsRef = (0,_react_17_0_2_react.useRef)(JSON.parse(sessionStorage['all_student_works_params'] || '{}'));
var nextId = (0,_react_17_0_2_react.useRef)();
// 获取用户信息:
var getUser = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -4421,7 +4468,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
getUser();
console.log("打印的------", shixunWorkReport);
// 在这里可以判断有没有查过重
nextId.current = shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.next_student_work_id;
setscore(shixunWorkReport.repeat_minus_score);
}, [shixunWorkReport, user]);
(0,_react_17_0_2_react.useEffect)(function () {
@ -4457,7 +4504,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
});
});
setdatatables(items);
dispatch({
if ((0,authority/* isAssistant */.Rm)()) dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.coursesId
@ -4478,10 +4525,10 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
// console.log('---',shixunWorkReport?.target_test_sets?.[0]?.targets);
(0,_react_17_0_2_react.useEffect)(function () {
if (shixunHomeworks.actionTabs.key === '导出实训报告' && allStudentWorks.length > 0) {
if (shixunHomeworks.actionTabs.key === '导出实训报告' && (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.students_count) > 0) {
exportReport('all');
}
}, [allStudentWorks]);
}, [shixunWorkReport]);
(0,_react_17_0_2_react.useEffect)(function () {
setParams(objectSpread2_default()({}, _params));
}, [location.pathname]);
@ -4493,39 +4540,28 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
} // 解决导出 bug: DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D'
function _getData() {
_getData = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee14() {
var _res$all_student_work, _res$all_student_work2;
var paylaod, res, key, _res$all_student_work3, _res$all_student_work4;
return regeneratorRuntime_default()().wrap(function _callee14$(_context16) {
while (1) switch (_context16.prev = _context16.next) {
case 0:
paylaod = JSON.parse(sessionStorage['all_student_works_params'] || '{}');
_context16.next = 3;
return dispatch({
type: 'shixunHomeworks/getAllStudentWorks',
payload: objectSpread2_default()(objectSpread2_default()({}, params), paylaod)
});
case 3:
res = _context16.sent;
otherPramsRef.current = JSON.parse(sessionStorage['all_student_works_params'] || '{}');
// const res = await dispatch({
// type: 'shixunHomeworks/getAllStudentWorks',
// payload: { ...params, ...paylaod },
// })
// setSpinning(false);
setAllStudentWorks(res['all_student_works']);
key = (_res$all_student_work = res['all_student_works']) === null || _res$all_student_work === void 0 ? void 0 : _res$all_student_work.map(function (item) {
return String(item.student_work_id);
}).indexOf(params.homeworkId);
if (key === ((_res$all_student_work2 = res['all_student_works']) === null || _res$all_student_work2 === void 0 ? void 0 : _res$all_student_work2.length) - 1) {
setNextComment({
last: true
});
} else {
setNextComment((_res$all_student_work3 = res['all_student_works']) === null || _res$all_student_work3 === void 0 ? void 0 : _res$all_student_work3[key + 1]);
}
if (key === 0) {
setPrevious({
last: true
});
} else {
setPrevious((_res$all_student_work4 = res['all_student_works']) === null || _res$all_student_work4 === void 0 ? void 0 : _res$all_student_work4[key - 1]);
}
case 8:
// setAllStudentWorks(res['all_student_works'])
// const key = res['all_student_works']?.map((item: any) => String(item.student_work_id)).indexOf(params.homeworkId)
// if (key === res['all_student_works']?.length - 1) {
// setNextComment({ last: true })
// } else {
// setNextComment(res['all_student_works']?.[key + 1])
// }
// if (key === 0) {
// setPrevious({ last: true })
// } else {
// setPrevious(res['all_student_works']?.[key - 1])
// }
case 1:
case "end":
return _context16.stop();
}
@ -4552,7 +4588,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
_next = function _next3() {
_next = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
_next = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(id) {
var res;
return regeneratorRuntime_default()().wrap(function _callee5$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
@ -4560,12 +4596,13 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_context7.next = 2;
return dispatch({
type: 'shixunHomeworks/getShixunWorkReport',
payload: {
homeworkId: allStudentWorks[nums]['student_work_id']
}
payload: objectSpread2_default()({
homeworkId: id || nextId.current
}, otherPramsRef.current || {})
});
case 2:
res = _context7.sent;
nextId.current = res === null || res === void 0 ? void 0 : res.next_student_work_id;
scrollView();
nums++;
setTimeout( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
@ -4600,7 +4637,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
}
}, _callee3);
}));
return function (_x3) {
return function (_x4) {
return _ref6.apply(this, arguments);
};
}());
@ -4622,7 +4659,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_context6.next = 6;
break;
case 11:
folders.file("".concat(allStudentWorks[nums - 1]['student_work_user_name']).concat(nums, ".pdf"), worker.output("blob"));
folders.file("".concat(res === null || res === void 0 ? void 0 : res.username).concat(nums, ".pdf"), worker.output("blob"));
// folder.file(`${shixunWorkReport.username}.pdf`, worker.output("blob"), { base64: false });
codesF = folders.folder("代码文件");
res === null || res === void 0 || (_res$shixun_detail = res.shixun_detail) === null || _res$shixun_detail === void 0 || _res$shixun_detail.map(function (item, index) {
@ -4632,17 +4669,15 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
codesG.file("".concat(i.filename, ".txt"), i === null || i === void 0 ? void 0 : i.content);
});
});
// zip.file(`${allStudentWorks[nums - 1]['student_work_user_name']}${nums}.pdf`, pdfUrl);
modal.update({
content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: nums
}), "/", allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"]
}), "/", res === null || res === void 0 ? void 0 : res.students_count, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"]
})
});
if (nums == (allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length)) {
if (nums == (res === null || res === void 0 ? void 0 : res.students_count)) {
modal.destroy();
download();
} else {
@ -4654,7 +4689,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
}
}, _callee4);
})), 2200);
case 6:
case 7:
case "end":
return _context7.stop();
}
@ -4662,7 +4697,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
}));
return _next.apply(this, arguments);
};
next = function _next2() {
next = function _next2(_x2) {
return _next.apply(this, arguments);
};
nums = 0;
@ -4681,7 +4716,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
children: ["\u5F53\u524D\u8FDB\u5EA6: ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-blue",
children: nums + 1
}), "/", type !== 'all' ? 1 : allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"]
}), "/", type !== 'all' ? 1 : shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.students_count, /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"]
}),
maskClosable: false,
className: Commentmodules.modal,
@ -4707,7 +4742,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
// unit: 'pt', format: [1200, 800], orientation: 'portrait'
}
};
if (!(type !== 'all' || (allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length) < 2)) {
if (!(type !== 'all' || (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.students_count) < 2)) {
_context8.next = 27;
break;
}
@ -4745,7 +4780,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
}
}, _callee2);
}));
return function (_x2) {
return function (_x3) {
return _ref4.apply(this, arguments);
};
}());
@ -4786,7 +4821,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
download();
return _context8.abrupt("return");
case 27:
next();
next(shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.first_student_work_id);
case 28:
case "end":
return _context8.stop();
@ -4826,7 +4861,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_context9.next = 3;
return dispatch({
type: 'shixunHomeworks/getShixunWorkReport',
payload: objectSpread2_default()({}, params)
payload: objectSpread2_default()(objectSpread2_default()({}, params), otherPramsRef.current || {})
});
case 3:
setSpinning(false);
@ -4945,7 +4980,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_context10.next = 8;
return dispatch({
type: 'shixunHomeworks/getShixunWorkReport',
payload: objectSpread2_default()({}, params)
payload: objectSpread2_default()(objectSpread2_default()({}, params), otherPramsRef.current || {})
});
case 8:
if (res.status === 0) {
@ -4957,7 +4992,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
}
}, _callee8);
}));
return function (_x4) {
return function (_x5) {
return _ref8.apply(this, arguments);
};
}()
@ -5047,9 +5082,9 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
});
setTimeout(function () {
if (type === 'next') {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat(nextComment === null || nextComment === void 0 ? void 0 : nextComment.student_work_id, "/comment"));
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat(shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.next_student_work_id, "/comment"));
} else {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat(Previous === null || Previous === void 0 ? void 0 : Previous.student_work_id, "/comment"));
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/").concat(shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.pre_student_work_id, "/comment"));
}
}, 200);
};
@ -5085,7 +5120,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
_context11.next = 5;
return dispatch({
type: 'shixunHomeworks/getShixunWorkReport',
payload: objectSpread2_default()({}, params)
payload: objectSpread2_default()(objectSpread2_default()({}, params), otherPramsRef.current || {})
});
case 5:
// console.log("返回数据", res)
@ -5213,7 +5248,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-daochu mr5"
}), "\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"]
}), (0,authority/* isAdmin */.GJ)() && (allStudentWorks === null || allStudentWorks === void 0 ? void 0 : allStudentWorks.length) > 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
}), (0,authority/* isAdmin */.GJ)() && (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.students_count) > 1 && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "ml10",
onClick: function onClick() {
return exportReport('all');
@ -5549,7 +5584,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
message/* default */.ZP.success("删除成功");
dispatch({
type: 'shixunHomeworks/getShixunWorkReport',
payload: objectSpread2_default()({}, params)
payload: objectSpread2_default()(objectSpread2_default()({}, params), otherPramsRef.current || {})
});
}
case 4:
@ -5590,7 +5625,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
value: shixunWorkReport.work_comment_hidden
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_ShixunPhoto, {
}), (shixunWorkReport === null || shixunWorkReport === void 0 ? void 0 : shixunWorkReport.action_analysis) && /*#__PURE__*/(0,jsx_runtime.jsx)(components_ShixunPhoto, {
detailData: shixunWorkReport
}), /*#__PURE__*/(0,jsx_runtime.jsx)("h1", {
className: Commentmodules.title,
@ -5660,7 +5695,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
className: "tr",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "default",
disabled: Previous === null || Previous === void 0 ? void 0 : Previous.last,
disabled: !(shixunWorkReport !== null && shixunWorkReport !== void 0 && shixunWorkReport.pre_student_work_id),
onClick: function onClick() {
return skip();
},
@ -5671,7 +5706,7 @@ var Comment_ShixunsListPage = function ShixunsListPage(_ref) {
marginLeft: '20px',
marginRight: '20px'
},
disabled: nextComment === null || nextComment === void 0 ? void 0 : nextComment.last,
disabled: !(shixunWorkReport !== null && shixunWorkReport !== void 0 && shixunWorkReport.next_student_work_id),
onClick: function onClick() {
return skip('next');
},

@ -1490,12 +1490,6 @@ span.CodeMirror-selectedtext {
padding: 20px 30px 0 30px;
border-bottom: 1px solid #EDEDED;
}
.head___mAG8H {
margin-bottom: 20px;
font-size: 16px;
font-weight: 500;
color: #191919;
}
.line___oju0L {
width: 100%;
margin-top: 20px;
@ -1616,4 +1610,23 @@ span.CodeMirror-selectedtext {
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}

@ -1832,4 +1832,23 @@ div[class~="ant-modal-confirm-content"] {
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}

@ -1967,7 +1967,7 @@ var PublishShixun = function PublishShixun(_ref) {
payload: {}
});
dispatch({
type: 'shixunHomeworks/getWorkList',
type: 'shixunHomeworks/getShixunWorkHeadInfo',
payload: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
});
dispatch({
@ -5097,6 +5097,8 @@ var ShixunList = function ShixunList(_ref) {
dispatch = _ref.dispatch,
selectshow = _ref.selectshow,
batchState = _ref.batchState,
pageSize = _ref.pageSize,
page = _ref.page,
manageAllGroup = _ref.manageAllGroup;
var params = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)([]),
@ -5117,6 +5119,8 @@ var ShixunList = function ShixunList(_ref) {
setkong = _useState8[1];
params['category'] = params.categoryId;
params['id'] = params.coursesId;
params['page'] = page;
params['limit'] = pageSize;
function getlist() {
return _getlist.apply(this, arguments);
}
@ -6017,6 +6021,9 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
setSortMenuName(localRecordValue === null || localRecordValue === void 0 ? void 0 : localRecordValue.name);
}
getData();
if ((0,authority/* isAssistant */.Rm)()) {
getAssistantPermissionsData();
}
} else if (user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.username) {
getData();
}
@ -6032,16 +6039,19 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
setPositionValue('fixed');
}
};
var getData = function getData() {
setSelectArrs([]);
setSelectArrsAll([]);
setParams(objectSpread2_default()({}, params));
var getAssistantPermissionsData = function getAssistantPermissionsData() {
dispatch({
type: 'classroomList/getAssistantPermissions',
payload: {
course_id: params.id
}
});
};
var getData = function getData() {
setSelectArrs([]);
setSelectArrsAll([]);
setParams(objectSpread2_default()({}, params));
//判断身份 如果是老师 调用另外一个接口
if ((0,authority/* isAdmin */.GJ)()) {
dispatch({
@ -6594,7 +6604,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
allowClear: true,
placeholder: "\u8BF7\u8F93\u5165\u5B9E\u9A8C\u540D\u79F0",
onSearch: function onSearch(value) {
params.search = value;
params.search = value.trim();
params.page = 1;
getData();
},
@ -6648,6 +6658,8 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
classroomList: classroomList,
dispatch: dispatch,
params: params,
page: param.page || 1,
pageSize: params.limit || 20,
selectshow: selectshow,
manageAllGroup: detailShixunsList.manage_all_group
}, v.homework_id);

@ -382,6 +382,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -451,11 +456,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -467,10 +467,11 @@ var DraggableCaptureVideo = function DraggableCaptureVideo(_ref) {
antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.info({
title: '提示',
width: 642,
icon: null,
centered: true,
content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
children: "\u672C\u89C6\u9891\u5DF2\u7ECF\u5F00\u542F\u5B66\u4E60\u884C\u4E3A\u5206\u6790\uFF0C\u9700\u8981\u8C03\u7528\u4F60\u8BBE\u5907\u7684\u6444\u50CF\u5934\uFF0C\u8BF7\u5F00\u542F\u6D4F\u89C8\u5668\u6444\u50CF\u5934\u6743\u9650\uFF0C\u672A\u5F00\u542F\u65F6\uFF0C\u65E0\u6CD5\u89C2\u770B\u89C6\u9891\u3002"
children: "\u5DF2\u7ECF\u5F00\u542F\u5B66\u4E60\u884C\u4E3A\u5206\u6790\uFF0C\u9700\u8981\u8C03\u7528\u4F60\u8BBE\u5907\u7684\u6444\u50CF\u5934\uFF0C\u8BF7\u5F00\u542F\u6D4F\u89C8\u5668\u6444\u50CF\u5934\u6743\u9650\u3002"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("a", {
target: "_blank",
href: "https://www.educoder.net/forums/36625",

@ -10,6 +10,7 @@
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -22,7 +23,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -32,6 +33,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -44,6 +49,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -196,14 +202,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -277,6 +324,63 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
/***/ }),
/***/ 72020:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 61947:
/*!*****************************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/Analysis/index.tsx + 1 modules ***!

@ -169,6 +169,25 @@
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Video/Statistics/Detail/index.less?modules ***!

@ -52,6 +52,7 @@ if (false) {}
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -64,7 +65,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -74,6 +75,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -86,6 +91,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -238,14 +244,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -319,6 +366,63 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
/***/ }),
/***/ 72020:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 47218:
/*!**************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Video/Statistics/UserDetail/index.tsx + 1 modules ***!
@ -372,8 +476,9 @@ var jsx_runtime = __webpack_require__(37712);
var UserDetail = function UserDetail(_ref) {
var _user$userInfo;
var _user$userInfo, _detailData$photos;
var user = _ref.user;
var _useParams = (0,_umi_production_exports.useParams)(),
categoryId = _useParams.categoryId,
@ -384,7 +489,12 @@ var UserDetail = function UserDetail(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
detailData = _useState2[0],
setDetailData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setLoading = _useState4[1];
(0,_react_17_0_2_react.useEffect)(function () {
setLoading(true);
(0,video/* getAnalysesDetail */.Db)({
container_id: videoId,
container_type: 'CourseVideo',
@ -394,6 +504,7 @@ var UserDetail = function UserDetail(_ref) {
return;
}
setDetailData(res);
setLoading(false);
});
}, []);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
@ -463,19 +574,31 @@ var UserDetail = function UserDetail(_ref) {
})]
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(BehavioralAnalysis/* AnalysisNoData */.ij, {
hideBar: true,
actionAnalysis: detailData === null || detailData === void 0 ? void 0 : detailData.action_analysis,
loading: loading,
emptyData: [(0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData), (detailData === null || detailData === void 0 ? void 0 : detailData.photos) || []],
title: "\u89C6\u9891\u5B66\u4E60\u5206\u6790",
className: "p20",
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: UserDetailmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
className: "ml20",
dataSource: detailData === null || detailData === void 0 ? void 0 : detailData.photos,
right: 21,
col: 3,
wrapWidth: 876
noDataText: "\u5B66\u751F\u65E0\u8BE5\u89C6\u9891\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E",
customText: "\u89C6\u9891\u672A\u5F00\u542F\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u529F\u80FD",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, {
hideBar: true,
title: "\u89C6\u9891\u5B66\u4E60\u5206\u6790",
className: "p20",
data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData)
}), !!(detailData !== null && detailData !== void 0 && (_detailData$photos = detailData.photos) !== null && _detailData$photos !== void 0 && _detailData$photos.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: UserDetailmodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* PhotosList */._s, {
className: "ml20",
dataSource: detailData === null || detailData === void 0 ? void 0 : detailData.photos,
right: 21,
col: 3,
wrapWidth: 876
})]
})]
})]
});
};

@ -159,4 +159,23 @@
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}

@ -10,6 +10,7 @@
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
ij: function() { return /* binding */ AnalysisNoData; },
_s: function() { return /* binding */ PhotosList; },
Uf: function() { return /* binding */ dealOncFnc; },
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
@ -22,7 +23,7 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W"});
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(12124);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
@ -32,6 +33,10 @@ var lib = __webpack_require__(42441);
var env = __webpack_require__(47015);
// 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/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(59981);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72020);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
@ -44,6 +49,7 @@ var jsx_runtime = __webpack_require__(37712);
var dealOncFnc = function dealOncFnc() {
var _data$emotion, _data$focus, _data$action, _data$intention;
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@ -196,14 +202,55 @@ var PhotosList = function PhotosList(_ref) {
}))
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
var AnalysisNoData = function AnalysisNoData(_ref2) {
var _emptyData$, _emptyData$2;
var className = _ref2.className,
style = _ref2.style,
_ref2$data = _ref2.data,
data = _ref2$data === void 0 ? [] : _ref2$data,
title = _ref2.title,
_ref2$hideBar = _ref2.hideBar,
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar;
hideBar = _ref2$hideBar === void 0 ? false : _ref2$hideBar,
children = _ref2.children,
_ref2$customText = _ref2.customText,
customText = _ref2$customText === void 0 ? '' : _ref2$customText,
_ref2$noDataText = _ref2.noDataText,
noDataText = _ref2$noDataText === void 0 ? '' : _ref2$noDataText,
_ref2$emptyData = _ref2.emptyData,
emptyData = _ref2$emptyData === void 0 ? [] : _ref2$emptyData,
loading = _ref2.loading,
actionAnalysis = _ref2.actionAnalysis;
var empty = (emptyData === null || emptyData === void 0 || (_emptyData$ = emptyData[0]) === null || _emptyData$ === void 0 ? void 0 : _emptyData$.every(function (e) {
var _e$data;
return !(e !== null && e !== void 0 && (_e$data = e.data) !== null && _e$data !== void 0 && _e$data.length);
})) && !(emptyData !== null && emptyData !== void 0 && (_emptyData$2 = emptyData[1]) !== null && _emptyData$2 !== void 0 && _emptyData$2.length) || !actionAnalysis;
var text = actionAnalysis ? noDataText : customText;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
active: true,
children: [empty && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.noData, className),
style: style,
children: [!!title && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: BehavioralAnalysismodules.title,
children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: title
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: BehavioralAnalysismodules.itemWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: text
})
})]
}), !empty && children]
});
};
var BehavioralAnalysis = function BehavioralAnalysis(_ref3) {
var className = _ref3.className,
style = _ref3.style,
_ref3$data = _ref3.data,
data = _ref3$data === void 0 ? [] : _ref3$data,
title = _ref3.title,
_ref3$hideBar = _ref3.hideBar,
hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className),
style: style,
@ -277,6 +324,63 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref2) {
/***/ }),
/***/ 72020:
/*!*****************************************!*\
!*** ./src/components/NoData/index.tsx ***!
\*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var noData = function noData(_ref) {
var img = _ref.img,
_ref$buttonProps = _ref.buttonProps,
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
_ref$styles = _ref.styles,
styles = _ref$styles === void 0 ? {} : _ref$styles,
customText = _ref.customText,
ButtonText = _ref.ButtonText,
ButtonClick = _ref.ButtonClick,
Buttonclass = _ref.Buttonclass,
ButtonTwo = _ref.ButtonTwo,
imgStyles = _ref.imgStyles,
_ref$loading = _ref.loading,
loading = _ref$loading === void 0 ? false : _ref$loading;
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
className: "tc animated fadeIn",
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
color: '#999',
margin: '100px auto',
visibility: loading ? 'hidden' : 'visible'
}), styles),
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
className: "mt20 font14",
children: customText || '暂时还没有相关数据哦!'
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
className: Buttonclass,
onClick: ButtonClick
}, buttonProps), {}, {
children: ButtonText
})), ButtonTwo && ButtonTwo]
});
};
/* harmony default export */ __webpack_exports__.Z = (noData);
/***/ }),
/***/ 30026:
/*!***************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Video/Statistics/index.tsx + 2 modules ***!

@ -266,4 +266,23 @@
margin-right: 5px;
font-size: 14px;
}
.noData___mLlw0 .title___DQ3VK {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.noData___mLlw0 .title___DQ3VK b {
width: 6px;
height: 14px;
background: #3061D0;
border-radius: 1px;
display: inline-block;
margin-right: 8px;
}
.noData___mLlw0 .title___DQ3VK span {
font-size: 16px;
font-weight: 500;
color: #191919;
line-height: 16px;
}

@ -1,4 +1,4 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,15569,88100,12312,54747,73168,18080,38177,47256,85081,53555,64802,34668,52312,21105],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,15569,12312,54747,73168,18080,38177,47256,85081,53555,64802,34668,54512,52312,21105],{
/***/ 98915:
/*!***********************************************************************************************************!*\

@ -51,6 +51,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -120,11 +125,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -66,7 +66,7 @@ var Page = function Page(_ref) {
var _location$pathname$sp;
var graduations = _ref.graduations,
dispatch = _ref.dispatch,
user = _ref.user;
globalSetting = _ref.globalSetting;
var urlParams = (0,_umi_production_exports.useParams)();
var tabKey = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3];
var menus = graduations.menus;
@ -180,8 +180,8 @@ var Page = function Page(_ref) {
title: value === null || value === void 0 ? void 0 : value.name,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
var _user$navigationInfo;
(0,util/* openNewWindow */.xg)("".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url).concat(value.id));
var _globalSetting$settin;
(0,util/* openNewWindow */.xg)("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.old_url).concat(value.id));
},
className: "current",
style: {
@ -312,10 +312,10 @@ var Page = function Page(_ref) {
};
/* harmony default export */ var Teacher = ((0,_umi_production_exports.connect)(function (_ref2) {
var graduations = _ref2.graduations,
user = _ref2.user;
globalSetting = _ref2.globalSetting;
return {
graduations: graduations,
user: user
globalSetting: globalSetting
};
})(Page));
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
@ -430,7 +430,7 @@ var CorrelationModal = function CorrelationModal(_ref) {
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
sendLinkUrl = _ref.sendLinkUrl,
data = _ref.data,
user = _ref.user;
globalSetting = _ref.globalSetting;
var _useState = (0,_react_17_0_2_react.useState)(''),
_useState2 = slicedToArray_default()(_useState, 2),
searchValue = _useState2[0],
@ -566,8 +566,8 @@ var CorrelationModal = function CorrelationModal(_ref) {
ButtonTwo: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: function onClick() {
var _user$navigationInfo;
(0,util/* openNewWindow */.xg)("".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url, "/projects/deposit/new"));
var _globalSetting$settin;
(0,util/* openNewWindow */.xg)("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.old_url, "/projects/deposit/new"));
},
children: "\u521B\u5EFA\u9879\u76EE"
})
@ -618,7 +618,7 @@ var Student_Page = function Page(_ref) {
var _location$pathname$sp, _data$teachers, _data$teachers2, _data$teachers3, _data$project_info2;
var graduations = _ref.graduations,
dispatch = _ref.dispatch,
user = _ref.user;
globalSetting = _ref.globalSetting;
var urlParams = (0,_umi_production_exports.useParams)();
var _useState = (0,_react_17_0_2_react.useState)(true),
_useState2 = slicedToArray_default()(_useState, 2),
@ -958,9 +958,9 @@ var Student_Page = function Page(_ref) {
className: "mr10"
}), !!(data !== null && data !== void 0 && data.project_id) ? /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
onClick: function onClick(e) {
var _user$navigationInfo, _data$project_info;
var _globalSetting$settin, _data$project_info;
e.stopPropagation();
(0,util/* openNewWindow */.xg)("".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url).concat(data === null || data === void 0 || (_data$project_info = data.project_info) === null || _data$project_info === void 0 ? void 0 : _data$project_info.id));
(0,util/* openNewWindow */.xg)("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.old_url).concat(data === null || data === void 0 || (_data$project_info = data.project_info) === null || _data$project_info === void 0 ? void 0 : _data$project_info.id));
},
className: Studentmodules.gitTitle,
children: data === null || data === void 0 || (_data$project_info2 = data.project_info) === null || _data$project_info2 === void 0 ? void 0 : _data$project_info2.name
@ -983,7 +983,7 @@ var Student_Page = function Page(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Student_CorrelationModal, {
sendLinkUrl: sendLinkUrl,
data: data,
user: user,
globalSetting: globalSetting,
visible: visible,
onSucceed: function onSucceed() {
getData();
@ -997,10 +997,10 @@ var Student_Page = function Page(_ref) {
};
/* harmony default export */ var Student = ((0,_umi_production_exports.connect)(function (_ref4) {
var graduations = _ref4.graduations,
user = _ref4.user;
globalSetting = _ref4.globalSetting;
return {
graduations: graduations,
user: user
globalSetting: globalSetting
};
})(Student_Page));
// EXTERNAL MODULE: ./src/utils/authority.ts

@ -416,7 +416,7 @@ var DetailsElement = function DetailsElement(_ref) {
goBack = _ref.goBack,
getData = _ref.getData,
graduationTask = _ref.graduationTask,
user = _ref.user;
globalSetting = _ref.globalSetting;
var _useParams = (0,_umi_production_exports.useParams)(),
id = _useParams.id,
moduleId = _useParams.moduleId,
@ -595,8 +595,8 @@ var DetailsElement = function DetailsElement(_ref) {
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
var _user$navigationInfo, _data$project_info;
(0,util/* openNewWindow */.xg)("".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url).concat(data === null || data === void 0 || (_data$project_info = data.project_info) === null || _data$project_info === void 0 ? void 0 : _data$project_info.id));
var _globalSetting$settin, _data$project_info;
(0,util/* openNewWindow */.xg)("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.old_url).concat(data === null || data === void 0 || (_data$project_info = data.project_info) === null || _data$project_info === void 0 ? void 0 : _data$project_info.id));
},
title: data === null || data === void 0 || (_data$project_info2 = data.project_info) === null || _data$project_info2 === void 0 ? void 0 : _data$project_info2.name,
className: "current",
@ -720,8 +720,8 @@ var DetailsElement = function DetailsElement(_ref) {
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
var _user$navigationInfo2, _data$project_info4;
(0,util/* openNewWindow */.xg)("".concat((_user$navigationInfo2 = user.navigationInfo) === null || _user$navigationInfo2 === void 0 || (_user$navigationInfo2 = _user$navigationInfo2.top) === null || _user$navigationInfo2 === void 0 ? void 0 : _user$navigationInfo2.old_url).concat(data === null || data === void 0 || (_data$project_info4 = data.project_info) === null || _data$project_info4 === void 0 ? void 0 : _data$project_info4.id));
var _globalSetting$settin2, _data$project_info4;
(0,util/* openNewWindow */.xg)("".concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.old_url).concat(data === null || data === void 0 || (_data$project_info4 = data.project_info) === null || _data$project_info4 === void 0 ? void 0 : _data$project_info4.id));
},
title: data === null || data === void 0 || (_data$project_info5 = data.project_info) === null || _data$project_info5 === void 0 ? void 0 : _data$project_info5.name,
className: "current",
@ -829,7 +829,7 @@ var Page = function Page(_ref) {
var graduations = _ref.graduations,
dispatch = _ref.dispatch,
loading = _ref.loading,
user = _ref.user;
globalSetting = _ref.globalSetting;
var _useParams = (0,_umi_production_exports.useParams)(),
id = _useParams.id,
moduleKey = _useParams.moduleKey,
@ -1062,7 +1062,7 @@ var Page = function Page(_ref) {
},
className: Reviewmodules.right,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Review_DetailsElement, {
user: user,
globalSetting: globalSetting,
graduationTask: data,
data: listItem,
getData: getData,
@ -1118,11 +1118,11 @@ var Page = function Page(_ref) {
/* harmony default export */ var Review = ((0,_umi_production_exports.connect)(function (_ref4) {
var loading = _ref4.loading,
graduations = _ref4.graduations,
user = _ref4.user;
globalSetting = _ref4.globalSetting;
return {
loading: loading,
graduations: graduations,
user: user
globalSetting: globalSetting
};
})(Page));

@ -51,6 +51,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -120,11 +125,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -1277,6 +1277,11 @@ var jsx_runtime = __webpack_require__(37712);
_useState8 = slicedToArray_default()(_useState7, 2),
height = _useState8[0],
setheight = _useState8[1];
// const [movable, setmovable] = useState<any>(false);
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
down = _useState10[0],
setdown = _useState10[1];
var saveUrl = (0,_react_17_0_2_react.useRef)('');
(0,_react_17_0_2_react.useEffect)(function () {
var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) {
@ -1346,11 +1351,13 @@ var jsx_runtime = __webpack_require__(37712);
style: {
display: 'none'
}
// ref={imgref}
,
preview: {
visible: true,
src: url,
movable: false,
onVisibleChange: function onVisibleChange(value) {
setUrl('');
}

@ -5164,7 +5164,7 @@ var UploadQuestions = function UploadQuestions(_ref) {
children: "3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
className: UploadQuestionsmodules.infoText,
children: "4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63015\u4E2A\u586B\u7A7A\u9879\u3002"
children: "4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
@ -10472,14 +10472,14 @@ var jiangxu = __webpack_require__(3442);
var AddQuestionsModal_AddModal = function AddModal(_ref) {
var _datas$tag_discipline;
var _datas$tag_discipline, _grouplist$share_bank, _grouplist$my_banks_g;
var setScoreShow = _ref.setScoreShow,
ScoreShow = _ref.ScoreShow,
onOk = _ref.onOk,
isshixuns = _ref.isshixuns,
isloadings = _ref.isloadings;
var _useState = (0,_react_17_0_2_react.useState)({
type: '1',
type: '0',
page: 1,
per_page: 10,
updated_at: '',
@ -10852,8 +10852,10 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
onChange: function onChange(e) {
param.type = e;
param.page = 1;
param.updated_at = '', param.quotes = '', param.item_type = null, param.courseid = '', param.tag_discipline_id = null, param.difficulty = null, param.keyword = null, param.group_id = null, form.setFieldsValue({
item_type: null,
param.updated_at = '', param.quotes = '',
// param.item_type = null,
param.courseid = '', param.tag_discipline_id = null, param.difficulty = null, param.keyword = null, param.group_id = null, form.setFieldsValue({
// item_type: null,
courseid: '',
tag_discipline_id: null,
difficulty: null,
@ -11012,11 +11014,11 @@ var AddQuestionsModal_AddModal = function AddModal(_ref) {
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: "\u6839\u76EE\u5F55"
}, 0), param.type === '3' && (grouplist === null || grouplist === void 0 ? void 0 : grouplist.share_banks_groups.map(function (item) {
}, 0), param.type === '3' && (grouplist === null || grouplist === void 0 || (_grouplist$share_bank = grouplist.share_banks_groups) === null || _grouplist$share_bank === void 0 ? void 0 : _grouplist$share_bank.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: item.name
}, item.id);
})), param.type === '0' && (grouplist === null || grouplist === void 0 ? void 0 : grouplist.my_banks_groups.map(function (item) {
})), param.type === '0' && (grouplist === null || grouplist === void 0 || (_grouplist$my_banks_g = grouplist.my_banks_groups) === null || _grouplist$my_banks_g === void 0 ? void 0 : _grouplist$my_banks_g.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
children: item.name
}, item.id);
@ -12523,10 +12525,10 @@ var AddNewPaper = function AddNewPaper(_ref) {
_context9.next = 15;
break;
case 14:
if (res.status === -2) {
if (res.status === -4) {
modal/* default */.Z.confirm({
title: '提示',
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u6216\u672A\u53D1\u5E03\u7684\u7F16\u7A0B\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
content: "\u5F53\u524D\u5DF2\u9009\u62E9".concat(listitems_length, "\u9053\u8BD5\u9898\uFF0C\u5DF2\u52A0\u5165\u8FC7\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u91CD\u590D\u52A0\u5165"),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,64802,34668],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,64802,34668,54512],{
/***/ 15997:
/*!*****************************************************************************************************!*\

@ -1427,7 +1427,7 @@ var jsx_runtime = __webpack_require__(37712);
var See = function See(_ref) {
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _paperlibrary$paperDa, _paperlibrary$paperDa2;
var _questionName$find, _questionName$find2, _questionName$find3, _questionName$find4, _questionName$find5, _questionName$find6, _questionName$find7, _questionName$find8, _questionName$find9, _paperlibrary$paperDa2, _paperlibrary$paperDa3;
var newExercisePaper = _ref.newExercisePaper,
_ref$isExportBlank = _ref.isExportBlank,
isExportBlank = _ref$isExportBlank === void 0 ? false : _ref$isExportBlank,
@ -1556,6 +1556,7 @@ var See = function See(_ref) {
}, [newExercisePaper.exerciseExportHeadData]);
var handleGetQuestionName = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _paperlibrary$paperDa;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -1567,7 +1568,7 @@ var See = function See(_ref) {
case 2:
res = _context.sent;
res.status == 0 && setQuestionName(res.data);
if (searchParams.get("exportPDF")) {
if (searchParams.get("exportPDF") && (_paperlibrary$paperDa = paperlibrary.paperData) !== null && _paperlibrary$paperDa !== void 0 && _paperlibrary$paperDa.questionList) {
message/* default */.ZP.info('正在导出空白试卷pdf');
(0,exportPDF/* exportPDF */.F)(paperDomRef.current.children, '导出试卷');
}
@ -1926,7 +1927,7 @@ var See = function See(_ref) {
className: "pt20 pb20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Seemodules.titleForExport,
children: (_paperlibrary$paperDa = paperlibrary.paperData) === null || _paperlibrary$paperDa === void 0 || (_paperlibrary$paperDa = _paperlibrary$paperDa.exam) === null || _paperlibrary$paperDa === void 0 ? void 0 : _paperlibrary$paperDa.name
children: (_paperlibrary$paperDa2 = paperlibrary.paperData) === null || _paperlibrary$paperDa2 === void 0 || (_paperlibrary$paperDa2 = _paperlibrary$paperDa2.exam) === null || _paperlibrary$paperDa2 === void 0 ? void 0 : _paperlibrary$paperDa2.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
fontSize: "15px",
@ -1949,7 +1950,7 @@ var See = function See(_ref) {
dataSource: toConsumableArray_default()(tableData || []),
bordered: true,
pagination: false
}), (_paperlibrary$paperDa2 = paperlibrary.paperData) === null || _paperlibrary$paperDa2 === void 0 || (_paperlibrary$paperDa2 = _paperlibrary$paperDa2.questionList) === null || _paperlibrary$paperDa2 === void 0 ? void 0 : _paperlibrary$paperDa2.map(function (paperItem, paperKey) {
}), (_paperlibrary$paperDa3 = paperlibrary.paperData) === null || _paperlibrary$paperDa3 === void 0 || (_paperlibrary$paperDa3 = _paperlibrary$paperDa3.questionList) === null || _paperlibrary$paperDa3 === void 0 ? void 0 : _paperlibrary$paperDa3.map(function (paperItem, paperKey) {
var _paperItem$questions;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(Seemodules.relative, " mt20 mb20"),

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save