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
961679f4
Commit
961679f4
authored
Jul 08, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/yuananting/20210705/select-course-limit
parents
9ae443c4
62b372e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
63 deletions
+80
-63
src/modules/course-manage/components/LiveCourseList.jsx
+0
-0
src/modules/course-manage/components/LiveCourseList.less
+56
-39
src/modules/course-manage/components/LiveCourseOpt.jsx
+1
-1
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
+7
-9
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+6
-6
src/modules/plan-manage/components/PlanList.jsx
+8
-7
src/modules/teach-tool/examination-manager/Index.tsx
+2
-1
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
961679f4
This diff is collapsed.
Click to expand it.
src/modules/course-manage/components/LiveCourseList.less
View file @
961679f4
.live-course-list {
margin-top: 12px;
.record__item {
overflow: hidden;
display: flex;
align-items: center;
.course-cover {
...
...
@@ -11,63 +11,61 @@
border-radius: 2px;
margin-right: 8px;
}
.course-name{
.course-name
{
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
font-weight: bold;
max-width:
244
px;
max-width:
200
px;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
}
.course-time{
.course-time
{
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.course-status {
font-size:
12px;
line-height:
18px;
display:
inline-block;
border-radius:
2px;
padding:
0 8px;
margin-left:
4px;
font-size:
12px;
line-height:
18px;
display:
inline-block;
border-radius:
2px;
padding:
0 8px;
margin-left:
4px;
}
.teacher-assistant{
display:flex;
.teacher{
.teacher-assistant
{
display:
flex;
.teacher
{
font-size: 12px;
color: #666666;
max-width: 96px;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
display:inline-block;
padding-top:2px;
display:
inline-block;
padding-top:
2px;
}
.assistant{
.assistant
{
font-size: 12px;
color: #666666;
max-width: 96px;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
display:inline-block;
padding-top:2px;
display:
inline-block;
padding-top:
2px;
}
.split {
margin: 0 4px;
color: #
BFBFBF
;
color: #
bfbfbf
;
display: inline-blcok;
}
}
}
.related-task{
.related-task
{
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
...
...
@@ -76,37 +74,37 @@
line-clamp: 2;
-webkit-box-orient: vertical;
}
.categoryName{
.categoryName
{
font-size: 14px;
color: #666666;
line-height: 20px;
}
.courseware{
.courseware
{
font-size: 14px;
color: #2966
FF
;
color: #2966
ff
;
line-height: 20px;
text-align:right;
cursor:pointer;
text-align:
right;
cursor:
pointer;
}
.quota-icon{
color:
#2966FF
;
cursor:pointer;
.quota-icon
{
color:
#2966ff
;
cursor:
pointer;
}
.operate {
display: flex;
align-items: center;
flex-wrap: wrap;
.operate__item {
color: #2966
FF
;
color: #2966
ff
;
cursor: pointer;
&.split {
margin: 0 8px;
color: #
BFBFBF
;
color: #
bfbfbf
;
}
}
}
.operate-text {
color: #2966
FF
;
color: #2966
ff
;
cursor: pointer;
}
.course-start-end {
...
...
@@ -135,7 +133,27 @@
font-size: 12px;
}
}
tbody {
tr {
&:nth-child(even) {
background: transparent !important;
td {
background: #fff !important;
}
}
&:nth-child(odd) {
background: #fafafa !important;
td {
background: #fafafa !important;
}
}
&:hover {
td {
background: #f3f6fa !important;
}
}
}
}
}
.live-course-more-menu {
background: white;
...
...
@@ -155,4 +173,4 @@
.type {
font-weight: 700;
}
}
\ No newline at end of file
}
src/modules/course-manage/components/LiveCourseOpt.jsx
View file @
961679f4
...
...
@@ -53,7 +53,7 @@ class LiveCourseOpt extends React.Component {
{
userRole
!==
"CloudLecturer"
&&
<
Button
type=
"primary"
onClick=
{
this
.
handleCreateLiveCouese
}
>
新建直播课
</
Button
>
}
{
!
this
.
state
.
isMac
&&
<
Button
onClick=
{
this
.
handleDownloadClient
}
>
下载直播客户端
</
Button
>
}
<
Button
onClick=
{
this
.
handleDownloadClient
}
>
下载直播客户端
</
Button
>
</
div
>
</
div
>
)
...
...
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
View file @
961679f4
...
...
@@ -10,7 +10,7 @@ import Service from '@/common/js/service';
import
User
from
'@/common/js/user'
;
import
college
from
'@/common/lottie/college'
;
import
{
PageControl
,
XMTable
}
from
'@/components'
;
import
{
appId
,
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
import
{
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
import
CourseService
from
'@/domains/course-domain/CourseService'
;
import
ShareLiveModal
from
'@/modules/course-manage/modal/ShareLiveModal'
;
import
OfflineCourseData
from
'@/modules/course-manage/offline-course/OfflineCourseData'
;
...
...
@@ -78,7 +78,7 @@ class OfflineCourseList extends React.Component {
}
${
moment
(
startTime
).
format
(
'HH:mm'
)}
~
${
moment
(
endTime
).
format
(
'HH:mm'
)}
`
;
return
(
<
div
className=
'record__item'
>
<
img
className=
'course-cover'
src=
{
coverUrl
||
defaultCoverUrl
}
/>
<
img
className=
'course-cover'
src=
{
coverUrl
||
defaultCoverUrl
}
alt=
''
/>
<
div
style=
{
{
width
:
175
}
}
>
<
Tooltip
title=
{
courseName
}
>
<
div
className=
'course-name'
>
{
courseName
}
</
div
>
...
...
@@ -152,14 +152,14 @@ class OfflineCourseList extends React.Component {
},
{
title
:
'报名时间'
,
width
:
181
,
width
:
200
,
key
:
'apply'
,
dataIndex
:
'apply'
,
sorter
:
true
,
render
:
(
val
,
item
)
=>
{
return
(
<
div
>
{
item
.
startTimeApply
?
`${
formatDate('MM-DD H:i', item.startTimeApply)} ~ ${
formatDate('MM-DD H:i', item.endTimeApply)}`
:
'-'
}
<
div
style=
{
{
whiteSpace
:
'nowrap'
}
}
>
{
item
.
startTimeApply
?
`${
window.formatDate('MM-DD H:i', item.startTimeApply)} ~ ${window.
formatDate('MM-DD H:i', item.endTimeApply)}`
:
'-'
}
{
item
.
whetherApplyFull
===
'YES'
&&
(
<
span
style=
{
{
...
...
@@ -185,7 +185,7 @@ class OfflineCourseList extends React.Component {
dataIndex
:
'created'
,
sorter
:
true
,
render
:
(
val
)
=>
{
return
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
;
return
<
span
style=
{
{
whiteSpace
:
'nowrap'
}
}
>
{
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
}
</
span
>
;
},
},
{
...
...
@@ -360,8 +360,6 @@ class OfflineCourseList extends React.Component {
// 显示分享弹窗
handleShowShareModal
=
(
record
,
needStr
=
false
)
=>
{
const
{
courseId
}
=
record
;
const
_appId
=
appId
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
offline_detail/
${
courseId
}
?id=
${
User
.
getStoreId
()}
`
;
const
longUrl
=
htmlUrl
;
const
{
courseName
,
courseMediaVOS
}
=
record
;
...
...
@@ -437,7 +435,7 @@ class OfflineCourseList extends React.Component {
columns=
{
this
.
parseColumns
()
}
onChange=
{
this
.
handleChangeTable
}
pagination=
{
false
}
scroll=
{
{
x
:
1
5
00
}
}
scroll=
{
{
x
:
1
3
00
}
}
bordered
className=
'offline-list-table'
/>
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
961679f4
import
{
Dropdown
,
message
,
Modal
,
Switch
,
T
able
,
T
ooltip
}
from
'antd'
;
import
{
Dropdown
,
message
,
Modal
,
Switch
,
Tooltip
}
from
'antd'
;
import
User
from
'@/common/js/user'
;
import
{
PageControl
}
from
'@/components'
;
import
{
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
...
...
@@ -147,7 +147,7 @@ class VideoCourseList extends React.Component {
关闭后,学院内不再展示此课程,但学员仍可通过分享的海报/链接查看此课程。
</
div
>
}
>
<
i
className=
'icon iconfont'
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>
<
i
className=
'icon iconfont'
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
,
fontWeight
:
'normal'
}
}
>

</
i
>
</
Tooltip
>
...
...
@@ -185,7 +185,7 @@ class VideoCourseList extends React.Component {
dataIndex
:
'created'
,
sorter
:
true
,
render
:
(
val
)
=>
{
return
formatDate
(
'YYYY-MM-DD H:i'
,
val
);
return
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
);
},
},
{
...
...
@@ -195,7 +195,7 @@ class VideoCourseList extends React.Component {
dataIndex
:
'updated'
,
sorter
:
true
,
render
:
(
val
)
=>
{
return
formatDate
(
'YYYY-MM-DD H:i'
,
val
);
return
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
);
},
},
{
...
...
@@ -211,7 +211,7 @@ class VideoCourseList extends React.Component {
<
Tooltip
title=
{
this
.
handlePlanName
(
record
.
relatedPlanList
)
}
placement=
'top'
arrowPointAtCenter
>
{
record
.
relatedPlanList
.
map
((
item
,
index
)
=>
{
return
(
<
span
>
<
span
key=
{
item
.
planId
}
>
{
item
.
planName
}
{
index
<
record
.
relatedPlanList
.
length
-
1
&&
<
span
>
、
</
span
>
}
</
span
>
);
...
...
@@ -296,7 +296,7 @@ class VideoCourseList extends React.Component {
handlePlanName
=
(
planArray
)
=>
{
let
planStr
=
''
;
planArray
.
map
((
item
,
index
)
=>
{
planArray
.
forEach
((
item
,
index
)
=>
{
if
(
index
<
planArray
.
length
-
1
)
{
planStr
=
planStr
+
item
.
planName
+
'、'
;
}
else
{
...
...
src/modules/plan-manage/components/PlanList.jsx
View file @
961679f4
...
...
@@ -8,9 +8,9 @@
*/
import
React
,
{
useState
}
from
'react'
;
import
{
Table
,
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
}
from
'antd'
;
import
{
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
}
from
'antd'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
PageControl
,
XMTable
}
from
"@/components"
;
import
{
PageControl
,
XMTable
}
from
'@/components'
;
import
PlanService
from
'@/domains/plan-domain/planService'
;
import
SharePlanModal
from
'../modal/SharePlanModal'
;
import
{
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
...
...
@@ -29,6 +29,7 @@ function PlanList(props) {
key
:
'planName'
,
dataIndex
:
'planName'
,
width
:
'18%'
,
fixed
:
'left'
,
render
:
(
val
,
record
)
=>
{
return
(
<
div
className=
'plan_name_item'
>
...
...
@@ -86,7 +87,7 @@ function PlanList(props) {
dataIndex
:
'created'
,
sorter
:
true
,
render
:
(
val
)
=>
{
return
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
;
return
<
span
style=
{
{
whiteSpace
:
'nowrap'
}
}
>
{
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
}
</
span
>
;
},
},
{
...
...
@@ -96,12 +97,12 @@ function PlanList(props) {
dataIndex
:
'updated'
,
sorter
:
true
,
render
:
(
val
)
=>
{
return
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
;
return
<
span
style=
{
{
whiteSpace
:
'nowrap'
}
}
>
{
window
.
formatDate
(
'YYYY-MM-DD H:i'
,
val
)
}
</
span
>
;
},
},
{
title
:
'参培人数'
,
width
:
76
,
width
:
'10%'
,
key
:
'cultureCustomerNum'
,
dataIndex
:
'cultureCustomerNum'
,
sorter
:
true
,
...
...
@@ -114,7 +115,7 @@ function PlanList(props) {
key
:
'operate'
,
dataIndex
:
'operate'
,
fixed
:
'right'
,
width
:
176
,
width
:
'14.5%'
,
render
:
(
val
,
record
)
=>
{
return
(
<
div
className=
'operate'
>
...
...
@@ -317,7 +318,7 @@ function PlanList(props) {
scroll=
{
{
x
:
1400
}
}
className=
'plan-list-table'
renderEmpty=
{
{
description
:
<
span
style=
{
{
display
:
'block'
,
paddingBottom
:
24
}
}
>
暂无数据
</
span
>
description
:
<
span
style=
{
{
display
:
'block'
,
paddingBottom
:
24
}
}
>
暂无数据
</
span
>
,
}
}
/>
<
div
className=
'box-footer'
>
...
...
src/modules/teach-tool/examination-manager/Index.tsx
View file @
961679f4
...
...
@@ -134,11 +134,12 @@ function ExaminationManager(props: any) {
},
{
title
:
'创建时间'
,
width
:
150
,
dataIndex
:
'examCreateTime'
,
align
:
fixStr
.
right
,
sorter
:
true
,
sortOrder
:
field
===
'examCreateTime'
?
order
:
sortStatus
.
type
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
span
>
{
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm'
)
}
</
span
>,
render
:
(
text
:
any
,
record
:
any
)
=>
<
span
style=
{
{
whiteSpace
:
'nowrap'
}
}
>
{
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm'
)
}
</
span
>,
},
{
title
:
'操作'
,
...
...
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