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
cc2345ee
Commit
cc2345ee
authored
Mar 29, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加去向图文课的跳转
parent
5d47d3ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
src/modules/plan-manage/modal/relatedCourseModal.jsx
+18
-4
No files found.
src/modules/plan-manage/modal/relatedCourseModal.jsx
View file @
cc2345ee
...
@@ -481,6 +481,23 @@ class SelectOperatorModal extends React.Component {
...
@@ -481,6 +481,23 @@ class SelectOperatorModal extends React.Component {
return
_item
;
return
_item
;
})
})
}
}
renderFooter
=
()
=>
{
const
{
activeKey
}
=
this
.
state
;
let
href
=
''
;
switch
(
activeKey
){
case
'live'
:
href
=
<
a
target=
'_blank'
className=
"link-create-course"
href=
{
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/create-live-course?type=add'
}
onClick=
{
this
.
props
.
onClose
}
>
没有找到需要的直播课?
<
span
>
去创建
</
span
></
a
>
break
;
case
'video'
:
href
=
<
a
target=
'_blank'
className=
"link-create-course"
href=
{
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/create-video-course?type=add'
}
onClick=
{
this
.
props
.
onClose
}
>
没有找到需要的视频课?
<
span
>
去创建
</
span
></
a
>
break
;
case
'picture'
:
href
=
<
a
target=
'_blank'
className=
"link-create-course"
href=
{
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/create-graphics-course?type=add'
}
onClick=
{
this
.
props
.
onClose
}
>
没有找到需要的视频课?
<
span
>
去创建
</
span
></
a
>
break
;
}
return
href
;
}
render
()
{
render
()
{
const
{
visible
}
=
this
.
props
;
const
{
visible
}
=
this
.
props
;
const
{
const
{
...
@@ -515,10 +532,7 @@ class SelectOperatorModal extends React.Component {
...
@@ -515,10 +532,7 @@ class SelectOperatorModal extends React.Component {
width=
{
800
}
width=
{
800
}
closeIcon=
{
<
span
className=
"icon iconfont modal-close-icon"
>

</
span
>
}
closeIcon=
{
<
span
className=
"icon iconfont modal-close-icon"
>

</
span
>
}
footer=
{
[
footer=
{
[
activeKey
===
'live'
?
this
.
renderFooter
()
<
a
target=
'_blank'
className=
"link-create-course"
href=
{
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/create-live-course?type=add'
}
onClick=
{
this
.
props
.
onClose
}
>
没有找到需要的直播课?
<
span
>
去创建
</
span
></
a
>
:
<
a
target=
'_blank'
className=
"link-create-course"
href=
{
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/create-video-course?type=add'
}
onClick=
{
this
.
props
.
onClose
}
>
没有找到需要的视频课?
<
span
>
去创建
</
span
></
a
>
,
,
<
Button
<
Button
onClick=
{
()
=>
{
onClick=
{
()
=>
{
...
...
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