Commit a3304074 authored by 前端-许佳敏's avatar 前端-许佳敏

feat: 平台权限菜单调整

parent ff78a5b3
...@@ -14,7 +14,21 @@ export default { ...@@ -14,7 +14,21 @@ export default {
component: '@/pages/authConfig/memberSystem', component: '@/pages/authConfig/memberSystem',
}, },
{ {
path: '/authConfig/memberSystem/memberDetail', path: '/authConfig/memberSystem/memberDetail/add',
name: 'memberDetail',
component: '@/pages/authConfig/memberSystem/memberDetail',
hideInMenu: true,
hidePageHeader: true
},
{
path: '/authConfig/memberSystem/memberDetail/update',
name: 'memberDetail',
component: '@/pages/authConfig/memberSystem/memberDetail',
hideInMenu: true,
hidePageHeader: true
},
{
path: '/authConfig/memberSystem/memberDetail/preview',
name: 'memberDetail', name: 'memberDetail',
component: '@/pages/authConfig/memberSystem/memberDetail', component: '@/pages/authConfig/memberSystem/memberDetail',
hideInMenu: true, hideInMenu: true,
...@@ -26,7 +40,21 @@ export default { ...@@ -26,7 +40,21 @@ export default {
component: '@/pages/authConfig/userSystem', component: '@/pages/authConfig/userSystem',
}, },
{ {
path: '/authConfig/userSystem/userDetail', path: '/authConfig/userSystem/userDetail/add',
name: 'userSystem',
component: '@/pages/authConfig/userSystem/userDetail',
hideInMenu: true,
hidePageHeader: true
},
{
path: '/authConfig/userSystem/userDetail/update',
name: 'userSystem',
component: '@/pages/authConfig/userSystem/userDetail',
hideInMenu: true,
hidePageHeader: true
},
{
path: '/authConfig/userSystem/userDetail/preview',
name: 'userSystem', name: 'userSystem',
component: '@/pages/authConfig/userSystem/userDetail', component: '@/pages/authConfig/userSystem/userDetail',
hideInMenu: true, hideInMenu: true,
......
...@@ -33,7 +33,7 @@ const MemberSystem: React.FC<{}> = () => { ...@@ -33,7 +33,7 @@ const MemberSystem: React.FC<{}> = () => {
} }
const updateItem = (record) => { const updateItem = (record) => {
history.push(`/authConfig/memberSystem/memberDetail?id=${record.id}&preview=0`) history.push(`/authConfig/memberSystem/memberDetail/update?id=${record.id}&preview=0`)
} }
const handleStatus = async (record) => { const handleStatus = async (record) => {
...@@ -58,7 +58,7 @@ const MemberSystem: React.FC<{}> = () => { ...@@ -58,7 +58,7 @@ const MemberSystem: React.FC<{}> = () => {
align: 'center', align: 'center',
key: 'roleName', key: 'roleName',
className: 'commonPickColor', className: 'commonPickColor',
render: (text, record) => <EyePreview url={`/authConfig/memberSystem/memberDetail?id=${record.id}&preview=1`}>{text}</EyePreview> render: (text, record) => <EyePreview url={`/authConfig/memberSystem/memberDetail/preview?id=${record.id}&preview=1`}>{text}</EyePreview>
}, },
{ {
title: '描述', title: '描述',
...@@ -107,7 +107,7 @@ const MemberSystem: React.FC<{}> = () => { ...@@ -107,7 +107,7 @@ const MemberSystem: React.FC<{}> = () => {
layouts: { layouts: {
order: 2 order: 2
}, },
children: <Button style={{width: 140}} icon={<PlusOutlined/>} onClick={() => history.push('/authConfig/memberSystem/memberDetail')} type='primary'>新建</Button> children: <Button style={{width: 140}} icon={<PlusOutlined/>} onClick={() => history.push('/authConfig/memberSystem/memberDetail/add')} type='primary'>新建</Button>
}} }}
formilyProps={{ formilyProps={{
layouts: { layouts: {
......
...@@ -26,7 +26,7 @@ const UserSystem: React.FC<{}> = () => { ...@@ -26,7 +26,7 @@ const UserSystem: React.FC<{}> = () => {
const ref = useRef<any>({}) const ref = useRef<any>({})
const addItem = () => { const addItem = () => {
history.push('/authConfig/userSystem/userDetail') history.push('/authConfig/userSystem/userDetail/add')
} }
const deleteItem = (record) => { const deleteItem = (record) => {
// 删除该项 // 删除该项
...@@ -38,7 +38,7 @@ const UserSystem: React.FC<{}> = () => { ...@@ -38,7 +38,7 @@ const UserSystem: React.FC<{}> = () => {
} }
const updateItem = (record) => { const updateItem = (record) => {
history.push(`/authConfig/userSystem/userDetail?id=${record.userId}&preview=0`) history.push(`/authConfig/userSystem/userDetail/update?id=${record.userId}&preview=0`)
} }
const handleStatus = (record) => { const handleStatus = (record) => {
...@@ -56,7 +56,7 @@ const UserSystem: React.FC<{}> = () => { ...@@ -56,7 +56,7 @@ const UserSystem: React.FC<{}> = () => {
align: 'center', align: 'center',
key: 'account', key: 'account',
className: 'commonPickColor', className: 'commonPickColor',
render: (text, record) => <EyePreview url={`/authConfig/userSystem/userDetail?id=${record.userId}&preview=1`}>{text}</EyePreview> render: (text, record) => <EyePreview url={`/authConfig/userSystem/userDetail/preview?id=${record.userId}&preview=1`}>{text}</EyePreview>
}, },
{ {
title: '用户姓名', title: '用户姓名',
......
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