@ -103,7 +103,7 @@
< / e l - i n p u t >
< / template >
< / m - l i s t - b o x - f >
< m -list -box -f style = "line-height: 38px;" >
< m -list -box -f v-if ="showState" style="line-height: 38px;" >
< template slot = "name" > { { $t ( 'State' ) } } < / template >
< template slot = "content" >
< el -radio -group v-model ="userState" size="small" >
@ -123,6 +123,7 @@
import router from '@/conf/home/router'
import mPopover from '@/module/components/popup/popover'
import mListBoxF from '@/module/components/listBoxF/listBoxF'
import { mapState } from 'vuex'
export default {
name : 'create-user' ,
@ -139,6 +140,7 @@
phone : '' ,
userState : '1' ,
tenantList : [ ] ,
showState : true ,
/ / S o u r c e a d m i n u s e r i n f o r m a t i o n
isADMIN : store . state . user . userInfo . userType === 'ADMIN_USER' && router . history . current . name !== 'account'
}
@ -292,6 +294,7 @@
watch : { } ,
created ( ) {
/ / A d m i n i s t r a t o r g e t s t e n a n t l i s t
this . showState = true
if ( this . isADMIN ) {
Promise . all ( [ this . _getQueueList ( ) , this . _getTenantList ( ) ] ) . then ( ( ) => {
if ( this . item ) {
@ -301,6 +304,7 @@
this . phone = this . item . phone
this . state = this . item . state
this . userState = this . item . state + '' || '1'
this . showState = this . item . id !== this . userInfo . id
if ( this . fromUserInfo || this . item . tenantId ) {
this . tenantId = this . item . tenantId
}
@ -320,6 +324,7 @@
this . phone = this . item . phone
this . state = this . item . state
this . userState = this . state + '' || '1'
this . showState = this . item . id !== this . userInfo . id
if ( this . fromUserInfo || this . item . tenantId ) {
this . tenantId = this . item . tenantId
}
@ -335,7 +340,9 @@
}
} ,
mounted ( ) {
} ,
computed : {
... mapState ( 'user' , [ 'userInfo' ] )
} ,
components : { mPopover , mListBoxF }
}