摘要: ​ 目录 前言 题目 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 微信公众号前端小歌谣 题目 请将html模块的div元素设置为一个半径是50px的圆,且边框为1px的黑色实线。 要求: 圆角属性仅设置一个值圆角属性单位请使用px 注意:由于 阅读全文
posted @ 2023-09-06 11:45 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: ​ 目录 前言 题目 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 微信公众号前端小歌谣 题目 请将html模块的div元素设置为一个半径是50px的圆,且边框为1px的黑色实线。 要求: 圆角属性仅设置一个值圆角属性单位请使用px 注意:由于 阅读全文
posted @ 2023-09-06 11:44 前端导师歌谣 阅读(18) 评论(0) 推荐(0)
摘要: create('t_prod_step', { data: { machine_type_id: result.machine_type_id, part_id: result.part_id, step_level_id: result.step_level_id, proc_solution_i 阅读全文
posted @ 2023-09-06 11:35 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <Autocomplete sx={{ width: '400px', alignSelf: 'center', marginTop: '16px' }} disablePortal id='equip_type' options={partList} getOptionLabel={(option 阅读全文
posted @ 2023-09-06 11:34 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <Autocomplete sx={{ width: '400px', alignSelf: 'center', marginTop: '16px' }} disablePortal id='equip_type' options={partList} getOptionLabel={(option 阅读全文
posted @ 2023-09-06 11:34 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: <Box component="form" sx={{ '& > :not(style)': { m: 1, width: '25ch' }, }} noValidate autoComplete="off" > <TextField id="outlined-controlled" label=" 阅读全文
posted @ 2023-09-06 11:34 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: <Stack direction='row'> <Paper sx={{ width: '20%' }} elevation={1}> </Paper> <Paper sx={{ width: '80%', marginLeft: '4px', marginRight: '4px' }} eleva 阅读全文
posted @ 2023-09-06 11:29 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: const { data } = useGetList('t_prod_style'); console.log(data,"data") useEffect(() => { if (data !== undefined) { data.forEach(it => { it['label'] = i 阅读全文
posted @ 2023-09-06 11:29 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: --设置主键外键 ALTER TABLE geyao_calss ADD CONSTRAINT class_id FOREIGN KEY (class_id) REFERENCES geyao_school(class_id); 阅读全文
posted @ 2023-09-06 11:29 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: ALTER TABLE public.geyao_school ADD CONSTRAINT geyao_school_un UNIQUE (class_id); 阅读全文
posted @ 2023-09-06 11:27 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: CREATE table geyao_calss ( class_id INTEGER NOT NULL PRIMARY KEY, class_name VARCHAR(45) NOT null, school_name INTEGER not null, id SERIAL ) 创建班级表 阅读全文
posted @ 2023-09-06 11:26 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: --删除表中的列 ALTER TABLE geyao_school DROP COLUMN id; --在学生表增加一个id自增属性 ALTER TABLE geyao_school ADD id SERIAL 阅读全文
posted @ 2023-09-06 11:26 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: 无法创建的原因是后台没有重启 阅读全文
posted @ 2023-09-06 11:26 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: { "code": "42703", "details": null, "hint": null, "message": "column geyao_school.id does not exist" } 表结构的id不存在 --创建一张学校表 学校名称和学校姓名 CREATE table geya 阅读全文
posted @ 2023-09-06 11:26 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: --创建一张学校表 学校名称和学校姓名 CREATE table geyao_school ( schnum INTEGER NOT NULL PRIMARY KEY, name VARCHAR(45) NOT NULL ) 运行结果 阅读全文
posted @ 2023-09-06 11:25 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: import React from 'react' import { Link, Route, Routes } from 'react-router-dom' import OrderCreate from './ordercreate' import OrderList from './orde 阅读全文
posted @ 2023-09-06 11:25 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: treeData[0].children && treeData[0].children.forEach((it: any) => { if(it.key keys[0]) { result = it; return; } it.children?.forEach((child: any) => { 阅读全文
posted @ 2023-09-06 11:25 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: Object.prototype.hasOwnProperty.call(result, 'isPlant') 判断对象上面是否具有某属性 阅读全文
posted @ 2023-09-06 11:24 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: useEffect(() => { if(data !== undefined) { let temp: ITreeData[] = [{key: '0', title: '工厂管理', children: new Array<ITreeData>()}]; //向从数据库查询到的数据中添加Tree 阅读全文
posted @ 2023-09-06 11:23 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <Route path='/' element={<PlantModel />}> <Route path='lineeditedit/:id' element={<LineEmpEdit />} /> </Route> const PlantModel = () => { return( <div 阅读全文
posted @ 2023-09-06 11:23 前端导师歌谣 阅读(12) 评论(0) 推荐(0)