|
|
|
|
@ -663,7 +663,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
window.open(record === null || record === void 0 ? void 0 : record.url);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.attachment_id, "?isViewFile=true&recordid=").concat(record.id, "&leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
window.open("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail/").concat(record === null || record === void 0 ? void 0 : record.attachment_id, "?isViewFile=true&recordid=").concat(record.id));
|
|
|
|
|
},
|
|
|
|
|
children: "\u67E5\u770B"
|
|
|
|
|
}), urlData.resource_type == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
@ -874,10 +874,10 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
title: isViewFile ? listItem === null || listItem === void 0 ? void 0 : listItem.title : LessonDetail === null || LessonDetail === void 0 || (_LessonDetail$data = LessonDetail.data) === null || _LessonDetail$data === void 0 ? void 0 : _LessonDetail$data.name,
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
if (isViewFile) {
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson"));
|
|
|
|
|
},
|
|
|
|
|
children: [isViewFile && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
|
|
|
|
@ -932,7 +932,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
res = _context6.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success("删除成功");
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -983,7 +983,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success("删除成功");
|
|
|
|
|
modal.destroy();
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson"));
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
@ -1036,7 +1036,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
content: "",
|
|
|
|
|
type: ""
|
|
|
|
|
});
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
|
|
|
|
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(id, "/detail"));
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), !isViewFile && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
@ -1263,9 +1263,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
_context9.next = 2;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "virtualSpaces/postAddLessonRes",
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData), {}, {
|
|
|
|
|
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
|
|
|
|
})
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData)
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context9.sent;
|
|
|
|
|
@ -1345,9 +1343,7 @@ var LessonPage = function LessonPage(_ref) {
|
|
|
|
|
_context10.next = 3;
|
|
|
|
|
return dispatch({
|
|
|
|
|
type: "virtualSpaces/postAddLessonRes",
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData), {}, {
|
|
|
|
|
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
|
|
|
|
})
|
|
|
|
|
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), urlData)
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context10.sent;
|