摘要: useEffect(() => { if (open) { toggleExpanded() } }, [open,toggleExpanded]); 阅读全文
posted @ 2023-09-10 20:42 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: <Datagrid data={data} rowClick={'expand'} expandSingle={true} expand={<MaterielEdit open={open} matType={mattype} ></MaterielEdit>}> <ReferenceField s 阅读全文
posted @ 2023-09-10 20:42 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: const { data } = useGetList( 't_base_style_materiel', { filter: mattype ? { 't_base_materiel.mat_type': mattype, 'style_id': styleId } : { 'style_id': 阅读全文
posted @ 2023-09-10 20:42 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: <ReferenceInput source="mat_type" reference="t_base_materiel_type"> <AutocompleteInput label="物料类型名称" /> </ReferenceInput> 运行结果 阅读全文
posted @ 2023-09-10 20:42 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: useEffect(() => { data && data.forEach(it => { it['label'] = it['name']; it['value'] = it['id']; }); setmaterialList(data); }, [data]); 阅读全文
posted @ 2023-09-10 20:41 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: <Autocomplete defaultValue={materialList&&materialList[`${Number(line_id)-1}`]} sx={{ width: '400px', alignSelf: 'center', marginTop: '16px' }} disabl 阅读全文
posted @ 2023-09-10 20:41 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: const record = useRecordContext(); console.log(record,"record is") 运行结果 { "id": 437, "tenant_id": 1, "category_id": 111, "code": "003", "style_name": 阅读全文
posted @ 2023-09-10 20:41 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: const SkillLi = styled('li')({ '&:hover': { backgroundColor: '#cdcdcd' } }) styled元素名加样式 阅读全文
posted @ 2023-09-10 20:41 前端导师歌谣 阅读(19) 评论(0) 推荐(0)
摘要: <Grid item xs={3} md={3} sm={3}> <ReferenceInput filter={{ mat_type: solutionname }} source='mat_id' reference='t_base_materiel'> <AutocompleteInput f 阅读全文
posted @ 2023-09-10 20:40 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: useeffect没有加入依赖 useEffect(() => { if (data !== undefined) { if (data.length skillList.length) { //数据相同,不用覆盖,否则会失列表的选择失效 return; } data.forEach(it => { 阅读全文
posted @ 2023-09-10 20:40 前端导师歌谣 阅读(24) 评论(0) 推荐(0)
摘要: const LineListActions = (props: any) => { return( <TopToolbar> <CreateButton to = {`/product/styleCreate/${props.category_id}`} /> </TopToolbar> ) } < 阅读全文
posted @ 2023-09-10 20:40 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: const redirect = useRedirect(); const handleLineRowClick = (id: Identifier, resource: string, record: RaRecord): false =>{ redirect(`/product/styleEdi 阅读全文
posted @ 2023-09-10 20:40 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:39 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:39 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:38 前端导师歌谣 阅读(2) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:38 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: rcc即可快捷生成 阅读全文
posted @ 2023-09-10 20:38 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:37 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-09-10 20:37 前端导师歌谣 阅读(3) 评论(0) 推荐(0)
摘要: import "reset-css" import "./assets/global.scss" import 'antd/dist/antd.css' import { Button } from 'antd'; function App() { return ( <> 歌谣 <Button>De 阅读全文
posted @ 2023-09-10 20:37 前端导师歌谣 阅读(8) 评论(0) 推荐(0)