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
7ba16ff2
Commit
7ba16ff2
authored
Aug 10, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理删除的提示
parent
4c65917e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
11 deletions
+45
-11
src/modules/college-manage/components/DepartMentTabCon.jsx
+28
-3
src/modules/college-manage/components/LeftStructureTree.jsx
+11
-8
src/modules/college-manage/modal/NewChooseMembersModal.jsx
+6
-0
No files found.
src/modules/college-manage/components/DepartMentTabCon.jsx
View file @
7ba16ff2
...
@@ -181,6 +181,9 @@ function DepartMentTabCon(props) {
...
@@ -181,6 +181,9 @@ function DepartMentTabCon(props) {
function
delUser
(
type
,
userId
){
function
delUser
(
type
,
userId
){
let
idList
=
[];
let
idList
=
[];
let
title
=
''
;
let
content
=
''
;
let
okText
=
''
;
if
(
type
===
'single'
){
if
(
type
===
'single'
){
idList
.
push
(
userId
);
idList
.
push
(
userId
);
}
}
...
@@ -191,13 +194,35 @@ function DepartMentTabCon(props) {
...
@@ -191,13 +194,35 @@ function DepartMentTabCon(props) {
message
.
warning
(
'请先选择要删除的学员'
)
message
.
warning
(
'请先选择要删除的学员'
)
return
;
return
;
}
}
switch
(
props
.
currentTab
){
case
'departMentTab'
:
title
=
'确定要删除学员吗?'
;
content
=
'删除后,该学员将从员工列表中删除,且看不到该学院用户端。'
;
okText
=
'删除'
;
break
;
case
'postGrouptab'
:
title
=
'确定要移出该学员吗?'
;
content
=
'移出后,该学员将从岗位列表中移出。'
;
okText
=
'移出'
;
break
;
case
'customGroupTab'
:
title
=
'确定要移出该学员吗?'
;
content
=
'移出后,该学员将从分组列表中移出。'
;
okText
=
'移出'
;
break
;
default
:
title
=
'确定要删除学员吗?'
;
content
=
'删除后,该学员将从员工列表中删除,且看不到该学院用户端。'
;
okText
=
'删除'
;
break
;
}
return
confirm
({
return
confirm
({
title
:
"确定要删除学员吗?"
,
title
,
content
:
"删除后,该学员将从员工列表中删除,且看不到该学院用户端。"
,
content
,
icon
:
(
icon
:
(
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>
),
),
okText
:
"删除"
,
okText
,
okType
:
"danger"
,
okType
:
"danger"
,
cancelText
:
"取消"
,
cancelText
:
"取消"
,
onOk
:
()
=>
{
onOk
:
()
=>
{
...
...
src/modules/college-manage/components/LeftStructureTree.jsx
View file @
7ba16ff2
...
@@ -40,6 +40,8 @@ function LeftStructureTree(props) {
...
@@ -40,6 +40,8 @@ function LeftStructureTree(props) {
setSelectedKeys
(
_defaultSelectedKeys
);
setSelectedKeys
(
_defaultSelectedKeys
);
props
.
onChangeSelectDep
(
res
[
0
])
props
.
onChangeSelectDep
(
res
[
0
])
props
.
searchUserList
(
res
[
0
],
treeType
,
1
);
props
.
searchUserList
(
res
[
0
],
treeType
,
1
);
}
else
{
props
.
searchUserList
({
id
:
null
},
treeType
,
1
);
}
}
});
});
},[
props
.
treeType
]);
},[
props
.
treeType
]);
...
@@ -105,7 +107,8 @@ function LeftStructureTree(props) {
...
@@ -105,7 +107,8 @@ function LeftStructureTree(props) {
setOpen
(
false
);
setOpen
(
false
);
setQueryName
(
value
);
setQueryName
(
value
);
// console.log('option',option);
// console.log('option',option);
// setSelctQueryName(option)
console
.
log
(
'_option'
,
option
);
// setSelctQueryName(option.label.props.children[0].props.children.props);
props
.
searchUserList
({
queryName
:
value
},
treeType
,
1
);
props
.
searchUserList
({
queryName
:
value
},
treeType
,
1
);
}
}
...
@@ -565,17 +568,17 @@ function LeftStructureTree(props) {
...
@@ -565,17 +568,17 @@ function LeftStructureTree(props) {
/>
/>
:
:
<
div
>
<
div
>
{
(
props
.
treeType
===
'departMentTab'
)
&&
{
/* { (props.treeType==='departMentTab') && */
}
<
div
>
<
div
>
{
option
.
name
?
{
selctQueryName
.
type
===
'userName'
?
<
WWOpenDataCom
type=
"
departmentName"
openid=
{
option
.
name
}
/>
<
WWOpenDataCom
type=
"
userName"
openid=
{
selctQueryName
.
openid
}
/>
:
:
<
WWOpenDataCom
type=
"
userName"
openid=
{
option
.
userName
}
/>
<
WWOpenDataCom
type=
"
departmentName"
openid=
{
selctQueryName
.
openid
}
/>
}
}
</
div
>
</
div
>
}
{
/* } */
}
{
(
props
.
treeType
===
'postGrouptab'
||
props
.
treeType
===
'customGroupTab'
)
&&
{
/* {
(props.treeType==='postGrouptab' || props.treeType=== 'customGroupTab') &&
<div>
<div>
{ option.name?
{ option.name?
<span>{option.name}</span>
<span>{option.name}</span>
...
@@ -584,7 +587,7 @@ function LeftStructureTree(props) {
...
@@ -584,7 +587,7 @@ function LeftStructureTree(props) {
}
}
</div>
</div>
}
}
*/
}
</
div
>
</
div
>
}
}
...
...
src/modules/college-manage/modal/NewChooseMembersModal.jsx
View file @
7ba16ff2
...
@@ -239,6 +239,12 @@ class NewChooseMembersModal extends React.Component {
...
@@ -239,6 +239,12 @@ class NewChooseMembersModal extends React.Component {
userId
:
User
.
getUserId
(),
userId
:
User
.
getUserId
(),
whetherCount
:
false
whetherCount
:
false
}
}
if
(
this
.
props
.
addDepType
){
params
.
nowDepType
=
this
.
props
.
addDepType
;
}
if
(
this
.
props
.
selectDep
){
params
.
nowDepType
=
this
.
props
.
selectDep
.
id
;
}
StoreService
.
getDepartmentUser
(
params
).
then
((
res
)
=>
{
StoreService
.
getDepartmentUser
(
params
).
then
((
res
)
=>
{
const
{
result
=
{}}
=
res
;
const
{
result
=
{}}
=
res
;
this
.
setState
({
this
.
setState
({
...
...
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