fix: 创建用户角色列表遮罩组织树

This commit is contained in:
fit2cloud-chenyw 2021-08-23 17:34:43 +08:00
parent 788deb4f59
commit c79ea5d87b

View File

@ -45,6 +45,7 @@
</el-form-item>
<el-form-item :label="$t('commons.role')" prop="roleIds">
<el-select
ref="roleSelect"
v-model="form.roleIds"
style="width: 100%"
:disabled="formType !== 'add' && form.isAdmin"
@ -298,6 +299,7 @@ export default {
this.$router.push({ name: 'system-user' })
},
filterData(instanceId) {
this.$refs.roleSelect && this.$refs.roleSelect.blur && this.$refs.roleSelect.blur()
if (!this.depts) {
return
}