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 0a4cd5f2
authored
Aug 30, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create
1 parent
dfac7c4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
5 deletions
src/views/role/index.vue
src/views/role/index.vue
View file @
0a4cd5f
...
@@ -4,11 +4,17 @@
...
@@ -4,11 +4,17 @@
<div
class=
"default-style role-header"
>
<div
class=
"default-style role-header"
>
<gl-input
class=
"role-input"
placeholder=
"请输入角色名称"
v-model=
"roleName"
clearable
></gl-input>
<gl-input
class=
"role-input"
placeholder=
"请输入角色名称"
v-model=
"roleName"
clearable
></gl-input>
<gl-button
type=
"primary"
@
click=
"findRoleName"
>
搜索
</gl-button>
<gl-button
type=
"primary"
@
click=
"findRoleName"
>
搜索
</gl-button>
<gl-button
class=
"create-button"
size=
"small"
@
click=
"createRole"
>
创建
</gl-button>
</div>
</div>
<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-table
:table=
"roleData"
></gl-table>
<gl-table
:table=
"roleData"
></gl-table>
<gl-dropdown>
<span
class=
"gl-dropdown"
>
{{
page
}}
<i
class=
"gl-icon-arrow-down gl-icon--right"
></i>
</span>
</gl-dropdown>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -19,6 +25,8 @@ export default {
...
@@ -19,6 +25,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
roleName
:
''
,
roleName
:
''
,
page
:
'10'
,
pageList
:
''
,
roleData
:
{
roleData
:
{
data
:
[{
data
:
[{
id
:
'1032'
,
id
:
'1032'
,
...
@@ -26,6 +34,36 @@ export default {
...
@@ -26,6 +34,36 @@ export default {
department
:
'研发中心-网络软件部'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1033'
,
name
:
'运营平台'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1034'
,
name
:
'精品车主'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1035'
,
name
:
'云商分润'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1036'
,
name
:
'营销系统'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
}],
}],
column
:
[{
column
:
[{
label
:
'序号'
,
label
:
'序号'
,
...
@@ -42,10 +80,16 @@ export default {
...
@@ -42,10 +80,16 @@ export default {
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createTime'
prop
:
'createTime'
},
{
label
:
'操作'
,
prop
:
'operation'
}]
}]
}
}
}
}
},
},
created
()
{
console
.
log
(
this
.
roleData
.
data
.
length
)
},
methods
:
{
methods
:
{
findRoleName
()
{
findRoleName
()
{
this
.
roleName
=
''
this
.
roleName
=
''
...
@@ -67,19 +111,18 @@ export default {
...
@@ -67,19 +111,18 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.default-style
{
.default-style
{
position
:
relative
;
padding
:
0px
25px
;
padding
:
0px
25px
;
}
}
.role-header
{
.role-header
{
position
:
relative
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.role-input
{
.role-input
{
width
:
40%
;
width
:
250px
;
margin-right
:
5px
;
}
}
.create-button
{
.create-button
{
position
:
absolute
;
position
:
absolute
;
right
:
25px
;
right
:
25px
;
bottom
:
0
px
;
top
:
-56
px
;
}
}
</
style
>
</
style
>
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