Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
e48dd5a3
Unverified
Commit
e48dd5a3
authored
Aug 11, 2023
by
yqwoe
Committed by
GitHub
Aug 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature][Web] Menu permission control (#2200)
* feat: 菜单权限控制
parent
ed6b27ed
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
275 additions
and
229 deletions
+275
-229
application-mysql.yml
dinky-admin/src/main/resources/application-mysql.yml
+1
-2
routes.ts
dinky-web/config/routes.ts
+2
-0
access.ts
dinky-web/src/access.ts
+13
-1
app.tsx
dinky-web/src/app.tsx
+18
-0
index.tsx
...b/src/pages/AuthCenter/Menu/components/MenuForm/index.tsx
+198
-181
index.tsx
...b/src/pages/AuthCenter/Menu/components/MenuList/index.tsx
+12
-13
index.tsx
...b/src/pages/AuthCenter/Menu/components/MenuTree/index.tsx
+2
-3
index.tsx
dinky-web/src/pages/AuthCenter/Menu/index.tsx
+10
-11
index.tsx
dinky-web/src/pages/Home/index.tsx
+19
-18
No files found.
dinky-admin/src/main/resources/application-mysql.yml
View file @
e48dd5a3
...
@@ -20,4 +20,4 @@ spring:
...
@@ -20,4 +20,4 @@ spring:
url
:
jdbc:mysql://${MYSQL_ADDR:127.0.0.1:3306}/${MYSQL_DATABASE:dinky}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://${MYSQL_ADDR:127.0.0.1:3306}/${MYSQL_DATABASE:dinky}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username
:
${MYSQL_USERNAME:dinky}
username
:
${MYSQL_USERNAME:dinky}
password
:
${MYSQL_PASSWORD:dinky}
password
:
${MYSQL_PASSWORD:dinky}
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
\ No newline at end of file
dinky-web/config/routes.ts
View file @
e48dd5a3
...
@@ -261,6 +261,8 @@ export default [
...
@@ -261,6 +261,8 @@ export default [
{
{
path
:
'/account/center'
,
path
:
'/account/center'
,
footerRender
:
false
,
footerRender
:
false
,
name
:
'center'
,
hideInMenu
:
true
,
component
:
'./Other/PersonCenter'
,
component
:
'./Other/PersonCenter'
,
},
},
{
{
...
...
dinky-web/src/access.ts
View file @
e48dd5a3
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
{
API
}
from
"./services/data"
;
import
{
API
}
from
'./services/data'
;
/**
/**
* @see https://umijs.org/zh-CN/plugins/plugin-access
* @see https://umijs.org/zh-CN/plugins/plugin-access
...
@@ -24,5 +24,17 @@ export default function access(initialState: { currentUser?: API.CurrentUser } |
...
@@ -24,5 +24,17 @@ export default function access(initialState: { currentUser?: API.CurrentUser } |
const
{
currentUser
}
=
initialState
??
{};
const
{
currentUser
}
=
initialState
??
{};
return
{
return
{
canAdmin
:
currentUser
&&
currentUser
.
user
.
superAdminFlag
,
canAdmin
:
currentUser
&&
currentUser
.
user
.
superAdminFlag
,
canAuth
({
path
,
...
route
})
{
if
(
currentUser
&&
currentUser
.
user
.
superAdminFlag
)
{
return
true
;
}
//TODO根据path判断应用、目录、菜单、按钮,判断返回true,false
//TODOpath可以是window.location.href、key
return
currentUser
?.
menuList
?.
some
?.(
(
item
)
=>
item
?.
path
?.
startsWith
(
path
)
||
item
?.
path
?.
endsWith
(
path
),
);
},
};
};
}
}
dinky-web/src/app.tsx
View file @
e48dd5a3
...
@@ -36,6 +36,24 @@ import { API } from "./services/data";
...
@@ -36,6 +36,24 @@ import { API } from "./services/data";
// const isDev = process.env.NODE_ENV === "development";
// const isDev = process.env.NODE_ENV === "development";
const
loginPath
=
API_CONSTANTS
.
LOGIN_PATH
;
const
loginPath
=
API_CONSTANTS
.
LOGIN_PATH
;
const
whiteList
=
[
'/user'
,
'/user/login'
]
/**
* 初始化路由鉴权
* @param param0
*/
export
function
patchRoutes
({
routes
}:
any
)
{
Object
.
keys
(
routes
).
forEach
(
key
=>
{
let
route
=
routes
[
key
];
if
(
!
whiteList
.
includes
(
route
.
path
)){
routes
[
key
]
=
{...
route
,
access
:
'canAuth'
}
}
})
}
/**
/**
* @see https://umijs.org/zh-CN/plugins/plugin-initial-state
* @see https://umijs.org/zh-CN/plugins/plugin-initial-state
* */
* */
...
...
dinky-web/src/pages/AuthCenter/Menu/components/MenuForm/index.tsx
View file @
e48dd5a3
...
@@ -17,194 +17,211 @@
...
@@ -17,194 +17,211 @@
*
*
*/
*/
import
{
FormContextValue
}
from
'@/components/Context/FormContext'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Form
,
Space
,
TreeSelect
}
from
'antd'
;
import
{
FormContextValue
}
from
'@/components/Context/FormContext'
;
import
{
import
{
Key
,
MENU_ICON_OPTIONS
,
ProForm
,
MENU_TYPE_OPTIONS
,
ProFormRadio
,
}
from
'@/pages/AuthCenter/Menu/components/MenuList/constants'
;
ProFormSelect
,
import
{
buildMenuFormTree
}
from
'@/pages/AuthCenter/Menu/function'
;
ProFormText
,
import
{
FORM_LAYOUT_PUBLIC
}
from
'@/services/constants'
;
ProFormTextArea
,
import
{
SysMenu
}
from
'@/types/RegCenter/data'
;
ProFormTreeSelect
import
{
l
}
from
'@/utils/intl'
;
}
from
"@ant-design/pro-components"
;
import
{
l
}
from
"@/utils/intl"
;
import
{
FORM_LAYOUT_PUBLIC
}
from
"@/services/constants"
;
import
{
SysMenu
}
from
"@/types/RegCenter/data"
;
import
{
buildMenuFormTree
}
from
"@/pages/AuthCenter/Menu/function"
;
import
{
import
{
MENU_TYPE_OPTIONS
,
Key
,
MENU_ICON_OPTIONS
ProForm
,
}
from
"@/pages/AuthCenter/Menu/components/MenuList/constants"
;
ProFormRadio
,
ProFormSelect
,
ProFormText
,
ProFormTextArea
,
ProFormTreeSelect
,
ProFormDigit
}
from
'@ant-design/pro-components'
;
import
{
Form
,
Space
}
from
'antd'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
type
MenuFormProps
=
{
type
MenuFormProps
=
{
onCancel
:
(
flag
?:
boolean
)
=>
void
;
onCancel
:
(
flag
?:
boolean
)
=>
void
;
onSubmit
:
(
values
:
SysMenu
)
=>
void
;
onSubmit
:
(
values
:
SysMenu
)
=>
void
;
values
:
Partial
<
SysMenu
>
;
values
:
Partial
<
SysMenu
>
;
open
:
boolean
,
open
:
boolean
;
disabled
?:
boolean
;
disabled
?:
boolean
;
selectedKeys
:
Key
[]
selectedKeys
:
Key
[];
treeData
:
SysMenu
[];
treeData
:
SysMenu
[];
isRootMenu
?:
boolean
isRootMenu
?:
boolean
;
};
};
const
MenuForm
:
React
.
FC
<
MenuFormProps
>
=
(
props
)
=>
{
const
MenuForm
:
React
.
FC
<
MenuFormProps
>
=
(
props
)
=>
{
const
[
searchValue
,
setSearchValue
]
=
useState
(
''
);
const
[
searchValue
,
setSearchValue
]
=
useState
(
''
)
/**
/**
* init form
* init form
*/
*/
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
/**
/**
* init form context
* init form context
*/
*/
const
formContext
=
React
.
useMemo
<
FormContextValue
>
(
const
formContext
=
React
.
useMemo
<
FormContextValue
>
(()
=>
({
()
=>
({
resetForm
:
()
=>
form
.
resetFields
(),
// 定义 resetForm 方法
resetForm
:
()
=>
form
.
resetFields
(),
// 定义 resetForm 方法
}),
[
form
]);
}),
[
form
],
/**
);
* init props
*/
/**
const
{
* init props
onSubmit
:
handleSubmit
,
*/
onCancel
:
handleModalVisible
,
const
{
values
,
onSubmit
:
handleSubmit
,
open
,
onCancel
:
handleModalVisible
,
disabled
=
false
,
values
,
isRootMenu
=
false
,
open
,
treeData
,
disabled
=
false
,
selectedKeys
,
isRootMenu
=
false
,
}
=
props
;
treeData
,
selectedKeys
,
/**
}
=
props
;
* when modalVisible or values changed, set form values
*/
/**
useEffect
(()
=>
{
* when modalVisible or values changed, set form values
if
(
open
)
form
.
resetFields
();
*/
form
.
setFieldsValue
(
values
);
useEffect
(()
=>
{
},
[
open
,
values
,
form
]);
if
(
open
)
form
.
resetFields
();
form
.
setFieldsValue
(
values
);
/**
},
[
open
,
values
,
form
]);
* handle cancel
*/
/**
const
handleCancel
=
()
=>
{
* handle cancel
handleModalVisible
();
*/
formContext
.
resetForm
();
const
handleCancel
=
()
=>
{
}
handleModalVisible
();
formContext
.
resetForm
();
/**
};
* reset form data
*/
/**
const
handleReset
=
()
=>
{
* reset form data
formContext
.
resetForm
();
*/
}
const
handleReset
=
()
=>
{
formContext
.
resetForm
();
};
/**
* submit form
/**
*/
* submit form
const
submitForm
=
async
(
formData
:
SysMenu
)
=>
{
*/
await
form
.
validateFields
();
const
submitForm
=
async
(
formData
:
SysMenu
)
=>
{
handleSubmit
({...
values
,
...
formData
});
await
form
.
validateFields
();
handleCancel
();
handleSubmit
({
...
values
,
...
formData
});
};
handleCancel
();
/**
};
* construct role form
/**
* @constructor
* construct role form
*/
* @constructor
const
renderMenuForm
=
()
=>
{
*/
return
<>
const
renderMenuForm
=
()
=>
{
<
ProFormTreeSelect
return
(
shouldUpdate
<>
name=
{
'parentId'
}
<
ProFormTreeSelect
label=
{
l
(
'menu.parentId'
)
}
shouldUpdate
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.parentIdPlaceholder'
)}]
}
name=
{
'parentId'
}
placeholder=
{
l
(
'menu.parentIdPlaceholder'
)
}
label=
{
l
(
'menu.parentId'
)
}
fieldProps=
{
{
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.parentIdPlaceholder'
)
}]
}
labelInValue
:
false
,
placeholder=
{
l
(
'menu.parentIdPlaceholder'
)
}
treeData
:
buildMenuFormTree
(
treeData
,
searchValue
,
true
),
fieldProps=
{
{
onSearch
:
value
=>
setSearchValue
(
value
),
labelInValue
:
false
,
treeDefaultExpandAll
:
true
,
treeData
:
[{
label
:
'根菜单'
,
value
:
'-1'
}].
concat
(
}
}
buildMenuFormTree
(
treeData
,
searchValue
,
true
),
/>
),
<
ProFormText
onSearch
:
(
value
)
=>
setSearchValue
(
value
),
name=
"name"
treeDefaultExpandAll
:
true
,
label=
{
l
(
'menu.name'
)
}
}
}
placeholder=
{
l
(
'menu.namePlaceholder'
)
}
/>
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.namePlaceholder'
)}]
}
<
ProFormText
/>
name=
"name"
<
ProFormText
label=
{
l
(
'menu.name'
)
}
name=
"component"
placeholder=
{
l
(
'menu.namePlaceholder'
)
}
label=
{
l
(
'menu.component'
)
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.namePlaceholder'
)
}]
}
placeholder=
{
l
(
'menu.componentPlaceholder'
)
}
/>
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.componentPlaceholder'
)}]
}
<
ProFormText
/>
name=
"component"
<
ProFormText
label=
{
l
(
'menu.component'
)
}
name=
"path"
placeholder=
{
l
(
'menu.componentPlaceholder'
)
}
label=
{
l
(
'menu.path'
)
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.componentPlaceholder'
)
}]
}
placeholder=
{
l
(
'menu.pathPlaceholder'
)
}
/>
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.pathPlaceholder'
)}]
}
<
ProFormText
/>
name=
"path"
label=
{
l
(
'menu.path'
)
}
<
ProFormText
placeholder=
{
l
(
'menu.pathPlaceholder'
)
}
name=
"perms"
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.pathPlaceholder'
)
}]
}
label=
{
l
(
'menu.perms'
)
}
/>
placeholder=
{
l
(
'menu.permsPlaceholder'
)
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.permsPlaceholder'
)}]
}
<
ProFormText
/>
name=
"perms"
label=
{
l
(
'menu.perms'
)
}
<
ProFormSelect
placeholder=
{
l
(
'menu.permsPlaceholder'
)
}
addonAfter=
{
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.permsPlaceholder'
)
}]
}
<
a
key=
{
'reference'
}
href=
{
'https://ant.design/components/icon-cn'
}
>
{
l
(
'menu.icon.reference'
)
}
</
a
>
/>
}
cacheForSwr
<
ProFormSelect
name=
"icon"
allowClear
showSearch
addonAfter=
{
mode=
{
'single'
}
width=
{
'md'
}
<
a
key=
{
'reference'
}
href=
{
'https://ant.design/components/icon-cn'
}
>
options=
{
MENU_ICON_OPTIONS
()
}
{
l
(
'menu.icon.reference'
)
}
label=
{
l
(
'menu.icon'
)
}
</
a
>
placeholder=
{
l
(
'menu.iconPlaceholder'
)
}
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.iconPlaceholder'
)}]
}
cacheForSwr
/>
name=
"icon"
allowClear
<
ProFormRadio
.
Group
showSearch
label=
{
l
(
'menu.type'
)
}
mode=
{
'single'
}
name=
{
'type'
}
width=
{
'md'
}
radioType=
"button"
options=
{
MENU_ICON_OPTIONS
()
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.typePlaceholder'
)}]
}
label=
{
l
(
'menu.icon'
)
}
placeholder=
{
l
(
'menu.typePlaceholder'
)
}
placeholder=
{
l
(
'menu.iconPlaceholder'
)
}
options=
{
MENU_TYPE_OPTIONS
}
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.iconPlaceholder'
)
}]
}
/>
/>
<
ProFormTextArea
<
ProFormRadio
.
Group
name=
"note"
label=
{
l
(
'menu.type'
)
}
label=
{
l
(
'global.table.note'
)
}
name=
{
'type'
}
placeholder=
{
l
(
'role.EnterNote'
)
}
radioType=
"button"
allowClear
rules=
{
[{
required
:
true
,
message
:
l
(
'menu.typePlaceholder'
)
}]
}
/>
placeholder=
{
l
(
'menu.typePlaceholder'
)
}
</>
options=
{
MENU_TYPE_OPTIONS
}
};
/>
<
ProFormDigit
name=
"orderNum"
/**
label=
{
l
(
'menu.orderNum'
)
}
/>
* render
*/
return
<>
<
ProFormTextArea
<
ProForm
name=
"note"
disabled=
{
disabled
}
label=
{
l
(
'global.table.note'
)
}
{
...
FORM_LAYOUT_PUBLIC
}
placeholder=
{
l
(
'role.EnterNote'
)
}
form=
{
form
}
allowClear
initialValues=
{
{...
values
}
}
// init form data
/>
onReset=
{
handleReset
}
</>
onFinish=
{
submitForm
}
);
submitter=
{
{
render
:
(
_
,
dom
)
=>
<
Space
style=
{
{
display
:
'flex'
,
justifyContent
:
'center'
}
}
>
{
dom
}
</
Space
>,}
}
};
layout=
{
'horizontal'
}
>
/**
{
renderMenuForm
()
}
* render
</
ProForm
>
*/
return
(
<>
<
ProForm
disabled=
{
disabled
}
{
...
FORM_LAYOUT_PUBLIC
}
form=
{
form
}
initialValues=
{
{
...
values
}
}
// init form data
onReset=
{
handleReset
}
onFinish=
{
submitForm
}
submitter=
{
{
render
:
(
_
,
dom
)
=>
(
<
Space
style=
{
{
display
:
'flex'
,
justifyContent
:
'center'
}
}
>
{
dom
}
</
Space
>
),
}
}
layout=
{
'horizontal'
}
>
{
renderMenuForm
()
}
</
ProForm
>
</>
</>
);
};
};
export
default
MenuForm
;
export
default
MenuForm
;
dinky-web/src/pages/AuthCenter/Menu/components/MenuList/index.tsx
View file @
e48dd5a3
...
@@ -18,19 +18,19 @@
...
@@ -18,19 +18,19 @@
*/
*/
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
Button
,
Space
}
from
'antd'
;
import
{
handleAddOrUpdate
,
handleRemoveById
,
queryDataByParams
}
from
"@/services/BusinessCrud"
;
import
{
ProCard
}
from
"@ant-design/pro-components"
;
import
{
MenuInfo
}
from
"rc-menu/es/interface"
;
import
{
RIGHT_CONTEXT_MENU
}
from
"@/pages/AuthCenter/Menu/components/MenuList/constants"
;
import
{
SysMenu
}
from
"@/types/RegCenter/data"
;
import
{
PlusSquareTwoTone
,
ReloadOutlined
}
from
"@ant-design/icons"
;
import
OpHelper
from
"@/pages/AuthCenter/Menu/components/MenuList/OpHelper"
;
import
{
l
}
from
"@/utils/intl"
;
import
RightContextMenu
from
"@/components/RightContextMenu"
;
import
RightContextMenu
from
"@/components/RightContextMenu"
;
import
MenuForm
from
"@/pages/AuthCenter/Menu/components/MenuForm"
;
import
MenuForm
from
"@/pages/AuthCenter/Menu/components/MenuForm"
;
import
OpHelper
from
"@/pages/AuthCenter/Menu/components/MenuList/OpHelper"
;
import
{
RIGHT_CONTEXT_MENU
}
from
"@/pages/AuthCenter/Menu/components/MenuList/constants"
;
import
MenuTree
from
"@/pages/AuthCenter/Menu/components/MenuTree"
;
import
MenuTree
from
"@/pages/AuthCenter/Menu/components/MenuTree"
;
import
{
handleAddOrUpdate
,
handleRemoveById
,
queryDataByParams
}
from
"@/services/BusinessCrud"
;
import
{
SysMenu
}
from
"@/types/RegCenter/data"
;
import
{
l
}
from
"@/utils/intl"
;
import
{
PlusSquareTwoTone
,
ReloadOutlined
}
from
"@ant-design/icons"
;
import
{
ProCard
}
from
"@ant-design/pro-components"
;
import
{
Button
,
Space
}
from
'antd'
;
import
{
MenuInfo
}
from
"rc-menu/es/interface"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
const
MenuList
:
React
.
FC
=
()
=>
{
const
MenuList
:
React
.
FC
=
()
=>
{
/**
/**
...
@@ -245,7 +245,7 @@ const MenuList: React.FC = () => {
...
@@ -245,7 +245,7 @@ const MenuList: React.FC = () => {
</>
</>
}
}
console
.
log
(
treeData
,
buildMenuFormTree
(
treeData
,
''
,
true
))
/**
/**
* render
* render
*/
*/
...
@@ -279,4 +279,4 @@ const MenuList: React.FC = () => {
...
@@ -279,4 +279,4 @@ const MenuList: React.FC = () => {
}
}
;
;
export
default
MenuList
;
export
default
MenuList
;
\ No newline at end of file
dinky-web/src/pages/AuthCenter/Menu/components/MenuTree/index.tsx
View file @
e48dd5a3
...
@@ -36,7 +36,7 @@ type MenuTreeProps = {
...
@@ -36,7 +36,7 @@ type MenuTreeProps = {
loading
:
boolean
,
loading
:
boolean
,
}
}
const
MenuTree
:
React
.
FC
<
MenuTreeProps
>
=
(
props
)
=>
{
const
MenuTree
:
React
.
FC
<
MenuTreeProps
>
=
(
props
)
=>
{
const
{
treeData
,
selectedKeys
,
onNodeClick
,
onRightClick
,
loading
}
=
props
;
const
{
treeData
=
[]
,
selectedKeys
,
onNodeClick
,
onRightClick
,
loading
}
=
props
;
const
[
searchValue
,
setSearchValue
]
=
useState
(
''
);
const
[
searchValue
,
setSearchValue
]
=
useState
(
''
);
...
@@ -74,4 +74,4 @@ const MenuTree: React.FC<MenuTreeProps> = (props) => {
...
@@ -74,4 +74,4 @@ const MenuTree: React.FC<MenuTreeProps> = (props) => {
</>
</>
}
}
export
default
MenuTree
;
export
default
MenuTree
;
\ No newline at end of file
dinky-web/src/pages/AuthCenter/Menu/index.tsx
View file @
e48dd5a3
...
@@ -17,20 +17,19 @@
...
@@ -17,20 +17,19 @@
*
*
*/
*/
import
SlowlyAppear
from
'@/components/Animation/SlowlyAppear'
;
import
React
from
"react"
;
import
MenuList
from
'@/pages/AuthCenter/Menu/components/MenuList'
;
import
{
PageContainer
}
from
'@ant-design/pro-layout'
;
import
{
PageContainer
}
from
'@ant-design/pro-layout'
;
import
SlowlyAppear
from
"@/components/Animation/SlowlyAppear"
;
import
MenuList
from
"@/pages/AuthCenter/Menu/components/MenuList"
;
export
default
()
=>
{
export
default
()
=>
{
/**
/**
* render
* render
*/
*/
return
<
SlowlyAppear
>
return
(
<
PageContainer
title=
{
false
}
>
<
SlowlyAppear
>
<
MenuList
/>
<
PageContainer
title=
{
false
}
>
</
PageContainer
>
<
MenuList
/>
</
SlowlyAppear
>
</
PageContainer
>
</
SlowlyAppear
>
);
};
};
dinky-web/src/pages/Home/index.tsx
View file @
e48dd5a3
...
@@ -16,23 +16,24 @@
...
@@ -16,23 +16,24 @@
* limitations under the License.
* limitations under the License.
*
*
*/
*/
import
DevOverView
from
'@/pages/Home/DevOverView'
;
import
{
Col
,
Row
}
from
'antd'
;
import
JobOverView
from
'@/pages/Home/JobOverView'
;
import
JobOverView
from
"@/pages/Home/JobOverView"
;
import
{
PageContainer
}
from
'@ant-design/pro-components'
;
import
{
PageContainer
}
from
"@ant-design/pro-components"
;
import
{
Col
,
Row
}
from
'antd'
;
import
DevOverView
from
"@/pages/Home/DevOverView"
;
export
default
()
=>
{
export
default
()
=>
{
return
<
PageContainer
title=
{
false
}
>
return
(
<
Row
style=
{
{
marginTop
:
'5px'
,
marginBottom
:
'10px'
}
}
>
<
PageContainer
title=
{
false
}
>
<
Col
span=
{
24
}
>
<
Row
style=
{
{
marginTop
:
'5px'
,
marginBottom
:
'10px'
}
}
>
<
JobOverView
/>
<
Col
span=
{
24
}
>
</
Col
>
<
JobOverView
/>
</
Row
>
</
Col
>
<
Row
>
</
Row
>
<
Col
span=
{
24
}
>
<
Row
>
<
DevOverView
/>
<
Col
span=
{
24
}
>
</
Col
>
<
DevOverView
/>
</
Row
>
</
Col
>
</
PageContainer
>
</
Row
>
}
</
PageContainer
>
);
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment