Compare commits
No commits in common. "ac657a162f40bf87c8580192ce04e56dea19a203" and "e0f42e815ebf71eee91366c02da36d3556ffe09b" have entirely different histories.
ac657a162f
...
e0f42e815e
|
@ -510,18 +510,6 @@ export default {
|
|||
this.loginByRole(this.$store.state.user.roles[0].Id)
|
||||
return
|
||||
}
|
||||
if (
|
||||
Array.isArray(this.$store.state.user.roles) &&
|
||||
this.$store.state.user.roles.filter((item) => item.IsUserRoleDisabled)
|
||||
.length ===
|
||||
this.$store.state.user.roles.length - 1
|
||||
) {
|
||||
let role = this.$store.state.user.roles.find(
|
||||
(item) => !item.IsUserRoleDisabled
|
||||
)
|
||||
this.loginByRole(role.Id)
|
||||
return
|
||||
}
|
||||
return (this.toggleRoleVisible = true)
|
||||
},
|
||||
cancel() {
|
||||
|
|
|
@ -73,8 +73,7 @@
|
|||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('system:userlist:table:UserType')"
|
||||
prop="Roles"
|
||||
v-if="type === 0"
|
||||
prop="UserTypeId"
|
||||
>
|
||||
<div style="display: flex; align-items: center">
|
||||
<el-select
|
||||
|
@ -86,6 +85,7 @@
|
|||
style="width: 100%"
|
||||
:disabled="user.CanEditUserType === false || type === 1"
|
||||
@change="handleChange"
|
||||
v-if="type === 0"
|
||||
>
|
||||
<template v-for="userType of userTypeOptions">
|
||||
<el-option
|
||||
|
@ -96,14 +96,6 @@
|
|||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('system:userlist:table:UserType')"
|
||||
prop="userTypeId"
|
||||
v-else
|
||||
>
|
||||
<div style="display: flex; align-items: center">
|
||||
<el-select
|
||||
ref="userType"
|
||||
v-model="Roles"
|
||||
|
@ -113,6 +105,7 @@
|
|||
style="width: 100%"
|
||||
:disabled="user.CanEditUserType === false || type === 1"
|
||||
@change="handleChange"
|
||||
v-else
|
||||
>
|
||||
<template v-for="userType of userTypeOptions">
|
||||
<el-option
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
v-for="item in roles"
|
||||
:key="item.Id"
|
||||
:label="item.Id"
|
||||
:disabled="item.IsUserRoleDisabled"
|
||||
:disabled="item.isUserRoleDisabled"
|
||||
style="margin-bottom: 10px"
|
||||
>
|
||||
{{ item.UserTypeShortName }}
|
||||
|
@ -210,7 +210,6 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
roles() {
|
||||
console.log(this.$store.state.user.roles, 'this.$store.state.user.roles')
|
||||
return this.$store.state.user.roles
|
||||
},
|
||||
hasRole() {
|
||||
|
|
Loading…
Reference in New Issue