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
682da867
Commit
682da867
authored
Aug 02, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:.....
parent
2fb7a489
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
6 deletions
+39
-6
src/modules/course-manage/components/AddLiveClassInfoWorkWX.jsx
+13
-3
src/modules/course-manage/components/AddLiveClassInfoWorkWX.less
+2
-1
src/modules/course-manage/components/LiveCourseFilter.jsx
+24
-2
No files found.
src/modules/course-manage/components/AddLiveClassInfoWorkWX.jsx
View file @
682da867
...
...
@@ -29,7 +29,12 @@ export default function AddLiveClassInfoWorkWX(props) {
//开始时间
function
onBeginDateChange
(
date
,
dateString
)
{
setBeginDate
(
date
.
startOf
(
'day'
).
valueOf
())
if
(
date
)
{
setBeginDate
(
date
.
startOf
(
'day'
).
valueOf
())
}
else
{
setBeginDate
(
0
)
}
}
function
onBeginDateOK
(
date
)
{
...
...
@@ -45,7 +50,12 @@ export default function AddLiveClassInfoWorkWX(props) {
}
//结束时间
function
onEndDateChange
(
date
,
dateString
)
{
setEndDate
(
date
.
startOf
(
'day'
).
valueOf
())
if
(
date
)
{
setEndDate
(
date
.
startOf
(
'day'
).
valueOf
())
}
else
{
setEndDate
(
0
)
}
}
function
onEndDateOK
(
date
)
{
...
...
@@ -115,7 +125,7 @@ export default function AddLiveClassInfoWorkWX(props) {
)
:
(
<>
<
span
className=
"label"
><
span
className=
"require"
>
*
</
span
>
时长:
</
span
>
<
Select
onChange=
{
onDurationChange
}
defaultValue=
"60"
>
<
Select
onChange=
{
onDurationChange
}
defaultValue=
"60"
style=
{
{
width
:
"140px"
}
}
>
<
Option
value=
"30"
>
0.5小时
</
Option
>
<
Option
value=
"60"
>
1.0小时
</
Option
>
<
Option
value=
"120"
>
2.0小时
</
Option
>
...
...
src/modules/course-manage/components/AddLiveClassInfoWorkWX.less
View file @
682da867
.AddLiveClassInfoWorkWX {
margin-left: 16px;
.item {
margin:
12
px 0;
margin:
24
px 0;
.label {
display: inline-block;
text-align: right;
...
...
src/modules/course-manage/components/LiveCourseFilter.jsx
View file @
682da867
...
...
@@ -24,6 +24,7 @@ const defaultQuery = {
teacherId
:
null
,
courseState
:
null
,
shelfState
:
null
,
thirdPartType
:
null
}
const
defaultTeacherQuery
=
{
size
:
10
,
...
...
@@ -159,7 +160,7 @@ class LiveCourseFilter extends React.Component {
}
render
()
{
const
{
courseName
,
startTime
,
endTime
,
courseState
,
teacherName
,
teacherId
,
shelfState
}
=
this
.
state
.
query
const
{
courseName
,
startTime
,
endTime
,
courseState
,
teacherName
,
teacherId
,
shelfState
,
thirdPartType
}
=
this
.
state
.
query
const
{
expandFilter
,
teacherList
,
teacherQuery
}
=
this
.
state
const
{
teacherId
:
_teahcerId
}
=
{}
const
isTeacher
=
!!
_teahcerId
// 判断是否是老师身份
...
...
@@ -199,7 +200,7 @@ class LiveCourseFilter extends React.Component {
</
div
>
{
User
.
getUserRole
()
!==
'CloudLecturer'
&&
(
<
div
className=
'search-condition__item'
>
<
span
>
讲师:
</
span
>
<
span
style=
{
{
width
:
"70px"
,
display
:
"inline-block"
,
textAlign
:
"right"
}
}
>
讲师:
</
span
>
<
Select
placeholder=
'请选择讲师'
style=
{
{
width
:
'calc(100% - 70px)'
}
}
...
...
@@ -295,6 +296,27 @@ class LiveCourseFilter extends React.Component {
</
Select
>
</
div
>
)
}
{
expandFilter
&&
(
<
div
className=
'search-condition__item'
>
<
span
className=
'live-type'
>
直播方式:
</
span
>
<
Select
style=
{
{
width
:
'calc(100% - 70px)'
}
}
placeholder=
'请选择'
allowClear=
{
true
}
value=
{
thirdPartType
}
onChange=
{
(
value
)
=>
{
this
.
handleChangeQuery
(
'thirdPartType'
,
value
)
}
}
suffixIcon=
{
<
span
className=
'icon iconfont'
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

</
span
>
}
>
<
Option
value=
'WECHAT'
>
企微直播
</
Option
>
<
Option
value=
'TENCENT'
>
小麦直播
</
Option
>
</
Select
>
</
div
>
)
}
</
div
>
<
div
className=
'reset-fold-area'
>
...
...
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