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
1a754a5a
Commit
1a754a5a
authored
Mar 16, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI样式优化
parent
be216d6f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
47 deletions
+56
-47
src/modules/course-manage/modal/RelatedPlanModal.less
+2
-1
src/modules/plan-manage/AddPlan.jsx
+3
-3
src/modules/plan-manage/components/EmployeeShareData.jsx
+28
-28
src/modules/plan-manage/components/ExpiredCourseList.less
+7
-4
src/modules/plan-manage/components/TrainingTask.jsx
+2
-2
src/modules/plan-manage/components/TrainingTask.less
+5
-2
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
+5
-2
src/modules/plan-manage/modal/UserLearnDetailModal.less
+4
-5
No files found.
src/modules/course-manage/modal/RelatedPlanModal.less
View file @
1a754a5a
...
...
@@ -43,7 +43,8 @@
.course-type{
font-size:11px;
color:#666666;
padding:1px 8px;
padding:0px 6px;
line-height: 16px;
border: 1px solid #999999;
margin-right:4px;
border-radius: 2px;
...
...
src/modules/plan-manage/AddPlan.jsx
View file @
1a754a5a
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-1
5 14:19:22
* @LastEditTime: 2021-03-1
6 11:27:06
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -120,7 +120,8 @@ function AddPlan() {
function
submitInfo
(){
const
{
planName
,
enableState
,
selectOperatorList
,
instro
,
operateType
,
percentCompleteLive
,
percentCompleteVideo
,
coverId
,
coverUrl
}
=
basicData
;
if
(
!
planName
){
let
input
=
/^
[\s]
*$/
;
if
(
!
planName
||
input
.
test
(
planName
)){
message
.
warning
(
'请输入的培训计划名称'
);
return
;
}
...
...
@@ -140,7 +141,6 @@ function AddPlan() {
message
.
warning
(
'请输入培训计划内容'
);
return
;
}
let
input
=
/^
[\s]
*$/
;
for
(
let
i
=
0
;
i
<
taskList
.
length
;
i
++
){
if
(
input
.
test
(
taskList
[
i
].
taskName
)){
message
.
warning
(
'培训任务名称不能为空'
);
...
...
src/modules/plan-manage/components/EmployeeShareData.jsx
View file @
1a754a5a
...
...
@@ -172,34 +172,34 @@ class EmployeeShareData extends React.Component {
)
}
},
{
title
:
'已学完'
,
key
:
'learnFinishNum'
,
dataIndex
:
'learnFinishNum'
,
width
:
110
,
sorter
:
true
,
render
:
(
val
,
record
)
=>
{
return
(
<
div
className=
"learn-finish-num"
>
{
val
}
</
div
>
)
}
},
{
title
:
'未学完'
,
key
:
'learnNoFinishNum'
,
dataIndex
:
'learnNoFinishNum'
,
width
:
110
,
sorter
:
true
,
render
:
(
val
,
record
)
=>
{
return
(
<
div
className=
"learn-no-finish-num"
>
{
val
}
</
div
>
)
}
},
//
{
//
title: '已学完',
//
key: 'learnFinishNum',
//
dataIndex: 'learnFinishNum',
//
width:110,
//
sorter:true,
//
render: (val, record) => {
//
return (
//
<div className="learn-finish-num">
//
{val}
//
</div>
//
)
//
}
//
},
//
{
//
title: '未学完',
//
key: 'learnNoFinishNum',
//
dataIndex: 'learnNoFinishNum',
//
width:110,
//
sorter:true,
//
render: (val, record) => {
//
return (
//
<div className="learn-no-finish-num">
//
{val}
//
</div>
//
)
//
}
//
},
{
title
:
'操作'
,
key
:
'operate'
,
...
...
src/modules/plan-manage/components/ExpiredCourseList.less
View file @
1a754a5a
.expired-course-list{
margin:18px 10px 16px;
margin:8px 10px 16px;
.course-item{
display:flex;
padding:16px 0;
border-bottom:1px
soli
d #E8E8E8;
border-bottom:1px
dotte
d #E8E8E8;
justify-content: space-between;
&:last-child{
border-bottom:none;
}
.course-left{
display:flex;
...
...
@@ -19,11 +21,12 @@
.course-type{
margin-right:16px;
span{
padding:
2px 8
px;
padding:
0px 6
px;
color:#666666;
font-size:11px;
border-radius: 2px;
border: 1px solid #999999;
line-height: 16px;
}
}
.course-instro{
...
...
src/modules/plan-manage/components/TrainingTask.jsx
View file @
1a754a5a
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-1
5 16:14:50
* @LastEditTime: 2021-03-1
6 11:36:36
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -342,7 +342,7 @@ class TrainingTask extends React.Component {
<
Input
className=
"course-name-input"
defaultValue=
{
record
.
courseName
}
style=
{
{
width
:
300
}
}
placeholder=
"请输入课程名称(40字以内)"
maxLength=
{
40
}
onChange=
{
(
e
)
=>
{
this
.
handleRenameCourseName
(
e
,
record
)}
}
onBlur=
{
(
e
)
=>
{
this
.
handleCourseNameBlur
(
e
,
record
)}
}
/></
Form
.
Item
>
</
Form
>
:
<
span
className=
"course-name"
>
{
parentIndex
+
1
}
.
{
index
+
1
}{
record
.
courseName
}
</
span
>
<
span
className=
"course-name"
>
{
parentIndex
+
1
}
.
{
index
+
1
}
{
record
.
courseName
}
</
span
>
}
{
record
.
courseState
===
"EXPIRED"
&&
<
span
className=
"icon iconfont tip"
>

</
span
>
...
...
src/modules/plan-manage/components/TrainingTask.less
View file @
1a754a5a
...
...
@@ -92,9 +92,11 @@
}
.plan-course-sort-item{
display:flex;
padding:16px 16px 16px 51px;
padding:16px 16px 16px 0px;
margin-left:51px;
justify-content: space-between;
align-items: center;
border-bottom:1px dotted #E8E8E8;
&:hover{
.course-operate{
display:block;
...
...
@@ -127,10 +129,11 @@
.course-type{
font-size:11px;
color:#666666;
padding:
1px 8
px;
padding:
0px 6
px;
border: 1px solid #999999;
margin-right:4px;
border-radius: 2px;
line-height: 16px;
}
.course-name{
color:#666666;
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
View file @
1a754a5a
...
...
@@ -125,9 +125,12 @@ class UserLearnDetailModal extends React.Component {
render
:
(
val
,
record
,
index
)
=>
{
return
(
<
div
className=
"course-info"
>
<
div
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
div
>
<
div
>
<
span
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
span
>
<
span
>
{
parentIndex
+
1
}
.
{
index
+
1
}
</
span
>
</
div
>
<
div
className=
"name-and-state"
>
<
span
className=
"course-name"
>
{
parentIndex
+
1
}
.
{
index
+
1
}
{
record
.
courseName
}
</
span
>
<
span
className=
"course-name"
>
{
record
.
courseName
}
</
span
>
{
record
.
courseType
===
"LIVE"
&&
<
span
className=
"course-state"
>
{
courseStateShow
[
record
.
courseState
].
title
}
</
span
>
}
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.less
View file @
1a754a5a
...
...
@@ -27,7 +27,7 @@
}
.plan-name{
color:#333;
font-size:1
4
px;
font-size:1
6
px;
}
.plan-learn-percentage{
color:#333;
...
...
@@ -52,7 +52,7 @@
font-size:14px;
}
.task-learn-percentage{
color:#
666666
;
color:#
333
;
font-size:14px;
}
.course-info{
...
...
@@ -60,14 +60,13 @@
margin-left:57px;
align-items: center;
.course-type{
width:54px;
height: 22px;
font-size:11px;
color:#666666;
padding:
1px 8
px;
padding:
0px 6
px;
border: 1px solid #999999;
margin-right:4px;
border-radius: 2px;
line-height: 16px;
}
.name-and-state{
flex:1;
...
...
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