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
5d01820f
Commit
5d01820f
authored
Aug 10, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:默认时间+5分钟
parent
ea6675dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/modules/course-manage/components/AddLiveClassInfoWorkWX.jsx
+4
-5
src/modules/course-manage/components/AddLiveClassInfoWorkWX.less
+4
-0
No files found.
src/modules/course-manage/components/AddLiveClassInfoWorkWX.jsx
View file @
5d01820f
...
...
@@ -64,7 +64,7 @@ export default function AddLiveClassInfoWorkWX(props) {
// setBeginDate(moment().startOf('day').valueOf())
// } else {
let
_begindate
=
date
.
startOf
(
'day'
).
valueOf
();
let
_begintime
=
moment
(
beginTime
)
let
_begintime
=
beginTime
===
0
?
moment
().
add
(
5
,
'minutes'
)
:
moment
(
beginTime
)
let
datetime
=
_begindate
+
(
_begintime
.
hour
()
*
60
+
_begintime
.
minute
())
*
60
*
1000
setBeginTime
(
datetime
)
props
.
onChange
(
"beginTime"
,
datetime
)
...
...
@@ -246,7 +246,7 @@ export default function AddLiveClassInfoWorkWX(props) {
style=
{
{
width
:
"180px"
}
}
/>
<
TimePicker
value=
{
endTime
===
0
?
undefined
:
moment
(
endTime
)
}
value=
{
endTime
===
0
?
moment
().
add
(
5
,
'minutes'
)
:
moment
(
endTime
)
}
onChange=
{
onEndTimeChange
}
onOk=
{
onEndTimeOK
}
allowClear=
{
false
}
...
...
@@ -272,11 +272,11 @@ export default function AddLiveClassInfoWorkWX(props) {
</
div
>
<
div
className=
"teacher item"
>
<
span
className=
"label"
><
span
className=
"require"
>
*
</
span
>
讲师:
</
span
>
<
div
id=
"teacherId"
style=
{
_
.
find
(
props
.
exItems
,(
item
)
=>
{
return
item
===
"teacherId"
})?{
border
:
"1px solid red"
,
display
:
"inline-block"
}:{
display
:
"inline-block"
}
}
>
<
Select
value=
{
teacherId
}
onChange=
{
onTeacherChange
}
style=
{
{
width
:
"240px"
}
}
style=
{
_
.
find
(
props
.
exItems
,(
item
)
=>
{
return
item
===
"teacherId"
})?{
width
:
"240px"
,
border
:
"1px solid red"
}:{
width
:
"240px"
}
}
placeholder=
"请选择讲师"
disabled=
{
!
props
.
isEdit
?
true
:
false
}
filterOption=
{
(
input
,
option
)
=>
option
}
...
...
@@ -313,7 +313,6 @@ export default function AddLiveClassInfoWorkWX(props) {
})
}
</
Select
>
</
div
>
</
div
>
<
div
className=
"remind-time item"
>
<
span
className=
"label"
><
span
className=
"require"
>
*
</
span
>
提醒时间:
</
span
>
...
...
src/modules/course-manage/components/AddLiveClassInfoWorkWX.less
View file @
5d01820f
...
...
@@ -14,4 +14,7 @@
.introduce {
display: flex;
}
// .ant-select:not(.ant-select-disabled):hover .ant-select-selector{
// border: none;
// }
}
\ No newline at end of file
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