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),