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
6fc9e819
Unverified
Commit
6fc9e819
authored
Jul 29, 2024
by
Zzm0809
Committed by
GitHub
Jul 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] Fix the permission issue of the Kanban board (#3679)
Signed-off-by:
Zzm0809
<
934230207@qq.com
>
Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
4a17886b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
141 additions
and
12 deletions
+141
-12
V20240729.1.1.0__release.sql
...in/resources/db/migration/h2/V20240729.1.1.0__release.sql
+38
-2
R20240729.1.1.0__release.sql
...resources/db/migration/mysql/R20240729.1.1.0__release.sql
+12
-0
V20240729.1.1.0__release.sql
...resources/db/migration/mysql/V20240729.1.1.0__release.sql
+41
-3
R20240729.1.1.0__release.sql
...resources/db/migration/pgsql/R20240729.1.1.0__release.sql
+11
-0
V20240729.1.1.0__release.sql
...resources/db/migration/pgsql/V20240729.1.1.0__release.sql
+37
-2
index.tsx
dinky-web/src/pages/Dashboard/index.tsx
+1
-3
index.tsx
dinky-web/src/pages/Metrics/index.tsx
+1
-2
No files found.
dinky-admin/src/main/resources/db/migration/h2/V20240729.1.1.0__release.sql
View file @
6fc9e819
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'仪表盘列表'
,
'/dashboard/list'
,
'./Dashboard'
,
'dashboard:list'
,
'UnorderedListOutlined'
,
'F'
,
0
,
167
,
'2024-07-29 15:37:46'
,
'2024-07-29 15:37:46'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
UPDATE
`dinky_sys_menu`
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
SET
`path`
=
'/dashboard/list/add'
,
perms
=
'dashboard:list:add'
WHERE
`path`
=
'/dashboard/add'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/edit'
,
perms
=
'dashboard:list:edit'
WHERE
`path`
=
'/dashboard/edit'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/delete'
,
perms
=
'dashboard:list:delete'
WHERE
`path`
=
'/dashboard/delete'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/view'
,
perms
=
'dashboard:list:view'
WHERE
`path`
=
'/dashboard/view'
;
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'看板布局'
,
'/dashboard/dashboard-layout'
,
'./Dashboard/DashboardLayout'
,
'dashboard:dashboard-layout'
,
'DashboardOutlined'
,
'F'
,
0
,
168
,
'2024-07-29 16:16:45'
,
'2024-07-29 16:17:28'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'添加看板'
,
'/dashboard/chart/add'
,
NULL
,
'dashboard:chart:add'
,
'AreaChartOutlined'
,
'F'
,
0
,
167
,
'2024-06-21 10:53:33'
,
'2024-06-21 10:53:33'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'修改看板'
,
'/dashboard/chart/edit'
,
NULL
,
'dashboard:chart:edit'
,
'BarChartOutlined'
,
'F'
,
0
,
168
,
'2024-06-21 10:54:26'
,
'2024-06-21 10:54:26'
,
NULL
);
\ No newline at end of file
dinky-admin/src/main/resources/db/migration/mysql/R20240729.1.1.0__release.sql
View file @
6fc9e819
...
@@ -5,4 +5,16 @@ SET FOREIGN_KEY_CHECKS = 0;
...
@@ -5,4 +5,16 @@ SET FOREIGN_KEY_CHECKS = 0;
delete
from
dinky_sys_menu
where
`parent_id`
=
-
1
and
path
=
'/home'
;
delete
from
dinky_sys_menu
where
`parent_id`
=
-
1
and
path
=
'/home'
;
delete
from
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/list'
;
update
dinky_sys_menu
set
path
=
'/dashboard/add'
,
perms
=
'dashboard:add'
where
path
=
'/dashboard/list/add'
;
update
dinky_sys_menu
set
path
=
'/dashboard/edit'
,
perms
=
'dashboard:edit'
where
path
=
'/dashboard/list/edit'
;
update
dinky_sys_menu
set
path
=
'/dashboard/delete'
,
perms
=
'dashboard:delete'
where
path
=
'/dashboard/list/delete'
;
update
dinky_sys_menu
set
path
=
'/dashboard/view'
,
perms
=
'dashboard:view'
where
path
=
'/dashboard/list/view'
;
delete
from
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/dashboard-layout'
;
delete
from
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/chart/add'
;
delete
from
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/chart/edit'
;
SET
FOREIGN_KEY_CHECKS
=
1
;
SET
FOREIGN_KEY_CHECKS
=
1
;
dinky-admin/src/main/resources/db/migration/mysql/V20240729.1.1.0__release.sql
View file @
6fc9e819
SET
NAMES
utf8mb4
;
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
SET
FOREIGN_KEY_CHECKS
=
0
;
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'仪表盘列表'
,
'/dashboard/list'
,
'./Dashboard'
,
'dashboard:list'
,
'UnorderedListOutlined'
,
'F'
,
0
,
167
,
'2024-07-29 15:37:46'
,
'2024-07-29 15:37:46'
,
NULL
);
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/add'
,
perms
=
'dashboard:list:add'
WHERE
`path`
=
'/dashboard/add'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/edit'
,
perms
=
'dashboard:list:edit'
WHERE
`path`
=
'/dashboard/edit'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/delete'
,
perms
=
'dashboard:list:delete'
WHERE
`path`
=
'/dashboard/delete'
;
UPDATE
`dinky_sys_menu`
SET
`path`
=
'/dashboard/list/view'
,
perms
=
'dashboard:list:view'
WHERE
`path`
=
'/dashboard/view'
;
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'看板布局'
,
'/dashboard/dashboard-layout'
,
'./Dashboard/DashboardLayout'
,
'dashboard:dashboard-layout'
,
'DashboardOutlined'
,
'F'
,
0
,
168
,
'2024-07-29 16:16:45'
,
'2024-07-29 16:17:28'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'添加看板'
,
'/dashboard/chart/add'
,
NULL
,
'dashboard:chart:add'
,
'AreaChartOutlined'
,
'F'
,
0
,
167
,
'2024-06-21 10:53:33'
,
'2024-06-21 10:53:33'
,
NULL
);
INSERT
INTO
`dinky_sys_menu`
(
`parent_id`
,
`name`
,
`path`
,
`component`
,
`perms`
,
`icon`
,
`type`
,
`display`
,
`order_num`
,
`create_time`
,
`update_time`
,
`note`
)
VALUES
(
164
,
'修改看板'
,
'/dashboard/chart/edit'
,
NULL
,
'dashboard:chart:edit'
,
'BarChartOutlined'
,
'F'
,
0
,
168
,
'2024-06-21 10:54:26'
,
'2024-06-21 10:54:26'
,
NULL
);
SET
FOREIGN_KEY_CHECKS
=
1
;
SET
FOREIGN_KEY_CHECKS
=
1
;
dinky-admin/src/main/resources/db/migration/pgsql/R20240729.1.1.0__release.sql
View file @
6fc9e819
...
@@ -3,3 +3,14 @@
...
@@ -3,3 +3,14 @@
delete
from
public
.
dinky_sys_menu
where
parent_id
=
-
1
and
path
=
'/home'
;
delete
from
public
.
dinky_sys_menu
where
parent_id
=
-
1
and
path
=
'/home'
;
delete
from
public
.
dinky_sys_menu
where
parent_id
=
164
and
path
=
'/dashboard/list'
;
update
public
.
dinky_sys_menu
set
path
=
'/dashboard/add'
,
perms
=
'dashboard:add'
where
path
=
'/dashboard/list/add'
;
update
public
.
dinky_sys_menu
set
path
=
'/dashboard/edit'
,
perms
=
'dashboard:edit'
where
path
=
'/dashboard/list/edit'
;
update
public
.
dinky_sys_menu
set
path
=
'/dashboard/delete'
,
perms
=
'dashboard:delete'
where
path
=
'/dashboard/list/delete'
;
update
public
.
dinky_sys_menu
set
path
=
'/dashboard/view'
,
perms
=
'dashboard:view'
where
path
=
'/dashboard/list/view'
;
delete
from
public
.
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/dashboard-layout'
;
delete
from
public
.
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/chart/add'
;
delete
from
public
.
dinky_sys_menu
where
`parent_id`
=
164
and
path
=
'/dashboard/chart/edit'
;
dinky-admin/src/main/resources/db/migration/pgsql/V20240729.1.1.0__release.sql
View file @
6fc9e819
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
VALUES
(
164
,
'仪表盘列表'
,
'/dashboard/list'
,
'./Dashboard'
,
'dashboard:list'
,
'UnorderedListOutlined'
,
'F'
,
0
,
167
,
'2024-07-29 15:37:46'
,
'2024-07-29 15:37:46'
,
NULL
);
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
UPDATE
public
.
dinky_sys_menu
VALUES
(
-
1
,
'工作台'
,
'/home'
,
'./Home'
,
'home'
,
'HomeOutlined'
,
'C'
,
0
,
1
,
'2024-07-29 11:53:38'
,
'2024-07-29 11:53:38'
,
NULL
);
SET
path
=
'/dashboard/list/add'
,
perms
=
'dashboard:list:add'
WHERE
path
=
'/dashboard/add'
;
UPDATE
public
.
dinky_sys_menu
SET
path
=
'/dashboard/list/edit'
,
perms
=
'dashboard:list:edit'
WHERE
path
=
'/dashboard/edit'
;
UPDATE
public
.
dinky_sys_menu
SET
path
=
'/dashboard/list/delete'
,
perms
=
'dashboard:list:delete'
WHERE
path
=
'/dashboard/delete'
;
UPDATE
public
.
dinky_sys_menu
SET
path
=
'/dashboard/list/view'
,
perms
=
'dashboard:list:view'
WHERE
path
=
'/dashboard/view'
;
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
VALUES
(
164
,
'看板布局'
,
'/dashboard/dashboard-layout'
,
'./Dashboard/DashboardLayout'
,
'dashboard:dashboard-layout'
,
'DashboardOutlined'
,
'F'
,
0
,
168
,
'2024-07-29 16:16:45'
,
'2024-07-29 16:17:28'
,
NULL
);
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
VALUES
(
164
,
'添加看板'
,
'/dashboard/chart/add'
,
NULL
,
'dashboard:chart:add'
,
'AreaChartOutlined'
,
'F'
,
0
,
167
,
'2024-06-21 10:53:33'
,
'2024-06-21 10:53:33'
,
NULL
);
INSERT
INTO
public
.
dinky_sys_menu
(
parent_id
,
name
,
path
,
component
,
perms
,
icon
,
type
,
display
,
order_num
,
create_time
,
update_time
,
note
)
VALUES
(
164
,
'修改看板'
,
'/dashboard/chart/edit'
,
NULL
,
'dashboard:chart:edit'
,
'BarChartOutlined'
,
'F'
,
0
,
168
,
'2024-06-21 10:54:26'
,
'2024-06-21 10:54:26'
,
NULL
);
\ No newline at end of file
dinky-web/src/pages/Dashboard/index.tsx
View file @
6fc9e819
...
@@ -49,7 +49,6 @@ export default () => {
...
@@ -49,7 +49,6 @@ export default () => {
const
[
activeKey
,
setActiveKey
]
=
useState
<
React
.
Key
|
undefined
>
(
'tab1'
);
const
[
activeKey
,
setActiveKey
]
=
useState
<
React
.
Key
|
undefined
>
(
'tab1'
);
const
[
openDetailPage
,
setOpenDetailPage
]
=
useState
(
false
);
const
[
openDetailPage
,
setOpenDetailPage
]
=
useState
(
false
);
const
[
detailPageData
,
setDetailPageData
]
=
useState
<
Partial
<
Layout
>>
({});
const
[
openCreate
,
setOpenCreate
]
=
useState
(
false
);
const
[
openCreate
,
setOpenCreate
]
=
useState
(
false
);
const
formRef
=
useRef
<
ProFormInstance
>
();
const
formRef
=
useRef
<
ProFormInstance
>
();
...
@@ -140,7 +139,6 @@ export default () => {
...
@@ -140,7 +139,6 @@ export default () => {
rel=
'noopener noreferrer'
rel=
'noopener noreferrer'
key=
'link'
key=
'link'
onClick=
{
()
=>
{
onClick=
{
()
=>
{
setDetailPageData
(
row
);
history
.
push
(
`/dashboard/dashboard-layout?layoutId=${row.id}`
);
history
.
push
(
`/dashboard/dashboard-layout?layoutId=${row.id}`
);
setOpenDetailPage
(
true
);
setOpenDetailPage
(
true
);
}
}
}
}
...
@@ -220,7 +218,7 @@ export default () => {
...
@@ -220,7 +218,7 @@ export default () => {
</
Modal
>
</
Modal
>
{
openDetailPage
&&
(
{
openDetailPage
&&
(
<>
<>
<
DashboardLayout
data=
{
detailPageData
}
/>
<
DashboardLayout
/>
</>
</>
)
}
)
}
</>
</>
...
...
dinky-web/src/pages/Metrics/index.tsx
View file @
6fc9e819
...
@@ -21,10 +21,9 @@ import MetricsFilter from '@/components/Flink/MetricsFilter/MetricsFilter';
...
@@ -21,10 +21,9 @@ import MetricsFilter from '@/components/Flink/MetricsFilter/MetricsFilter';
import
useHookRequest
from
'@/hooks/useHookRequest'
;
import
useHookRequest
from
'@/hooks/useHookRequest'
;
import
{
MetricsTimeFilter
}
from
'@/pages/DevOps/JobDetail/data'
;
import
{
MetricsTimeFilter
}
from
'@/pages/DevOps/JobDetail/data'
;
import
JobMetricsList
from
'@/pages/Metrics/JobMetricsList'
;
import
JobMetricsList
from
'@/pages/Metrics/JobMetricsList'
;
import
Server
from
'@/pages/Metrics/Server'
;
import
{
getAllConfig
}
from
'@/pages/Metrics/service'
;
import
{
getAllConfig
}
from
'@/pages/Metrics/service'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
PageContainer
,
ProCard
}
from
'@ant-design/pro-components'
;
import
{
PageContainer
}
from
'@ant-design/pro-components'
;
import
{
Alert
}
from
'antd'
;
import
{
Alert
}
from
'antd'
;
import
{
useState
}
from
'react'
;
import
{
useState
}
from
'react'
;
...
...
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