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
00b1684a
Commit
00b1684a
authored
Jul 06, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:课程管理列表,时间不换行,列表优化
parent
cca0d6c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
src/modules/course-manage/components/LiveCourseList.jsx
+0
-0
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
+4
-4
src/modules/plan-manage/components/PlanList.jsx
+7
-6
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
00b1684a
This diff is collapsed.
Click to expand it.
src/modules/course-manage/offline-course/components/OfflineCourseList.jsx
View file @
00b1684a
...
...
@@ -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
>
...
...
@@ -159,7 +159,7 @@ class OfflineCourseList extends React.Component {
render
:
(
val
,
item
)
=>
{
return
(
<
div
>
{
item
.
startTimeApply
?
`${
formatDate('MM-DD H:i', item.startTimeApply)} ~ ${
formatDate('MM-DD H:i', item.endTimeApply)}`
:
'-'
}
{
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
>
;
},
},
{
...
...
@@ -437,7 +437,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/plan-manage/components/PlanList.jsx
View file @
00b1684a
...
...
@@ -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