角色单选
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user