diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1c9fc7d3..b30c9793 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -805,6 +805,10 @@ function fnGetDeptTree() { }); } +function handleChange(value: any,options:any) { + modalState.from.roleIds=[value]; +} + onMounted(() => { // 初始字典数据 Promise.allSettled([ @@ -1256,6 +1260,8 @@ onMounted(() => { option-label-prop="roleName" :options="modalState.options.roles" :field-names="{ label: 'roleName', value: 'roleId' }" + @select="handleChange" + > @@ -1482,6 +1488,7 @@ onMounted(() => { :field-names="{ label: 'roleName', value: 'roleId' }" :placeholder="t('common.selectPlease')" @change="showTenant" + @select="handleChange" >