Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
db69b5ac
Commit
db69b5ac
authored
Dec 10, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据角色筛选帐户
parent
ee08f55c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
index.vue
src/components/shop/index.vue
+0
-1
admin.vue
src/components/system/admin.vue
+18
-4
No files found.
src/components/shop/index.vue
View file @
db69b5ac
...
...
@@ -364,7 +364,6 @@
}
});
this
.
userList
=
res
.
list
;
console
.
log
(
this
.
userList
)
this
.
total
=
res
.
total
})
},
...
...
src/components/system/admin.vue
View file @
db69b5ac
...
...
@@ -15,14 +15,23 @@
<el-option
label=
"冻结"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"角色"
>
<el-select
v-model=
"searchFrom.role_id"
placeholder=
"请选择用户等级"
@
change=
"getList"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"超级管理员"
value=
"超级管理员"
></el-option>
<el-option
label=
"管理员"
value=
"管理员"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item>
<el-button
type=
"primary"
plain
@
click=
"getList"
>
搜索
</el-button>
</el-form-item>
</el-col>
<el-col
:span=
"
4
"
:offset=
"8"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
v-if=
"!$store.state.readonly"
>
新增角色
</el-button>
<el-col
:span=
"
16
"
:offset=
"8"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right
;margin-bottom:10px;
"
v-if=
"!$store.state.readonly"
>
新增角色
</el-button>
</el-col>
</el-row>
</el-form>
...
...
@@ -197,7 +206,8 @@
adminList
:[],
searchFrom
:{
user_name
:
''
,
status
:
''
status
:
''
,
role_id
:
""
},
dialog
:{
dialogType
:
0
,
...
...
@@ -267,8 +277,12 @@
if
(
this
.
searchFrom
.
status
!==
''
){
json
.
status
=
this
.
searchFrom
.
status
}
if
(
this
.
searchFrom
.
role_id
!==
''
){
json
.
role_id
=
this
.
searchFrom
.
role_id
}
// console.log(json) //管理员筛选查看
getAdminListApi
(
json
).
then
(
res
=>
{
this
.
adminList
=
res
.
list
this
.
adminList
=
res
.
list
;
this
.
total
=
Number
(
res
.
total
)
this
.
$store
.
commit
(
'mainCanShow'
)
})
...
...
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