Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
b85643d2
Commit
b85643d2
authored
Aug 03, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:枚举文件合并替换
parent
3a2890ee
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
34 deletions
+34
-34
src/common/constants/academic/taskEnum.js
+0
-18
src/modules/task-center/data-center/components/CourseTable.tsx
+1
-1
src/modules/task-center/data-center/components/DataInfo.tsx
+1
-1
src/modules/task-center/data-center/components/StudyTable.tsx
+1
-1
src/modules/task-center/enum.ts
+19
-1
src/modules/task-center/train-task/components/ExpiredCourseList.jsx
+3
-3
src/modules/task-center/train-task/components/TrainContent.jsx
+9
-9
No files found.
src/common/constants/academic/taskEnum.js
deleted
100644 → 0
View file @
3a2890ee
/*
* @Author: yuananting
* @Date: 2021-08-02 11:50:37
* @LastEditors: yuananting
* @LastEditTime: 2021-08-02 13:56:52
* @Description: 任务中心
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
const
LearningContentIcon
=
{
LIVE
:
'https://image.xiaomaiketang.com/xm/jyFhCtaKfi.png'
,
VOICE
:
'https://image.xiaomaiketang.com/xm/2T2k5Tbmpy.png'
,
PICTURE
:
'https://image.xiaomaiketang.com/xm/yzjNwGX6TY.png'
,
EAXM
:
'https://image.xiaomaiketang.com/xm/fCDPp2Eenc.png'
,
HOMEWORK
:
'https://image.xiaomaiketang.com/xm/hShsAzzppZ.png'
,
};
export
{
LearningContentIcon
};
src/modules/task-center/data-center/components/CourseTable.tsx
View file @
b85643d2
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
import
moment
from
'moment'
;
import
ENUM
from
'../../e
mun
'
;
import
ENUM
from
'../../e
num
'
;
import
'./course.less'
function
CourseTable
(
props
:
any
)
{
...
...
src/modules/task-center/data-center/components/DataInfo.tsx
View file @
b85643d2
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
import
{
Progress
}
from
'antd'
;
import
ENUM
from
'../../e
mun
'
import
ENUM
from
'../../e
num
'
const
defaultCover
=
'https://image.xiaomaiketang.com/xm/rEAetaTEh3.png'
;
function
DataInfo
(
props
:
any
)
{
...
...
src/modules/task-center/data-center/components/StudyTable.tsx
View file @
b85643d2
...
...
@@ -3,7 +3,7 @@ import { withRouter } from "react-router-dom";
import
{
Row
,
Input
,
Select
,
Tooltip
,
Col
}
from
'antd'
;
import
RangePicker
from
'@/modules/common/DateRangePicker'
;
import
{
PageControl
,
XMTable
}
from
'@/components'
;
import
ENUM
from
'../../e
mun
'
;
import
ENUM
from
'../../e
num
'
;
import
moment
from
'moment'
;
const
{
Search
}
=
Input
;
const
{
Option
}
=
Select
;
...
...
src/modules/task-center/e
mun
.ts
→
src/modules/task-center/e
num
.ts
View file @
b85643d2
/*
* @Author: yuananting
* @Date: 2021-08-03 18:10:15
* @LastEditors: yuananting
* @LastEditTime: 2021-08-03 18:31:28
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
const
ENUM
:
any
=
{
trainStatus
:
{
UN_START
:
{
...
...
@@ -41,7 +50,15 @@ const ENUM: any = {
FINISH
:
{
text
:
'已完成'
,
},
}
},
LearningContentIcon
:
{
COURSE
:
'https://image.xiaomaiketang.com/xm/6C2GjSpnDp.png'
,
LIVE
:
'https://image.xiaomaiketang.com/xm/jyFhCtaKfi.png'
,
VOICE
:
'https://image.xiaomaiketang.com/xm/2T2k5Tbmpy.png'
,
PICTURE
:
'https://image.xiaomaiketang.com/xm/yzjNwGX6TY.png'
,
EXAM
:
'https://image.xiaomaiketang.com/xm/fCDPp2Eenc.png'
,
HOMEWORK
:
'https://image.xiaomaiketang.com/xm/hShsAzzppZ.png'
,
},
}
export
default
ENUM
\ No newline at end of file
src/modules/task-center/train-task/components/ExpiredCourseList.jsx
View file @
b85643d2
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-08-03 10:47:59
* @LastEditors: yuananting
* @LastEditTime: 2021-08-03 1
4:08
:56
* @LastEditTime: 2021-08-03 1
8:31
:56
* @Description: 编辑培训任务-失效课程
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
...
@@ -10,7 +10,7 @@
import
React
from
'react'
;
import
{
List
}
from
'antd'
;
import
'./ExpiredCourseList.less'
;
import
{
LearningContentIcon
}
from
'@/common/constants/academic/taskE
num'
;
import
ENUM
from
'../../e
num'
;
function
ExpiredCourseList
(
props
)
{
const
expiredCourseList
=
[
1
,
2
,
3
,
4
];
...
...
@@ -26,7 +26,7 @@ function ExpiredCourseList(props) {
<
span
className=
'content-status'
>
未成功开课
</
span
>
<
span
className=
'stage-name'
>
阶段一、
</
span
>
<
span
className=
'content-name'
>
<
img
src=
{
LearningContentIcon
[
'LIVE'
]
}
/>
<
img
src=
{
ENUM
.
LearningContentIcon
[
'LIVE'
]
}
/>
<
span
>
2.1 入门培训任务
</
span
>
</
span
>
<
span
className=
'teacher-name'
>
张老师
</
span
>
...
...
src/modules/task-center/train-task/components/TrainContent.jsx
View file @
b85643d2
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-07-30 16:33:58
* @LastEditors: yuananting
* @LastEditTime: 2021-08-03 1
7:05:23
* @LastEditTime: 2021-08-03 1
8:32:02
* @Description: 任务中心-培训任务-新建-培训内容
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
...
@@ -15,7 +15,7 @@ import './TrainContent.less';
import
RelatedCourseDrawer
from
'./RelatedCourseDrawer'
;
import
RelatedExamDrawer
from
'./RelatedExamDrawer'
;
import
ExpiredCourseList
from
'./ExpiredCourseList'
;
import
{
LearningContentIcon
}
from
'@/common/constants/academic/taskE
num'
;
import
ENUM
from
'../../e
num'
;
const
{
Panel
}
=
Collapse
;
...
...
@@ -155,15 +155,15 @@ class TrainContent extends Component {
return
(
<
Menu
>
<
Menu
.
Item
key=
'course'
onClick=
{
()
=>
this
.
setState
({
showCourseDrawer
:
true
})
}
>
<
img
className=
'type-option-icon'
src=
'https://image.xiaomaiketang.com/xm/6C2GjSpnDp.png'
/>
<
img
className=
'type-option-icon'
src=
{
ENUM
.
LearningContentIcon
[
'COURSE'
]
}
/>
<
span
className=
'type-option-text'
>
课程
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
'exam'
onClick=
{
()
=>
this
.
setState
({
showExamDrawer
:
true
})
}
>
<
img
className=
'type-option-icon'
src=
'https://image.xiaomaiketang.com/xm/M4BEXnRWbb.png'
/>
<
img
className=
'type-option-icon'
src=
{
ENUM
.
LearningContentIcon
[
'EXAM'
]
}
/>
<
span
className=
'type-option-text'
>
考试
</
span
>
</
Menu
.
Item
>
<
Menu
.
Item
key=
'homework'
>
<
img
className=
'type-option-icon'
src=
'https://image.xiaomaiketang.com/xm/ypWQcFWnxB.png'
/>
<
img
className=
'type-option-icon'
src=
{
ENUM
.
LearningContentIcon
[
'HOMEWORK'
]
}
/>
<
span
className=
'type-option-text'
>
实操作业
</
span
>
</
Menu
.
Item
>
</
Menu
>
...
...
@@ -337,7 +337,7 @@ class TrainContent extends Component {
return
(
<
div
className=
'sort-content-item'
>
<
div
className=
'content-info'
>
<
img
className=
'type-option-icon'
src=
{
LearningContentIcon
[
courseType
]
}
/>
<
img
className=
'type-option-icon'
src=
{
ENUM
.
LearningContentIcon
[
courseType
]
}
/>
<
span
className=
'content-name'
>
{
parentIndex
+
1
}
.
{
index
+
1
}
{
courseName
}
</
span
>
...
...
@@ -447,7 +447,7 @@ class TrainContent extends Component {
<
div
className=
'title-text'
>
完成标准:
</
div
>
<
div
className=
'detail-box'
>
<
div
className=
'item-info'
>
<
img
src=
{
LearningContentIcon
[
'LIVE'
]
}
/>
<
img
src=
{
ENUM
.
LearningContentIcon
[
'LIVE'
]
}
/>
<
span
>
直播课单个课程,学员学习进度达到
<
Input
...
...
@@ -462,7 +462,7 @@ class TrainContent extends Component {
</
span
>
</
div
>
<
div
className=
'item-info'
>
<
img
src=
{
LearningContentIcon
[
'VOICE'
]
}
/>
<
img
src=
{
ENUM
.
LearningContentIcon
[
'VOICE'
]
}
/>
<
span
>
线上课单个课节,学员学习进度达到
<
Input
...
...
@@ -477,7 +477,7 @@ class TrainContent extends Component {
</
span
>
</
div
>
<
div
className=
'item-info'
>
<
img
src=
{
LearningContentIcon
[
'PICTURE'
]
}
/>
<
img
src=
{
ENUM
.
LearningContentIcon
[
'PICTURE'
]
}
/>
<
span
>
图文课单个课程,学员学习进度达到
<
Input
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment