优化外校老师宿舍、分组查询

This commit is contained in:
Qi 2025-06-08 21:06:48 +08:00
parent e0eae6fa1c
commit 658eed3c2d
1 changed files with 4 additions and 18 deletions

View File

@ -295,26 +295,13 @@ export const searchFormSchema: FormSchema[] = [
},
{
label: '所属分组',
component: 'Select',
field: 'groupId',
colProps: { span: 6 },
componentProps: {
placeholder: '请选择分组',
options: computed(() => groupOptions.value), // ✅ 变成响应式
showSearch: true,
filterOption: (input, option) => option.label.toLowerCase().includes(input.toLowerCase()),
},
component: 'Input',
field: 'groupName',
},
{
label: '住宿信息',
field: 'dormitoryId',
component: 'Select',
componentProps: {
placeholder: '请选择住宿信息',
options: computed(() => dormitoryOptions.value), // ✅ 变成响应式
showSearch: true,
filterOption: (input, option) => option.label.toLowerCase().includes(input.toLowerCase()),
},
field: 'dormitoryName',
component: 'Input',
},
{
label: '是否住宿',
@ -402,7 +389,6 @@ export const formSchema: FormSchema[] = [
},
dynamicRules: ({ model, schema }) => {
// 当身份证为7个0时取消验证
if (model.identityId === '0000000') return [];
return [{ required: true, message: '请选择学科!' }];
},
},