|
|
|
|
@ -19169,7 +19169,7 @@ var StageItemDom = function StageItemDom(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}), DataProps !== null && DataProps !== void 0 && DataProps.need_authorize ? '需授权' : !(DataProps !== null && DataProps !== void 0 && DataProps.finished_challenges_count) ? '开始实战' : (DataProps === null || DataProps === void 0 ? void 0 : DataProps.finished_challenges_count) - (DataProps === null || DataProps === void 0 ? void 0 : DataProps.challenges_count) === 0 ? '再次实战' : '继续实战']
|
|
|
|
|
})]
|
|
|
|
|
}), DataProps.item_type === 'VideoItem' && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
}), ['VideoItem', 'Attachment'].includes(DataProps.item_type) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [!(0,authority/* isCommonStudent */.JA)() && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "current flex flex-col items-center",
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
|
|
|
|
|
@ -19188,7 +19188,7 @@ var StageItemDom = function StageItemDom(_ref) {
|
|
|
|
|
key: 'Stage-SendModal',
|
|
|
|
|
params: {
|
|
|
|
|
id: DataProps.stage_item_id,
|
|
|
|
|
title: '实训',
|
|
|
|
|
title: DataProps.item_type === 'VideoItem' ? '视频' : '课件',
|
|
|
|
|
is_jupyter: DataProps === null || DataProps === void 0 ? void 0 : DataProps.is_jupyter,
|
|
|
|
|
identifier: DataProps === null || DataProps === void 0 ? void 0 : DataProps.identifier
|
|
|
|
|
}
|
|
|
|
|
@ -19223,7 +19223,7 @@ var StageItemDom = function StageItemDom(_ref) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
|
|
|
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.admin) && !((_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.business) && !DataProps.can_view)) {
|
|
|
|
|
if (!(!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.admin) && !((_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.business) && !DataProps.can_view && DataProps.item_type === 'VideoItem')) {
|
|
|
|
|
_context9.next = 2;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@ -19238,7 +19238,7 @@ var StageItemDom = function StageItemDom(_ref) {
|
|
|
|
|
})
|
|
|
|
|
}));
|
|
|
|
|
case 2:
|
|
|
|
|
if (DataProps.link) {
|
|
|
|
|
if (DataProps.link && DataProps.item_type === 'VideoItem') {
|
|
|
|
|
(0,video/* viewVideo */.DH)({
|
|
|
|
|
is_f: 1,
|
|
|
|
|
id: DataProps.id,
|