|
@@ -1,15 +1,13 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
<div class="header">
|
|
|
- <el-button class="onlineUser" @click="activeShow()">
|
|
|
+ <el-button ref="buttonFocus" class="onlineUser" @click="activeShow()">
|
|
|
<i class="el-icon-user-solid"></i>在用账户
|
|
|
</el-button>
|
|
|
<el-button class="disableUser" @click="deactiveShow()">
|
|
|
<i class="el-icon-user"></i>停用账户
|
|
|
</el-button>
|
|
|
- <div class="searchBox">
|
|
|
- <el-input v-model="input" placeholder="用户名;手机;单位" suffix-icon="el-icon-search"></el-input>
|
|
|
- </div>
|
|
|
+ <el-input class="searchBox" v-model="input" placeholder="用户名;手机;单位" suffix-icon="el-icon-search"></el-input>
|
|
|
<el-button class="addUser">
|
|
|
<i class="el-icon-user"></i>添加用户
|
|
|
</el-button>
|
|
@@ -45,6 +43,7 @@ export default {
|
|
|
activeShow() {
|
|
|
this.show = true;
|
|
|
this.show1 = false;
|
|
|
+ this.$refs.buttonFocus.$el.focus();
|
|
|
},
|
|
|
deactiveShow() {
|
|
|
this.show = false;
|
|
@@ -58,7 +57,7 @@ export default {
|
|
|
.container {
|
|
|
position: fixed;
|
|
|
left: 218px;
|
|
|
- top: 140px;
|
|
|
+ top: 77px;
|
|
|
right: 16px;
|
|
|
height: -webkit-fill-available;
|
|
|
margin-bottom: 20px;
|
|
@@ -80,15 +79,19 @@ export default {
|
|
|
top: 15px;
|
|
|
left: 20px;
|
|
|
bottom: 4px;
|
|
|
- width: 116px;
|
|
|
- height: 40px;
|
|
|
+ width: 100px;
|
|
|
+ height: 35px;
|
|
|
line-height: 20px;
|
|
|
- border-radius: 3px 3px 0px 0px;
|
|
|
- //background-color: rgba(255, 255, 255, 1);
|
|
|
- color: rgba(0, 0, 0, 0.973);
|
|
|
+ border-radius: 20px;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ color: #C8C8C8;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
- //border: 1px solid rgba(187, 187, 187, 1);
|
|
|
+ padding: 5px;
|
|
|
+ }
|
|
|
+ .onlineUser:focus{
|
|
|
+ background-color: #2EA8E6;
|
|
|
+ color:#FFFFFF;
|
|
|
}
|
|
|
|
|
|
.disableUser {
|
|
@@ -96,44 +99,52 @@ export default {
|
|
|
top: 15px;
|
|
|
left: 135px;
|
|
|
bottom: 4px;
|
|
|
- width: 116px;
|
|
|
- height: 40px;
|
|
|
+ width: 100px;
|
|
|
+ height: 35px;
|
|
|
line-height: 20px;
|
|
|
- border-radius: 3px 3px 0px 0px;
|
|
|
- //background-color: rgba(255, 255, 255, 1);
|
|
|
- color: rgba(0, 0, 0, 0.973);
|
|
|
+ border-radius: 20px;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ color: #C8C8C8;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
- //border: 1px solid rgba(187, 187, 187, 1);
|
|
|
+ padding: 5px;
|
|
|
+ }
|
|
|
+ .disableUser:focus{
|
|
|
+ background-color: #2EA8E6;
|
|
|
+ color:#FFFFFF;
|
|
|
}
|
|
|
|
|
|
.searchBox {
|
|
|
position: absolute;
|
|
|
- top: 16px;
|
|
|
+ top: 15px;
|
|
|
right: 141px;
|
|
|
bottom: 11px;
|
|
|
- width: 224px;
|
|
|
- height: 30px;
|
|
|
+ width: 350px;
|
|
|
+ height: 35px;
|
|
|
line-height: 20px;
|
|
|
border-radius: 3px;
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
+ background-color: #F7F9FA;
|
|
|
+ color: #D7D8D8;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
- border: 1px solid rgba(217, 217, 217, 1);
|
|
|
+
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ height: 35px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.addUser {
|
|
|
position: absolute;
|
|
|
right: 16px;
|
|
|
- top: 17px;
|
|
|
- width: 113px;
|
|
|
- height: 40px;
|
|
|
- border-radius: 4px;
|
|
|
- background-color: rgba(64, 149, 229, 1);
|
|
|
- color: rgba(255, 255, 255, 1);
|
|
|
+ top: 15px;
|
|
|
+ width: 100px;
|
|
|
+ height: 35px;
|
|
|
+ background-color: #2EA8E6;
|
|
|
+ color: #FFFFFF;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
+ padding: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
}
|
|
|
}
|
|
|
|