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
c31afee9
Commit
c31afee9
authored
Sep 06, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统管理bug
parent
5933ad1f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
23 deletions
+62
-23
admin.vue
src/components/system/admin.vue
+25
-11
banner.vue
src/components/system/banner.vue
+9
-2
menu.vue
src/components/system/menu.vue
+9
-2
role.vue
src/components/system/role.vue
+9
-2
sysConfig.vue
src/components/system/sysConfig.vue
+10
-6
No files found.
src/components/system/admin.vue
View file @
c31afee9
<
template
>
<div
class=
"admin"
>
<div
class=
"head"
>
<el-button
@
click=
"add"
plain
type=
"success"
>
新增角色
</el-button>
<div
class=
"head
clear-both
"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
>
新增角色
</el-button>
</div>
<el-table
:data=
"adminList"
...
...
@@ -27,15 +27,22 @@
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"warning"
plain
@
click=
"editPW(scope.row)"
>
修改密码
</el-button>
<el-button
size=
"mini"
type=
"danger"
plain
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-popover
placement=
"top"
width=
"280"
>
<div
style=
"text-align: center"
>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"warning"
plain
@
click=
"editPW(scope.row)"
>
修改密码
</el-button>
<el-button
size=
"mini"
type=
"danger"
plain
@
click=
"del(scope.row)"
>
删除
</el-button>
</div>
<el-button
slot=
"reference"
size=
"mini"
type=
"text"
>
操作
</el-button>
</el-popover>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -318,4 +325,11 @@
padding-top: 20px
}
}
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</
style
>
src/components/system/banner.vue
View file @
c31afee9
<
template
>
<div
class=
"banner"
v-loading=
"loading"
>
<div
class=
"head"
>
<el-button
@
click=
"add"
plain
type=
"success"
>
新增banner
</el-button>
<div
class=
"head
clear-both
"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
>
新增banner
</el-button>
</div>
<el-table
:data=
"bannerList"
...
...
@@ -270,6 +270,13 @@
.short-banner {
width: 50px;
}
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</
style
>
<
style
>
.disabled
.el-upload--picture-card
{
...
...
src/components/system/menu.vue
View file @
c31afee9
<
template
>
<div
class=
"menu"
>
<div
class=
"head"
>
<el-button
@
click=
"add"
plain
type=
"success"
>
新增菜单
</el-button>
<div
class=
"head
clear-both
"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
>
新增菜单
</el-button>
</div>
<el-table
:data=
"menuList"
...
...
@@ -177,4 +177,11 @@
padding-top: 20px
}
}
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</
style
>
src/components/system/role.vue
View file @
c31afee9
<
template
>
<div
class=
"role"
>
<div
class=
"head"
>
<el-button
@
click=
"add"
plain
type=
"success"
>
新增角色
</el-button>
<div
class=
"head
clear-both
"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
>
新增角色
</el-button>
</div>
<el-table
:data=
"roleList"
...
...
@@ -202,4 +202,11 @@
padding-top: 20px
}
}
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</
style
>
src/components/system/sysConfig.vue
View file @
c31afee9
<
template
>
<div>
<el-row
type=
"flex"
class=
"add-btn"
justify=
"end"
>
<el-col
:span=
"6"
>
<el-button
type=
"success"
plain
@
click=
"add"
>
添加配置
</el-button>
</el-col>
</el-row>
<div
class=
"sys"
>
<div
class=
"clear-both top"
>
<el-button
type=
"success"
plain
@
click=
"add"
style=
"float: right"
>
添加配置
</el-button>
</div>
<el-table
:data=
"list"
style=
"width: 100%"
>
...
...
@@ -124,7 +122,13 @@
<
style
scoped
lang=
"less"
>
@import "../../util/public";
.sys {
padding: 10px;
}
.add-btn {
margin: 10px 0;
}
.top {
padding:5px;
}
</
style
>
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