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
4014a5ba
Commit
4014a5ba
authored
Aug 10, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:员工下没有学员需禁用编辑
parent
1ef4bcbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
src/modules/college-manage/EmployeeManage.tsx
+7
-3
src/modules/college-manage/components/DepartMentTabCon.jsx
+13
-3
No files found.
src/modules/college-manage/EmployeeManage.tsx
View file @
4014a5ba
...
...
@@ -209,9 +209,13 @@ function EmployeeManage() {
<
div
className=
"no-operate"
>
-
</
div
>
)
:
(
<
div
className=
"operation"
>
<
span
className=
"edit"
onClick=
{
()
=>
handleEditEmployee
(
record
)
}
>
编辑
</
span
>
{
record
.
depNameList
&&
(
record
.
depNameList
.
length
>
0
&&
<
span
className=
"edit"
onClick=
{
()
=>
handleEditEmployee
(
record
)
}
>
编辑
</
span
>
)
}
<
span
className=
"divider-line"
>
{
" | "
}
</
span
>
<
span
className=
"delete"
...
...
src/modules/college-manage/components/DepartMentTabCon.jsx
View file @
4014a5ba
...
...
@@ -36,6 +36,7 @@ function DepartMentTabCon(props) {
title
:
"学员"
,
dataIndex
:
"nickName"
,
width
:
220
,
fixed
:
'left'
,
render
:
(
val
,
item
)
=>
{
return
(
<
div
>
...
...
@@ -74,6 +75,7 @@ function DepartMentTabCon(props) {
},
{
title
:
"岗位"
,
width
:
"15%"
,
dataIndex
:
"depNameList"
,
render
:
(
val
,
record
)
=>
{
if
(
!
record
.
depNameList
){
...
...
@@ -94,6 +96,7 @@ function DepartMentTabCon(props) {
{
title
:
"手机号"
,
dataIndex
:
"phone"
,
width
:
"15%"
,
render
:
(
val
,
item
)
=>
{
if
(
!
val
){
return
<
span
>
-
</
span
>
...
...
@@ -105,6 +108,7 @@ function DepartMentTabCon(props) {
{
title
:
"注册时间"
,
dataIndex
:
"created"
,
width
:
"15%"
,
render
:
(
val
,
item
)
=>
{
return
<
div
>
{
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
</
div
>;
},
...
...
@@ -113,6 +117,8 @@ function DepartMentTabCon(props) {
title
:
"操作"
,
key
:
"operate"
,
dataIndex
:
"operate"
,
width
:
"15%"
,
fixed
:
'right'
,
render
:
(
val
,
item
)
=>
{
return
(
<
div
className=
"operate"
>
...
...
@@ -247,7 +253,11 @@ function DepartMentTabCon(props) {
params
.
userType
=
'WORK_WE_CHAT'
;
}
StoreService
.
delDepartmentUser
(
params
).
then
((
res
)
=>
{
message
.
success
(
`删除成功`
);
if
(
props
.
currentTab
===
"departMentTab"
){
message
.
success
(
`删除成功`
);
}
else
{
message
.
success
(
`移出成功`
);
}
getUserList
();
Bus
.
trigger
(
"changeTreeData"
,{
treeType
:
props
.
currentTab
});
});
...
...
@@ -377,11 +387,11 @@ function DepartMentTabCon(props) {
image
:
college
,
description
:
"暂无数据"
,
}
}
scroll=
{
{
x
:
600
}
}
bordered
size=
"middle"
pagination=
{
false
}
columns=
{
columns
}
scroll=
{
{
x
:
800
}
}
dataSource=
{
userListdata
}
rowKey=
{
(
record
)
=>
record
.
userId
}
rowSelection=
{
{
...
...
@@ -399,7 +409,7 @@ function DepartMentTabCon(props) {
_list
=
_
.
reject
(
selectUser
,
(
item
)
=>
_
.
find
(
changeRows
,
(
data
)
=>
data
.
userId
===
item
.
userId
));
}
if
(
_list
.
length
>
50
)
{
message
.
warning
(
'无法继续选择,
一个任务最多关联50个课程
'
);
message
.
warning
(
'无法继续选择,
最多选择50个
'
);
const
extraLength
=
_list
.
length
-
50
;
_list
.
splice
(
_list
.
length
-
extraLength
,
extraLength
);
}
...
...
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