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
522a961c
Commit
522a961c
authored
Dec 14, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:联调创建课程页面的接口
parent
40ddb88c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
27 deletions
+24
-27
src/modules/course-manage/AddLive.jsx
+1
-22
src/modules/course-manage/components/AddLiveBasic.jsx
+23
-5
No files found.
src/modules/course-manage/AddLive.jsx
View file @
522a961c
...
@@ -253,28 +253,7 @@ class AddLive extends React.Component {
...
@@ -253,28 +253,7 @@ class AddLive extends React.Component {
// });
// });
// })
// })
}
}
getCourseCatalogList
=
()
=>
{
StoreService
.
getCourseCatalogList
({
current
:
1
,
size
:
1000
}).
then
((
res
)
=>
{
// let resultData = this.handleCatalogListData(res.result.records)
// setCourseCatalogList(resultData);
// setTotal(res.result.total);
});
}
handleCatalogListData
=
(
listData
)
=>
{
// listData.map((item:any,index:any) => {
// item.type = "parent"
// item.key = item.id;
// if(item.sonCategoryList){
// item.sonCategoryList.map((_item:any,_index:any) =>{
// _item.type = "child";
// _item.key=_item.id
// return _item
// });
// }
// return item
// })
// return listData
}
// 修改基本信息
// 修改基本信息
handleChangeBasicInfo
=
(
field
,
value
,
_coverUrl
)
=>
{
handleChangeBasicInfo
=
(
field
,
value
,
_coverUrl
)
=>
{
const
{
coverUrl
}
=
this
.
state
.
addLiveBasicInfo
;
const
{
coverUrl
}
=
this
.
state
.
addLiveBasicInfo
;
...
...
src/modules/course-manage/components/AddLiveBasic.jsx
View file @
522a961c
...
@@ -21,16 +21,34 @@ class AddLiveBasic extends React.Component {
...
@@ -21,16 +21,34 @@ class AddLiveBasic extends React.Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
xhr
:
null
,
imageFile
:
null
,
imageFile
:
null
,
showCutModal
:
false
showCutModal
:
false
,
courseCatalogList
:[]
}
}
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
const
{
xhr
}
=
this
.
state
;
this
.
getCourseCatalogList
()
xhr
&&
xhr
.
abort
();
}
getCourseCatalogList
=
()
=>
{
// StoreService.getCourseCatalogList({current:1,size:1000}).then((res) => {
// });
}
handleCatalogListData
=
(
listData
)
=>
{
// listData.map((item,index) => {
// item.key = item.id;
// if(item.sonCategoryList){
// item.sonCategoryList.map((_item:any,_index:any) =>{
// _item.type = "child";
// _item.key=_item.id
// return _item
// });
// }
// return item
// })
// return listData
}
}
// 上传封面图
// 上传封面图
handleShowImgCutModal
=
(
event
)
=>
{
handleShowImgCutModal
=
(
event
)
=>
{
const
imageFile
=
event
.
target
.
files
[
0
];
const
imageFile
=
event
.
target
.
files
[
0
];
...
...
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