Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 65288b91
authored
Aug 31, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create
1 parent
f754beb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
src/styles/role-user-common.scss
src/views/role/index.vue
src/views/user/index.vue
src/styles/role-user-common.scss
View file @
65288b9
...
@@ -12,4 +12,10 @@
...
@@ -12,4 +12,10 @@
position
:
absolute
;
position
:
absolute
;
right
:
25px
;
right
:
25px
;
top
:
-56px
;
top
:
-56px
;
}
.m-rl8
{
margin
:
0
8px
;
}
.w-75
{
width
:
75px
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/role/index.vue
View file @
65288b9
...
@@ -13,8 +13,15 @@
...
@@ -13,8 +13,15 @@
</div>
</div>
<div>
<div>
<label>
显示
<label>
显示
<!--
<gl-dropdown>
{{
showNumber
}}
</gl-dropdown>
-->
<gl-dropdown
split-button
size=
"small"
class=
"m-rl8"
@
command=
"changeShowNumber"
>
条
{{
showNumber
}}
<gl-dropdown-menu
slot=
"dropdown"
class=
"w-75"
>
<gl-dropdown-item
command=
"10"
>
10
</gl-dropdown-item>
<gl-dropdown-item
command=
"20"
>
20
</gl-dropdown-item>
<gl-dropdown-item
command=
"30"
>
30
</gl-dropdown-item>
<gl-dropdown-item
command=
"40"
>
40
</gl-dropdown-item>
</gl-dropdown-menu>
</gl-dropdown>
条
</label>
</label>
<label>
,
共
{{
total
}}
条
</label>
<label>
,
共
{{
total
}}
条
</label>
</div>
</div>
...
@@ -29,7 +36,6 @@ export default {
...
@@ -29,7 +36,6 @@ export default {
return
{
return
{
roleName
:
''
,
roleName
:
''
,
showNumber
:
10
,
showNumber
:
10
,
showNumberList
:
[],
total
:
0
,
total
:
0
,
roleData
:
{
roleData
:
{
border
:
true
,
border
:
true
,
...
@@ -151,6 +157,9 @@ export default {
...
@@ -151,6 +157,9 @@ export default {
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
message
(
''
,
'取消删除'
)
this
.
message
(
''
,
'取消删除'
)
})
})
},
changeShowNumber
(
command
)
{
this
.
showNumber
=
command
}
}
}
}
}
}
...
...
src/views/user/index.vue
View file @
65288b9
...
@@ -16,8 +16,15 @@
...
@@ -16,8 +16,15 @@
</div>
</div>
<div>
<div>
<label>
显示
<label>
显示
<!--
<gl-dropdown>
{{
showNumber
}}
</gl-dropdown>
-->
<gl-dropdown
split-button
size=
"small"
class=
"m-rl8"
@
command=
"changeShowNumber"
>
条
{{
showNumber
}}
<gl-dropdown-menu
slot=
"dropdown"
class=
"w-75"
>
<gl-dropdown-item
command=
"10"
>
10
</gl-dropdown-item>
<gl-dropdown-item
command=
"20"
>
20
</gl-dropdown-item>
<gl-dropdown-item
command=
"30"
>
30
</gl-dropdown-item>
<gl-dropdown-item
command=
"40"
>
40
</gl-dropdown-item>
</gl-dropdown-menu>
</gl-dropdown>
条
</label>
</label>
<label>
,
共
{{
total
}}
条
</label>
<label>
,
共
{{
total
}}
条
</label>
</div>
</div>
...
@@ -150,6 +157,9 @@ export default {
...
@@ -150,6 +157,9 @@ export default {
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
message
(
''
,
'取消删除'
)
this
.
message
(
''
,
'取消删除'
)
})
})
},
changeShowNumber
(
command
)
{
this
.
showNumber
=
command
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment