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
1420ed47
Commit
1420ed47
authored
Apr 09, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:数据接入
parent
75994581
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
src/modules/college-manage/EmployeeManage.tsx
+12
-10
src/modules/college-manage/modal/ChooseMembersModal.jsx
+1
-14
No files found.
src/modules/college-manage/EmployeeManage.tsx
View file @
1420ed47
...
...
@@ -390,16 +390,18 @@ function EmployeeManage() {
</
div
>
</
div
>
{
model
}
<
ChooseMembersModal
isOpen=
{
employeeModal
}
type=
"USER"
handleChooseModal=
{
(
bool
:
any
)
=>
{
setEmployeeModal
(
false
)
if
(
bool
)
{
getEmployeeList
();
}
}
}
/>
{
employeeModal
&&
<
ChooseMembersModal
isOpen=
{
employeeModal
}
type=
"USER"
handleChooseModal=
{
(
bool
:
any
)
=>
{
setEmployeeModal
(
false
)
if
(
bool
)
{
getEmployeeList
();
}
}
}
/>
}
</
div
>
);
}
...
...
src/modules/college-manage/modal/ChooseMembersModal.jsx
View file @
1420ed47
...
...
@@ -18,7 +18,7 @@ class ChooseMembersModal extends React.Component {
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
isOpen
:
false
,
isOpen
:
props
.
isOpen
,
allUserList
:
[],
// 所有成员列表
selectUserList
:
[],
// 已选则成员
temporaryList
:
[],
// 临时用户成员列表(搜索时使用)
...
...
@@ -40,19 +40,6 @@ class ChooseMembersModal extends React.Component {
this
.
getUserAuthority
();
}
componentWillReceiveProps
(
nextProps
)
{
if
(
nextProps
.
isOpen
!==
this
.
props
.
isOpen
)
{
this
.
setState
({
isOpen
:
nextProps
.
isOpen
,
selectedRowKeys
:
[],
allUserList
:
[],
selectUserList
:
[],
temporaryList
:
[],
searchKey
:
null
,
})
}
}
// 获取对应文件相关成员
getUserAuthority
=
(
searchKey
=
''
)
=>
{
const
{
query
}
=
this
.
state
;
...
...
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