Commit c31afee9 authored by 王's avatar

系统管理bug

parent 5933ad1f
<template> <template>
<div class="admin"> <div class="admin">
<div class="head"> <div class="head clear-both">
<el-button @click="add" plain type="success">新增角色</el-button> <el-button @click="add" plain type="success" style="float: right">新增角色</el-button>
</div> </div>
<el-table <el-table
:data="adminList" :data="adminList"
...@@ -27,15 +27,22 @@ ...@@ -27,15 +27,22 @@
<el-table-column <el-table-column
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" plain type="primary" @click="edit(scope.row)"> <el-popover
编辑 placement="top"
</el-button> width="280">
<el-button size="mini" type="warning" plain @click="editPW(scope.row)"> <div style="text-align: center">
修改密码 <el-button size="mini" plain type="primary" @click="edit(scope.row)">
</el-button> 编辑
<el-button size="mini" type="danger" plain @click="del(scope.row)"> </el-button>
删除 <el-button size="mini" type="warning" plain @click="editPW(scope.row)">
</el-button> 修改密码
</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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -318,4 +325,11 @@ ...@@ -318,4 +325,11 @@
padding-top: 20px padding-top: 20px
} }
} }
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</style> </style>
<template> <template>
<div class="banner" v-loading="loading"> <div class="banner" v-loading="loading">
<div class="head"> <div class="head clear-both">
<el-button @click="add" plain type="success">新增banner</el-button> <el-button @click="add" plain type="success" style="float: right">新增banner</el-button>
</div> </div>
<el-table <el-table
:data="bannerList" :data="bannerList"
...@@ -270,6 +270,13 @@ ...@@ -270,6 +270,13 @@
.short-banner { .short-banner {
width: 50px; width: 50px;
} }
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</style> </style>
<style> <style>
.disabled .el-upload--picture-card { .disabled .el-upload--picture-card {
......
<template> <template>
<div class="menu"> <div class="menu">
<div class="head"> <div class="head clear-both">
<el-button @click="add" plain type="success">新增菜单</el-button> <el-button @click="add" plain type="success" style="float: right">新增菜单</el-button>
</div> </div>
<el-table <el-table
:data="menuList" :data="menuList"
...@@ -177,4 +177,11 @@ ...@@ -177,4 +177,11 @@
padding-top: 20px padding-top: 20px
} }
} }
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</style> </style>
<template> <template>
<div class="role"> <div class="role">
<div class="head"> <div class="head clear-both">
<el-button @click="add" plain type="success">新增角色</el-button> <el-button @click="add" plain type="success" style="float: right">新增角色</el-button>
</div> </div>
<el-table <el-table
:data="roleList" :data="roleList"
...@@ -202,4 +202,11 @@ ...@@ -202,4 +202,11 @@
padding-top: 20px padding-top: 20px
} }
} }
.clear-both{
&:after{
content: '';
display: block;
clear: both;
}
}
</style> </style>
<template> <template>
<div> <div class="sys">
<el-row type="flex" class="add-btn" justify="end"> <div class="clear-both top">
<el-col :span="6"> <el-button type="success" plain @click="add" style="float: right">添加配置</el-button>
<el-button type="success" plain @click="add">添加配置</el-button> </div>
</el-col>
</el-row>
<el-table <el-table
:data="list" :data="list"
style="width: 100%"> style="width: 100%">
...@@ -124,7 +122,13 @@ ...@@ -124,7 +122,13 @@
<style scoped lang="less"> <style scoped lang="less">
@import "../../util/public"; @import "../../util/public";
.sys {
padding: 10px;
}
.add-btn { .add-btn {
margin: 10px 0; margin: 10px 0;
} }
.top {
padding:5px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment