File tree Expand file tree Collapse file tree
packages/toolbars/user/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <tiny-popover :visible-arrow =" false" width =" 188 " trigger =" click" >
3+ <tiny-popover :visible-arrow =" false" width =" 200 " trigger =" click" >
44 <template #reference >
55 <div >
66 <svg-icon class =" user-icon" name =" default-user" ></svg-icon >
1414 </div >
1515 <div class =" user-tenant" >
1616 <div class =" tenant-label" >创建组织</div >
17- <tiny-input v-model =" state.newTenant" placeholder =" 输入组织名" @blur =" createTenant" > </tiny-input >
17+ <div class =" tenant-item" >
18+ <tiny-input v-model =" state.newTenant" placeholder =" 输入组织名" > </tiny-input >
19+ <svg-icon class =" plus-circle" name =" plus-circle" @click =" createTenant" ></svg-icon >
20+ </div >
1821 </div >
1922 <div class =" user-tenant" >
2023 <div class =" tenant-label" >选择组织</div >
21- <tiny-select v-model =" state.tenantValue" :options =" tenantList" @change =" changeTenant" > </tiny-select >
24+ <div class =" tenant-item" >
25+ <tiny-select v-model =" state.tenantValue" :options =" tenantList" @change =" changeTenant" > </tiny-select >
26+ </div >
2227 </div >
2328 </div >
2429 <div class =" user-out" @click =" logOut" >
@@ -86,6 +91,7 @@ export default {
8691 })
8792 .then ((data ) => {
8893 if (data ) {
94+ state .newTenant = ' '
8995 useModal ().message ({ message: ' 创建组织成功' , status: ' success' })
9096 fetchUserInfo ().then ((data : any ) => {
9197 if (data ) {
@@ -140,11 +146,22 @@ export default {
140146 align-items : center ;
141147 margin-top : 6px ;
142148 height : 40px ;
149+ .tenant-item {
150+ width : 108px ;
151+ display : flex ;
152+ justify-content : center ;
153+ align-items : center ;
154+ }
155+ .plus-circle {
156+ margin-left : 6px ;
157+ width : 28px ;
158+ cursor : pointer ;
159+ }
143160 }
144161 .tenant-label {
145162 font-size : 12px ;
146163 margin-right : 6px ;
147- width : 80 px ;
164+ width : 50 px ;
148165 }
149166}
150167.user-out {
You can’t perform that action at this time.
0 commit comments