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
f751e670
Commit
f751e670
authored
Mar 12, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改任务排序的样式
parent
ba565f31
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
35 deletions
+36
-35
src/modules/plan-manage/components/TrainingTask.jsx
+4
-3
src/modules/plan-manage/components/TrainingTask.less
+31
-31
src/modules/plan-manage/modal/UnbundEmployeeModal.jsx
+1
-1
No files found.
src/modules/plan-manage/components/TrainingTask.jsx
View file @
f751e670
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-12 1
4:24:23
* @LastEditTime: 2021-03-12 1
6:49:01
* @Description: 描述一下
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -255,7 +255,7 @@ class TrainingTask extends React.Component {
...
@@ -255,7 +255,7 @@ class TrainingTask extends React.Component {
}
}
renderTaskItem
=
(
record
,
index
)
=>
{
renderTaskItem
=
(
record
,
index
)
=>
{
return
<
div
className=
"task-item"
>
return
<
div
className=
"
plan-sort-
task-item"
>
<
div
className=
"task-con"
>
<
div
className=
"task-con"
>
<
div
className=
"task-instro"
>
<
div
className=
"task-instro"
>
<
span
onClick=
{
()
=>
this
.
openOrCloseTask
(
index
)
}
>
<
span
onClick=
{
()
=>
this
.
openOrCloseTask
(
index
)
}
>
...
@@ -325,7 +325,7 @@ class TrainingTask extends React.Component {
...
@@ -325,7 +325,7 @@ class TrainingTask extends React.Component {
</
div
>
</
div
>
}
}
renderCourseItem
=
(
record
,
index
,
parentIndex
)
=>
{
renderCourseItem
=
(
record
,
index
,
parentIndex
)
=>
{
return
<
div
className=
"
course
-item"
>
return
<
div
className=
"
plan-course-sort
-item"
>
<
div
className=
"course-info"
>
<
div
className=
"course-info"
>
<
span
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
span
>
<
span
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
span
>
{
record
.
type
===
'input'
?
{
record
.
type
===
'input'
?
...
@@ -375,6 +375,7 @@ class TrainingTask extends React.Component {
...
@@ -375,6 +375,7 @@ class TrainingTask extends React.Component {
disableAutoscroll
disableAutoscroll
helperClass=
"row-dragging"
helperClass=
"row-dragging"
onSortEnd=
{
this
.
onTaskSortEnd
}
onSortEnd=
{
this
.
onTaskSortEnd
}
className=
"plan-task-sort-container"
>
>
{
dataSource
.
map
((
item
,
index
)
=>
{
dataSource
.
map
((
item
,
index
)
=>
<
SortableTaskItem
taskItem=
{
this
.
renderTaskItem
(
item
,
index
)
}
index=
{
index
}
>
<
SortableTaskItem
taskItem=
{
this
.
renderTaskItem
(
item
,
index
)
}
index=
{
index
}
>
...
...
src/modules/plan-manage/components/TrainingTask.less
View file @
f751e670
...
@@ -5,7 +5,25 @@
...
@@ -5,7 +5,25 @@
.ant-form-item{
.ant-form-item{
margin-bottom:0 !important;
margin-bottom:0 !important;
}
}
.task-item{
.add-task-con{
height: 52px;
background: #F7F8F9;
border-radius: 2px;
padding:16px;
margin-top:16px;
.add-task-btn-disabled{
color:#CCCCCC;
font-size:14px;
}
.add-task-btn{
color: #5289FA;
font-size:14px;
}
}
}
.plan-sort-task-item{
.task-con{
.task-con{
display:flex;
display:flex;
padding:16px;
padding:16px;
...
@@ -53,7 +71,18 @@
...
@@ -53,7 +71,18 @@
}
}
}
}
.course-box{
.course-box{
.course-item{
.add-course-con{
padding:16px 51px;
color: #5289FA;
font-size:14px;
.add-course-btn-disabled{
font-size:14px;
color:#ccc;
}
}
}
}
.plan-course-sort-item{
display:flex;
display:flex;
padding:16px 16px 16px 51px;
padding:16px 16px 16px 51px;
justify-content: space-between;
justify-content: space-between;
...
@@ -88,33 +117,4 @@
...
@@ -88,33 +117,4 @@
font-size:14px;
font-size:14px;
}
}
}
}
}
.add-course-con{
padding:16px 51px;
color: #5289FA;
font-size:14px;
.add-course-btn-disabled{
font-size:14px;
color:#ccc;
}
}
}
}
.add-task-con{
height: 52px;
background: #F7F8F9;
border-radius: 2px;
padding:16px;
margin-top:16px;
.add-task-btn-disabled{
color:#CCCCCC;
font-size:14px;
}
.add-task-btn{
color: #5289FA;
font-size:14px;
}
}
}
}
src/modules/plan-manage/modal/UnbundEmployeeModal.jsx
View file @
f751e670
...
@@ -85,7 +85,7 @@ class UnbundEmployeeModal extends React.Component {
...
@@ -85,7 +85,7 @@ class UnbundEmployeeModal extends React.Component {
confirmUnbund
=
()
=>
{
confirmUnbund
=
()
=>
{
const
{
selectOperatorList
}
=
this
.
state
;
const
{
selectOperatorList
}
=
this
.
state
;
if
(
selectOperatorList
.
length
===
0
){
if
(
selectOperatorList
.
length
===
0
){
message
.
success
(
'请选择
员工'
);
message
.
warning
(
'请选择需要解绑的
员工'
);
return
false
;
return
false
;
}
}
const
params
=
{
const
params
=
{
...
...
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