修复多于代码

This commit is contained in:
lai
2024-09-24 17:29:38 +08:00
parent c30e8b4891
commit ec67414cb6
3 changed files with 27 additions and 57 deletions

View File

@@ -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>