diff --git a/package.json b/package.json index 2cf7489c..d33e9087 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "lodash": "^4.17.15", "loglevel": "^1.6.8", "material-ui": "^1.0.0-beta.40", + "marked": "^1.0.0", "md5": "^2.2.1", "mini-css-extract-plugin": "^0.9.0", "moment": "^2.23.0", diff --git a/src/modules/paths/Index.js b/src/modules/paths/Index.js deleted file mode 100644 index 2f3514be..00000000 --- a/src/modules/paths/Index.js +++ /dev/null @@ -1,59 +0,0 @@ -import React, { Component } from 'react'; - -import { SnackbarHOC, CNotificationHOC } from 'educoder'; - - -import { Route, Switch } from 'react-router-dom'; -import Loadable from 'react-loadable'; -import Loading from '../../Loading'; -import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; - -const PathsDetail = Loadable({ - loader: () => import('./PathDetail/PathDetailIndex'), - loading: Loading, -}) -const PathsNew = Loadable({ - loader: () => import('./PathNew'), - loading: Loading, -}) -const Statistics = Loadable({ - loader: () => import('./statics'), - loading: Loading -}); - -const ShixunPaths = Loadable({ - loader: () => import('./ShixunPaths'), - loading: Loading, -}) - -class Index extends Component { - constructor(props) { - super(props) - } - render() { - return ( -
目前该实训项目尚在内测中,将于{this.state.shixunsmessage}之后开放,谢谢!
-*/} - {/*知道了*/} - {/*
*/} -实训已经更新了,正在为您重置!
-
-
-
-
-
- {item.stage_name}
- {
- idsum===key&&pathCardsedittype===true?'':
-
- this.props.detailInfoList===undefined?"":
- this.props.current_user&&this.props.current_user.admin===true||this.props.current_user&&this.props.current_user.business===true?
-
-
- { editbuttomtype===true?'':
-
{item.stage_description}
- -{item.stage_description}
-// -// -//- - - - 第{this.props.sum}部分 - {/**/} -
-章节名称
-描述
-- this.Addshixuns()} className="fl defalutGreyBorder color-grey-6 ml37"> - - 新建实训项目 -
- -- this.AddShixunBox()} className="fl defalutGreyBorder color-grey-6 ml37"> - - 选用实训项目 - -
-- 下面实训可以通过拖拽进行排序调整 -
- {selectShixun===true?:""} - {selectShixun===true?-
- - -- {/**/} - {/**/} - {/**/} - - {/**/} -
-章节名称
*/} -描述
-- - 新建实训项目 - -
- -- - 选用实训项目 - - -
-- 下面实训可以通过拖拽进行排序调整 -
- {selectShixun === true ? : ""} - - {selectShixun === true ?*/} - {/*取消*/} - {/*保存*/} - {/*
*/} - --
- - - -
-
-
-
-
- {item.stage_name}
-
-
{item.stage_description}
- - {/* - 两个 ref={provided.innerRef} - item 加 {...provided.draggableProps} - handler 加 {...provided.dragHandleProps} - */} -
-
- 简介
- {/*{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?*/}
- {/*
- 课程须知
- {/*{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?*/}
- {/*
技能标签 {tags.length}
- -
- 关卡数
-
- 已学 {progress.learned}% - 学习耗时{this.timeStamp(progress.time)} -
-{team_title}
: detailInfoList.allow_add_member === true ? - ( - modify === false ? - -this.modifysy(1)}>{team_title}
-{team_title}
- } - - {members === undefined ? - members && members.map((item, key) => { - return ( -{item.name} - {/*{*/} - {/* detailInfoList===undefined?"":detailInfoList.allow_add_member===true?*/} - {/* this.shanchuallow(item.id)}>:""*/} - {/*}*/} -
-- {item.school} - {/*{item.identity}*/} -
-{item.name} - {/* 新增role 判断是否能删除 1 管理员 2 合作者 */} - - { - detailInfoList === undefined ? "" : detailInfoList.allow_add_member === true && item.role == 2 ? - this.shanchuallow(item.id)}> : "" - } -
-{item.school} - {/*{item.identity}*/} -
-{item.name} - {/*{*/} - {/* detailInfoList===undefined?"":detailInfoList.allow_add_member===true?*/} - {/* this.shanchuallow(item.id)}>:""*/} - {/*}*/} -
-{item.school} - {/*{item.identity}*/} -
-
-
已选择 {this.state.sendToShixunArray.length} 个实训
- -{pathId ? '编辑' : '创建'}实践课程
-实践课程名称
-简介
-学习须知
-课堂使用概况共{total}条记录
-序号 | -所属院校 | -课堂 | -学生 | -选用实训 | -
---|---|---|---|---|
{ index + 1 } | -{school.name} | -{school.course_count} | -{school.student_count} | -{school.homework_count}次 | -
章节使用情况
- -章节 | -实训名称 | -学习人数 | -受用院校 | -
---|---|---|---|
{shixun.number} | -{shixun.shixun_name} | -{shixun.member_count} | -{shixun.school_count} | -
{subject_name}
-- {item.name} -
-- 章节: {item.stages_count} - 学习人数: {item.members_count} -
-