摘要: const { data } = useGetList('t_prod_machine_type'); useEffect(() => { if (data !== undefined) { data.forEach(it => { it['name'] = it['type_name']; }); 阅读全文
posted @ 2023-09-08 08:49 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: 前言 我是歌谣 最好的种树是十年前 其次是现在 今天继续给大家带来的是this的讲解 环境配置 npm init -y yarn add vite -D 修改page.json配置端口 { "name": "demo1", "version": "1.0.0", "description": "", 阅读全文
posted @ 2023-09-08 08:41 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: 前言 大家好 我是歌谣 今天继续给大家带来关于闭包的讲解 层级化代码 const store={ state:{ a:1 }, mutation:{ setA(state,num){ state.a=num } } } store.setA(3) store.setA=function(number 阅读全文
posted @ 2023-09-07 09:27 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <Paper elevation={0} sx={{ display: "flex", flexWrap: "warp" }}> <ReferenceInput source='proc_solution_id' reference='t_prod_proc_solution'> <Autocomp 阅读全文
posted @ 2023-09-07 09:00 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <ReferenceInput source='machine_type_id' reference='t_prod_machine_type'> <AutocompleteInput variant='outlined' sx={{ mr: 1 }} /> </ReferenceInput> <R 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { useFormContext } from 'react-hook-form'; 数据重置操作 const MyButton = () => { const { reset, setFocus, getValues } = useFormContext<{ step_no: str 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <Paper elevation={0} sx={{ display: "flex", flexWrap: "warp" }}> <ReferenceInput source='proc_solution_id' reference='t_prod_proc_solution'> <Autocomp 阅读全文
posted @ 2023-09-07 08:59 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: <Tabs value={solutionname} onChange={handleChange} aria-label="解决方案名称" > {machinechangeList && machinechangeList.map((item: any, idx: number) => { ret 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: import * as React from 'react'; import Tabs from '@mui/material/Tabs'; import Tab from '@mui/material/Tab'; import Box from '@mui/material/Box'; expor 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: {machinechangeList && machinechangeList.map((item: any, idx: number) => { return <Tab value={item.id.toString()} label={item.name} /> })} 运行结果 阅读全文
posted @ 2023-09-07 08:58 前端导师歌谣 阅读(21) 评论(0) 推荐(0)