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
e3fdcc84
Commit
e3fdcc84
authored
Jul 23, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Plain Diff
fix:解决合并代码的冲突
parents
f213070b
831c59da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
src/modules/course-manage/video-course/AddVideoCourse.jsx
+15
-7
No files found.
src/modules/course-manage/video-course/AddVideoCourse.jsx
View file @
e3fdcc84
...
@@ -2,15 +2,14 @@
...
@@ -2,15 +2,14 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:07:47
* @Date: 2020-08-05 10:07:47
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-07-
18 16:54:33
* @LastEditTime: 2021-07-
23 14:26:26
* @Description: 线上课新增/编辑页
* @Description: 线上课新增/编辑页
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
import
React
from
'react'
import
React
from
'react'
import
{
Button
,
Input
,
message
,
Modal
,
Tooltip
,
Form
,
Popconfirm
,
Menu
,
Dropdown
,
Cascader
}
from
'antd'
import
{
Button
,
Input
,
message
,
Modal
,
Cascader
,
Tooltip
,
Form
,
Popconfirm
,
Menu
,
Dropdown
}
from
'antd'
import
{
FileTypeIcon
}
from
'@/common/constants/academic/lessonEnum'
import
{
FileTypeIcon
}
from
'@/common/constants/academic/lessonEnum'
import
{
CourseCatalogSelect
}
from
'@/modules/common/'
import
ShowTips
from
'@/components/ShowTips'
import
ShowTips
from
'@/components/ShowTips'
import
Breadcrumbs
from
'@/components/Breadcrumbs'
import
Breadcrumbs
from
'@/components/Breadcrumbs'
import
moment
from
'moment'
import
moment
from
'moment'
...
@@ -122,8 +121,19 @@ class AddVideoCourse extends React.Component {
...
@@ -122,8 +121,19 @@ class AddVideoCourse extends React.Component {
}
}
catalogChange
=
(
value
,
_categoryName
)
=>
{
catalogChange
=
(
value
,
_categoryName
)
=>
{
console
.
log
(
value
,
_categoryName
)
const
categoryName
=
_
.
pluck
(
_categoryName
,
'categoryName'
).
join
(
'-'
)
this
.
setState
({
categoryId
:
value
,
categoryName
:
_categoryName
[
0
]
})
const
changeValueLength
=
value
.
length
switch
(
changeValueLength
)
{
case
1
:
this
.
setState
({
categoryId
:
value
[
0
],
categoryName
})
break
case
2
:
this
.
setState
({
categoryId
:
value
[
1
],
categoryName
})
break
default
:
this
.
setState
({
categoryId
:
null
})
break
}
}
}
// 获取线上课详情
// 获取线上课详情
handleFetchScheudleDetail
=
(
courseId
)
=>
{
handleFetchScheudleDetail
=
(
courseId
)
=>
{
...
@@ -712,7 +722,6 @@ class AddVideoCourse extends React.Component {
...
@@ -712,7 +722,6 @@ class AddVideoCourse extends React.Component {
imageFile
,
imageFile
,
selectTypeList
,
selectTypeList
,
accept
,
accept
,
categoryId
,
}
=
this
.
state
}
=
this
.
state
const
defaultCover
=
'https://image.xiaomaiketang.com/xm/TwtGPQGE4K.png'
const
defaultCover
=
'https://image.xiaomaiketang.com/xm/TwtGPQGE4K.png'
const
isDefaultCover
=
coverUrl
===
defaultCover
||
coverUrl
==
null
const
isDefaultCover
=
coverUrl
===
defaultCover
||
coverUrl
==
null
...
@@ -907,7 +916,6 @@ class AddVideoCourse extends React.Component {
...
@@ -907,7 +916,6 @@ class AddVideoCourse extends React.Component {
}
}
/>
/>
)
}
)
}
{
/* <CourseCatalogSelect courseCatalogList={courseCatalogList} value={categoryId} onChange={this.catalogChange} /> */
}
</
div
>
</
div
>
<
div
className=
'intro-info mt16'
>
<
div
className=
'intro-info mt16'
>
<
AddVideoIntro
<
AddVideoIntro
...
...
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