角色单选

This commit is contained in:
lai
2024-08-02 18:58:36 +08:00
parent b8c56c8868
commit 9bc5eba0d6

View File

@@ -805,6 +805,10 @@ function fnGetDeptTree() {
}); });
} }
function handleChange(value: any,options:any) {
modalState.from.roleIds=[value];
}
onMounted(() => { onMounted(() => {
// 初始字典数据 // 初始字典数据
Promise.allSettled([ Promise.allSettled([
@@ -1256,6 +1260,8 @@ onMounted(() => {
option-label-prop="roleName" option-label-prop="roleName"
:options="modalState.options.roles" :options="modalState.options.roles"
:field-names="{ label: 'roleName', value: 'roleId' }" :field-names="{ label: 'roleName', value: 'roleId' }"
@select="handleChange"
> >
</a-select> </a-select>
</a-form-item> </a-form-item>
@@ -1482,6 +1488,7 @@ onMounted(() => {
:field-names="{ label: 'roleName', value: 'roleId' }" :field-names="{ label: 'roleName', value: 'roleId' }"
:placeholder="t('common.selectPlease')" :placeholder="t('common.selectPlease')"
@change="showTenant" @change="showTenant"
@select="handleChange"
> >
</a-select> </a-select>
</a-form-item> </a-form-item>