Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
abae9fe6
Commit
abae9fe6
authored
Oct 14, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve: 新建人员联想优化
parent
1ca108a2
Pipeline
#3750
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
employee-create.vue
pages/workpoint/employees/employee-create.vue
+18
-12
No files found.
pages/workpoint/employees/employee-create.vue
View file @
abae9fe6
...
...
@@ -88,7 +88,7 @@ export default {
loadingMember
:
false
,
loadStatus
:
'loading'
,
current
:
1
,
size
:
10
0
,
size
:
2
0
,
employees
:
[],
showMember
:
false
,
platform
:
''
,
...
...
@@ -320,7 +320,7 @@ export default {
if
(
this
.
loadStatus
!=
'loadmore'
)
return
;
this
.
current
+=
1
;
this
.
loadStatus
==
'loading'
;
this
.
loadMember
();
this
.
getProjectMembersKnow
();
},
handleBlur
()
{
},
...
...
@@ -336,6 +336,7 @@ export default {
this
.
reloadMemberList
()
},
handleInput
(
value
)
{
this
.
form
.
memberName
=
value
this
.
reloadMemberList
()
},
reloadMemberList
()
{
...
...
@@ -344,26 +345,31 @@ export default {
this
.
getProjectMembersKnow
()
},
getProjectMembersKnow
()
{
var
keyword
=
this
.
form
.
memberName
||
''
if
(
this
.
current
==
1
)
{
this
.
loadingMember
=
true
;
}
getProjectMembersKnow
({
current
:
this
.
current
,
keyword
:
this
.
form
.
memberName
||
''
,
keyword
:
keyword
,
excludeProjectId
:
this
.
projectId
,
size
:
this
.
size
,
})
.
then
(
res
=>
{
let
data
=
res
.
data
;
if
(
this
.
current
==
1
)
{
this
.
employees
=
[];
}
if
(
data
.
records
)
{
this
.
employees
.
push
(...
data
.
records
);
this
.
loadStatus
=
data
.
total
>
this
.
employees
.
length
?
'loadmore'
:
'nomore'
;
}
else
{
this
.
loadStatus
=
'nomore'
if
(
keyword
==
this
.
form
.
memberName
)
{
let
data
=
res
.
data
;
if
(
this
.
current
==
1
)
{
this
.
employees
=
[];
}
if
(
data
.
records
)
{
this
.
employees
.
push
(...
data
.
records
);
this
.
loadStatus
=
data
.
total
>
this
.
employees
.
length
?
'loadmore'
:
'nomore'
;
}
else
{
this
.
loadStatus
=
'nomore'
}
}
this
.
loadingMember
=
false
;
})
.
catch
(
err
=>
{
...
...
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