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
0186c213
Commit
0186c213
authored
Aug 12, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:指派对象和协作人员弹窗样式调整
parent
a57782eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
63 deletions
+69
-63
src/modules/task-center/train-task/AddTrainTask.jsx
+2
-2
src/modules/task-center/train-task/modal/ChooseAssignorModal.jsx
+11
-7
src/modules/task-center/train-task/modal/ChooseAssignorModal.less
+30
-38
src/modules/task-center/train-task/modal/ChooseCollaboratorModal.jsx
+7
-6
src/modules/task-center/train-task/modal/ChooseCollaboratorModal.less
+19
-10
No files found.
src/modules/task-center/train-task/AddTrainTask.jsx
View file @
0186c213
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-29 13:57:03
* @Date: 2021-07-29 13:57:03
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-12 1
1:58:16
* @LastEditTime: 2021-08-12 1
3:37:23
* @Description: 任务中心-培训任务-新建页面
* @Description: 任务中心-培训任务-新建页面
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
@@ -179,7 +179,7 @@ function AddTrainTask() {
...
@@ -179,7 +179,7 @@ function AddTrainTask() {
});
});
const
_helpStoreUserIds
=
helpStoreUserIds
.
map
((
item
)
=>
{
const
_helpStoreUserIds
=
helpStoreUserIds
.
map
((
item
)
=>
{
return
item
.
user
Id
;
return
item
.
checked
Id
;
});
});
const
_assignList
=
assignList
.
map
((
item
)
=>
{
const
_assignList
=
assignList
.
map
((
item
)
=>
{
...
...
src/modules/task-center/train-task/modal/ChooseAssignorModal.jsx
View file @
0186c213
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-08-05 17:09:36
* @Date: 2021-08-05 17:09:36
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-12 1
1:53:59
* @LastEditTime: 2021-08-12 1
4:32:20
* @Description: 新建培训任务-选择指派对象
* @Description: 新建培训任务-选择指派对象
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
...
@@ -304,14 +304,14 @@ function ChooseAssignorModal(props) {
...
@@ -304,14 +304,14 @@ function ChooseAssignorModal(props) {
<
div
className=
'node-title-div'
>
<
div
className=
'node-title-div'
>
{
[
0
,
1
].
includes
(
nodeData
.
depLevel
)
?
(
{
[
0
,
1
].
includes
(
nodeData
.
depLevel
)
?
(
<
div
>
<
div
>
<
span
className=
'icon iconfont
title
-icon'
>

</
span
>
<
span
className=
'icon iconfont
item
-icon'
>

</
span
>
<
span
>
<
span
className=
'item-name'
>
<
WWOpenDataCom
type=
'departmentName'
openid=
{
nodeData
.
name
}
/>
<
WWOpenDataCom
type=
'departmentName'
openid=
{
nodeData
.
name
}
/>
</
span
>
</
span
>
</
div
>
</
div
>
)
:
(
)
:
(
<
div
>
<
div
>
<
span
className=
'icon iconfont
title
-icon'
>

</
span
>
<
span
className=
'icon iconfont
item
-icon'
>

</
span
>
<
span
>
<
span
>
<
WWOpenDataCom
type=
'userName'
openid=
{
nodeData
.
userName
}
/>
<
WWOpenDataCom
type=
'userName'
openid=
{
nodeData
.
userName
}
/>
</
span
>
</
span
>
...
@@ -335,19 +335,23 @@ function ChooseAssignorModal(props) {
...
@@ -335,19 +335,23 @@ function ChooseAssignorModal(props) {
{
checkedAssignorList
.
map
((
item
,
index
)
=>
{
{
checkedAssignorList
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
className=
'selected-item'
>
<
div
className=
'selected-item'
>
<
span
className=
'item-
nam
e'
>
<
span
className=
'item-
titl
e'
>
{
[
0
,
1
].
indexOf
(
item
.
depLevel
)
===
-
1
?
(
{
[
0
,
1
].
indexOf
(
item
.
depLevel
)
===
-
1
?
(
<
div
>
<
div
>
<
span
className=
'icon iconfont title-icon'
>

</
span
>
<
span
className=
'icon iconfont title-icon'
>

</
span
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
userName
}
/>
}
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
userName
}
/>
}
>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
userName
}
/>
<
span
className=
'title-name'
>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
userName
}
/>
</
span
>
</
Tooltip
>
</
Tooltip
>
</
div
>
</
div
>
)
:
(
)
:
(
<
div
>
<
div
>
<
span
className=
'icon iconfont title-icon'
>

</
span
>
<
span
className=
'icon iconfont title-icon'
>

</
span
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'departmentName'
openid=
{
item
.
userName
}
/>
}
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'departmentName'
openid=
{
item
.
userName
}
/>
}
>
<
WWOpenDataCom
type=
'departmentName'
openid=
{
item
.
name
}
/>
<
span
className=
'title-name'
>
<
WWOpenDataCom
type=
'departmentName'
openid=
{
item
.
name
}
/>
</
span
>
</
Tooltip
>
</
Tooltip
>
</
div
>
</
div
>
)
}
)
}
...
...
src/modules/task-center/train-task/modal/ChooseAssignorModal.less
View file @
0186c213
...
@@ -5,16 +5,21 @@
...
@@ -5,16 +5,21 @@
.left-list {
.left-list {
width: 50%;
width: 50%;
margin-right: 24px;
margin-right: 24px;
padding: 12px 16px;
padding:
0 0
12px 16px;
border: 1px solid #e8e8e8;
border: 1px solid #e8e8e8;
overflow-y: scroll;
overflow-x: hidden;
.data-body {
.data-body {
.ant-tabs-nav .ant-tabs-tab {
.ant-tabs-nav {
padding: 16px 0 10px 0 !important;
margin: 0 !important;
font-size: 14px !important;
.ant-tabs-tab {
padding: 16px 0 10px 0 !important;
font-size: 14px !important;
}
}
}
.tree-con {
.tree-con {
overflow-y: scroll;
overflow-x: hidden;
max-height: 367px;
padding-right: 16px;
.ant-tree .ant-tree-treenode {
.ant-tree .ant-tree-treenode {
padding: 12px 0 !important;
padding: 12px 0 !important;
}
}
...
@@ -22,45 +27,28 @@
...
@@ -22,45 +27,28 @@
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
white-space: nowrap;
white-space: nowrap;
color: #666666;
.item-icon {
.item-icon {
img {
margin-right: 6px;
width: 16px;
color: #999999;
height: 16px;
color: #999999;
}
}
}
.item-
titl
e {
.item-
nam
e {
position: absolute;
position: absolute;
overflow: hidden;
overflow: hidden;
white-space: nowrap;
white-space: nowrap;
text-overflow: ellipsis;
text-overflow: ellipsis;
width: 55%;
width: 55%;
left: 28px;
left: 28px;
color: #666666;
}
}
}
}
}
.ant-tree.ant-tree-directory {
.ant-tree-treenode-selected:hover::before,
.employee-item {
.ant-tree-treenode-selected::before {
display: flex;
background: #f3f6fa;
justify-content: space-between;
.user-name {
width: 110px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.icon {
color: #0081f0;
margin-right: 6px;
}
}
}
}
.dep-info {
.ant-tree-switcher {
width: 128px;
color: #999999 !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: 12px;
text-align: right;
}
}
}
}
}
}
...
@@ -68,8 +56,6 @@
...
@@ -68,8 +56,6 @@
.right-list {
.right-list {
width: 50%;
width: 50%;
border: 1px solid #e8e8e8;
border: 1px solid #e8e8e8;
overflow-y: scroll;
overflow-x: hidden;
.header-line {
.header-line {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
...
@@ -85,19 +71,25 @@
...
@@ -85,19 +71,25 @@
}
}
}
}
.data-body {
.data-body {
overflow-y: scroll;
overflow-x: hidden;
max-height: 370px;
.selected-item {
.selected-item {
padding: 12px 12px 12px 16px;
padding: 12px 12px 12px 16px;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
.item-
nam
e {
.item-
titl
e {
width: 80%;
width: 80%;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
.icon {
.
title-
icon {
color: #
0081f0
;
color: #
999999
;
margin-right: 6px;
margin-right: 6px;
}
}
.title-name {
color: #333333;
}
}
}
.clear-icon {
.clear-icon {
font-size: 16px;
font-size: 16px;
...
...
src/modules/task-center/train-task/modal/ChooseCollaboratorModal.jsx
View file @
0186c213
...
@@ -174,6 +174,7 @@ function ChooseCollaboratorModal(props) {
...
@@ -174,6 +174,7 @@ function ChooseCollaboratorModal(props) {
<
Search
<
Search
placeholder=
'搜索员工'
placeholder=
'搜索员工'
value=
{
searchKey
}
value=
{
searchKey
}
style=
{
{
paddingRight
:
16
}
}
onChange=
{
(
e
)
=>
setSearchKey
(
e
.
target
.
value
.
trim
())
}
onChange=
{
(
e
)
=>
setSearchKey
(
e
.
target
.
value
.
trim
())
}
onSearch=
{
getEmployeeList
}
onSearch=
{
getEmployeeList
}
className=
'search search-input'
className=
'search search-input'
...
@@ -191,10 +192,10 @@ function ChooseCollaboratorModal(props) {
...
@@ -191,10 +192,10 @@ function ChooseCollaboratorModal(props) {
<
List
.
Item
>
<
List
.
Item
>
<
Checkbox
checked=
{
item
.
checked
}
value=
{
item
}
key=
{
item
.
checkedId
}
onChange=
{
handleCheckedCollaborator
}
>
<
Checkbox
checked=
{
item
.
checked
}
value=
{
item
}
key=
{
item
.
checkedId
}
onChange=
{
handleCheckedCollaborator
}
>
<
div
className=
'employee-item'
>
<
div
className=
'employee-item'
>
<
span
className=
'
user-nam
e'
>
<
span
className=
'
item-titl
e'
>
<
span
className=
'icon iconfont
avatar
-icon'
>

</
span
>
<
span
className=
'icon iconfont
title
-icon'
>

</
span
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
}
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
}
>
<
span
className=
'
user
-name'
>
<
span
className=
'
title
-name'
>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
</
span
>
</
span
>
</
Tooltip
>
</
Tooltip
>
...
@@ -218,10 +219,10 @@ function ChooseCollaboratorModal(props) {
...
@@ -218,10 +219,10 @@ function ChooseCollaboratorModal(props) {
{
checkedCollaboratorList
.
map
((
item
,
index
)
=>
{
{
checkedCollaboratorList
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
className=
'selected-item'
>
<
div
className=
'selected-item'
>
<
span
className=
'item-
nam
e'
>
<
span
className=
'item-
titl
e'
>
<
span
className=
'icon iconfont
avatar
-icon'
>

</
span
>
<
span
className=
'icon iconfont
title
-icon'
>

</
span
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
}
>
<
Tooltip
title=
{
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
}
>
<
span
className=
'
name-text
'
>
<
span
className=
'
title-name
'
>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
<
WWOpenDataCom
type=
'userName'
openid=
{
item
.
checkedName
}
/>
</
span
>
</
span
>
</
Tooltip
>
</
Tooltip
>
...
...
src/modules/task-center/train-task/modal/ChooseCollaboratorModal.less
View file @
0186c213
...
@@ -5,29 +5,33 @@
...
@@ -5,29 +5,33 @@
.left-list {
.left-list {
width: 50%;
width: 50%;
margin-right: 24px;
margin-right: 24px;
padding: 12px 16px;
padding: 12px
0 12px
16px;
border: 1px solid #e8e8e8;
border: 1px solid #e8e8e8;
overflow-y: scroll;
overflow-x: hidden;
.data-body {
.data-body {
overflow-y: scroll;
overflow-x: hidden;
max-height: 370px;
padding-right: 16px;
.ant-list {
.ant-list {
.ant-list-item:hover {
.ant-list-item:hover {
background-color: #f3f6fa;
background-color: #f3f6fa;
}
}
}
}
.employee-item {
.employee-item {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
.
user-nam
e {
.
item-titl
e {
width: 110px;
width: 110px;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
.icon {
.
title-
icon {
color: #0081f0;
color: #0081f0;
margin-right: 6px;
margin-right: 6px;
}
}
.title-name {
color: #333333;
}
}
}
.dep-info {
.dep-info {
width: 128px;
width: 128px;
...
@@ -43,8 +47,7 @@
...
@@ -43,8 +47,7 @@
.right-list {
.right-list {
width: 50%;
width: 50%;
border: 1px solid #e8e8e8;
border: 1px solid #e8e8e8;
overflow-y: scroll;
overflow-x: hidden;
.header-line {
.header-line {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
...
@@ -60,19 +63,25 @@
...
@@ -60,19 +63,25 @@
}
}
}
}
.data-body {
.data-body {
overflow-y: scroll;
overflow-x: hidden;
max-height: 370px;
.selected-item {
.selected-item {
padding: 12px 12px 12px 16px;
padding: 12px 12px 12px 16px;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
.item-
nam
e {
.item-
titl
e {
width: 80%;
width: 80%;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
.icon {
.
title-
icon {
color: #0081f0;
color: #0081f0;
margin-right: 6px;
margin-right: 6px;
}
}
.title-name {
color: #333333;
}
}
}
.clear-icon {
.clear-icon {
font-size: 16px;
font-size: 16px;
...
...
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