fix: use existing dict option API in im views

This commit is contained in:
richjohnrambo
2026-09-03 14:53:26 +08:00
parent 82675c7500
commit 5a2ed4b2a4
23 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -256,8 +256,8 @@
tenantSchema.ifShow = () => isPlatformAdmin.value;
}
const departmentStateOptions = computed(() => dict.getOptions('ImOrgDepartmentStateOptions'));
const employmentStateOptions = computed(() => dict.getOptions('ImOrgEmploymentStateOptions'));
const departmentStateOptions = dict.getOption('ImOrgDepartmentStateOptions');
const employmentStateOptions = dict.getOption('ImOrgEmploymentStateOptions');
const parentDepartmentOptions = computed(() => [
{ label: '根部门', value: 'root' },
...departmentOptions.value.filter((item) => item.value !== departmentForm.value.departmentId),
+2 -2
View File
@@ -92,7 +92,7 @@ export const departmentSchemas = ref<FormSchema[]>([
label: '状态',
componentProps: {
clearable: true,
options: computed(() => dict.getOptions('ImOrgDepartmentStateOptions')),
options: dict.getOption('ImOrgDepartmentStateOptions'),
placeholder: '请选择状态',
},
},
@@ -111,7 +111,7 @@ export const memberSchemas = ref<FormSchema[]>([
label: '在职状态',
componentProps: {
clearable: true,
options: computed(() => dict.getOptions('ImOrgEmploymentStateOptions')),
options: dict.getOption('ImOrgEmploymentStateOptions'),
placeholder: '请选择在职状态',
},
},