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
5d47d3ab
Commit
5d47d3ab
authored
Mar 27, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理培训计划关联图文课
parent
ad499f19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
120 additions
and
30 deletions
+120
-30
src/common/less/icon-font.less
+6
-6
src/h5.html
+3
-3
src/index.html
+3
-3
src/modules/course-manage/graphics-course/components/GraphicsCourseList.jsx
+83
-8
src/modules/plan-manage/AddPlan.jsx
+11
-3
src/modules/plan-manage/components/BasicInfo.jsx
+6
-6
src/modules/plan-manage/components/TrainingTask.jsx
+5
-1
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
+3
-0
src/modules/plan-manage/modal/relatedCourseModal.jsx
+0
-0
No files found.
src/common/less/icon-font.less
View file @
5d47d3ab
@font-face {
@font-face {
font-family: 'iconfont'; /* project id 2223403 */
font-family: 'iconfont'; /* project id 2223403 */
src: url('//at.alicdn.com/t/font_2223403_
droqalespbg
.eot');
src: url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.eot');
src: url('//at.alicdn.com/t/font_2223403_
droqalespbg
.eot?#iefix') format('embedded-opentype'),
src: url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_2223403_
droqalespbg
.woff2') format('woff2'),
url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.woff2') format('woff2'),
url('//at.alicdn.com/t/font_2223403_
droqalespbg
.woff') format('woff'),
url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.woff') format('woff'),
url('//at.alicdn.com/t/font_2223403_
droqalespbg
.ttf') format('truetype'),
url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.ttf') format('truetype'),
url('//at.alicdn.com/t/font_2223403_
droqalespbg
.svg#iconfont') format('svg');
url('//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.svg#iconfont') format('svg');
}
}
.iconfont{
.iconfont{
font-family:"iconfont" !important;
font-family:"iconfont" !important;
...
...
src/h5.html
View file @
5d47d3ab
<!--
<!--
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-24 12:20:57
* @Date: 2020-08-24 12:20:57
* @LastEditors:
yuananting
* @LastEditors:
zhangleyuan
* @LastEditTime: 2021-03-2
4 19:34:13
* @LastEditTime: 2021-03-2
7 11:09:24
* @Description:
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
-->
-->
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
-->
<link
rel=
"manifest"
href=
"%PUBLIC_URL%/manifest.json"
/>
<link
rel=
"manifest"
href=
"%PUBLIC_URL%/manifest.json"
/>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
325yz7wxu2d
.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.css"
>
<!--
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Notice the use of %PUBLIC_URL% in the tags above.
...
...
src/index.html
View file @
5d47d3ab
<!--
<!--
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-24 12:20:57
* @Date: 2020-08-24 12:20:57
* @LastEditors:
yuananting
* @LastEditors:
zhangleyuan
* @LastEditTime: 2021-03-2
4 19:34:26
* @LastEditTime: 2021-03-2
7 11:09:33
* @Description:
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
-->
-->
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
-->
<link
rel=
"manifest"
href=
"%PUBLIC_URL%/manifest.json"
/>
<link
rel=
"manifest"
href=
"%PUBLIC_URL%/manifest.json"
/>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
325yz7wxu2d
.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
vzf1rkr5ya
.css"
>
<!--
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Notice the use of %PUBLIC_URL% in the tags above.
...
...
src/modules/course-manage/graphics-course/components/GraphicsCourseList.jsx
View file @
5d47d3ab
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:12:45
* @Date: 2020-08-05 10:12:45
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-0
2-01 16:34:11
* @LastEditTime: 2021-0
3-27 16:24:47
* @Description: 视频课-列表模块
* @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -33,7 +33,9 @@ class GraphicsCourseList extends React.Component {
...
@@ -33,7 +33,9 @@ class GraphicsCourseList extends React.Component {
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
id
:
''
,
// 视频课ID
id
:
''
,
// 视频课ID
studentIds
:[]
studentIds
:[],
RelatedPlanModalVisible
:
false
,
selectPlanList
:{}
}
}
}
}
...
@@ -61,6 +63,17 @@ class GraphicsCourseList extends React.Component {
...
@@ -61,6 +63,17 @@ class GraphicsCourseList extends React.Component {
this
.
setState
({
watchDataModal
});
this
.
setState
({
watchDataModal
});
}
}
handlePlanName
=
(
planArray
)
=>
{
let
planStr
=
""
;
planArray
.
map
((
item
,
index
)
=>
{
if
(
index
<
planArray
.
length
-
1
){
planStr
=
planStr
+
item
.
planName
+
'、'
;
}
else
{
planStr
=
planStr
+
item
.
planName
}
})
return
planStr
}
// 请求表头
// 请求表头
parseColumns
=
()
=>
{
parseColumns
=
()
=>
{
const
columns
=
[
const
columns
=
[
...
@@ -91,7 +104,7 @@ class GraphicsCourseList extends React.Component {
...
@@ -91,7 +104,7 @@ class GraphicsCourseList extends React.Component {
title
:
'课程分类'
,
title
:
'课程分类'
,
key
:
'categoryName'
,
key
:
'categoryName'
,
dataIndex
:
'categoryName'
,
dataIndex
:
'categoryName'
,
width
:
'20%'
,
width
:
120
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
return
(
return
(
<
div
className=
"record__item"
>
<
div
className=
"record__item"
>
...
@@ -104,7 +117,7 @@ class GraphicsCourseList extends React.Component {
...
@@ -104,7 +117,7 @@ class GraphicsCourseList extends React.Component {
title
:
'创建人'
,
title
:
'创建人'
,
key
:
'createName'
,
key
:
'createName'
,
dataIndex
:
'createName'
,
dataIndex
:
'createName'
,
width
:
'10%'
,
width
:
100
,
render
:
(
val
)
=>
{
render
:
(
val
)
=>
{
return
(
return
(
<
div
>
<
div
>
...
@@ -126,7 +139,7 @@ class GraphicsCourseList extends React.Component {
...
@@ -126,7 +139,7 @@ class GraphicsCourseList extends React.Component {
<
span
>
店铺展示
</
span
>
<
span
>
店铺展示
</
span
>
<
Tooltip
title=
{
<
div
>
开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。
<
br
/>
关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。
</
div
>
}
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
>
<
Tooltip
title=
{
<
div
>
开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。
<
br
/>
关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。
</
div
>
}
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
>
</
span
>,
</
span
>,
width
:
'12%'
,
width
:
120
,
dataIndex
:
"courseware"
,
dataIndex
:
"courseware"
,
render
:
(
val
,
item
,
index
)
=>
{
render
:
(
val
,
item
,
index
)
=>
{
return
(
return
(
...
@@ -166,6 +179,28 @@ class GraphicsCourseList extends React.Component {
...
@@ -166,6 +179,28 @@ class GraphicsCourseList extends React.Component {
}
}
},
},
{
{
title
:
'关联项'
,
width
:
200
,
key
:
"planList"
,
dataIndex
:
"planList"
,
render
:
(
val
,
record
)
=>
{
return
(
<
div
className=
"related-task"
>
{
record
.
relatedPlanList
?
<
Tooltip
title=
{
this
.
handlePlanName
(
record
.
relatedPlanList
)
}
placement=
"top"
arrowPointAtCenter
>
{
record
.
relatedPlanList
.
map
((
item
,
index
)
=>
{
return
<
span
>
{
item
.
planName
}
{
(
index
<
record
.
relatedPlanList
.
length
-
1
)
&&
(<
span
>
、
</
span
>)
}
</
span
>
})
}
</
Tooltip
>
:
<
span
></
span
>
}
</
div
>
)
}
},
{
title
:
'操作'
,
title
:
'操作'
,
key
:
'operate'
,
key
:
'operate'
,
dataIndex
:
'operate'
,
dataIndex
:
'operate'
,
...
@@ -236,7 +271,7 @@ class GraphicsCourseList extends React.Component {
...
@@ -236,7 +271,7 @@ class GraphicsCourseList extends React.Component {
renderMoreOperate
=
(
item
)
=>
{
renderMoreOperate
=
(
item
)
=>
{
return
(
return
(
<
div
className=
"live-course-more-menu"
>
<
div
className=
"live-course-more-menu"
>
{
/* {
(User.getUserRole() === "CloudManager" || User.getUserRole() === "StoreManager") &&
{
(
User
.
getUserRole
()
===
"CloudManager"
||
User
.
getUserRole
()
===
"StoreManager"
)
&&
<
div
<
div
className=
"operate__item"
className=
"operate__item"
key=
"plan"
key=
"plan"
...
@@ -244,7 +279,7 @@ class GraphicsCourseList extends React.Component {
...
@@ -244,7 +279,7 @@ class GraphicsCourseList extends React.Component {
this
.
handleRelatedModalShow
(
item
);
this
.
handleRelatedModalShow
(
item
);
}
}
}
}
>
关联培训计划
</
div
>
>
关联培训计划
</
div
>
}
*/
}
}
<
div
<
div
className=
"operate__item"
className=
"operate__item"
key=
"edit"
key=
"edit"
...
@@ -362,7 +397,37 @@ class GraphicsCourseList extends React.Component {
...
@@ -362,7 +397,37 @@ class GraphicsCourseList extends React.Component {
};
};
this
.
props
.
onChange
(
_query
);
this
.
props
.
onChange
(
_query
);
}
}
handleRelatedModalShow
=
(
item
)
=>
{
const
selectPlanList
=
{};
if
(
item
.
relatedPlanList
){
item
.
relatedPlanList
.
map
((
item
,
index
)
=>
{
selectPlanList
[
item
.
planId
]
=
{}
selectPlanList
[
item
.
planId
].
planId
=
item
.
planId
;
selectPlanList
[
item
.
planId
].
taskBaseVOList
=
[{
taskId
:
item
.
taskId
}];
return
item
})
}
this
.
setState
({
RelatedPlanModalVisible
:
true
,
selectCourseId
:
item
.
id
,
selectPlanList
:
selectPlanList
})
}
closeRelatedPlanModalVisible
=
()
=>
{
this
.
setState
({
RelatedPlanModalVisible
:
false
})
}
onChangeSelectPlanList
=
(
selectPlanList
)
=>
{
this
.
setState
({
selectPlanList
:
selectPlanList
})
}
onConfirmSelectPlanList
=
()
=>
{
this
.
setState
({
RelatedPlanModalVisible
:
false
},()
=>
{
this
.
props
.
onChange
();})
}
render
()
{
render
()
{
const
{
RelatedPlanModalVisible
,
selectCourseId
,
selectPlanList
}
=
this
.
state
;
const
{
RelatedPlanModalVisible
,
selectCourseId
,
selectPlanList
}
=
this
.
state
;
const
{
dataSource
=
[],
totalCount
,
query
}
=
this
.
props
;
const
{
dataSource
=
[],
totalCount
,
query
}
=
this
.
props
;
...
@@ -402,6 +467,16 @@ class GraphicsCourseList extends React.Component {
...
@@ -402,6 +467,16 @@ class GraphicsCourseList extends React.Component {
onConfirm=
{
this
.
onConfirmSelectPlanList
}
onConfirm=
{
this
.
onConfirmSelectPlanList
}
/>
/>
}
}
{
RelatedPlanModalVisible
&&
<
RelatedPlanModal
onClose=
{
this
.
closeRelatedPlanModalVisible
}
visible=
{
RelatedPlanModalVisible
}
selectCourseId=
{
selectCourseId
}
selectPlanList=
{
selectPlanList
}
onChange=
{
this
.
onChangeSelectPlanList
}
onConfirm=
{
this
.
onConfirmSelectPlanList
}
/>
}
{
this
.
state
.
shareLiveModal
}
{
this
.
state
.
shareLiveModal
}
{
this
.
state
.
watchDataModal
}
{
this
.
state
.
watchDataModal
}
</
div
>
</
div
>
...
...
src/modules/plan-manage/AddPlan.jsx
View file @
5d47d3ab
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39
* @Date: 2021-02-20 16:13:39
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-
16 11:27:0
6
* @LastEditTime: 2021-03-
27 11:16:5
6
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -28,6 +28,7 @@ const defaultBasicData = {
...
@@ -28,6 +28,7 @@ const defaultBasicData = {
operateType
:
'All_Operate'
,
operateType
:
'All_Operate'
,
percentCompleteLive
:
80
,
percentCompleteLive
:
80
,
percentCompleteVideo
:
80
,
percentCompleteVideo
:
80
,
percentCompletePicture
:
80
}
}
const
defaultTaskList
=
[];
const
defaultTaskList
=
[];
...
@@ -64,6 +65,7 @@ function AddPlan() {
...
@@ -64,6 +65,7 @@ function AddPlan() {
operateIds
,
operateIds
,
percentCompleteLive
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompleteVideo
,
percentCompletePicture
,
courseMediaVOS
,
courseMediaVOS
,
trainingTaskList
trainingTaskList
}
=
res
.
result
;
}
=
res
.
result
;
...
@@ -102,7 +104,8 @@ function AddPlan() {
...
@@ -102,7 +104,8 @@ function AddPlan() {
instro
,
instro
,
operateType
,
operateType
,
percentCompleteLive
,
percentCompleteLive
,
percentCompleteVideo
percentCompleteVideo
,
percentCompletePicture
})
})
setHasGetDetail
(
true
);
setHasGetDetail
(
true
);
})
})
...
@@ -119,7 +122,7 @@ function AddPlan() {
...
@@ -119,7 +122,7 @@ function AddPlan() {
}
}
function
submitInfo
(){
function
submitInfo
(){
const
{
planName
,
enableState
,
selectOperatorList
,
instro
,
operateType
,
percentCompleteLive
,
percentCompleteVideo
,
coverId
,
coverUrl
}
=
basicData
;
const
{
planName
,
enableState
,
selectOperatorList
,
instro
,
operateType
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
,
coverId
,
coverUrl
}
=
basicData
;
let
input
=
/^
[\s]
*$/
;
let
input
=
/^
[\s]
*$/
;
if
(
!
planName
||
input
.
test
(
planName
)){
if
(
!
planName
||
input
.
test
(
planName
)){
message
.
warning
(
'请输入的培训计划名称'
);
message
.
warning
(
'请输入的培训计划名称'
);
...
@@ -137,6 +140,10 @@ function AddPlan() {
...
@@ -137,6 +140,10 @@ function AddPlan() {
message
.
warning
(
'请输入完成标准'
);
message
.
warning
(
'请输入完成标准'
);
return
;
return
;
}
}
if
(
!
percentCompletePicture
&&
percentCompletePicture
!==
0
){
message
.
warning
(
'请输入完成标准'
);
return
;
}
if
(
taskList
.
length
===
0
){
if
(
taskList
.
length
===
0
){
message
.
warning
(
'请输入培训计划内容'
);
message
.
warning
(
'请输入培训计划内容'
);
return
;
return
;
...
@@ -183,6 +190,7 @@ function AddPlan() {
...
@@ -183,6 +190,7 @@ function AddPlan() {
operateType
,
operateType
,
percentCompleteLive
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompleteVideo
,
percentCompletePicture
,
planName
,
planName
,
scheduleMediaRequests
,
scheduleMediaRequests
,
storeId
:
User
.
getStoreId
(),
storeId
:
User
.
getStoreId
(),
...
...
src/modules/plan-manage/components/BasicInfo.jsx
View file @
5d47d3ab
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-2
6 14:16:39
* @LastEditTime: 2021-03-2
7 11:20:27
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -210,7 +210,7 @@ class BasicInfo extends React.Component{
...
@@ -210,7 +210,7 @@ class BasicInfo extends React.Component{
render
(){
render
(){
const
{
operatorModalVisible
,
showSelectFileModal
,
visible
,
hasImgReady
,
cutImageBlob
}
=
this
.
state
;
const
{
operatorModalVisible
,
showSelectFileModal
,
visible
,
hasImgReady
,
cutImageBlob
}
=
this
.
state
;
const
{
data
}
=
this
.
props
;
const
{
data
}
=
this
.
props
;
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
}
=
data
;
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
}
=
data
;
// 当前是否使用的是默认图片
// 当前是否使用的是默认图片
const
isDefaultCover
=
coverUrl
===
defaultCover
;
const
isDefaultCover
=
coverUrl
===
defaultCover
;
return
(
return
(
...
@@ -338,13 +338,13 @@ class BasicInfo extends React.Component{
...
@@ -338,13 +338,13 @@ class BasicInfo extends React.Component{
</
span
>
</
span
>
</
div
>
</
div
>
<
div
className=
"live-standard-info"
>
<
div
className=
"live-standard-info"
>
<
span
className=
"icon iconfont"
>

864
;
</
span
>
<
span
className=
"icon iconfont"
>

601
;
</
span
>
<
span
className=
"instro"
>
图文课单个课程,用户学习进度达到
<
span
className=
"instro"
>
图文课单个课程,用户学习进度达到
<
Input
<
Input
width=
"40"
width=
"40"
value=
{
percentComplete
Video
}
value=
{
percentComplete
Picture
}
onChange=
{
(
e
)
=>
{
this
.
props
.
onChange
(
'percentComplete
Video
'
,
e
.
target
.
value
.
replace
(
/
\D
/g
,
''
))
}
}
onChange=
{
(
e
)
=>
{
this
.
props
.
onChange
(
'percentComplete
Picture
'
,
e
.
target
.
value
.
replace
(
/
\D
/g
,
''
))
}
}
onBlur=
{
(
e
)
=>
this
.
percentCompleteBlur
(
e
,
'percentComplete
Video
'
)
}
onBlur=
{
(
e
)
=>
this
.
percentCompleteBlur
(
e
,
'percentComplete
Picture
'
)
}
className=
"input-box"
className=
"input-box"
/>
/>
%,即视为"已完成"学习
%,即视为"已完成"学习
...
...
src/modules/plan-manage/components/TrainingTask.jsx
View file @
5d47d3ab
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-
16 11:36:36
* @LastEditTime: 2021-03-
27 14:43:17
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -25,6 +25,9 @@ const CourseType = {
...
@@ -25,6 +25,9 @@ const CourseType = {
},
},
RECORD
:
{
RECORD
:
{
text
:
'录播课'
text
:
'录播课'
},
PICTURE
:{
text
:
'图文课'
}
}
};
};
const
courseStateShow
=
{
const
courseStateShow
=
{
...
@@ -218,6 +221,7 @@ class TrainingTask extends React.Component {
...
@@ -218,6 +221,7 @@ class TrainingTask extends React.Component {
})
})
}
}
confirmSelectCourse
=
(
selectList
)
=>
{
confirmSelectCourse
=
(
selectList
)
=>
{
console
.
log
(
"selectList"
,
selectList
);
const
{
selectedTaskIndex
}
=
this
.
state
;
const
{
selectedTaskIndex
}
=
this
.
state
;
const
{
dataSource
}
=
this
.
state
const
{
dataSource
}
=
this
.
state
const
newData
=
[...
dataSource
];
const
newData
=
[...
dataSource
];
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
View file @
5d47d3ab
...
@@ -16,6 +16,9 @@ const CourseType = {
...
@@ -16,6 +16,9 @@ const CourseType = {
},
},
RECORD
:
{
RECORD
:
{
text
:
'录播课'
text
:
'录播课'
},
PICTURE
:{
text
:
'图文课'
}
}
};
};
const
courseStateShow
=
{
const
courseStateShow
=
{
...
...
src/modules/plan-manage/modal/relatedCourseModal.jsx
View file @
5d47d3ab
This diff is collapsed.
Click to expand it.
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