Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
ecd30cde
Commit
ecd30cde
authored
Sep 20, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:修改门户用户列表
parent
00b86f6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/userManagement.vue
...tformIsSet/components/permissionsModel/userManagement.vue
+17
-7
No files found.
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/userManagement.vue
View file @
ecd30cde
...
...
@@ -98,6 +98,7 @@
<
script
>
import
{
userList
,
userDelete
}
from
"
@/api/userManagement.js
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
addUser
from
"
./components/addUser.vue
"
;
import
EditUser
from
"
./components/EditUser.vue
"
;
import
EditPwd
from
"
./components/EditPwd.vue
"
;
...
...
@@ -174,8 +175,13 @@ export default {
roleId
:
undefined
,
searchVal
:
undefined
,
},
loginNames
:
[
"
admin
"
,
"
administrator1
"
,
"
Administrator
"
],
};
},
computed
:
{
...
mapGetters
(
"
user
"
,
[
"
userData
"
]),
},
created
()
{
this
.
getUserList
();
},
...
...
@@ -207,11 +213,6 @@ export default {
realName
=
"
%
"
+
this
.
userform
.
searchVal
+
"
%
"
;
}
}
// if (/^[\u4e00-\u9fa5]+$/.test(this.userform.searchVal)) {
// realName = "%" + this.userform.searchVal + "%";
// } else if (/^[\d]+$/.test(this.userform.searchVal)) {
// mobile = "%" + this.userform.searchVal + "%";
// }
let
res
=
await
userList
({
page
:
this
.
tablePagination
.
current
,
size
:
this
.
tablePagination
.
pageSize
,
...
...
@@ -225,9 +226,18 @@ export default {
this
.
tablePagination
.
current
-=
1
;
this
.
getUserList
();
}
this
.
tablePagination
.
total
=
total
;
this
.
userDict
=
this
.
transverter
(
roleId
);
this
.
tableSourceData
=
data
;
let
{
loginName
}
=
this
.
userData
;
if
(
this
.
loginNames
.
includes
(
loginName
))
{
this
.
tableSourceData
=
data
;
this
.
tablePagination
.
total
=
total
;
}
else
{
this
.
tableSourceData
=
data
.
filter
((
v
)
=>
{
return
!
this
.
loginNames
.
includes
(
v
.
loginName
);
});
this
.
tablePagination
.
total
=
total
-
3
;
}
this
.
tableLoading
=
false
;
},
...
...
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