优化外校老师宿舍、分组查询
This commit is contained in:
parent
e0eae6fa1c
commit
658eed3c2d
|
@ -295,26 +295,13 @@ export const searchFormSchema: FormSchema[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '所属分组',
|
label: '所属分组',
|
||||||
component: 'Select',
|
component: 'Input',
|
||||||
field: 'groupId',
|
field: 'groupName',
|
||||||
colProps: { span: 6 },
|
|
||||||
componentProps: {
|
|
||||||
placeholder: '请选择分组',
|
|
||||||
options: computed(() => groupOptions.value), // ✅ 变成响应式
|
|
||||||
showSearch: true,
|
|
||||||
filterOption: (input, option) => option.label.toLowerCase().includes(input.toLowerCase()),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '住宿信息',
|
label: '住宿信息',
|
||||||
field: 'dormitoryId',
|
field: 'dormitoryName',
|
||||||
component: 'Select',
|
component: 'Input',
|
||||||
componentProps: {
|
|
||||||
placeholder: '请选择住宿信息',
|
|
||||||
options: computed(() => dormitoryOptions.value), // ✅ 变成响应式
|
|
||||||
showSearch: true,
|
|
||||||
filterOption: (input, option) => option.label.toLowerCase().includes(input.toLowerCase()),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '是否住宿',
|
label: '是否住宿',
|
||||||
|
@ -402,7 +389,6 @@ export const formSchema: FormSchema[] = [
|
||||||
},
|
},
|
||||||
dynamicRules: ({ model, schema }) => {
|
dynamicRules: ({ model, schema }) => {
|
||||||
// 当身份证为7个0时取消验证
|
// 当身份证为7个0时取消验证
|
||||||
if (model.identityId === '0000000') return [];
|
|
||||||
return [{ required: true, message: '请选择学科!' }];
|
return [{ required: true, message: '请选择学科!' }];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue