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
5aef17a1
Commit
5aef17a1
authored
Jul 18, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:培训计划简介编辑问题修复
parent
5f819711
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/modules/plan-manage/AddPlan.jsx
+3
-1
src/modules/plan-manage/components/BasicInfo.jsx
+3
-3
No files found.
src/modules/plan-manage/AddPlan.jsx
View file @
5aef17a1
...
@@ -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: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-07-18 1
4:06:18
* @LastEditTime: 2021-07-18 1
6:06:17
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -65,6 +65,7 @@ function AddPlan() {
...
@@ -65,6 +65,7 @@ function AddPlan() {
planId
:
id
,
planId
:
id
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
const
{
const
{
planId
,
planName
,
planName
,
enableState
,
enableState
,
operateType
,
operateType
,
...
@@ -104,6 +105,7 @@ function AddPlan() {
...
@@ -104,6 +105,7 @@ function AddPlan() {
}
}
setTaskList
(
trainingTaskList
);
setTaskList
(
trainingTaskList
);
setBasicData
({
setBasicData
({
planId
,
planName
,
planName
,
coverUrl
:
coverUrl
||
defaultCover
,
coverUrl
:
coverUrl
||
defaultCover
,
coverId
,
coverId
,
...
...
src/modules/plan-manage/components/BasicInfo.jsx
View file @
5aef17a1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-05 10:48:08
* @Date: 2021-07-05 10:48:08
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-07-18 1
4:05:58
* @LastEditTime: 2021-07-18 1
6:07:34
* @Description: 描述一下咯
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
@@ -140,7 +140,7 @@ class BasicInfo extends React.Component {
...
@@ -140,7 +140,7 @@ class BasicInfo extends React.Component {
render
()
{
render
()
{
const
{
operatorModalVisible
,
showSelectFileModal
,
visible
,
imageFile
}
=
this
.
state
;
const
{
operatorModalVisible
,
showSelectFileModal
,
visible
,
imageFile
}
=
this
.
state
;
const
{
data
}
=
this
.
props
;
const
{
data
}
=
this
.
props
;
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
,
id
}
=
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
,
planId
,
id
}
=
data
;
data
;
// 当前是否使用的是默认图片
// 当前是否使用的是默认图片
const
isDefaultCover
=
coverUrl
===
defaultCover
;
const
isDefaultCover
=
coverUrl
===
defaultCover
;
...
@@ -183,7 +183,7 @@ class BasicInfo extends React.Component {
...
@@ -183,7 +183,7 @@ class BasicInfo extends React.Component {
</
div
>
</
div
>
<
div
className=
'introduction'
>
<
div
className=
'introduction'
>
<
span
className=
'label'
>
简介:
</
span
>
<
span
className=
'label'
>
简介:
</
span
>
{
(
!
id
||
plan
Name
.
length
>
0
)
&&
(<
GraphicsEditor
{
(
!
id
||
plan
Id
)
&&
(<
GraphicsEditor
id=
'intro'
id=
'intro'
isIntro=
{
true
}
isIntro=
{
true
}
maxLimit=
{
1000
}
maxLimit=
{
1000
}
...
...
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