{ label: '值班时间', field: 'nightFlag', component: 'Select', componentProps: ({ formModel, formActionType }) => { return { options: [ { label: '白班', value: '1', key: '1', }, { label: '夜班', value: '0', key: '0', }, ], onChange: (e: any, option) => { console.log(e); // 开始时间 // formSchema[2].defaultValue = '17:00'; // reset dutyTime value formModel.dutyTime = '10:00'; /* const { updateSchema } = formActionType; updateSchema({ field: 'dutyTime', componentProps: { options: TimeOptions, }, }); */ }, } }, required: true, }, { label: '开始时间', field: 'dutyTime', component: 'Select', defaultValue: '09:00', componentProps: { options: TimeOptions, }, },