角色单选
This commit is contained in:
@@ -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"
|
||||
|
||||
>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
@@ -1482,6 +1488,7 @@ onMounted(() => {
|
||||
:field-names="{ label: 'roleName', value: 'roleId' }"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
@change="showTenant"
|
||||
@select="handleChange"
|
||||
>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
|
||||
Reference in New Issue
Block a user