Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -468,10 +468,11 @@ export const formSchema: BFormSchema[] = [ |
468 | 468 | label: '间隔时间', |
469 | 469 | component: 'Select', |
470 | 470 | colProps: { span: 24 }, |
471 | - dynamicRules: ({ model }) => { | |
471 | + dynamicRules: () => { | |
472 | 472 | return [ |
473 | 473 | { |
474 | - required: model[SchemaFiled.AGG] !== AggregateDataEnum.NONE, | |
474 | + // required: model[SchemaFiled.AGG] !== AggregateDataEnum.NONE, | |
475 | + required: true, | |
475 | 476 | message: '间隔时间为必填项', |
476 | 477 | type: 'number', |
477 | 478 | }, | ... | ... |