Commit f260570b authored by leimo's avatar leimo

Merge branch '20418order' into 'v2-220418'

去掉新增按钮 See merge request linkseeks-design/pro-platform!315
parents ec0df338 8b4d435c
...@@ -32,12 +32,13 @@ const DeliveryNoticeManageB2B: React.FC = () => { ...@@ -32,12 +32,13 @@ const DeliveryNoticeManageB2B: React.FC = () => {
const formActions = createFormActions() const formActions = createFormActions()
const controllerBtns = (<Space> const controllerBtns = (<Space>
<Link to={"/memberCenter/order/deliveryNotice/manageB2B/add"}> {/* <Link to={"/memberCenter/order/deliveryNotice/manageB2B/add"}>
<Button type='primary' icon={<PlusOutlined />}> <Button type='primary' icon={<PlusOutlined />}>
新增 新增
</Button> </Button>
</Link> </Link> */}
</Space>) </Space>)
const renderOptionButton = (record: any) => { const renderOptionButton = (record: any) => {
const btnAuthOfOperationTextMap = { const btnAuthOfOperationTextMap = {
'修改': 'DevTest', '修改': 'DevTest',
...@@ -127,6 +128,9 @@ const DeliveryNoticeManageB2B: React.FC = () => { ...@@ -127,6 +128,9 @@ const DeliveryNoticeManageB2B: React.FC = () => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{
controllerBtns,
}}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
$, $,
......
...@@ -32,11 +32,11 @@ const DeliveryNoticeManageSRM: React.FC = () => { ...@@ -32,11 +32,11 @@ const DeliveryNoticeManageSRM: React.FC = () => {
const controllerBtns = ( const controllerBtns = (
<Space> <Space>
<Link to="/memberCenter/order/deliveryNotice/manageSRM/add"> {/* <Link to="/memberCenter/order/deliveryNotice/manageSRM/add">
<Button type='primary' icon={<PlusOutlined />}> <Button type='primary' icon={<PlusOutlined />}>
新增 新增
</Button> </Button>
</Link> </Link> */}
</Space> </Space>
) )
const renderOptionButton = (record: any) => { const renderOptionButton = (record: any) => {
...@@ -123,7 +123,9 @@ const DeliveryNoticeManageSRM: React.FC = () => { ...@@ -123,7 +123,9 @@ const DeliveryNoticeManageSRM: React.FC = () => {
<NiceForm <NiceForm
actions={formActions} actions={formActions}
onSubmit={values => ref.current.reload(values)} onSubmit={values => ref.current.reload(values)}
expressionScope={{
controllerBtns,
}}
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
$, $,
......
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