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
7b78f5e2
Commit
7b78f5e2
authored
Jul 02, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:限制简介最大为1000字
parent
b681142d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
12 deletions
+14
-12
src/modules/course-manage/components/GraphicsEditor.jsx
+1
-1
src/modules/course-manage/graphics-course/components/AddGraphicsIntro.jsx
+1
-1
src/modules/course-manage/graphics-course/components/AddGraphicsIntro.less
+1
-1
src/modules/course-manage/offline-course/components/AddGraphicsIntro.jsx
+1
-1
src/modules/course-manage/offline-course/components/AddGraphicsIntro.less
+1
-1
src/modules/course-manage/video-course/AddVideoCourse.jsx
+2
-4
src/modules/course-manage/video-course/components/AddVideoIntro.jsx
+1
-0
src/modules/course-manage/video-course/components/AddVideoIntro.less
+6
-3
No files found.
src/modules/course-manage/components/GraphicsEditor.jsx
View file @
7b78f5e2
...
@@ -217,7 +217,7 @@ class GraphicsEditor extends React.Component {
...
@@ -217,7 +217,7 @@ class GraphicsEditor extends React.Component {
const
{
limitLength
=
1000
,
isIntro
,
maxLimit
}
=
this
.
props
;
const
{
limitLength
=
1000
,
isIntro
,
maxLimit
}
=
this
.
props
;
return
<
div
className=
{
`graphics-editor-container${isIntro ? ' introduce' : ''} ${(textLength > maxLimit)&& 'warning'}`
}
>
return
<
div
className=
{
`graphics-editor-container${isIntro ? ' introduce' : ''} ${(textLength > maxLimit)&& 'warning'}`
}
>
<
div
className=
"editor-box"
id=
{
`editor${editorId}`
}
></
div
>
<
div
className=
"editor-box"
id=
{
`editor${editorId}`
}
></
div
>
<
div
className=
"editor-tips"
>
(
{
(
textLength
>
maxLimit
)
?
<
span
style=
{
{
color
:
'red'
}
}
>
{
textLength
}
</
span
>
:
textLength
}
/
{
maxLimit
||
1000
00
}
)
</
div
>
<
div
className=
"editor-tips"
>
(
{
(
textLength
>
maxLimit
)
?
<
span
style=
{
{
color
:
'red'
}
}
>
{
textLength
}
</
span
>
:
textLength
}
/
{
maxLimit
||
1000
}
)
</
div
>
{
showSelectVideoModal
&&
{
showSelectVideoModal
&&
<
SelectPrepareFileModal
<
SelectPrepareFileModal
operateType=
"select"
operateType=
"select"
...
...
src/modules/course-manage/graphics-course/components/AddGraphicsIntro.jsx
View file @
7b78f5e2
...
@@ -109,7 +109,7 @@ class AddGraphicsIntro extends React.Component {
...
@@ -109,7 +109,7 @@ class AddGraphicsIntro extends React.Component {
const
{
data
:
{
id
,
whetherVisitorsJoin
,
courseMedia
,
introduce
,
shelfState
,
loadcourseMedia
,
loadintroduce
}
}
=
this
.
props
;
const
{
data
:
{
id
,
whetherVisitorsJoin
,
courseMedia
,
introduce
,
shelfState
,
loadcourseMedia
,
loadintroduce
}
}
=
this
.
props
;
const
{
showSelectFileModal
,
selectType
}
=
this
.
state
;
const
{
showSelectFileModal
,
selectType
}
=
this
.
state
;
return
(
return
(
<
div
className=
"add-
video
__intro-info"
>
<
div
className=
"add-
graphic
__intro-info"
>
<
div
className=
"allow-tourist-join"
>
<
div
className=
"allow-tourist-join"
>
<
span
className=
"label"
>
观看设置:
</
span
>
<
span
className=
"label"
>
观看设置:
</
span
>
<
div
className=
"content"
>
<
div
className=
"content"
>
...
...
src/modules/course-manage/graphics-course/components/AddGraphicsIntro.less
View file @
7b78f5e2
.add-
video
__intro-info {
.add-
graphic
__intro-info {
.w-e-full-screen-editor {
.w-e-full-screen-editor {
background: #fff !important;
background: #fff !important;
}
}
...
...
src/modules/course-manage/offline-course/components/AddGraphicsIntro.jsx
View file @
7b78f5e2
...
@@ -109,7 +109,7 @@ class AddGraphicsIntro extends React.Component {
...
@@ -109,7 +109,7 @@ class AddGraphicsIntro extends React.Component {
const
{
data
:
{
id
,
whetherVisitorsJoin
,
courseMedia
,
introduce
,
shelfState
,
loadcourseMedia
,
loadintroduce
}
}
=
this
.
props
;
const
{
data
:
{
id
,
whetherVisitorsJoin
,
courseMedia
,
introduce
,
shelfState
,
loadcourseMedia
,
loadintroduce
}
}
=
this
.
props
;
const
{
showSelectFileModal
,
selectType
}
=
this
.
state
;
const
{
showSelectFileModal
,
selectType
}
=
this
.
state
;
return
(
return
(
<
div
className=
"add-
video
__intro-info"
>
<
div
className=
"add-
offline
__intro-info"
>
<
div
className=
"allow-tourist-join"
>
<
div
className=
"allow-tourist-join"
>
<
span
className=
"label"
>
观看设置:
</
span
>
<
span
className=
"label"
>
观看设置:
</
span
>
<
div
className=
"content"
>
<
div
className=
"content"
>
...
...
src/modules/course-manage/offline-course/components/AddGraphicsIntro.less
View file @
7b78f5e2
.add-
video
__intro-info {
.add-
offline
__intro-info {
.w-e-full-screen-editor {
.w-e-full-screen-editor {
background: #fff !important;
background: #fff !important;
}
}
...
...
src/modules/course-manage/video-course/AddVideoCourse.jsx
View file @
7b78f5e2
...
@@ -8,12 +8,10 @@
...
@@ -8,12 +8,10 @@
*/
*/
import
React
from
'react'
import
React
from
'react'
import
{
Button
,
Input
,
Radio
,
message
,
Modal
,
Cascader
,
Tooltip
,
Form
,
Popconfirm
}
from
'antd'
import
{
Button
,
Input
,
message
,
Modal
,
Cascader
,
Tooltip
,
Form
,
Popconfirm
}
from
'antd'
import
{
DISK_MAP
,
FileTypeIcon
,
FileVerifyMap
}
from
'@/common/constants/academic/lessonEnum'
import
{
FileTypeIcon
,
FileVerifyMap
}
from
'@/common/constants/academic/lessonEnum'
import
{
ImgCutModalNew
}
from
'@/components'
import
ShowTips
from
'@/components/ShowTips'
import
ShowTips
from
'@/components/ShowTips'
import
Breadcrumbs
from
'@/components/Breadcrumbs'
import
Breadcrumbs
from
'@/components/Breadcrumbs'
import
AddVideoIntro
from
'./components/AddVideoIntro'
import
AddVideoIntro
from
'./components/AddVideoIntro'
import
SelectStudent
from
'../modal/select-student'
import
SelectStudent
from
'../modal/select-student'
import
SelectPrepareFileModal
from
'../../prepare-lesson/modal/SelectPrepareFileModal'
import
SelectPrepareFileModal
from
'../../prepare-lesson/modal/SelectPrepareFileModal'
...
...
src/modules/course-manage/video-course/components/AddVideoIntro.jsx
View file @
7b78f5e2
...
@@ -162,6 +162,7 @@ class AddVideoIntro extends React.Component {
...
@@ -162,6 +162,7 @@ class AddVideoIntro extends React.Component {
<
div
className=
"intro-list__item introduce-editor"
>
<
div
className=
"intro-list__item introduce-editor"
>
{
(
!
id
||
loadintroduce
)
&&
{
(
!
id
||
loadintroduce
)
&&
<
GraphicsEditor
<
GraphicsEditor
maxLimit=
{
1000
}
id=
"intro"
id=
"intro"
isIntro=
{
true
}
isIntro=
{
true
}
detail=
{
{
detail=
{
{
...
...
src/modules/course-manage/video-course/components/AddVideoIntro.less
View file @
7b78f5e2
...
@@ -32,14 +32,17 @@
...
@@ -32,14 +32,17 @@
}
}
.store-show{
.store-show{
display:flex;
display:flex;
margin-top:
16
px;
margin-top:
24
px;
margin-bottom:
16
px;
margin-bottom:
24
px;
.desc{
.desc{
margin-left:1
6
px;
margin-left:1
1
px;
font-size:14px;
font-size:14px;
color:#999;
color:#999;
display:inline-block;
display:inline-block;
}
}
.content {
width: 400px;
}
}
}
.radio {
.radio {
display: block;
display: block;
...
...
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