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
f1660f92
Commit
f1660f92
authored
Mar 05, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理关联培训任务
parent
e9a6e1e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
9 deletions
+24
-9
src/modules/course-manage/components/LiveCourseList.jsx
+17
-6
src/modules/course-manage/modal/RelatedPlanModal.jsx
+3
-3
src/modules/course-manage/modal/RelatedPlanModal.less
+4
-0
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
f1660f92
...
@@ -15,7 +15,7 @@ import DownloadLiveModal from '@/components/DownloadLiveModal';
...
@@ -15,7 +15,7 @@ import DownloadLiveModal from '@/components/DownloadLiveModal';
import
ManageCoursewareModal
from
'../modal/ManageCoursewareModal'
;
import
ManageCoursewareModal
from
'../modal/ManageCoursewareModal'
;
import
ShareLiveModal
from
'../modal/ShareLiveModal'
;
import
ShareLiveModal
from
'../modal/ShareLiveModal'
;
import
RelatedPlanModal
from
'../modal/RelatedPlanModal'
;
import
'./LiveCourseList.less'
;
import
'./LiveCourseList.less'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
...
@@ -661,14 +661,24 @@ class LiveCourseList extends React.Component {
...
@@ -661,14 +661,24 @@ class LiveCourseList extends React.Component {
}
}
window
.
open
(
htmlUrl
);
window
.
open
(
htmlUrl
);
}
}
handleRelatedModalShow
=
(
item
)
handleRelatedModalShow
=
(
item
)
=>
{
this
.
setState
({
RelatedPlanModalVisible
:
true
})
}
closeRelatedPlanModalVisible
=
()
=>
{
this
.
setState
({
RelatedPlanModalVisible
:
false
})
}
render
()
{
render
()
{
const
{
total
,
query
,
courseList
,
loading
}
=
this
.
props
;
const
{
total
,
query
,
courseList
,
loading
}
=
this
.
props
;
const
{
current
,
size
}
=
query
;
const
{
current
,
size
}
=
query
;
const
{
openDownloadModal
,
const
{
openDownloadModal
,
downloadUrl
,
url
,
columns
,
downloadUrl
,
url
,
columns
,
openCoursewareModal
,
openCoursewareModal
,
editData
editData
,
RelatedPlanModalVisible
}
=
this
.
state
;
}
=
this
.
state
;
const
{
match
}
=
this
.
props
;
const
{
match
}
=
this
.
props
;
...
@@ -720,10 +730,11 @@ class LiveCourseList extends React.Component {
...
@@ -720,10 +730,11 @@ class LiveCourseList extends React.Component {
/>
/>
)
}
)
}
{
RelatedPlanModalVisible
&&
{
RelatedPlanModalVisible
&&
<
RelatedPlanModal
/>
<
RelatedPlanModal
onClose=
{
this
.
closeRelatedPlanModalVisible
}
visible=
{
RelatedPlanModalVisible
}
/>
}
}
<
iframe
src=
{
url
}
style=
{
{
display
:
"none"
}
}
/>
<
iframe
src=
{
url
}
style=
{
{
display
:
"none"
}
}
/>
<
Route
path=
{
`${match.url}/live-course-data`
}
component=
{
DataList
}
/>
<
Route
path=
{
`${match.url}/live-course-data`
}
component=
{
DataList
}
/>
</
div
>
</
div
>
...
...
src/modules/course-manage/modal/RelatedPlanModal.jsx
View file @
f1660f92
...
@@ -3,7 +3,7 @@ import {Table, Modal,Input} from 'antd';
...
@@ -3,7 +3,7 @@ import {Table, Modal,Input} from 'antd';
import
{
PageControl
}
from
"@/components"
;
import
{
PageControl
}
from
"@/components"
;
import
PlanService
from
'@/domains/plan-domain/planService'
import
PlanService
from
'@/domains/plan-domain/planService'
import
User
from
'@/common/js/user'
import
User
from
'@/common/js/user'
import
'./
SelectOperator
Modal.less'
;
import
'./
RelatedPlan
Modal.less'
;
import
_
from
"underscore"
;
import
_
from
"underscore"
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
class
RelatedPlanModal
extends
React
.
Component
{
class
RelatedPlanModal
extends
React
.
Component
{
...
@@ -34,8 +34,8 @@ class RelatedPlanModal extends React.Component {
...
@@ -34,8 +34,8 @@ class RelatedPlanModal extends React.Component {
const
{
result
=
{}
}
=
res
;
const
{
result
=
{}
}
=
res
;
const
{
records
=
[],
total
=
0
}
=
result
;
const
{
records
=
[],
total
=
0
}
=
result
;
this
.
setState
({
this
.
setState
({
dataSource
:
re
cords
,
dataSource
:
re
sult
,
totalCount
:
Number
(
total
)
//
totalCount: Number(total)
});
});
});
});
}
}
...
...
src/modules/course-manage/modal/RelatedPlanModal.less
View file @
f1660f92
.related-plan-modal{
}
\ 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