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
1223fa84
Commit
1223fa84
authored
Mar 13, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改文案提示
parent
8ab136cc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
11 deletions
+22
-11
src/modules/plan-manage/AddPlan.jsx
+5
-3
src/modules/plan-manage/components/PlanList.jsx
+5
-5
src/modules/plan-manage/components/PlanList.less
+9
-0
src/modules/plan-manage/modal/relatedCourseModal.jsx
+3
-2
src/modules/store-manage/StoreInfo.jsx
+0
-1
No files found.
src/modules/plan-manage/AddPlan.jsx
View file @
1223fa84
...
@@ -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: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-1
2 11:29:48
* @LastEditTime: 2021-03-1
3 14:34:50
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -38,6 +38,7 @@ function AddPlan() {
...
@@ -38,6 +38,7 @@ function AddPlan() {
const
[
basicData
,
setBasicData
]
=
useState
(
defaultBasicData
);
const
[
basicData
,
setBasicData
]
=
useState
(
defaultBasicData
);
const
[
taskList
,
setTaskList
]
=
useState
(
defaultTaskList
);
const
[
taskList
,
setTaskList
]
=
useState
(
defaultTaskList
);
const
[
expiredCourseList
,
setExpiredCourseList
]
=
useState
([]);
const
[
expiredCourseList
,
setExpiredCourseList
]
=
useState
([]);
const
[
hasGetDetail
,
setHasGetDetail
]
=
useState
(
false
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
type
===
'edit'
){
if
(
type
===
'edit'
){
getPlanDetail
();
getPlanDetail
();
...
@@ -102,7 +103,8 @@ function AddPlan() {
...
@@ -102,7 +103,8 @@ function AddPlan() {
percentCompleteLive
,
percentCompleteLive
,
percentCompleteVideo
percentCompleteVideo
})
})
setTaskList
(
trainingTaskList
)
setTaskList
(
trainingTaskList
);
setHasGetDetail
(
true
);
})
})
}
}
function
handleChangeBasicInfo
(
field
,
value
){
function
handleChangeBasicInfo
(
field
,
value
){
...
@@ -261,7 +263,7 @@ function AddPlan() {
...
@@ -261,7 +263,7 @@ function AddPlan() {
</
div
>
</
div
>
<
div
className=
"basic-info__wrap"
>
<
div
className=
"basic-info__wrap"
>
<
div
className=
"title"
>
培训任务
</
div
>
<
div
className=
"title"
>
培训任务
</
div
>
{
(
type
===
'edit'
&&
taskList
.
length
>
0
)
&&
{
(
type
===
'edit'
&&
hasGetDetail
)
&&
<
TrainingTask
data=
{
taskList
}
onChange=
{
handleChangeTaskInfo
}
/>
<
TrainingTask
data=
{
taskList
}
onChange=
{
handleChangeTaskInfo
}
/>
}
}
{
type
===
'add'
&&
{
type
===
'add'
&&
...
...
src/modules/plan-manage/components/PlanList.jsx
View file @
1223fa84
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:46:46
* @Date: 2021-02-20 16:46:46
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-1
0 15:51:26
* @LastEditTime: 2021-03-1
3 14:26:18
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -31,7 +31,7 @@ function PlanList(props) {
...
@@ -31,7 +31,7 @@ function PlanList(props) {
width
:
'15%'
,
width
:
'15%'
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
return
(
return
(
<
div
className=
"plan
__
name"
>
<
div
className=
"plan
-
name"
>
{
val
}
{
val
}
</
div
>
</
div
>
)
)
...
@@ -75,7 +75,7 @@ function PlanList(props) {
...
@@ -75,7 +75,7 @@ function PlanList(props) {
},
},
{
{
title
:
'创建时间'
,
title
:
'创建时间'
,
width
:
"1
0
%"
,
width
:
"1
2.5
%"
,
key
:
'created'
,
key
:
'created'
,
dataIndex
:
'created'
,
dataIndex
:
'created'
,
sorter
:
true
,
sorter
:
true
,
...
@@ -85,7 +85,7 @@ function PlanList(props) {
...
@@ -85,7 +85,7 @@ function PlanList(props) {
},
},
{
{
title
:
'更新时间'
,
title
:
'更新时间'
,
width
:
"1
0
%"
,
width
:
"1
2.5
%"
,
key
:
'updated'
,
key
:
'updated'
,
dataIndex
:
'updated'
,
dataIndex
:
'updated'
,
sorter
:
true
,
sorter
:
true
,
...
@@ -111,7 +111,7 @@ function PlanList(props) {
...
@@ -111,7 +111,7 @@ function PlanList(props) {
title
:
'操作'
,
title
:
'操作'
,
key
:
'operate'
,
key
:
'operate'
,
dataIndex
:
'operate'
,
dataIndex
:
'operate'
,
width
:
'2
5
%'
,
width
:
'2
0
%'
,
render
:
(
val
,
record
)
=>
{
render
:
(
val
,
record
)
=>
{
return
(
return
(
<
div
className=
"operate"
>
<
div
className=
"operate"
>
...
...
src/modules/plan-manage/components/PlanList.less
View file @
1223fa84
.plan-list{
.plan-list{
margin-top:12px;
margin-top:12px;
.plan-name{
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.operate-text {
.operate-text {
color: #5289FA;
color: #5289FA;
cursor: pointer;
cursor: pointer;
...
...
src/modules/plan-manage/modal/relatedCourseModal.jsx
View file @
1223fa84
...
@@ -161,11 +161,12 @@ class SelectOperatorModal extends React.Component {
...
@@ -161,11 +161,12 @@ class SelectOperatorModal extends React.Component {
videoSize
:
size
videoSize
:
size
},()
=>
{
this
.
handleFetchLiveDataList
()})
},()
=>
{
this
.
handleFetchLiveDataList
()})
}
}
// 请求表头
// 请求表头
parseLiveColumns
=
()
=>
{
parseLiveColumns
=
()
=>
{
const
columns
=
[
const
columns
=
[
{
{
title
:
<
span
><
span
>
课程信息
</
span
><
Tooltip
title=
"
以下为该培训计划暂未关联的课程。 已关联的课程不支持重复选择,因此不显示。
"
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
></
span
>,
title
:
<
span
><
span
>
课程信息
</
span
><
Tooltip
title=
"
仅显示未关联课程,已关联课程不支持重复选择
"
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
></
span
>,
key
:
'course'
,
key
:
'course'
,
dataIndex
:
'course'
,
dataIndex
:
'course'
,
width
:
'45%'
,
width
:
'45%'
,
...
@@ -229,7 +230,7 @@ class SelectOperatorModal extends React.Component {
...
@@ -229,7 +230,7 @@ class SelectOperatorModal extends React.Component {
parseVideoColumns
=
()
=>
{
parseVideoColumns
=
()
=>
{
const
columns
=
[
const
columns
=
[
{
{
title
:
<
span
><
span
>
课程信息
</
span
><
Tooltip
title=
"
以下为该培训计划暂未关联的课程。 已关联的课程不支持重复选择,因此不显示。
"
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
></
span
>,
title
:
<
span
><
span
>
课程信息
</
span
><
Tooltip
title=
"
仅显示未关联课程,已关联课程不支持重复选择
"
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
></
span
>,
key
:
'course'
,
key
:
'course'
,
dataIndex
:
'course'
,
dataIndex
:
'course'
,
width
:
'60%'
,
width
:
'60%'
,
...
...
src/modules/store-manage/StoreInfo.jsx
View file @
1223fa84
...
@@ -250,7 +250,6 @@ class StoreInfo extends React.Component {
...
@@ -250,7 +250,6 @@ class StoreInfo extends React.Component {
<
div
className=
"operate-con"
>
<
div
className=
"operate-con"
>
<
div
><
span
onClick=
{
()
=>
{
this
.
setState
({
showSelectFileModal
:
true
})}
}
className=
"upload-btn"
>
<
div
><
span
onClick=
{
()
=>
{
this
.
setState
({
showSelectFileModal
:
true
})}
}
className=
"upload-btn"
>
{
logo
?
<
span
>
重新上传
</
span
>
:
<
span
>
上传
</
span
>
}
{
logo
?
<
span
>
重新上传
</
span
>
:
<
span
>
上传
</
span
>
}
</
span
></
div
>
</
span
></
div
>
<
div
className=
"tip"
>
建议尺寸702*180px。最大2M,支持jpg、jpeg和png。
</
div
>
<
div
className=
"tip"
>
建议尺寸702*180px。最大2M,支持jpg、jpeg和png。
</
div
>
</
div
>
</
div
>
...
...
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