fix: use existing dict option API in im views
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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: '请选择在职状态',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user