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
29d3db8f
Commit
29d3db8f
authored
Jul 18, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:培训计划简介内容缺失修复
parent
dc7d7fd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
src/modules/plan-manage/AddPlan.jsx
+2
-4
src/modules/plan-manage/components/BasicInfo.jsx
+3
-3
No files found.
src/modules/plan-manage/AddPlan.jsx
View file @
29d3db8f
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39
* @LastEditors: yuananting
* @LastEditTime: 2021-07-18 1
3:33:22
* @LastEditTime: 2021-07-18 1
4:06:18
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -42,7 +42,6 @@ function AddPlan() {
const
[
hasGetDetail
,
setHasGetDetail
]
=
useState
(
false
);
const
[
submitDisabled
,
setSubmitDisabled
]
=
useState
(
false
);
const
[
editorTextLength
,
setEditorTextLength
]
=
useState
(
0
);
const
[
loadintroduce
,
setLoadintroduce
]
=
useState
(
false
);
useEffect
(()
=>
{
if
(
type
===
'edit'
)
{
...
...
@@ -117,7 +116,6 @@ function AddPlan() {
percentCompletePicture
,
});
setHasGetDetail
(
true
);
setLoadintroduce
(
hasIntro
);
});
}
function
handleChangeBasicInfo
(
field
,
value
,
option
)
{
...
...
@@ -286,7 +284,7 @@ function AddPlan() {
<
div
className=
'add-plan-page__form'
>
<
div
className=
'basic-info__wrap'
>
<
div
className=
'title'
>
基本信息
</
div
>
<
BasicInfo
data=
{
{
...
basicData
,
loadintroduce
,
id
}
}
onChange=
{
handleChangeBasicInfo
}
/>
<
BasicInfo
data=
{
{
...
basicData
,
id
}
}
onChange=
{
handleChangeBasicInfo
}
/>
</
div
>
<
div
className=
'basic-info__wrap'
>
<
div
className=
'title'
>
培训任务
</
div
>
...
...
src/modules/plan-manage/components/BasicInfo.jsx
View file @
29d3db8f
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-07-05 10:48:08
* @LastEditors: yuananting
* @LastEditTime: 2021-07-18 1
3:32:16
* @LastEditTime: 2021-07-18 1
4:05:58
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
...
@@ -140,7 +140,7 @@ class BasicInfo extends React.Component {
render
()
{
const
{
operatorModalVisible
,
showSelectFileModal
,
visible
,
imageFile
}
=
this
.
state
;
const
{
data
}
=
this
.
props
;
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
,
loadintroduce
,
id
}
=
const
{
planName
,
coverUrl
,
instro
,
enableState
,
operateType
,
selectOperatorList
,
percentCompleteLive
,
percentCompleteVideo
,
percentCompletePicture
,
id
}
=
data
;
// 当前是否使用的是默认图片
const
isDefaultCover
=
coverUrl
===
defaultCover
;
...
...
@@ -183,7 +183,7 @@ class BasicInfo extends React.Component {
</
div
>
<
div
className=
'introduction'
>
<
span
className=
'label'
>
简介:
</
span
>
{
(
!
id
||
loadintroduce
)
&&
(<
GraphicsEditor
{
(
!
id
||
planName
.
length
>
0
)
&&
(<
GraphicsEditor
id=
'intro'
isIntro=
{
true
}
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