Commit 9ea73d53 by wufan

feat:全局替换视频课文案为线上课

parent 84416698
...@@ -57,7 +57,7 @@ export function getLiveCloudCourseBasePage(params: object) { ...@@ -57,7 +57,7 @@ export function getLiveCloudCourseBasePage(params: object) {
return Service.Hades("public/courseCloud/getLiveCloudCourseBasePage", params); return Service.Hades("public/courseCloud/getLiveCloudCourseBasePage", params);
} }
//视频课相关接口 //相关接口
export function changeVideoShelfState(params: object) { export function changeVideoShelfState(params: object) {
return Service.Hades("public/hades/changeVideoShelfState", params); return Service.Hades("public/hades/changeVideoShelfState", params);
} }
......
...@@ -81,7 +81,7 @@ class KnowledgeAPI { ...@@ -81,7 +81,7 @@ class KnowledgeAPI {
exportPicLearnSync = (params: object) => { exportPicLearnSync = (params: object) => {
return Service.Hades("public/knowledge/exportPicLearnSync", params); return Service.Hades("public/knowledge/exportPicLearnSync", params);
} }
// 视频课观看记录导出 // 观看记录导出
exportVideoLearnSync = (params: object) => { exportVideoLearnSync = (params: object) => {
return Service.Hades("public/knowledge/exportVideoLearnSync", params); return Service.Hades("public/knowledge/exportVideoLearnSync", params);
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
/> />
<meta <meta
name="keywords" name="keywords"
content="小麦企学院,企业培训,员工培训,企业大学,企业内训,企业外训,培训计划,培训素材,企培,企训,资料云盘,培训课程,培训任务,直播课,视频课,图文课,线下课,知识库,作业,考试,排行榜,培训类别管理,定制培训计划,管理数据,学习数据,企学院,资料共享,培训数字化,数字化培训,培训工具,在线培训,线上培训,培训saas,培训管理,企业微信培训,对客培训,客户培训,直播培训,互联网培训,新员工培训,管理培训,管理者培训,工人培训,制造业培训,餐饮培训,服务业培训,零售培训,门店培训,工厂培训,车间培训,培训补贴,人事培训,财务培训,职场培训,企业学院平台,教育企业学院,教育企业平台,教育平台学院,企业学习,酷学院,小鹅通,企业学院,云学堂,时代光华,云课堂,魔学院,云大学,米知云,授课学堂" content="小麦企学院,企业培训,员工培训,企业大学,企业内训,企业外训,培训计划,培训素材,企培,企训,资料云盘,培训课程,培训任务,直播课,,图文课,线下课,知识库,作业,考试,排行榜,培训类别管理,定制培训计划,管理数据,学习数据,企学院,资料共享,培训数字化,数字化培训,培训工具,在线培训,线上培训,培训saas,培训管理,企业微信培训,对客培训,客户培训,直播培训,互联网培训,新员工培训,管理培训,管理者培训,工人培训,制造业培训,餐饮培训,服务业培训,零售培训,门店培训,工厂培训,车间培训,培训补贴,人事培训,财务培训,职场培训,企业学院平台,教育企业学院,教育企业平台,教育平台学院,企业学习,酷学院,小鹅通,企业学院,云学堂,时代光华,云课堂,魔学院,云大学,米知云,授课学堂"
/> />
<!-- <link rel="apple-touch-icon" href="../src/common/images/logo.png" /> --> <!-- <link rel="apple-touch-icon" href="../src/common/images/logo.png" /> -->
<link rel="shortcut icon" href="https://image.xiaomaiketang.com/xm/c4KiP2epBP.png" /> <link rel="shortcut icon" href="https://image.xiaomaiketang.com/xm/c4KiP2epBP.png" />
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:45 * @Date: 2020-08-05 10:12:45
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-15 20:01:05 * @LastEditTime: 2021-06-15 20:01:05
* @Description: 视频课-列表模块 * @Description: -列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
import React from 'react'; import React from 'react';
...@@ -32,7 +32,7 @@ class GraphicsCourseList extends React.Component { ...@@ -32,7 +32,7 @@ class GraphicsCourseList extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
id: '', // 视频课ID id: '', // ID
studentIds:[], studentIds:[],
RelatedPlanModalVisible:false, RelatedPlanModalVisible:false,
selectPlanList:{} selectPlanList:{}
...@@ -319,10 +319,10 @@ class GraphicsCourseList extends React.Component { ...@@ -319,10 +319,10 @@ class GraphicsCourseList extends React.Component {
} }
}) })
} }
// 删除视频课 // 删除
handleDeleteGraphicsCourse = (scheduleId) => { handleDeleteGraphicsCourse = (scheduleId) => {
Modal.confirm({ Modal.confirm({
title: '你确定要删除此视频课吗?', title: '你确定要删除此吗?',
content: '删除后,学员将不能进行观看。', content: '删除后,学员将不能进行观看。',
icon: <span className="icon iconfont default-confirm-icon">&#xe6f4;</span>, icon: <span className="icon iconfont default-confirm-icon">&#xe6f4;</span>,
okText: '确定', okText: '确定',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:15 * @Date: 2020-08-05 10:12:15
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-26 16:07:27 * @LastEditTime: 2020-12-26 16:07:27
* @Description: 视频课-操作模块 * @Description: -操作模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -17,17 +17,17 @@ class GraphicsCourse extends React.Component { ...@@ -17,17 +17,17 @@ class GraphicsCourse extends React.Component {
courseType: 'PICTURE', courseType: 'PICTURE',
storeId:User.getStoreId() storeId:User.getStoreId()
}, },
dataSource: [], // 视频课列表 dataSource: [], // 列表
totalCount: 0, // 视频课数据总条数 totalCount: 0, // 数据总条数
} }
} }
componentWillMount() { componentWillMount() {
// 获取视频课列表 // 获取列表
this.handleFetchScheduleList(); this.handleFetchScheduleList();
} }
// 获取视频课列表 // 获取列表
handleFetchScheduleList = (_query = {}) => { handleFetchScheduleList = (_query = {}) => {
const query = { const query = {
...this.state.query, ...this.state.query,
...@@ -69,7 +69,7 @@ class GraphicsCourse extends React.Component { ...@@ -69,7 +69,7 @@ class GraphicsCourse extends React.Component {
{/* 操作模块 */} {/* 操作模块 */}
<GraphicsCourseOpt /> <GraphicsCourseOpt />
{/* 视频课列表模块 */} {/* 列表模块 */}
<GraphicsCourseList <GraphicsCourseList
query={query} query={query}
dataSource={dataSource} dataSource={dataSource}
......
...@@ -237,8 +237,8 @@ class LiveStudentListModal extends React.Component { ...@@ -237,8 +237,8 @@ class LiveStudentListModal extends React.Component {
}); });
} }
// 如果是非视频课, 显示操作的条件是课程未开始,且不是T端 // 如果是非, 显示操作的条件是课程未开始,且不是T端
// 如果是视频课,那么只要满足不是T端就可以了 // 如果是,那么只要满足不是T端就可以了
if ((liveItem.courseState === "UN_START" || type === 'videoCourse') && !isTeacher) { if ((liveItem.courseState === "UN_START" || type === 'videoCourse') && !isTeacher) {
// 未开始 // 未开始
columns.push({ columns.push({
...@@ -251,7 +251,7 @@ class LiveStudentListModal extends React.Component { ...@@ -251,7 +251,7 @@ class LiveStudentListModal extends React.Component {
<Popconfirm <Popconfirm
title="你确定要移出这个学员吗?" title="你确定要移出这个学员吗?"
onConfirm={() => { onConfirm={() => {
// 如果是非视频课,且直播间类型是自研, 且晚于开课前30分钟, 不允许移出 // 如果是非,且直播间类型是自研, 且晚于开课前30分钟, 不允许移出
if ( if (
liveItem.channel == "XIAOMAI" && liveItem.channel == "XIAOMAI" &&
liveItem.startTime - Date.now() < 1800000 liveItem.startTime - Date.now() < 1800000
......
...@@ -156,7 +156,7 @@ class PreviewCourseModal extends React.Component { ...@@ -156,7 +156,7 @@ class PreviewCourseModal extends React.Component {
<div className='container__introduction'> <div className='container__introduction'>
{type === 'videoCourse' ? ( {type === 'videoCourse' ? (
<div className='container__introduction__title'>视频课简介</div> <div className='container__introduction__title'>简介</div>
) : ( ) : (
<div className='container__introduction__title'>直播课简介</div> <div className='container__introduction__title'>直播课简介</div>
)} )}
......
...@@ -118,7 +118,7 @@ class ShareLiveModal extends React.Component { ...@@ -118,7 +118,7 @@ class ShareLiveModal extends React.Component {
coverImgSrc = 'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'; coverImgSrc = 'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png';
} }
break; break;
case 'videoClass': // 视频课 case 'videoClass': //
coverImgSrc = coverUrl || (courseDivision === 'internal' ? `${scheduleVideoUrl}?x-oss-process=video/snapshot,t_0,m_fast&anystring=anystring` : 'https://image.xiaomaiketang.com/xm/mt3ZQRxGKB.png') coverImgSrc = coverUrl || (courseDivision === 'internal' ? `${scheduleVideoUrl}?x-oss-process=video/snapshot,t_0,m_fast&anystring=anystring` : 'https://image.xiaomaiketang.com/xm/mt3ZQRxGKB.png')
break; break;
case 'graphicsClass': // 图文课 case 'graphicsClass': // 图文课
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:45 * @Date: 2020-08-05 10:12:45
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-11 16:44:42 * @LastEditTime: 2021-06-11 16:44:42
* @Description: 视频课-列表模块 * @Description: -列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
import React from 'react'; import React from 'react';
...@@ -32,7 +32,7 @@ class OfflineCourseList extends React.Component { ...@@ -32,7 +32,7 @@ class OfflineCourseList extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
id: '', // 视频课ID id: '', // ID
studentIds: [], studentIds: [],
} }
} }
...@@ -297,7 +297,7 @@ class OfflineCourseList extends React.Component { ...@@ -297,7 +297,7 @@ class OfflineCourseList extends React.Component {
} }
}) })
} }
// 删除视频课 // 删除
handleDeleteOfflineCourse = (courseId, isDelete) => { handleDeleteOfflineCourse = (courseId, isDelete) => {
if (isDelete) { if (isDelete) {
Modal.confirm({ Modal.confirm({
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:15 * @Date: 2020-08-05 10:12:15
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-26 16:07:27 * @LastEditTime: 2020-12-26 16:07:27
* @Description: 视频课-操作模块 * @Description: -操作模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -14,7 +14,7 @@ const hasExportPermission = (type) => { ...@@ -14,7 +14,7 @@ const hasExportPermission = (type) => {
return Permission.hasInteractiveExport(); return Permission.hasInteractiveExport();
} }
// 视频课导出权限 // 导出权限
if (type === 'videoClass') { if (type === 'videoClass') {
return Permission.hasVideoClassExport(); return Permission.hasVideoClassExport();
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:07:47 * @Date: 2020-08-05 10:07:47
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2021-05-30 20:35:49 * @LastEditTime: 2021-05-30 20:35:49
* @Description: 视频课新增/编辑页 * @Description: 新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -54,18 +54,18 @@ class AddVideoCourse extends React.Component { ...@@ -54,18 +54,18 @@ class AddVideoCourse extends React.Component {
const pageType = getParameterByName('type') const pageType = getParameterByName('type')
this.state = { this.state = {
id, // 视频课ID,编辑的时候从URL上带过来 id, // ID,编辑的时候从URL上带过来
pageType, // 页面类型: add->新建 edit->编辑 pageType, // 页面类型: add->新建 edit->编辑
imageFile: null, // 需要被截取的图片 imageFile: null, // 需要被截取的图片
courseName: null, // 视频课名称 courseName: null, // 名称
scheduleVideoId: null, // 视频课链接 scheduleVideoId: null, // 链接
coverId: null, // 视频封面的recourceId coverId: null, // 视频封面的recourceId
coverUrl: null, // 视频课封面 coverUrl: null, // 封面
studentList: [], // 上课学员列表 studentList: [], // 上课学员列表
shelfState: 'YES', //是否开启学院展示 shelfState: 'YES', //是否开启学院展示
scheduleMedia: [ scheduleMedia: [
{ {
// 视频课媒体资源 // 媒体资源
contentType: 'INTRO', contentType: 'INTRO',
mediaType: 'TEXT', mediaType: 'TEXT',
mediaContent: '', mediaContent: '',
...@@ -118,7 +118,7 @@ class AddVideoCourse extends React.Component { ...@@ -118,7 +118,7 @@ class AddVideoCourse extends React.Component {
break break
} }
} }
// 获取视频课详情 // 获取详情
handleFetchScheudleDetail = (courseId) => { handleFetchScheudleDetail = (courseId) => {
CourseService.videoScheduleDetail({ CourseService.videoScheduleDetail({
courseId courseId
...@@ -562,7 +562,7 @@ class AddVideoCourse extends React.Component { ...@@ -562,7 +562,7 @@ class AddVideoCourse extends React.Component {
return ( return (
<div className='page add-video-course-page'> <div className='page add-video-course-page'>
<Breadcrumbs navList={pageType === 'add' ? '新建视频课' : '编辑视频课'} goBack={this.handleGoBack} /> <Breadcrumbs navList={pageType === 'add' ? '新建' : '编辑'} goBack={this.handleGoBack} />
<div className='box'> <div className='box'>
<div className='show-tips'> <div className='show-tips'>
...@@ -574,7 +574,7 @@ class AddVideoCourse extends React.Component { ...@@ -574,7 +574,7 @@ class AddVideoCourse extends React.Component {
<span className='label'>课程名称:</span> <span className='label'>课程名称:</span>
<Input <Input
value={courseName} value={courseName}
placeholder='请输入视频课的名称(40字以内)' placeholder='请输入的名称(40字以内)'
maxLength={40} maxLength={40}
style={{ width: 240 }} style={{ width: 240 }}
onChange={(e) => { onChange={(e) => {
......
...@@ -144,7 +144,7 @@ class AddVideoIntro extends React.Component { ...@@ -144,7 +144,7 @@ class AddVideoIntro extends React.Component {
</div> </div>
</div> </div>
<div className="introduce"> <div className="introduce">
<span className="label">视频课简介:</span> <span className="label">简介:</span>
<div className="content"> <div className="content">
<div className="intro-list"> <div className="intro-list">
<div className="intro-list__item introduce-editor"> <div className="intro-list__item introduce-editor">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:11:57 * @Date: 2020-08-05 10:11:57
* @LastEditors: fusanqiasng * @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-28 20:14:37 * @LastEditTime: 2021-05-28 20:14:37
* @Description: 视频课-搜索模块 * @Description: -搜索模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -192,10 +192,10 @@ class VideoCourseFilter extends React.Component { ...@@ -192,10 +192,10 @@ class VideoCourseFilter extends React.Component {
<Row type='flex' justify='space-between' align='top'> <Row type='flex' justify='space-between' align='top'>
<div className='search-condition'> <div className='search-condition'>
<div className='search-condition__item'> <div className='search-condition__item'>
<span className='search-name'>视频课名称:</span> <span className='search-name'>名称:</span>
<Search <Search
value={courseName} value={courseName}
placeholder='搜索视频课名称' placeholder='搜索名称'
onChange={(e) => { onChange={(e) => {
this.handleChangeQuery('courseName', e.target.value) this.handleChangeQuery('courseName', e.target.value)
}} }}
......
...@@ -16,7 +16,7 @@ class VideoCourseList extends React.Component { ...@@ -16,7 +16,7 @@ class VideoCourseList extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props)
this.state = { this.state = {
id: "", // 视频课ID id: "", // ID
studentIds: [], studentIds: [],
RelatedPlanModalVisible: false, RelatedPlanModalVisible: false,
selectPlanList: {}, selectPlanList: {},
...@@ -55,7 +55,7 @@ class VideoCourseList extends React.Component { ...@@ -55,7 +55,7 @@ class VideoCourseList extends React.Component {
const { ShelfLoading } = this.state const { ShelfLoading } = this.state
const columns = [ const columns = [
{ {
title: "视频课", title: "",
key: "scheduleName", key: "scheduleName",
dataIndex: "scheduleName", dataIndex: "scheduleName",
width: 321, width: 321,
...@@ -328,10 +328,10 @@ class VideoCourseList extends React.Component { ...@@ -328,10 +328,10 @@ class VideoCourseList extends React.Component {
}) })
} }
// 删除视频课 // 删除
handleDeleteVideoCourse = (scheduleId) => { handleDeleteVideoCourse = (scheduleId) => {
Modal.confirm({ Modal.confirm({
title: "你确定要删除此视频课吗?", title: "你确定要删除此吗?",
content: "删除后,学员将不能进行观看。", content: "删除后,学员将不能进行观看。",
icon: <span className='icon iconfont default-confirm-icon'>&#xe6f4;</span>, icon: <span className='icon iconfont default-confirm-icon'>&#xe6f4;</span>,
okText: "确定", okText: "确定",
...@@ -370,7 +370,7 @@ class VideoCourseList extends React.Component { ...@@ -370,7 +370,7 @@ class VideoCourseList extends React.Component {
data={shareData} data={shareData}
type='videoClass' type='videoClass'
courseDivision={type} courseDivision={type}
title='视频课' title=''
close={() => { close={() => {
this.setState({ this.setState({
shareLiveModal: null shareLiveModal: null
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:15 * @Date: 2020-08-05 10:12:15
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-26 16:07:27 * @LastEditTime: 2020-12-26 16:07:27
* @Description: 视频课-操作模块 * @Description: -操作模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -22,7 +22,7 @@ export default function VideoCourseOpt() { ...@@ -22,7 +22,7 @@ export default function VideoCourseOpt() {
RCHistory.push('/create-video-course?type=add'); RCHistory.push('/create-video-course?type=add');
}} }}
className="mr12" className="mr12"
>新建视频课</Button> >新建</Button>
</div> </div>
); );
} }
...@@ -15,18 +15,18 @@ class VideoCourse extends React.Component { ...@@ -15,18 +15,18 @@ class VideoCourse extends React.Component {
current: 1, current: 1,
storeId: User.getStoreId(), storeId: User.getStoreId(),
}, },
dataSource: [], // 视频课列表 dataSource: [], // 列表
totalCount: 0, // 视频课数据总条数 totalCount: 0, // 数据总条数
currentTabKey: 'internal', currentTabKey: 'internal',
}; };
} }
componentWillMount() { componentWillMount() {
// 获取视频课列表 // 获取列表
this.handleFetchScheduleList(); this.handleFetchScheduleList();
} }
// 获取视频课列表 // 获取列表
handleFetchScheduleList = (_query = {}) => { handleFetchScheduleList = (_query = {}) => {
const { currentTabKey } = this.state; const { currentTabKey } = this.state;
const query = { const query = {
...@@ -81,7 +81,7 @@ class VideoCourse extends React.Component { ...@@ -81,7 +81,7 @@ class VideoCourse extends React.Component {
const { dataSource, totalCount, query, currentTabKey } = this.state; const { dataSource, totalCount, query, currentTabKey } = this.state;
return ( return (
<div className='page video-course-page'> <div className='page video-course-page'>
<div className='content-header'>视频课</div> <div className='content-header'></div>
<div className='box'> <div className='box'>
<Tabs onChange={this.currenTabChange} activeKey={currentTabKey}> <Tabs onChange={this.currenTabChange} activeKey={currentTabKey}>
...@@ -95,7 +95,7 @@ class VideoCourse extends React.Component { ...@@ -95,7 +95,7 @@ class VideoCourse extends React.Component {
<If condition={currentTabKey === 'internal'}> <If condition={currentTabKey === 'internal'}>
<VideoCourseOpt /> <VideoCourseOpt />
</If> </If>
{/* 视频课列表模块 */} {/* 列表模块 */}
<VideoCourseList <VideoCourseList
type={currentTabKey} type={currentTabKey}
query={query} query={query}
......
...@@ -122,7 +122,7 @@ class WatchDataModal extends React.Component { ...@@ -122,7 +122,7 @@ class WatchDataModal extends React.Component {
const { visible,size,dataSource,totalCount,query} = this.state; const { visible,size,dataSource,totalCount,query} = this.state;
return ( return (
<Modal <Modal
title="视频课观看数据" title="观看数据"
visible={visible} visible={visible}
footer={null} footer={null}
onCancel={this.onClose} onCancel={this.onClose}
......
...@@ -301,7 +301,7 @@ class Home extends React.Component { ...@@ -301,7 +301,7 @@ class Home extends React.Component {
</div> </div>
</div> </div>
<div className="course-item"> <div className="course-item">
<div className="course-title">视频课</div> <div className="course-title"></div>
<div className="data"> <div className="data">
<span className="course-number">{videoCourseNum}</span> <span className="course-number">{videoCourseNum}</span>
<span className="course-word">本月新增</span> <span className="course-word">本月新增</span>
...@@ -380,7 +380,7 @@ class Home extends React.Component { ...@@ -380,7 +380,7 @@ class Home extends React.Component {
<span <span
className={`tab${scheduleType === 'VOICE' ? ' selected' : ''}`} className={`tab${scheduleType === 'VOICE' ? ' selected' : ''}`}
onClick={() => this.setState({ scheduleType: 'VOICE' }, () => this.getHotCourse())} onClick={() => this.setState({ scheduleType: 'VOICE' }, () => this.getHotCourse())}
>视频课</span> ></span>
<span <span
className={`tab${scheduleType === 'PICTURE' ? ' selected' : ''}`} className={`tab${scheduleType === 'PICTURE' ? ' selected' : ''}`}
onClick={() => this.setState({ scheduleType: 'PICTURE' }, () => this.getHotCourse())} onClick={() => this.setState({ scheduleType: 'PICTURE' }, () => this.getHotCourse())}
......
...@@ -55,7 +55,7 @@ const ENUM = { ...@@ -55,7 +55,7 @@ const ENUM = {
CourseTypeEnum: { CourseTypeEnum: {
LIVE: "直播课", LIVE: "直播课",
VOICE: "视频课", VOICE: "",
PICTURE: "图文课", PICTURE: "图文课",
FOLDER: "学习资料", FOLDER: "学习资料",
}, },
......
...@@ -107,11 +107,11 @@ class AddCourse extends React.Component { ...@@ -107,11 +107,11 @@ class AddCourse extends React.Component {
selectVideo: { selectVideo: {
external: [], external: [],
internal: [], internal: [],
}, //弹窗内已选择的视频课 }, //弹窗内已选择的程
currentVideoCourseListData: { currentVideoCourseListData: {
external: [], external: [],
internal: [], internal: [],
}, //页面中已关联的视频课 }, //页面中已关联的程
pictureDataSource: [], pictureDataSource: [],
pictureSize: 10, pictureSize: 10,
...@@ -201,7 +201,7 @@ class AddCourse extends React.Component { ...@@ -201,7 +201,7 @@ class AddCourse extends React.Component {
}); });
}; };
// 获取视频课列表 // 获取列表
handleFetchVideoList = () => { handleFetchVideoList = () => {
const { videoQuery, videoSize, videoCourseDivision, videoDataSource, videoTotalCount } = this.state; const { videoQuery, videoSize, videoCourseDivision, videoDataSource, videoTotalCount } = this.state;
...@@ -866,7 +866,7 @@ class AddCourse extends React.Component { ...@@ -866,7 +866,7 @@ class AddCourse extends React.Component {
)} )}
</div> </div>
</TabPane> </TabPane>
<TabPane tab='视频课' key='VIDEO'> <TabPane tab='' key='VIDEO'>
<Radio.Group value={videoCourseDivision} onChange={this.videoCourseDivisionChange} style={{ marginBottom: 8 }}> <Radio.Group value={videoCourseDivision} onChange={this.videoCourseDivisionChange} style={{ marginBottom: 8 }}>
<Radio.Button value='internal'>内部课程</Radio.Button> <Radio.Button value='internal'>内部课程</Radio.Button>
<Radio.Button value='external'>外部课程</Radio.Button> <Radio.Button value='external'>外部课程</Radio.Button>
......
...@@ -25,7 +25,7 @@ class VideoList extends React.Component { ...@@ -25,7 +25,7 @@ class VideoList extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
id: "", // 视频课ID id: "", // ID
studentIds: [], studentIds: [],
selectedRowKeys: [], selectedRowKeys: [],
query: { query: {
...@@ -33,8 +33,8 @@ class VideoList extends React.Component { ...@@ -33,8 +33,8 @@ class VideoList extends React.Component {
current: 1, current: 1,
storeId: User.getStoreId(), storeId: User.getStoreId(),
}, },
dataSource: [], // 视频课列表 dataSource: [], // 列表
totalCount: 0, // 视频课数据总条数 totalCount: 0, // 数据总条数
}; };
} }
...@@ -50,11 +50,11 @@ class VideoList extends React.Component { ...@@ -50,11 +50,11 @@ class VideoList extends React.Component {
} }
componentWillMount() { componentWillMount() {
// 获取视频课列表 // 获取列表
this.handleFetchScheduleList(); this.handleFetchScheduleList();
} }
// 获取视频课列表 // 获取列表
handleFetchScheduleList = (_query = {}) => { handleFetchScheduleList = (_query = {}) => {
const query = { const query = {
...this.state.query, ...this.state.query,
......
...@@ -347,7 +347,7 @@ class BasicInfo extends React.Component { ...@@ -347,7 +347,7 @@ class BasicInfo extends React.Component {
<div className='live-standard-info'> <div className='live-standard-info'>
<span className='icon iconfont'>&#xe864;</span> <span className='icon iconfont'>&#xe864;</span>
<span className='instro'> <span className='instro'>
视频课单个课程,学员学习进度达到 单个课程,学员学习进度达到
<Input <Input
width='40' width='40'
value={percentCompleteVideo} value={percentCompleteVideo}
......
...@@ -18,7 +18,7 @@ function ExpiredCourseList(props) { ...@@ -18,7 +18,7 @@ function ExpiredCourseList(props) {
<span>直播课</span> <span>直播课</span>
} }
{ item.courseType === "VOICE " && { item.courseType === "VOICE " &&
<span>视频课</span> <span></span>
} }
</div> </div>
<div className="course-instro"> <div className="course-instro">
......
...@@ -21,7 +21,7 @@ const CourseType = { ...@@ -21,7 +21,7 @@ const CourseType = {
text: '直播课' text: '直播课'
}, },
VOICE: { VOICE: {
text: '视频课' text: ''
}, },
RECORD: { RECORD: {
text: '录播课' text: '录播课'
......
...@@ -12,7 +12,7 @@ const CourseType = { ...@@ -12,7 +12,7 @@ const CourseType = {
text: "直播课" text: "直播课"
}, },
VOICE : { VOICE : {
text:"视频课" text:""
}, },
RECORD : { RECORD : {
text:'录播课' text:'录播课'
......
...@@ -78,11 +78,11 @@ class SelectOperatorModal extends React.Component { ...@@ -78,11 +78,11 @@ class SelectOperatorModal extends React.Component {
selectVideo: { selectVideo: {
external: [], external: [],
internal: [] internal: []
}, //弹窗内已选择的视频课 }, //弹窗内已选择的程
currentVideoCourseListData: { currentVideoCourseListData: {
external: [], external: [],
internal: [] internal: []
}, //页面中已关联的视频课 }, //页面中已关联的程
pictureDataSource: [], pictureDataSource: [],
pictureSize: 10, pictureSize: 10,
...@@ -90,8 +90,8 @@ class SelectOperatorModal extends React.Component { ...@@ -90,8 +90,8 @@ class SelectOperatorModal extends React.Component {
current: 1 current: 1
}, },
pictureTotalCount: 0, pictureTotalCount: 0,
selectPicture: [], //弹窗内已选择的视频课 selectPicture: [], //弹窗内已选择的程
currentPictureCourseListData: [], //页面中已关联的视频课 currentPictureCourseListData: [], //页面中已关联的程
activeKey: "video", activeKey: "video",
currentTaskCourseData: this.props.data[this.props.selectedTaskIndex].courseList || [] currentTaskCourseData: this.props.data[this.props.selectedTaskIndex].courseList || []
...@@ -135,7 +135,7 @@ class SelectOperatorModal extends React.Component { ...@@ -135,7 +135,7 @@ class SelectOperatorModal extends React.Component {
}) })
} }
// 获取视频课列表 // 获取列表
handleFetchVideoDataList = () => { handleFetchVideoDataList = () => {
const { videoQuery, videoSize, videoDataSource, videoTotalCount, videoCourseDivision } = this.state const { videoQuery, videoSize, videoDataSource, videoTotalCount, videoCourseDivision } = this.state
...@@ -589,7 +589,7 @@ class SelectOperatorModal extends React.Component { ...@@ -589,7 +589,7 @@ class SelectOperatorModal extends React.Component {
className='link-create-course' className='link-create-course'
href={window.location.origin + window.location.pathname + "#/create-video-course?type=add"} href={window.location.origin + window.location.pathname + "#/create-video-course?type=add"}
onClick={this.props.onClose}> onClick={this.props.onClose}>
没有找到需要的视频课<span>去创建</span> 没有找到需要的?<span>去创建</span>
</a> </a>
) )
break break
...@@ -760,7 +760,7 @@ class SelectOperatorModal extends React.Component { ...@@ -760,7 +760,7 @@ class SelectOperatorModal extends React.Component {
</div> </div>
</TabPane> </TabPane>
<TabPane tab='视频课' key='video'> <TabPane tab='' key='video'>
<Radio.Group value={videoCourseDivision} onChange={this.videoCourseDivisionChange} style={{ marginBottom: 16 }}> <Radio.Group value={videoCourseDivision} onChange={this.videoCourseDivisionChange} style={{ marginBottom: 16 }}>
<Radio.Button value='internal'>内部课程</Radio.Button> <Radio.Button value='internal'>内部课程</Radio.Button>
<Radio.Button value='external'>外部课程</Radio.Button> <Radio.Button value='external'>外部课程</Radio.Button>
......
...@@ -81,7 +81,7 @@ const mainRoutes = [ ...@@ -81,7 +81,7 @@ const mainRoutes = [
{ {
path: '/video-course', path: '/video-course',
component: VideoCoursePage, component: VideoCoursePage,
name: '视频课', name: '',
}, },
{ {
path: '/graphics-course', path: '/graphics-course',
...@@ -101,7 +101,7 @@ const mainRoutes = [ ...@@ -101,7 +101,7 @@ const mainRoutes = [
{ {
path: '/create-video-course', path: '/create-video-course',
component: AddVideoCoursePage, component: AddVideoCoursePage,
name: '创建视频课', name: '创建',
}, },
{ {
path: '/knowledge-base', path: '/knowledge-base',
...@@ -163,7 +163,7 @@ const mainRoutes = [ ...@@ -163,7 +163,7 @@ const mainRoutes = [
{ {
path: '/create-plan', path: '/create-plan',
component: AddPlanPage, component: AddPlanPage,
name: '创建视频课', name: '创建',
}, },
{ {
path: '/store-info', path: '/store-info',
......
...@@ -27,7 +27,7 @@ export const menuList: any = [ ...@@ -27,7 +27,7 @@ export const menuList: any = [
link: '/live-course' link: '/live-course'
}, },
{ {
groupName: "视频课", groupName: "",
groupCode: "CourseVideoClass", groupCode: "CourseVideoClass",
link: '/video-course' link: '/video-course'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment