摘要:
<Resource name='t_prod_category' recordRepresentation="category_name" list={CategoryList} show={CategoryShow} create={CategoryAdd} edit={CategoryEdit} 阅读全文
posted @ 2023-08-19 21:55
前端导师歌谣
阅读(8)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-08-19 21:55
前端导师歌谣
阅读(4)
评论(0)
推荐(0)
摘要:
import { useMemo } from "react"; import { GetListResult, Identifier, useDataProvider } from "react-admin"; import { UseQueryOptions, UseQueryResult, u 阅读全文
posted @ 2023-08-19 21:55
前端导师歌谣
阅读(9)
评论(0)
推荐(0)
摘要:
以非管理员用户执行 没有的话再用户中创建一个用户 执行成功 阅读全文
posted @ 2023-08-19 21:54
前端导师歌谣
阅读(7)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-08-19 21:54
前端导师歌谣
阅读(4)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-08-19 21:54
前端导师歌谣
阅读(7)
评论(0)
推荐(0)
摘要:
const handleTreeData = () => { dataProviders.getStyleTree('t_prod_category', 't_prod_style').then((res: any) => { let data: ITreeDataList = { name: "品 阅读全文
posted @ 2023-08-19 21:54
前端导师歌谣
阅读(6)
评论(0)
推荐(0)
摘要:
分为tree和admin左右两级结构 阅读全文
posted @ 2023-08-19 21:53
前端导师歌谣
阅读(22)
评论(0)
推荐(0)
摘要:
const handleStyleSelect = ( categoryId: any) => { setStyleSelect(categoryId) setCategorySelect("") setSelectTitle(false) const url = `StyleListView/${ 阅读全文
posted @ 2023-08-19 21:53
前端导师歌谣
阅读(7)
评论(0)
推荐(0)
摘要:
/* 品类筛选多个款式 */ import { useEffect, useState } from "react"; import { Datagrid, useListContext, ShowButton, BulkDeleteButton, TextField, EditButton, Li 阅读全文
posted @ 2023-08-19 21:53
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
const onSuccess = (data:any) => { const { id, ...res } = data; const params: any = { id: id, data: res } ; dataprovider.update(resource, params); navi 阅读全文
posted @ 2023-08-19 21:52
前端导师歌谣
阅读(6)
评论(0)
推荐(0)
摘要:
interface IItem{ style_name?:string, code?:string, create_date?:any } const StyleListChild = () => { const { data } = useListContext(); return ( <Cont 阅读全文
posted @ 2023-08-19 21:52
前端导师歌谣
阅读(9)
评论(0)
推荐(0)
摘要:
/* 单个款式的展示页面 */ import { List, WithListContext, useListContext } from "react-admin" import { useParams } from "react-router-dom"; import { Container, 阅读全文
posted @ 2023-08-19 21:52
前端导师歌谣
阅读(6)
评论(0)
推荐(0)
摘要:
import { List, WithListContext } from "react-admin" import { useParams } from "react-router-dom"; import { Container, ListItem, ListItemText } from '@ 阅读全文
posted @ 2023-08-19 21:51
前端导师歌谣
阅读(8)
评论(0)
推荐(0)
摘要:
import { useEffect } from "react"; import { Datagrid, useListContext, ShowButton, BulkDeleteButton, TextField, EditButton, List } from "react-admin" i 阅读全文
posted @ 2023-08-19 21:51
前端导师歌谣
阅读(11)
评论(0)
推荐(0)
摘要:
interface IChildren{ id:number, category_name:string, code:string, t_prop_type:IStyle[] } interface IStyle{ id:number, style_name:string, code:string 阅读全文
posted @ 2023-08-19 21:51
前端导师歌谣
阅读(7)
评论(0)
推荐(0)
摘要:
const { params:id } = useParams(); const { params:id } = useParams(); 阅读全文
posted @ 2023-08-19 21:50
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
<List exporter={false} filter={{ category_id: params }} resource="t_prod_style"> <Datagrid bulkActionButtons={<BulkDeleteButton mutationMode="pessimis 阅读全文
posted @ 2023-08-19 21:50
前端导师歌谣
阅读(8)
评论(0)
推荐(0)
摘要:
/* 单个款式的展示页面 */ import { List, WithListContext } from "react-admin" import { useParams } from "react-router-dom"; import { Container, ListItem, ListIt 阅读全文
posted @ 2023-08-19 21:50
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
import { List, WithListContext } from "react-admin" import { useParams } from "react-router-dom"; import { Container, ListItem, ListItemText } from '@ 阅读全文
posted @ 2023-08-19 21:49
前端导师歌谣
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号