摘要: const StepEdit = ({ id, record, resource }: { id: Identifier, record: any, resource: string }) => { const redirect = useRedirect() const [expand, togg 阅读全文
posted @ 2023-09-08 08:52 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: 运行结果 阅读全文
posted @ 2023-09-08 08:51 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: <ReferenceInput source='part_id' reference='t_prod_part'> <AutocompleteInput variant='outlined' label="部位" sx={{ mr: 1 }} /> </ReferenceInput> 运行结果 阅读全文
posted @ 2023-09-08 08:51 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <Edit resource={resource} id={id}> <SimpleForm toolbar={false}> <Stack direction={'row'}> <TextInput variant='outlined' sx={{ mr: 1 }} source='step_no 阅读全文
posted @ 2023-09-08 08:51 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <Datagrid rowClick={'expand'} expandSingle={true} expand={StepEdit}> {/* <ReferenceField source='proc_solution_id' label='解决方案类型' reference="t_prod_pr 阅读全文
posted @ 2023-09-08 08:51 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: const StepEdit = ({ id, record, resource }: { id: Identifier, record: any, resource: string }) => { const redirect = useRedirect() // const [expand,to 阅读全文
posted @ 2023-09-08 08:50 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <SaveButton sx={{ height: "36px", mt: '9px', mj: 2 }} type='button' mutationOptions={{ onSuccess: () => { redirect(false) // if(expand){ // toggleExpa 阅读全文
posted @ 2023-09-08 08:50 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <Edit resource={resource} id={id}> <SimpleForm toolbar={false}> <Stack direction={'row'}> <TextInput variant='outlined' sx={{ mr: 1 }} source='step_no 阅读全文
posted @ 2023-09-08 08:50 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: import { useFormContext } from 'react-hook-form'; 运行结果 const MyButton = () => { const { reset, setFocus, getValues } = useFormContext<{ step_no: strin 阅读全文
posted @ 2023-09-08 08:50 前端导师歌谣 阅读(16) 评论(0) 推荐(0)
摘要: <TabContext value={solutionname} > <TabList onChange={handleChange}> {machinechangeList && machinechangeList.map((item: any, idx: number) => { return 阅读全文
posted @ 2023-09-08 08:49 前端导师歌谣 阅读(13) 评论(0) 推荐(0)