@ -904,6 +904,8 @@ var env = __webpack_require__(27065);
var AsyncButton = _ _webpack _require _ _ ( 58499 ) ;
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = _ _webpack _require _ _ ( 13995 ) ;
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = _ _webpack _require _ _ ( 51136 ) ;
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx _runtime = _ _webpack _require _ _ ( 37712 ) ;
; // CONCATENATED MODULE: ./src/pages/Paths/Detail/components/Sort/index.tsx
@ -933,6 +935,7 @@ var _excluded = ["pathsDetail", "globalSetting", "user", "loading", "visibleType
var Option = es _select [ "default" ] . Option ;
var SendToClassModal = function SendToClassModal ( _ref ) {
@ -1247,7 +1250,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
return _context4 . abrupt ( "return" , false ) ;
case 11 :
// 所以内容只能拖入文件夹StageCatalog 不能拖入其余类型 且
datas = [ 'Attachment' , 'Hack' , 'Shixun' , 'SubjectHomework' , 'Videoltem' ]; //文件层集合数组datas
datas = [ 'Attachment' , 'Hack' , 'Shixun' , 'SubjectHomework' , 'Videoltem' , 'SubjectExercise' ]; //文件层集合数组datas
if ( ! ( datas . includes ( ( _info$dragNode = info . dragNode ) === null || _info$dragNode === void 0 ? void 0 : _info$dragNode . item _type ) && ( ( _info$node = info . node ) === null || _info$node === void 0 ? void 0 : _info$node . item _type ) != 'StageCatalog' && dropPosition === 0 ) ) {
_context4 . next = 14 ;
break ;
@ -1524,6 +1527,13 @@ var SendToClassModal = function SendToClassModal(_ref) {
color : '#1db37f'
}
} ) ;
} else if ( nodeData . item _type === 'SubjectExercise' ) {
icon = /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon-tuwenzuoye font20" ,
style : {
color : '#E08340'
}
} ) ;
} else {
icon = /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon-kejian1 c-cyan-blue font20"
@ -1542,6 +1552,42 @@ var SendToClassModal = function SendToClassModal(_ref) {
} ) ;
}
} ;
// 重新刷题提示
var restPrompt = function restPrompt ( exercise _id ) {
modal /* default */ . Z . confirm ( {
title : '提示' ,
content : '重新刷题会清空之前的全部刷题记录,确定要重新刷题吗?' ,
okText : '确定' ,
cancelText : '取消' ,
centered : true ,
onOk : function onOk ( ) {
return asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee7 ( ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee7$ ( _context7 ) {
while ( 1 ) switch ( _context7 . prev = _context7 . next ) {
case 0 :
_context7 . next = 2 ;
return ( 0 , fetch /* default */ . ZP ) ( "/api/exercises/" . concat ( exercise _id , "/subject_exercise_start.json" ) , {
method : 'GET' ,
params : {
is _reset : 1
}
} ) ;
case 2 :
res = _context7 . sent ;
if ( res ) {
_umi _production _exports . history . push ( "/paths/" . concat ( params . pathId , "/exercise/" ) . concat ( props . stage _id , "/exerciseId/" ) . concat ( exercise _id ) ) ;
}
case 4 :
case "end" :
return _context7 . stop ( ) ;
}
} , _callee7 ) ;
} ) ) ( ) ;
}
} ) ;
} ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( jsx _runtime . Fragment , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( PreviewAll /* default */ . Z , objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , preview ) , { } , {
onClose : function onClose ( ) {
@ -1635,30 +1681,30 @@ var SendToClassModal = function SendToClassModal(_ref) {
target : "_blank" ,
className : Sortmodules . pdf _name ,
title : nodeData . name ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 7 ( ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 8 ( ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 7$( _context7 ) {
while ( 1 ) switch ( _context 7. prev = _context7 . next ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 8$( _context8 ) {
while ( 1 ) switch ( _context 8. prev = _context8 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context 7 . next = 2 ;
_context 8 . next = 2 ;
break ;
}
return _context 7 . abrupt ( "return" ) ;
return _context 8 . abrupt ( "return" ) ;
case 2 :
if ( ! ( currentCourse !== null && currentCourse !== void 0 && currentCourse . course _id ) ) {
_context 7 . next = 6 ;
_context 8 . next = 6 ;
break ;
}
_context 7 . next = 5 ;
_context 8 . next = 5 ;
return ( 0 , paths /* immediatelyRegister */ . JS ) ( {
id : currentCourse === null || currentCourse === void 0 ? void 0 : currentCourse . course _id
} ) ;
case 5 :
res = _context 7 . sent ;
res = _context 8 . sent ;
case 6 :
_context 7 . t0 = nodeData . item _type ;
_context 7. next = _context7 . t0 === 'Attachment' ? 9 : _context 7 . t0 === 'VideoItem' ? 11 : _context 7 . t0 === 'SubjectHomework' ? 13 : _context 7 . t0 === 'Shixun' ? 15 : 17 ;
_context 8 . t0 = nodeData . item _type ;
_context 8. next = _context8 . t0 === 'Attachment' ? 9 : _context 8 . t0 === 'VideoItem' ? 11 : _context 8 . t0 === 'SubjectHomework' ? 13 : _context 8 . t0 === 'Shixun' ? 15 : 17 ;
break ;
case 9 :
// openNewWindow(nodeData.url);
@ -1666,25 +1712,25 @@ var SendToClassModal = function SendToClassModal(_ref) {
// preview.data = env.API_SERVER + item.url
// setPreview({ ...preview })
toStudentVideo ( item ) ;
return _context 7 . abrupt ( "break" , 17 ) ;
return _context 8 . abrupt ( "break" , 17 ) ;
case 11 :
toStudentVideo ( nodeData ) ;
return _context 7 . abrupt ( "break" , 17 ) ;
return _context 8 . abrupt ( "break" , 17 ) ;
case 13 :
if ( nodeData . homework _type == 'group' ) {
toStudentVideo ( nodeData ) ;
} else if ( nodeData . homework _type == 'normal' ) {
toStudentVideo ( nodeData ) ;
}
return _context 7 . abrupt ( "break" , 17 ) ;
return _context 8 . abrupt ( "break" , 17 ) ;
case 15 :
handleToShixun ( nodeData ) ;
return _context 7 . abrupt ( "break" , 17 ) ;
return _context 8 . abrupt ( "break" , 17 ) ;
case 17 :
case "end" :
return _context 7 . stop ( ) ;
return _context 8 . stop ( ) ;
}
} , _callee 7 ) ;
} , _callee 8 ) ;
} ) ) ,
children : nodeData . name
} ) , nodeData . item _type === 'Shixun' && nodeData . is _unity _3d && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
@ -1782,7 +1828,7 @@ var SendToClassModal = function SendToClassModal(_ref) {
children : "\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( col /* default */ . Z , {
className : "tr" ,
children : [ ( item . item _type === 'VideoItem' || ( item === null || item === void 0 ? void 0 : item . item _type ) === "Attachment" || ( item === null || item === void 0 ? void 0 : item . item _type ) === 'StageCatalog' || ( item === null || item === void 0 ? void 0 : item . item _type ) === 'SubjectHomework' ) && ! props . disabled && ! props . hiddenEditBtn && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( tooltip /* default */ . Z , {
children : [ ( item . item _type === 'VideoItem' || ( item === null || item === void 0 ? void 0 : item . item _type ) === "Attachment" || ( item === null || item === void 0 ? void 0 : item . item _type ) === 'StageCatalog' || ( item === null || item === void 0 ? void 0 : item . item _type ) === 'SubjectHomework' || ( item === null || item === void 0 ? void 0 : item . item _type ) === 'SubjectExercise' ) && ! props . disabled && ! props . hiddenEditBtn && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( tooltip /* default */ . Z , {
title : "\u7F16\u8F91" ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
onClick : function onClick ( ) {
@ -1815,15 +1861,15 @@ var SendToClassModal = function SendToClassModal(_ref) {
children : [ ! ( 0 , authority /* isCommonStudent */ . JA ) ( ) && isPaths && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
className : "mr10" ,
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 8 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 8$( _context8 ) {
while ( 1 ) switch ( _context 8. prev = _context8 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 9 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 9$( _context9 ) {
while ( 1 ) switch ( _context 9. prev = _context9 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context 8 . next = 2 ;
_context 9 . next = 2 ;
break ;
}
return _context 8 . abrupt ( "return" ) ;
return _context 9 . abrupt ( "return" ) ;
case 2 :
dispatch ( {
type : 'shixunsDetail/setActionTabs' ,
@ -1837,22 +1883,22 @@ var SendToClassModal = function SendToClassModal(_ref) {
} ) ;
case 3 :
case "end" :
return _context 8 . stop ( ) ;
return _context 9 . stop ( ) ;
}
} , _callee 8 ) ;
} , _callee 9 ) ;
} ) ) ,
children : "\u53D1\u9001"
} ) , ! ( 0 , authority /* isCommonStudent */ . JA ) ( ) && isPaths && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 9 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 9$( _context9 ) {
while ( 1 ) switch ( _context 9. prev = _context9 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee 10 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee 10$( _context10 ) {
while ( 1 ) switch ( _context 10. prev = _context10 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context 9 . next = 2 ;
_context 10 . next = 2 ;
break ;
}
return _context 9 . abrupt ( "return" ) ;
return _context 10 . abrupt ( "return" ) ;
case 2 :
props . showInfoModal ( objectSpread2 _default ( ) ( {
stage _id : props . stage _id
@ -1874,9 +1920,9 @@ var SendToClassModal = function SendToClassModal(_ref) {
// });
case 3 :
case "end" :
return _context 9 . stop ( ) ;
return _context 10 . stop ( ) ;
}
} , _callee 9 ) ;
} , _callee 10 ) ;
} ) ) ,
children : "\u67E5\u770B\u8BE6\u60C5"
} ) ]
@ -1886,15 +1932,15 @@ var SendToClassModal = function SendToClassModal(_ref) {
children : [ ! ( 0 , authority /* isCommonStudent */ . JA ) ( ) && isPaths && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
className : "mr10" ,
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 0 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 0$( _context10 ) {
while ( 1 ) switch ( _context1 0. prev = _context10 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 1 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 1$( _context11 ) {
while ( 1 ) switch ( _context1 1. prev = _context11 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context1 0 . next = 2 ;
_context1 1 . next = 2 ;
break ;
}
return _context1 0 . abrupt ( "return" ) ;
return _context1 1 . abrupt ( "return" ) ;
case 2 :
dispatch ( {
type : 'shixunsDetail/setActionTabs' ,
@ -1908,16 +1954,16 @@ var SendToClassModal = function SendToClassModal(_ref) {
} ) ;
case 3 :
case "end" :
return _context1 0 . stop ( ) ;
return _context1 1 . stop ( ) ;
}
} , _callee1 0 ) ;
} , _callee1 1 ) ;
} ) ) ,
children : "\u53D1\u9001"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 1 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 1$( _context11 ) {
while ( 1 ) switch ( _context1 1. prev = _context11 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 2 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 2$( _context12 ) {
while ( 1 ) switch ( _context1 2. prev = _context12 . next ) {
case 0 :
// if (pathsDetail.detail?.excellent) {
// if(!pathsDetail.detail?.has_start&¤tCourse?.course_status?.status===2){
@ -1937,9 +1983,9 @@ var SendToClassModal = function SendToClassModal(_ref) {
toStudentVideo ( item ) ;
case 1 :
case "end" :
return _context1 1 . stop ( ) ;
return _context1 2 . stop ( ) ;
}
} , _callee1 1 ) ;
} , _callee1 2 ) ;
} ) ) ,
children : item . last _point > 0 ? '继续学习' : '开始学习'
} ) ]
@ -1950,15 +1996,15 @@ var SendToClassModal = function SendToClassModal(_ref) {
children : [ ! ( 0 , authority /* isCommonStudent */ . JA ) ( ) && isPaths && ! item . shixun _status && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
className : "ml10" ,
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 2 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 2$( _context12 ) {
while ( 1 ) switch ( _context1 2. prev = _context12 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 3 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 3$( _context13 ) {
while ( 1 ) switch ( _context1 3. prev = _context13 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context1 2 . next = 2 ;
_context1 3 . next = 2 ;
break ;
}
return _context1 2 . abrupt ( "return" ) ;
return _context1 3 . abrupt ( "return" ) ;
case 2 :
dispatch ( {
type : 'shixunsDetail/setActionTabs' ,
@ -1974,29 +2020,29 @@ var SendToClassModal = function SendToClassModal(_ref) {
} ) ;
case 3 :
case "end" :
return _context1 2 . stop ( ) ;
return _context1 3 . stop ( ) ;
}
} , _callee1 2 ) ;
} , _callee1 3 ) ;
} ) ) ,
children : "\u53D1\u9001"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
className : "ml10" ,
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 3 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 3$( _context13 ) {
while ( 1 ) switch ( _context1 3. prev = _context13 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 4 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 4$( _context14 ) {
while ( 1 ) switch ( _context1 4. prev = _context14 . next ) {
case 0 :
if ( ( 0 , verifyLogin /* handleVerify */ . tJ ) ( dispatch ) ) {
_context1 3 . next = 2 ;
_context1 4 . next = 2 ;
break ;
}
return _context1 3 . abrupt ( "return" ) ;
return _context1 4 . abrupt ( "return" ) ;
case 2 :
if ( ! ( currentCourse !== null && currentCourse !== void 0 && currentCourse . course _id ) ) {
_context1 3 . next = 5 ;
_context1 4 . next = 5 ;
break ;
}
_context1 3 . next = 5 ;
_context1 4 . next = 5 ;
return ( 0 , paths /* immediatelyRegister */ . JS ) ( {
id : currentCourse === null || currentCourse === void 0 ? void 0 : currentCourse . course _id
} ) ;
@ -2004,22 +2050,22 @@ var SendToClassModal = function SendToClassModal(_ref) {
window . open ( "/shixuns/" . concat ( item . identifier , "/challenges" ) ) ;
case 6 :
case "end" :
return _context1 3 . stop ( ) ;
return _context1 4 . stop ( ) ;
}
} , _callee1 3 ) ;
} , _callee1 4 ) ;
} ) ) ,
children : "\u67E5\u770B\u8BE6\u60C5"
} ) , ! item . shixun _status && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( AsyncButton /* AsyncButton */ . Z , {
className : "ml10" ,
type : "primary" ,
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 5 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 5$( _context15 ) {
while ( 1 ) switch ( _context1 5. prev = _context15 . next ) {
onClick : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 6 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 6$( _context16 ) {
while ( 1 ) switch ( _context1 6. prev = _context16 . next ) {
case 0 :
return _context1 5 . abrupt ( "return" , new Promise ( /*#__PURE__*/ function ( ) {
var _ref14 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 4 ( resolve ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 4$( _context14 ) {
while ( 1 ) switch ( _context1 4. prev = _context14 . next ) {
return _context1 6 . abrupt ( "return" , new Promise ( /*#__PURE__*/ function ( ) {
var _ref14 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee1 5 ( resolve ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee1 5$( _context15 ) {
while ( 1 ) switch ( _context1 5. prev = _context15 . next ) {
case 0 :
handleToShixun ( item ) ;
setTimeout ( function ( ) {
@ -2027,9 +2073,9 @@ var SendToClassModal = function SendToClassModal(_ref) {
} , 2000 ) ;
case 2 :
case "end" :
return _context1 4 . stop ( ) ;
return _context1 5 . stop ( ) ;
}
} , _callee1 4 ) ;
} , _callee1 5 ) ;
} ) ) ;
return function ( _x6 ) {
return _ref14 . apply ( this , arguments ) ;
@ -2037,12 +2083,76 @@ var SendToClassModal = function SendToClassModal(_ref) {
} ( ) ) ) ;
case 1 :
case "end" :
return _context1 5 . stop ( ) ;
return _context1 6 . stop ( ) ;
}
} , _callee1 5 ) ;
} , _callee1 6 ) ;
} ) ) ,
children : item !== null && item !== void 0 && item . need _authorize ? '需授权' : ! ( nodeData !== null && nodeData !== void 0 && nodeData . finished _challenges _count ) ? '开始实战' : ( nodeData === null || nodeData === void 0 ? void 0 : nodeData . finished _challenges _count ) - ( nodeData === null || nodeData === void 0 ? void 0 : nodeData . challenges _count ) === 0 ? '再次实战' : '继续实战'
} ) ]
} ) , props . disabled && item . item _type === 'SubjectExercise' && notCollectPay && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "aside" , {
children : ! ( 0 , authority /* isCommonStudent */ . JA ) ( ) ? /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
style : {
color : '#666'
} ,
children : [ "\u5171 " , item === null || item === void 0 ? void 0 : item . question _count , " \u9053\u9898" ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
type : "primary" ,
className : "ml30" ,
onClick : function onClick ( ) {
_umi _production _exports . history . push ( "/paths/" . concat ( params . pathId , "/statistics/" ) . concat ( props . stage _id , "/practice/" ) . concat ( item === null || item === void 0 ? void 0 : item . id ) ) ;
} ,
children : "\u67E5\u770B\u7EC3\u4E60\u7EDF\u8BA1"
} ) ]
} ) : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
children : item !== null && item !== void 0 && item . is _lock ? /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ "\u5148\u5B8C\u6210 " , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
style : {
color : '#000'
} ,
children : "<" . concat ( item === null || item === void 0 ? void 0 : item . parent _subject _exercise _name , ">" )
} ) , " \u624D\u80FD\u5F00\u542F" ]
} ) , " " , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon-suo1 font14 ml10" ,
style : {
color : '#3061D0'
}
} ) ]
} ) : /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( jsx _runtime . Fragment , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( es _button /* default */ . ZP , {
type : "primary" ,
onClick : function onClick ( ) {
_umi _production _exports . history . push ( "/paths/" . concat ( params . pathId , "/exercise/" ) . concat ( props . stage _id , "/exerciseId/" ) . concat ( item === null || item === void 0 ? void 0 : item . exercise _id ) ) ;
} ,
children : [ ( item === null || item === void 0 ? void 0 : item . answer _question _count ) == 0 && '开始刷题' , ( item === null || item === void 0 ? void 0 : item . answer _question _count ) > 0 && ( item === null || item === void 0 ? void 0 : item . answer _question _count ) < ( item === null || item === void 0 ? void 0 : item . question _count ) && '继续刷题' , ( item === null || item === void 0 ? void 0 : item . answer _question _count ) != 0 && ( item === null || item === void 0 ? void 0 : item . answer _question _count ) == ( item === null || item === void 0 ? void 0 : item . question _count ) && '查看刷题' ]
} ) , ( item === null || item === void 0 ? void 0 : item . can _reset ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _button /* default */ . ZP , {
className : "ml10" ,
type : "primary" ,
onClick : function onClick ( ) {
return restPrompt ( item === null || item === void 0 ? void 0 : item . exercise _id ) ;
} ,
children : "\u91CD\u65B0\u5237\u9898"
} ) , ! ( item !== null && item !== void 0 && item . is _start ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
className : "ml10" ,
style : {
color : '#666'
} ,
children : "\u672A\u5F00\u59CB"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
style : {
color : '#666' ,
marginLeft : 20
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
style : {
color : '#000'
} ,
children : item === null || item === void 0 ? void 0 : item . answer _question _count
} ) , "/" , item === null || item === void 0 ? void 0 : item . question _count ]
} ) ]
} )
} )
} ) ,
// editKey === -1 &&
props . disabled &&