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 2b64067a
authored
Aug 31, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create
1 parent
0a4cd5f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
src/App.vue
src/views/role/index.vue
src/App.vue
View file @
2b64067
<
template
>
<
template
>
<div
id=
"app"
class=
"
div-style
"
>
<div
id=
"app"
class=
"
outsider
"
>
<router-view></router-view>
<router-view></router-view>
</div>
</div>
</
template
>
</
template
>
...
@@ -12,9 +12,9 @@ export default {
...
@@ -12,9 +12,9 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.
div-style
{
.
outsider
{
background-color
:
#FFF
;
background-color
:
#FFF
;
padding
:
20px
0px
40px
0px
;
padding
:
20px
0px
40px
0px
;
margin
:
20px
20px
;
/* margin: 20px 20px; */
}
}
</
style
>
</
style
>
src/views/role/index.vue
View file @
2b64067
...
@@ -8,13 +8,15 @@
...
@@ -8,13 +8,15 @@
<hr
style=
"height:1px;border:0px;background-color:#e7eaec"
>
<hr
style=
"height:1px;border:0px;background-color:#e7eaec"
>
<div
class=
"default-style"
>
<div
class=
"default-style"
>
<gl-button
class=
"create-button"
size=
"small"
@
click=
"createRole"
>
创建
</gl-button>
<gl-button
class=
"create-button"
size=
"small"
@
click=
"createRole"
>
创建
</gl-button>
<div
class=
"dataTables-scroll"
>
<gl-table
:table=
"roleData"
></gl-table>
<gl-table
:table=
"roleData"
></gl-table>
<gl-dropdown>
</div>
<span
class=
"gl-dropdown"
>
<div>
{{
page
}}
<label>
显示
<i
class=
"gl-icon-arrow-down gl-icon--right"
></i>
<gl-dropdown>
{{
showNumber
}}
</gl-dropdown>
条
</span>
</label>
</gl-dropdown>
<label>
,
共
{{
total
}}
条
</label>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -25,9 +27,11 @@ export default {
...
@@ -25,9 +27,11 @@ export default {
data
()
{
data
()
{
return
{
return
{
roleName
:
''
,
roleName
:
''
,
page
:
'10'
,
showNumber
:
10
,
pageList
:
''
,
showNumberList
:
[],
total
:
0
,
roleData
:
{
roleData
:
{
border
:
true
,
data
:
[{
data
:
[{
id
:
'1032'
,
id
:
'1032'
,
name
:
'好车主'
,
name
:
'好车主'
,
...
@@ -87,8 +91,8 @@ export default {
...
@@ -87,8 +91,8 @@ export default {
}
}
}
}
},
},
crea
ted
()
{
moun
ted
()
{
console
.
log
(
this
.
roleData
.
data
.
length
)
this
.
total
=
this
.
roleData
.
data
.
length
},
},
methods
:
{
methods
:
{
findRoleName
()
{
findRoleName
()
{
...
@@ -117,6 +121,9 @@ export default {
...
@@ -117,6 +121,9 @@ export default {
.role-header
{
.role-header
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.dataTables-scroll
{
margin-bottom
:
8px
;
}
.role-input
{
.role-input
{
width
:
250px
;
width
:
250px
;
}
}
...
...
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