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
042c9ae5
Commit
042c9ae5
authored
Mar 11, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理学习状态的筛选
parent
56790ad0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
src/modules/plan-manage/LearningData.jsx
+8
-5
src/modules/plan-manage/components/TrainingTask.jsx
+0
-0
src/modules/plan-manage/components/UserLearningDataFilter.jsx
+1
-0
src/modules/plan-manage/modal/relatedCourseModal.jsx
+7
-2
No files found.
src/modules/plan-manage/LearningData.jsx
View file @
042c9ae5
...
...
@@ -23,7 +23,8 @@ class LearningData extends React.Component {
courseNum
:
0
,
created
:
""
,
cultureCustomerNum
:
0
,
activeKey
:
"employeeShareData"
activeKey
:
"employeeShareData"
,
createName
:
""
}
}
componentDidMount
(){
...
...
@@ -41,7 +42,8 @@ class LearningData extends React.Component {
courseMediaVOS
,
courseNum
,
created
,
cultureCustomerNum
cultureCustomerNum
,
createName
}
=
res
.
result
;
let
coverUrl
;
courseMediaVOS
.
map
((
item
)
=>
{
...
...
@@ -55,12 +57,13 @@ class LearningData extends React.Component {
coverUrl
:
coverUrl
||
defaultCover
,
courseNum
,
created
,
cultureCustomerNum
cultureCustomerNum
,
createName
})
})
}
render
()
{
const
{
planName
,
coverUrl
,
courseNum
,
created
,
cultureCustomerNum
,
activeKey
}
=
this
.
state
;
const
{
planName
,
coverUrl
,
courseNum
,
created
,
cultureCustomerNum
,
activeKey
,
createName
}
=
this
.
state
;
return
(
<
div
className=
"page plan-learn-data-list"
>
<
Breadcrumbs
...
...
@@ -79,7 +82,7 @@ class LearningData extends React.Component {
{
planName
}
</
div
>
<
div
className=
"create-course"
>
<
span
className=
"createUser"
>
创建人:
张老师
</
span
>
<
span
className=
"createUser"
>
创建人:
{
createName
}
</
span
>
<
span
className=
"split"
>
|
</
span
>
<
span
className=
"course-total"
>
课程总数量:
{
courseNum
}
</
span
>
</
div
>
...
...
src/modules/plan-manage/components/TrainingTask.jsx
View file @
042c9ae5
This diff is collapsed.
Click to expand it.
src/modules/plan-manage/components/UserLearningDataFilter.jsx
View file @
042c9ae5
...
...
@@ -190,6 +190,7 @@ function UserLearningDataFilter(props) {
onChange=
{
(
value
)
=>
{
handleChangeQuery
(
'learnState'
,
value
)
}
}
suffixIcon=
{
<
span
className=
"icon iconfont"
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

</
span
>
}
>
<
Option
value=
"UN_PLAY"
>
未开始
</
Option
>
<
Option
value=
"UNDER_WAY"
>
进行中
</
Option
>
<
Option
value=
"FINISH"
>
已完成
</
Option
>
</
Select
>
...
...
src/modules/plan-manage/modal/relatedCourseModal.jsx
View file @
042c9ae5
...
...
@@ -405,7 +405,9 @@ class SelectOperatorModal extends React.Component {
}
if
(
_list
.
length
+
currentTaskCourseData
.
length
+
selectLive
.
length
>
20
){
message
.
warning
(
'无法继续选择,一个任务最多关联20个课程'
);
return
;
console
.
log
(
'1111'
);
const
extraLength
=
(
_list
.
length
+
currentTaskCourseData
.
length
+
selectLive
.
length
)
-
20
;
_list
.
splice
(
_list
.
length
-
extraLength
,
extraLength
);
}
this
.
setState
({
selectVideo
:
_list
});
},
...
...
@@ -469,7 +471,10 @@ class SelectOperatorModal extends React.Component {
}
if
(
_list
.
length
+
currentTaskCourseData
.
length
+
selectVideo
.
length
>
20
){
message
.
warning
(
'无法继续选择,一个任务最多关联20个课程'
);
return
;
const
extraLength
=
(
_list
.
length
+
currentTaskCourseData
.
length
+
selectVideo
.
length
)
-
20
;
_list
.
splice
(
_list
.
length
-
extraLength
,
extraLength
);
console
.
log
(
'_list'
,
_list
);
}
this
.
setState
({
selectLive
:
_list
});
},
...
...
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