|
|
@@ -5,7 +5,6 @@ import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; |
|
|
|
import ProTable from '@ant-design/pro-table'; |
|
|
|
import CreateForm from './components/CreateForm'; |
|
|
|
import FoodMenuGoods from './components/FoodMenuGoods' |
|
|
|
import PushDevice from './components/PushDevice' |
|
|
|
import { |
|
|
|
GetFoodPage, |
|
|
|
FoodAdd, |
|
|
@@ -92,15 +91,7 @@ const FoodMenu = () => { |
|
|
|
> |
|
|
|
关联商品 |
|
|
|
</a>, |
|
|
|
<a |
|
|
|
key="update" |
|
|
|
onClick={() => { |
|
|
|
setpushdeviceModalVisible(true); |
|
|
|
setCurrentRow(record); |
|
|
|
}} |
|
|
|
> |
|
|
|
下发 |
|
|
|
</a>, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
]; |
|
|
@@ -253,15 +244,6 @@ const handleRemove = async (selectedRows) => { |
|
|
|
message.error(r.errors); |
|
|
|
} |
|
|
|
}) |
|
|
|
}} |
|
|
|
/> |
|
|
|
<PushDevice pushdeviceModalVisible={pushdeviceModalVisible} values={currentRow || {}} |
|
|
|
onCancel={() => { |
|
|
|
setpushdeviceModalVisible(false); |
|
|
|
setCurrentRow(undefined); |
|
|
|
}} |
|
|
|
handleOk={(values)=>{ |
|
|
|
|
|
|
|
}} |
|
|
|
/> |
|
|
|
</PageContainer> |
|
|
|