随笔分类 -  前端学习-项目work-

前端学习-项目work-
摘要:import axios from "axios" import {getToken} from "@/utils/auth"; import { BaseUrl } from "../commomutils/baseUrl"; export const uploadFile = (url:stri 阅读全文
posted @ 2022-10-26 22:31 前端导师歌谣 阅读(27) 评论(0) 推荐(0) 编辑
摘要:多加一行 try_files $uri $uri/ /index.html 配置即可 阅读全文
posted @ 2022-10-26 22:31 前端导师歌谣 阅读(5) 评论(0) 推荐(0) 编辑
摘要:import axios from "axios" import {getToken} from "@/utils/auth"; import { BaseUrl } from "../commomutils/baseUrl"; export const uploadFile = (url:stri 阅读全文
posted @ 2022-10-26 22:31 前端导师歌谣 阅读(31) 评论(0) 推荐(0) 编辑
摘要:利用转换为json的数据进行传送 添加学生 添加学生 阅读全文
posted @ 2022-10-26 22:31 前端导师歌谣 阅读(22) 评论(0) 推荐(0) 编辑
摘要:const [form] = Form.useForm(); const [formKuan] = Form.useForm(); const [formAll] = Form.useForm(); 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:const initPageList = async (params?: MenuSearchParams) => { setLoading(true); try { let text = { ...page, ...params } technologyList(text) .unwrap() . 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(74) 评论(0) 推荐(0) 编辑
摘要:对象转换为&拼接 is_delete=eq.0&limit=10&offset=0&order=id.desc 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(22) 评论(0) 推荐(0) 编辑
摘要:const getOrderBy = (field: string, order: string, primaryKey: PrimaryKey) => { console.log(primaryKey,"primaryKey") if (field == 'id') { console.log(p 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:const parseFilters = (filter: any, defaultListOp: any) => { const result: any = {} console.log(filter,"filter 1") //{is_delete: 0, name@like: '我是测试'} 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(17) 评论(0) 推荐(0) 编辑
摘要:const parseFilters = (filter: any, defaultListOp: any) => { const result: any = {} console.log(filter,"filter") console.log(defaultListOp,"defaultList 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(31) 评论(0) 推荐(0) 编辑
摘要:{props.actions.map((action: SearchFormAction, index: number) => ( <Form.Item key={index}> <Button type={action.type} onClick={() => props.onClick(inde 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(22) 评论(0) 推荐(0) 编辑
摘要:getOne: (resource: any, params: any) => { const key: any = Object.keys(params) const id = params[key[0]]; const primaryKey = getPrimaryKey(resource, p 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(28) 评论(0) 推荐(0) 编辑
摘要:getDetail: (resource: any, params: any) => { const data=new URLSearchParams(params) const url = `${PostgrestUrl}/rpc/${resource}?${data}`; return http 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:getSelect: (resource: any, params: any,filter?:any) => { const data=new URLSearchParams(filter) const url = `${PostgrestUrl}/${resource}?select=${para 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(17) 评论(0) 推荐(0) 编辑
摘要:export const uploadFile = (url:string,formData:any)=>{ return axios.post( `${BaseUrl}/${url}`, formData, { headers: { "Content-Type": "multipart/form- 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(33) 评论(0) 推荐(0) 编辑
摘要:搜索框得样式 阅读全文
posted @ 2022-10-22 17:02 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:const buttonFlag: any = { 0: () => { // setCurrentMenu(null); setEditVisible(true); }, 1: () => { // setCurrentMenu(null); setAddSpecialVisible(true); 阅读全文
posted @ 2022-10-22 17:01 前端导师歌谣 阅读(3) 评论(0) 推荐(0) 编辑
摘要:这样可以实现原来的值 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(1) 评论(0) 推荐(0) 编辑
摘要://定义分页参数 interface IPaganation { pageSize?: number, pageIndex?: number, machineTypeId?: string, codeSearch?: string } //分页 const _pagination = { curre 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<Form form={form}> <Row > <Col> <Form.Item name="machineTypeId" label="设备类型" > <Select onChange={onChangeSelect} showSearch style={{ width: 200 }} pla 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(24) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示