|
@@ -1,8 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-table ref="multipleTable" border :data="tableData" tooltip-effect="dark"
|
|
|
- :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" style="width: 100%"
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
+ <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" :header-cell-style="{ textAlign: 'center' }"
|
|
|
+ :cell-style="{ textAlign: 'center' }" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="50">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="rolename" label="角色名">
|
|
@@ -21,19 +20,17 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="operation" label="操作">
|
|
|
- <el-button size="mini" type="text">编辑</el-button>
|
|
|
- <el-button size="mini" type="text">删除</el-button>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" style="color: #2ea8e6"
|
|
|
+ v-show="scope.row.rolename == null ? false : true" @click="userInfoEdit(scope.row)">编辑</el-button>
|
|
|
+ <el-button size="mini" type="text" style="color: #2ea8e6"
|
|
|
+ v-show="scope.row.rolename == null ? false : true" @click="deleteUser(scope.row)">删除</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div class="bottom">
|
|
|
- <div>
|
|
|
- <checkbox class="checkbox"></checkbox>
|
|
|
- <el-button class="check-cancel" size="mini" type="text" @click="cancleChecked">取消</el-button>
|
|
|
- </div>
|
|
|
- <div class="bottom_button" v-show="show">
|
|
|
- <el-button class="delete" type="text">批量删除</el-button>
|
|
|
- </div>
|
|
|
- <page class="page"></page>
|
|
|
+ <el-button class="delete" type="text">批量删除</el-button>
|
|
|
+ <page class="page" :paginationData="paginationData"></page>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -45,34 +42,49 @@ export default {
|
|
|
components: { checkbox, page },
|
|
|
data() {
|
|
|
return {
|
|
|
+ currentPageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ paginationData: {
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
+ currentPage: 1,
|
|
|
+ pageSizes: [5, 10, 20, 30],
|
|
|
+ total: 0,
|
|
|
+ currentChange: (val) => {
|
|
|
+ this.getTableData(val);
|
|
|
+ },
|
|
|
+ handleSizeChange: (val) => {
|
|
|
+ this.handleSizeChange(val);
|
|
|
+ },
|
|
|
+ },
|
|
|
tableData: [{
|
|
|
rolename: 'admin',
|
|
|
phone_num: '12345678901',
|
|
|
e_mail: 'admin@xxxxx.com',
|
|
|
working_address: '北京电信规划设计院',
|
|
|
- registed_time:'2022-01-01 18:00',
|
|
|
- status:true
|
|
|
+ registed_time: '2022-01-01 18:00',
|
|
|
+ status: true
|
|
|
}, {
|
|
|
rolename: 'admin',
|
|
|
phone_num: '12345678901',
|
|
|
e_mail: 'admin@xxxxx.com',
|
|
|
working_address: '北京电信规划设计院',
|
|
|
- registed_time:'2022-01-01 18:00',
|
|
|
- status:false
|
|
|
+ registed_time: '2022-01-01 18:00',
|
|
|
+ status: false
|
|
|
}, {
|
|
|
rolename: 'admin',
|
|
|
phone_num: '12345678901',
|
|
|
e_mail: 'admin@xxxxx.com',
|
|
|
working_address: '北京电信规划设计院',
|
|
|
- registed_time:'2022-01-01 18:00',
|
|
|
- status:true
|
|
|
- },{
|
|
|
+ registed_time: '2022-01-01 18:00',
|
|
|
+ status: true
|
|
|
+ }, {
|
|
|
rolename: 'admin',
|
|
|
phone_num: '12345678901',
|
|
|
e_mail: 'admin@xxxxx.com',
|
|
|
working_address: '北京电信规划设计院',
|
|
|
- registed_time:'2022-01-01 18:00',
|
|
|
- status:false
|
|
|
+ registed_time: '2022-01-01 18:00',
|
|
|
+ status: false
|
|
|
}],
|
|
|
multipleSelection: [],
|
|
|
show: true
|
|
@@ -84,6 +96,12 @@ export default {
|
|
|
},
|
|
|
handleClick() {
|
|
|
//
|
|
|
+ },
|
|
|
+ getTableData(page){
|
|
|
+
|
|
|
+ },
|
|
|
+ handleSizeChange(){
|
|
|
+ //
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -94,60 +112,75 @@ export default {
|
|
|
padding: 20px;
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
+
|
|
|
.el-tag {
|
|
|
width: 12px;
|
|
|
height: 12px;
|
|
|
border-radius: 100px;
|
|
|
padding: 0;
|
|
|
}
|
|
|
-.bottom {
|
|
|
- position: absolute;
|
|
|
- top: 700px;
|
|
|
- //left: 330px;
|
|
|
- height: 50px;
|
|
|
- width: 87%;
|
|
|
- line-height: 20px;
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
- text-align: center;
|
|
|
|
|
|
- .checkbox {
|
|
|
- position: absolute;
|
|
|
- left: 29px;
|
|
|
- top: 15px;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
+.el-table {
|
|
|
+ position: relative;
|
|
|
+ left: 0;
|
|
|
+ border: 1px solid #f0f2f2;
|
|
|
+ font-size: 0.95rem;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #b2b2b2;
|
|
|
+ background: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
- .check-cancel {
|
|
|
- position: absolute;
|
|
|
- // line-height: 20px;
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- left: 140px;
|
|
|
- top: 10px;
|
|
|
+ /deep/th {
|
|
|
+ background: #f7fbff;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-checkbox {
|
|
|
+ color: #b2b2b2;
|
|
|
+
|
|
|
+ .el-checkbox__input.is-checked+.el-checkbox__label {
|
|
|
+ color: #2ea8e6;
|
|
|
}
|
|
|
|
|
|
- .bottom_button {
|
|
|
- position: absolute;
|
|
|
- left: 200px;
|
|
|
- margin-top: 15px;
|
|
|
+ .el-checkbox__input.is-checked .el-checkbox__inner::after {
|
|
|
+ width: 70%;
|
|
|
+ height: 70%;
|
|
|
+ background: #2ea8e6;
|
|
|
+ border-radius: 0;
|
|
|
+ transform: rotate(0deg) scaleY(1);
|
|
|
+ position: static;
|
|
|
+ // border: 1px solid #8DD9FF;
|
|
|
+ }
|
|
|
|
|
|
- .delete {
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- padding: 1px;
|
|
|
- }
|
|
|
+ .el-checkbox__inner {
|
|
|
+ border: 1px solid #8dd9ff;
|
|
|
+ background: rgba(0, 170, 255, 0);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ position: static;
|
|
|
|
|
|
- .disabled {
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- padding: 1px;
|
|
|
+ &::after {
|
|
|
+ transition: 0ms;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .export {
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- padding: 1px;
|
|
|
- }
|
|
|
+ .el-checkbox__label {
|
|
|
+ padding-left: 0;
|
|
|
+ font-size: 15px;
|
|
|
+ position: absolute;
|
|
|
+ top: 1px;
|
|
|
+ left: 25px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+}
|
|
|
+
|
|
|
+.bottom {
|
|
|
+ position: absolute;
|
|
|
+ left: 20px;
|
|
|
+ right: 16px;
|
|
|
+ bottom: 20px;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 20px;
|
|
|
+ background-color: #ffffff;
|
|
|
+ text-align: center;
|
|
|
+}</style>
|