Commit 856b02ac authored by alwayOnlie's avatar alwayOnlie

修改三级路由

parent bd978386
...@@ -92,10 +92,10 @@ const router = [ ...@@ -92,10 +92,10 @@ const router = [
path: '/', path: '/',
component: '@/layouts/index', component: '@/layouts/index',
routes: [ routes: [
{ // {
path: '/', // path: '/',
redirect: '/home' // redirect: '/home'
}, // },
// { // {
// path: '/pageCustomized/mobile/template/category', // path: '/pageCustomized/mobile/template/category',
// name: '品类导航页装修', // name: '品类导航页装修',
......
...@@ -36,7 +36,7 @@ const Attribute: React.FC<{}> = () => { ...@@ -36,7 +36,7 @@ const Attribute: React.FC<{}> = () => {
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
render: (text: any, record: any) => <EyePreview render: (text: any, record: any) => <EyePreview
url={`/classAndProperty/attribute/detail?id=${record.id}&preview=1`} url={`/rootcommodity/classAndProperty/attribute/detail?id=${record.id}&preview=1`}
> >
{text} {text}
</EyePreview> </EyePreview>
...@@ -93,10 +93,10 @@ const Attribute: React.FC<{}> = () => { ...@@ -93,10 +93,10 @@ const Attribute: React.FC<{}> = () => {
]; ];
const confirm = (record: any) => { const confirm = (record: any) => {
PublicApi.postProductPlatformUpdateAttributeStatus({id: record.id, isEnable: !record.isEnable}).then(res=>{ PublicApi.postProductPlatformUpdateAttributeStatus({ id: record.id, isEnable: !record.isEnable }).then(res => {
if(res.code===43018){ if (res.code === 43018) {
message.error(res.message) message.error(res.message)
}else{ } else {
ref.current.reload() ref.current.reload()
} }
}) })
...@@ -104,13 +104,13 @@ const Attribute: React.FC<{}> = () => { ...@@ -104,13 +104,13 @@ const Attribute: React.FC<{}> = () => {
const clickDelete = (record: any) => { const clickDelete = (record: any) => {
PublicApi.postProductPlatformDeleteAttribute({ id: record.id }).then(res=>{ PublicApi.postProductPlatformDeleteAttribute({ id: record.id }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
const handleEdit = (record: any) => { const handleEdit = (record: any) => {
history.push(`/classAndProperty/attribute/edit?id=${record.id}`) history.push(`/rootcommodity/classAndProperty/attribute/edit?id=${record.id}`)
} }
const cancel = () => { const cancel = () => {
...@@ -124,7 +124,7 @@ const Attribute: React.FC<{}> = () => { ...@@ -124,7 +124,7 @@ const Attribute: React.FC<{}> = () => {
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchData(params)} fetchTableData={(params: any) => fetchData(params)}
pagination={{showQuickJumper: true}} pagination={{ showQuickJumper: true }}
formilyLayouts={{ formilyLayouts={{
justify: 'space-between' justify: 'space-between'
}} }}
...@@ -165,7 +165,7 @@ const Attribute: React.FC<{}> = () => { ...@@ -165,7 +165,7 @@ const Attribute: React.FC<{}> = () => {
}, },
children: ( children: (
<> <>
<Button type="primary" icon={<PlusOutlined />} onClick={() => { history.push('/classAndProperty/attribute/add') }}> <Button type="primary" icon={<PlusOutlined />} onClick={() => { history.push('/rootcommodity/classAndProperty/attribute/add') }}>
新建 新建
</Button> </Button>
</> </>
......
...@@ -56,13 +56,13 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -56,13 +56,13 @@ const CategoryAttributes: React.FC<{}> = () => {
useEffect(() => { useEffect(() => {
if (selectKey) if (selectKey)
ref.current.reload() ref.current.reload()
// ref.current.reload({ current: 1, pageSize: 10, name: '', categoryId: selectKey, isByCategory: true }) // ref.current.reload({ current: 1, pageSize: 10, name: '', categoryId: selectKey, isByCategory: true })
}, [selectKey]) }, [selectKey])
const fetchLinkAttributeData = (params: any) => { const fetchLinkAttributeData = (params: any) => {
console.log(params, 'params') console.log(params, 'params')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getProductPlatformGetCategoryAttributeList({...params, categoryId: selectKey, name: params.name || '', isByCategory: true}).then(res=>{ PublicApi.getProductPlatformGetCategoryAttributeList({ ...params, categoryId: selectKey, name: params.name || '', isByCategory: true }).then(res => {
resolve(res.data) resolve(res.data)
setLinkTableRowData(res.data.data) setLinkTableRowData(res.data.data)
}) })
...@@ -72,21 +72,21 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -72,21 +72,21 @@ const CategoryAttributes: React.FC<{}> = () => {
// 获取所有属性列表 modal // 获取所有属性列表 modal
const fetchAttributeData = (params: any) => { const fetchAttributeData = (params: any) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getProductPlatformGetCategoryAttributeList({...params, categoryId: selectKey, name: params.name || '', isByCategory: false}).then(res=>{ PublicApi.getProductPlatformGetCategoryAttributeList({ ...params, categoryId: selectKey, name: params.name || '', isByCategory: false }).then(res => {
resolve(res.data) resolve(res.data)
}) })
}) })
} }
const handleSee = (record: any) => { const handleSee = (record: any) => {
history.push(`/classAndProperty/categoryAttributes/viewAttributes?id=${record.id}`) history.push(`/rootcommodity/classAndProperty/categoryAttributes/viewAttributes?id=${record.id}`)
console.log(record) console.log(record)
} }
const handleSelectOk = () => { const handleSelectOk = () => {
setRoleVisible(false) setRoleVisible(false)
PublicApi.postProductPlatformSaveCategoryAttribute({ categoryId: selectKey, attributeIds: attributeRowCtl.selectedRowKeys }).then(res=>{ PublicApi.postProductPlatformSaveCategoryAttribute({ categoryId: selectKey, attributeIds: attributeRowCtl.selectedRowKeys }).then(res => {
if(res.code === 1000) if (res.code === 1000)
setTimeout(() => ref.current.reload(), 500) setTimeout(() => ref.current.reload(), 500)
}) })
} }
...@@ -149,7 +149,7 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -149,7 +149,7 @@ const CategoryAttributes: React.FC<{}> = () => {
<> <>
<Popconfirm <Popconfirm
title="是否解除关联?" title="是否解除关联?"
onConfirm={()=>clickRelief(record.id)} onConfirm={() => clickRelief(record.id)}
okText="是" okText="是"
cancelText="否" cancelText="否"
> >
...@@ -202,7 +202,7 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -202,7 +202,7 @@ const CategoryAttributes: React.FC<{}> = () => {
] ]
const clickRelief = (paramsId: number) => { const clickRelief = (paramsId: number) => {
PublicApi.postProductPlatformDeleteCategoryAttribute({ categoryId: currentCategoryRef.current, attributeIds: [paramsId] }).then(res=>{ PublicApi.postProductPlatformDeleteCategoryAttribute({ categoryId: currentCategoryRef.current, attributeIds: [paramsId] }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
...@@ -231,14 +231,14 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -231,14 +231,14 @@ const CategoryAttributes: React.FC<{}> = () => {
<h3 className="mb-30">选择要编辑的项目</h3> <h3 className="mb-30">选择要编辑的项目</h3>
{ {
treeData && treeData.length > 0 treeData && treeData.length > 0
? <TabTree ? <TabTree
fetchData = {params => fetchCategoryTreeData(params)} fetchData={params => fetchCategoryTreeData(params)}
treeData={treeData} treeData={treeData}
handleSelect={(key, node) => onHandleSelect(key, node)} handleSelect={(key, node) => onHandleSelect(key, node)}
customKey="id" customKey="id"
/> />
: :
<>暂无菜单</> <>暂无菜单</>
} }
</Card> </Card>
</Col> </Col>
...@@ -279,7 +279,7 @@ const CategoryAttributes: React.FC<{}> = () => { ...@@ -279,7 +279,7 @@ const CategoryAttributes: React.FC<{}> = () => {
}, },
children: ( children: (
<> <>
<Button type="primary" icon={<PlusOutlined />} onClick={handleNewLink} style={{marginBottom: 24}}> <Button type="primary" icon={<PlusOutlined />} onClick={handleNewLink} style={{ marginBottom: 24 }}>
新建 新建
</Button> </Button>
</> </>
......
...@@ -19,7 +19,7 @@ const formActions = createFormActions() ...@@ -19,7 +19,7 @@ const formActions = createFormActions()
const treeActions = createTreeActions() const treeActions = createTreeActions()
const fetchAttributeTreeData = async (params?) => { const fetchAttributeTreeData = async (params?) => {
const res = await PublicApi.getProductPlatformGetAttributeTree({filterInput: true}) const res = await PublicApi.getProductPlatformGetAttributeTree({ filterInput: true })
return res return res
} }
...@@ -49,7 +49,7 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -49,7 +49,7 @@ const PropertyValue: React.FC<{}> = () => {
let prefix = sessionStorage.getItem('beforeKeyPrefix') let prefix = sessionStorage.getItem('beforeKeyPrefix')
let beforeKey: any = history.location.query.attrId let beforeKey: any = history.location.query.attrId
if(beforeKey){ // 展开之前的选择项 拼接含有字母字符串的key if (beforeKey) { // 展开之前的选择项 拼接含有字母字符串的key
setSelectKey(beforeKey) setSelectKey(beforeKey)
let evilKey = `${prefix}_${beforeKey}` let evilKey = `${prefix}_${beforeKey}`
treeActions.setExpandedKeys([evilKey]) treeActions.setExpandedKeys([evilKey])
...@@ -59,20 +59,20 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -59,20 +59,20 @@ const PropertyValue: React.FC<{}> = () => {
} }
}, []) }, [])
useEffect(()=>{ useEffect(() => {
if(selectKey) if (selectKey)
ref.current.reload() ref.current.reload()
// ref.current.reload({current: 1, pageSize: 10, name: '', attributeId: selectKey}) // ref.current.reload({current: 1, pageSize: 10, name: '', attributeId: selectKey})
}, [selectKey]) }, [selectKey])
const onHandleSelect = (key, node) => { const onHandleSelect = (key, node) => {
if (node.children && node.children.length > 0) { if (node.children && node.children.length > 0) {
return ; return;
} }
if(key){ if (key) {
let arr = key.split('_'); let arr = key.split('_');
sessionStorage.setItem('beforeKeyPrefix', arr[0]) sessionStorage.setItem('beforeKeyPrefix', arr[0])
setSelectKey(arr[arr.length-1]) setSelectKey(arr[arr.length - 1])
setSelectNode(node) setSelectNode(node)
} }
} }
...@@ -83,7 +83,7 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -83,7 +83,7 @@ const PropertyValue: React.FC<{}> = () => {
...params, ...params,
name: params.name || '', name: params.name || '',
attributeId: selectKey attributeId: selectKey
}).then(res=>{ }).then(res => {
const { data } = res const { data } = res
resolve(data) resolve(data)
}) })
...@@ -91,7 +91,7 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -91,7 +91,7 @@ const PropertyValue: React.FC<{}> = () => {
} }
const handleSee = (record: any) => { const handleSee = (record: any) => {
history.push(`/classAndProperty/propertyValue/detail?attrId=${selectKey}&attrName=${selectNode._title}&attrValueId=${record.id}&isSee=true&type=${record.type}`) history.push(`/rootcommodity/classAndProperty/propertyValue/detail?attrId=${selectKey}&attrName=${selectNode._title}&attrValueId=${record.id}&isSee=true&type=${record.type}`)
} }
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
...@@ -166,14 +166,14 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -166,14 +166,14 @@ const PropertyValue: React.FC<{}> = () => {
]; ];
const confirm = (record: any) => { const confirm = (record: any) => {
PublicApi.postProductPlatformUpdateAttributeValueStatus({id: record.id, isEnable: !record.isEnable}).then(res=>{ PublicApi.postProductPlatformUpdateAttributeValueStatus({ id: record.id, isEnable: !record.isEnable }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
const clickDelete = (record: any) => { const clickDelete = (record: any) => {
PublicApi.postProductPlatformDeleteAttributeValue({ id: record.id }).then(res=>{ PublicApi.postProductPlatformDeleteAttributeValue({ id: record.id }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
...@@ -188,16 +188,16 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -188,16 +188,16 @@ const PropertyValue: React.FC<{}> = () => {
<h3 className="mb-30">选择要编辑的项目</h3> <h3 className="mb-30">选择要编辑的项目</h3>
{ {
treeData && treeData.length > 0 treeData && treeData.length > 0
? <TabTree ? <TabTree
fetchData = {params => fetchAttributeTreeData(params)} fetchData={params => fetchAttributeTreeData(params)}
treeData={treeData} treeData={treeData}
actions={treeActions} actions={treeActions}
handleSelect={(key, node) => onHandleSelect(key, node)} handleSelect={(key, node) => onHandleSelect(key, node)}
customKey="id" customKey="id"
customExpandkeys={customExpandkeys} customExpandkeys={customExpandkeys}
/> />
: :
<>暂无菜单</> <>暂无菜单</>
} }
</Card> </Card>
</Col> </Col>
...@@ -224,7 +224,7 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -224,7 +224,7 @@ const PropertyValue: React.FC<{}> = () => {
'x-component-props': { 'x-component-props': {
placeholder: '属性值名称', placeholder: '属性值名称',
style: { style: {
marginBottom:24 marginBottom: 24
} }
}, },
'x-component': 'Search' 'x-component': 'Search'
...@@ -243,12 +243,12 @@ const PropertyValue: React.FC<{}> = () => { ...@@ -243,12 +243,12 @@ const PropertyValue: React.FC<{}> = () => {
type="primary" type="primary"
icon={<PlusOutlined />} icon={<PlusOutlined />}
onClick={() => { onClick={() => {
history.push(`/classAndProperty/propertyValue/add?attrId=${selectKey||history.location.query.attrId}&attrName=${selectNode?._title||history.location.query.attrName}&type=${selectNode?.type||history.location.query.type}`) history.push(`/classAndProperty/propertyValue/add?attrId=${selectKey || history.location.query.attrId}&attrName=${selectNode?._title || history.location.query.attrName}&type=${selectNode?.type || history.location.query.type}`)
}} }}
style={{marginBottom: 24}} style={{ marginBottom: 24 }}
> >
新建 新建
</Button> </Button>
</> </>
) )
}} }}
......
...@@ -32,7 +32,7 @@ const Products: React.FC<{}> = () => { ...@@ -32,7 +32,7 @@ const Products: React.FC<{}> = () => {
key: 'name', key: 'name',
className: 'commonPickColor', className: 'commonPickColor',
render: (text: any, record: any) => <EyePreview render: (text: any, record: any) => <EyePreview
url={`/commodity/products/detail?id=${record.id}`} url={`/rootcommodity/commodity/productWillCheck/detail?id=${record.id}`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -32,7 +32,7 @@ const Products: React.FC<{}> = () => { ...@@ -32,7 +32,7 @@ const Products: React.FC<{}> = () => {
className: 'commonPickColor', className: 'commonPickColor',
// eslint-disable-next-line react/display-name // eslint-disable-next-line react/display-name
render: (text: any, record: any) => <EyePreview render: (text: any, record: any) => <EyePreview
url={`/commodity/products/detail?id=${record.id}`} url={`/rootcommodity/commodity/products/detail?id=${record.id}`}
> >
{text} {text}
</EyePreview> </EyePreview>
...@@ -66,12 +66,12 @@ const Products: React.FC<{}> = () => { ...@@ -66,12 +66,12 @@ const Products: React.FC<{}> = () => {
title: '产品定价', title: '产品定价',
dataIndex: 'priceType', dataIndex: 'priceType',
key: 'priceType', key: 'priceType',
render: (text:any, reocrd:any)=>{ render: (text: any, reocrd: any) => {
if(text===1) if (text === 1)
return '现货价格' return '现货价格'
else if(text===2) else if (text === 2)
return '价格需要询价' return '价格需要询价'
else if(text===3) else if (text === 3)
return '积分兑换商品' return '积分兑换商品'
}, },
}, },
...@@ -79,20 +79,20 @@ const Products: React.FC<{}> = () => { ...@@ -79,20 +79,20 @@ const Products: React.FC<{}> = () => {
title: '价格', title: '价格',
dataIndex: 'min', dataIndex: 'min',
key: 'min', key: 'min',
render: (text:any, reocrd:any) => { render: (text: any, reocrd: any) => {
if(reocrd.priceType === 1){ if (reocrd.priceType === 1) {
if(reocrd.max === reocrd.min) if (reocrd.max === reocrd.min)
return <>{reocrd.min}</> return <>{reocrd.min}</>
else else
return <>{reocrd.min} ~ ¥{reocrd.max}</> return <>{reocrd.min} ~ ¥{reocrd.max}</>
} }
if(reocrd.priceType === 3){ if (reocrd.priceType === 3) {
if(reocrd.max === reocrd.min) if (reocrd.max === reocrd.min)
return <>{reocrd.min}</> return <>{reocrd.min}</>
else else
return <>{reocrd.min} ~ {reocrd.max}</> return <>{reocrd.min} ~ {reocrd.max}</>
} }
if(reocrd.priceType === 2) if (reocrd.priceType === 2)
return null return null
} }
}, },
...@@ -100,7 +100,7 @@ const Products: React.FC<{}> = () => { ...@@ -100,7 +100,7 @@ const Products: React.FC<{}> = () => {
title: '申请审核时间', title: '申请审核时间',
dataIndex: 'applyTime', dataIndex: 'applyTime',
key: 'applyTime', key: 'applyTime',
render: (text:any, record:any)=>text && moment(text).format('YYYY-MM-DD HH:mm:ss'), render: (text: any, record: any) => text && moment(text).format('YYYY-MM-DD HH:mm:ss'),
defaultSortOrder: 'descend', defaultSortOrder: 'descend',
sorter: (a, b) => a.applyTime - b.applyTime, sorter: (a, b) => a.applyTime - b.applyTime,
}, },
...@@ -142,12 +142,12 @@ const Products: React.FC<{}> = () => { ...@@ -142,12 +142,12 @@ const Products: React.FC<{}> = () => {
<StandardTable <StandardTable
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
tableProps={{rowKey: 'id'}} tableProps={{ rowKey: 'id' }}
fetchTableData={(params: any) => fetchData(params)} fetchTableData={(params: any) => fetchData(params)}
controlRender={ controlRender={
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values =>ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
$, $,
......
...@@ -37,7 +37,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -37,7 +37,7 @@ const Trademark: React.FC<{}> = () => {
key: 'name', key: 'name',
className: 'commonPickColor', className: 'commonPickColor',
render: (text: any, record: any) => <EyePreview render: (text: any, record: any) => <EyePreview
url={`/trademark/trademarkSearch/detail?id=${record.id}&preview=1`} url={`/rootcommodity/trademark/trademarkSearch/detail?id=${record.id}&preview=1`}
> >
{text} {text}
</EyePreview> </EyePreview>
...@@ -94,7 +94,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -94,7 +94,7 @@ const Trademark: React.FC<{}> = () => {
inline: false, inline: false,
effects: ($, action) => { effects: ($, action) => {
$('onFieldValueChange', 'status').subscribe(state => { $('onFieldValueChange', 'status').subscribe(state => {
ref.current.reload({current:1, pageSize: 10, status: state.value}) ref.current.reload({ current: 1, pageSize: 10, status: state.value })
}) })
}, },
schema: { schema: {
...@@ -135,9 +135,9 @@ const Trademark: React.FC<{}> = () => { ...@@ -135,9 +135,9 @@ const Trademark: React.FC<{}> = () => {
}, },
}} }}
formilyChilds={{ formilyChilds={{
children: ({actions}) => ( children: ({ actions }) => (
<> <>
<Button onClick={() => handleReset(actions) } style={{marginLeft:16}}> <Button onClick={() => handleReset(actions)} style={{ marginLeft: 16 }}>
重置 重置
</Button> </Button>
</> </>
......
...@@ -39,7 +39,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -39,7 +39,7 @@ const Trademark: React.FC<{}> = () => {
key: 'name', key: 'name',
className: 'commonPickColor', className: 'commonPickColor',
render: (text: any, record: any) => <EyePreview render: (text: any, record: any) => <EyePreview
url={`/trademark/trademarkSearch/detail?id=${record.id}&preview=1`} url={`/rootcommodity/trademark/trademarkWillCheck/detail?id=${record.id}&preview=1`}
> >
{text} {text}
</EyePreview> </EyePreview>
...@@ -80,7 +80,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -80,7 +80,7 @@ const Trademark: React.FC<{}> = () => {
render: (text: any, record: any) => { render: (text: any, record: any) => {
return ( return (
<> <>
<Button type='link' onClick={()=> history.push(`/trademark/trademarkWillCheck/detail?id=${record.id}`)}>审核</Button> <Button type='link' onClick={() => history.push(`/trademark/trademarkWillCheck/detail?id=${record.id}`)}>审核</Button>
</> </>
) )
} }
...@@ -94,7 +94,7 @@ const Trademark: React.FC<{}> = () => { ...@@ -94,7 +94,7 @@ const Trademark: React.FC<{}> = () => {
const confirm = (record: any) => { const confirm = (record: any) => {
PublicApi.postProductBrandUpdateBrandEnable({ id: record.id, isEnable: !record.isEnable }).then(res => { PublicApi.postProductBrandUpdateBrandEnable({ id: record.id, isEnable: !record.isEnable }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
...@@ -104,12 +104,12 @@ const Trademark: React.FC<{}> = () => { ...@@ -104,12 +104,12 @@ const Trademark: React.FC<{}> = () => {
const handelDelete = (record: any) => { const handelDelete = (record: any) => {
PublicApi.postProductBrandDeleteBrand({ id: record.id }).then(res => { PublicApi.postProductBrandDeleteBrand({ id: record.id }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
const handleApplyCheck = (record:any) => { const handleApplyCheck = (record: any) => {
PublicApi.postProductBrandApplyCheckBrand({id: record.id}).then(res=>{ PublicApi.postProductBrandApplyCheckBrand({ id: record.id }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
...@@ -143,18 +143,18 @@ const Trademark: React.FC<{}> = () => { ...@@ -143,18 +143,18 @@ const Trademark: React.FC<{}> = () => {
}, },
properties: { properties: {
// status: { // status: {
// type: 'string', // type: 'string',
// enum: [ // enum: [
// { label: '全部', value: 0 }, // { label: '全部', value: 0 },
// { label: '待提交审核', value: 1 }, // { label: '待提交审核', value: 1 },
// { label: '待审核', value: 2 }, // { label: '待审核', value: 2 },
// { label: '审核不通过', value: 3 }, // { label: '审核不通过', value: 3 },
// { label: '审核通过', value: 4 } // { label: '审核通过', value: 4 }
// ], // ],
// default: 2, // default: 2,
// 'x-component-props': { // 'x-component-props': {
// placeholder: '状态', // placeholder: '状态',
// } // }
// }, // },
name: { name: {
type: 'string', type: 'string',
...@@ -169,18 +169,18 @@ const Trademark: React.FC<{}> = () => { ...@@ -169,18 +169,18 @@ const Trademark: React.FC<{}> = () => {
} }
} }
}} }}
// formilyChilds={{ // formilyChilds={{
// layouts: { // layouts: {
// order: 0 // order: 0
// }, // },
// children: ({actions}) => ( // children: ({actions}) => (
// <> // <>
// <Button onClick={() => handleReset(actions) } style={{marginLeft:16}}> // <Button onClick={() => handleReset(actions) } style={{marginLeft:16}}>
// 重置 // 重置
// </Button> // </Button>
// </> // </>
// ) // )
// }} // }}
/> />
</Card> </Card>
</PageHeaderWrapper> </PageHeaderWrapper>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment