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
f2841625
Commit
f2841625
authored
Jul 06, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Plain Diff
styles:课程管理表格优化;删除无用的代码,修复eslint waring
parents
138406a8
4b287ee4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
20 deletions
+19
-20
src/modules/course-manage/components/LiveCourseList.jsx
+0
-0
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
+7
-9
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+5
-5
src/modules/plan-manage/components/PlanList.jsx
+7
-6
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
f2841625
This diff is collapsed.
Click to expand it.
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
View file @
f2841625
...
...
@@ -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 @
f2841625
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'
;
...
...
@@ -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 @
f2841625
...
...
@@ -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,7 +97,7 @@ 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
>
;
},
},
{
...
...
@@ -114,7 +115,7 @@ function PlanList(props) {
key
:
'operate'
,
dataIndex
:
'operate'
,
fixed
:
'right'
,
width
:
1
76
,
width
:
1
00
,
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'
>
...
...
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