| | |
| | | <span v-show="!showInputNickName" class="icon iconfont" @click="editNickName" |
| | | ></span |
| | | > |
| | | <span v-show="showInputNickName" class="icon iconfont" @click="showInputNickName=false" |
| | | ></span |
| | | > |
| | | <span v-show="showInputNickName" class="icon iconfont" style="font-size:21px;font-weight:600;color:green;" @click="hideInputNick" |
| | | ></span |
| | | > |
| | | </div> |
| | | <div class="user-role"> |
| | | {{ activeUserRole }} |
| | |
| | | this.$refs["input-nick"].focus(); |
| | | }, |
| | | hideInputNick() { |
| | | this.showInputNickName = false; |
| | | if (this.inputNickName == this.activeAccountItem.nickname) { |
| | | this.showInputNickName = false; |
| | | return; |
| | | } |
| | | updateUser({ |
| | | id: this.activeAccountItem.id, |
| | | nickname: this.inputNickName, |
| | | }).then((res) => { |
| | | this.activeAccountItem.nickname = this.inputNickName |
| | | this.$message.success(res.msg); |
| | | this.fetchUserList(true); |
| | | this.showInputNickName = false; |
| | | }); |
| | | }, |
| | | openAccount(item, i) { |
| | |
| | | align-items: baseline; |
| | | min-width: 200px; |
| | | .username { |
| | | margin: 4px 15px; |
| | | height: 30px; |
| | | line-height: 30px; |
| | | // width: 90px; |
| | | margin: 0 15px; |
| | | height: 28px; |
| | | line-height: 28px; |
| | | text-align: left; |
| | | font-size: 15px; |
| | | font-size: 16px; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | |
| | | margin: 5px 15px; |
| | | font-size: 14px; |
| | | display: flex; |
| | | height: 30px; |
| | | align-items: center; |
| | | .nick-text { |
| | | width: fit-content; |
| | |
| | | } |
| | | .el-input--mini { |
| | | font-size: 14px; |
| | | width: 100px; |
| | | width: 83px; |
| | | .el-input__inner { |
| | | padding: 0 10px; |
| | | padding: 0 5px; |
| | | } |
| | | } |
| | | } |