Commit fcf78dfe authored by xiexiuxing's avatar xiexiuxing

按钮权限添加

parent a62ab3c4
......@@ -35,8 +35,8 @@ const homeRoute = {
component: '@/pages/home',
};
// isDev ? [ homeRoute, OrderRoute ] :
// const routes = asyncRoutes;
const routes = isDev ? [ homeRoute, OrderRoute ] : asyncRoutes;
const routes = asyncRoutes;
// const routes = isDev ? [ homeRoute, OrderRoute ] : asyncRoutes;
const memberCenterRoute = {
path: '/memberCenter',
......
......@@ -31,9 +31,9 @@ const DeliveryNoteManage: React.FC = () => {
const controllerBtns = (<Space></Space>)
const renderOptionButton = (r: any) => {
const btnAuthOfOperationTextMap = {
'作废': 'DevTest',
'查看': 'DevTest',
'修改': 'DevTest',
// '作废': 'deliveryNoteManage.generateQualityTesting',
'查看': 'deliveryNoteManage.looking',
'修改': 'deliveryNoteManage.update',
}
const buttonGroup = {
'作废': false,
......@@ -41,7 +41,7 @@ const DeliveryNoteManage: React.FC = () => {
'修改': true,
}
const operationHandler = {
'作废': () => { console.log('作废 :>> ',) },
// '作废': () => { console.log('作废 :>> ',) },
'修改': () => {
history.push(`/memberCenter/order/receivingNote/deliveryNoteManage/edit?id=${r.id}`)
},
......@@ -86,13 +86,13 @@ const DeliveryNoteManage: React.FC = () => {
)
}
},
/*{
{
title: '操作',
dataIndex: '',
key: 'x',
align: 'center',
render: (record) => renderOptionButton(record)
},*/
}
]
const fetchData = (params: unknown) => {
......
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