Commit 737551d3 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理所有待新增订单页面表格顶部下拉按钮无效的问题

parent 54e53e2a
...@@ -121,9 +121,9 @@ const ReadyAddB2bOrder:React.FC<ReadyAddB2bOrderProps> = () => { ...@@ -121,9 +121,9 @@ const ReadyAddB2bOrder:React.FC<ReadyAddB2bOrderProps> = () => {
</Button> </Button>
</AuthButton> </AuthButton>
<DropDeleteDown> <DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}> <Menu>
<AuthButton btnCode="readyAddB2bOrder.piliangshanchu"> <AuthButton btnCode="readyAddB2bOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}> <Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})} {intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})}
</Menu.Item> </Menu.Item>
</AuthButton> </AuthButton>
......
...@@ -119,9 +119,9 @@ const ReadyAddCashOrder:React.FC<ReadyAddCashOrderProps> = () => { ...@@ -119,9 +119,9 @@ const ReadyAddCashOrder:React.FC<ReadyAddCashOrderProps> = () => {
</Button> </Button>
</AuthButton> </AuthButton>
<DropDeleteDown> <DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}> <Menu>
<AuthButton btnCode="readyAddCashOrder.piliangshanchu"> <AuthButton btnCode="readyAddCashOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}> <Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})} {intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})}
</Menu.Item> </Menu.Item>
</AuthButton> </AuthButton>
......
...@@ -140,8 +140,8 @@ const ReadyAddOrder:React.FC<ReadyAddOrderProps> = (props) => { ...@@ -140,8 +140,8 @@ const ReadyAddOrder:React.FC<ReadyAddOrderProps> = (props) => {
} }
</Button> </Button>
<DropDeleteDown> <DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}> <Menu>
<Menu.Item key="1" icon={<DeleteOutlined />}> <Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{ {
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'}) intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
} }
......
...@@ -121,9 +121,9 @@ const ReadyAddRequisitionOrder:React.FC<ReadyAddRequisitionOrderProps> = () => { ...@@ -121,9 +121,9 @@ const ReadyAddRequisitionOrder:React.FC<ReadyAddRequisitionOrderProps> = () => {
</Button> </Button>
</AuthButton> </AuthButton>
<DropDeleteDown> <DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}> <Menu>
<AuthButton btnCode="readyAddRequisitionOrder.shanchu"> <AuthButton btnCode="readyAddRequisitionOrder.shanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}> <Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{ {
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'}) intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
} }
......
import React from 'react' import React from 'react'
import { history, useIntl } from 'umi' import { history, useIntl } from 'umi'
import { Card, Button, Space, Menu, message } from 'antd' import { Card, Button, Space, Menu, message, Dropdown } from 'antd'
import StandardTable from '@/components/StandardTable'; import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { PlusCircleOutlined, DeleteOutlined } from '@ant-design/icons' import { PlusCircleOutlined, DeleteOutlined } from '@ant-design/icons'
...@@ -123,9 +123,9 @@ const ReadyAddSrmOrder:React.FC<ReadyAddSrmOrderProps> = () => { ...@@ -123,9 +123,9 @@ const ReadyAddSrmOrder:React.FC<ReadyAddSrmOrderProps> = () => {
</Button> </Button>
</AuthButton> </AuthButton>
<DropDeleteDown> <DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}> <Menu>
<AuthButton btnCode="readyAddSrmOrder.piliangshanchu"> <AuthButton btnCode="readyAddSrmOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}> <Menu.Item key="1" icon={<DeleteOutlined />} onClick={() => handleMenuClick({key: '1'})}>
{ {
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'}) intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
} }
......
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