修复多于代码
This commit is contained in:
@@ -680,12 +680,6 @@ let uploadImportState: ModalUploadImportStateType = reactive({
|
||||
templateDownload: false,
|
||||
});
|
||||
|
||||
function showTenant(value: any, option: any) {
|
||||
modalState.showTenant = option.some(
|
||||
(option: any) => option.roleKey === 'tenant'
|
||||
);
|
||||
}
|
||||
|
||||
/**对话框表格信息导入弹出窗口 */
|
||||
function fnModalUploadImportOpen() {
|
||||
uploadImportState.updateSupport = false;
|
||||
@@ -799,8 +793,9 @@ function fnGetDeptTree() {
|
||||
});
|
||||
}
|
||||
|
||||
function handleChange(value: any,options:any) {
|
||||
modalState.from.roleIds=[value];
|
||||
function handleChange(value: any, options: any) {
|
||||
modalState.from.roleIds = [value];
|
||||
modalState.showTenant = options.roleKey === 'tenant';
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
@@ -1255,7 +1250,6 @@ onMounted(() => {
|
||||
:options="modalState.options.roles"
|
||||
:field-names="{ label: 'roleName', value: 'roleId' }"
|
||||
@select="handleChange"
|
||||
|
||||
>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
@@ -1481,7 +1475,6 @@ onMounted(() => {
|
||||
:options="modalState.options.roles"
|
||||
:field-names="{ label: 'roleName', value: 'roleId' }"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
@change="showTenant"
|
||||
@select="handleChange"
|
||||
>
|
||||
</a-select>
|
||||
|
||||
Reference in New Issue
Block a user