This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 719b1edc2 fix resource variable dependent apps page 404 not found
(#3891)
719b1edc2 is described below
commit 719b1edc25b509d9f378e310db73d7b5a8200c8a
Author: Kerwin <[email protected]>
AuthorDate: Sat Jul 20 23:20:57 2024 +0800
fix resource variable dependent apps page 404 not found (#3891)
Co-authored-by: benjobs <[email protected]>
---
.../src/main/assembly/script/data/mysql-data.sql | 2 +-
.../src/main/assembly/script/data/pgsql-data.sql | 2 +-
.../src/main/assembly/script/upgrade/mysql/2.2.2.sql | 2 +-
.../streampark-console-service/src/main/resources/db/data-h2.sql | 2 +-
.../streampark-console-webapp/src/views/resource/variable/View.vue | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/streampark-console/streampark-console-service/src/main/assembly/script/data/mysql-data.sql
b/streampark-console/streampark-console-service/src/main/assembly/script/data/mysql-data.sql
index 40f5c82a2..a0eb0160e 100644
---
a/streampark-console/streampark-console-service/src/main/assembly/script/data/mysql-data.sql
+++
b/streampark-console/streampark-console-service/src/main/assembly/script/data/mysql-data.sql
@@ -101,7 +101,7 @@ insert into `t_menu` values (130202, 130200, 'variable
depend view', null, null,
insert into `t_menu` values (130203, 130200, 'variable add', NULL, NULL,
'variable:add', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130204, 130200, 'variable update', NULL, NULL,
'variable:update', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130205, 130200, 'variable delete', NULL, NULL,
'variable:delete', NULL, '1', 1, NULL, now(), now());
-insert into `t_menu` values (130206, 130200, 'variable depend apps',
'variable/depend_apps', 'variable/DependApps', 'variable:depend_apps', '', '0',
0, NULL, now(), now());
+insert into `t_menu` values (130206, 130200, 'variable depend apps',
'/resource/variable/depend_apps', 'resource/variable/DependApps',
'variable:depend_apps', '', '0', 0, NULL, now(), now());
insert into `t_menu` values (130207, 130200, 'variable show original', NULL,
NULL, 'variable:show_original', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130301, 130300, 'resource add', NULL, NULL,
'resource:add', NULL, '1', 1, NULL, now(), now());
diff --git
a/streampark-console/streampark-console-service/src/main/assembly/script/data/pgsql-data.sql
b/streampark-console/streampark-console-service/src/main/assembly/script/data/pgsql-data.sql
index 50d7dd85a..ceb633ca0 100644
---
a/streampark-console/streampark-console-service/src/main/assembly/script/data/pgsql-data.sql
+++
b/streampark-console/streampark-console-service/src/main/assembly/script/data/pgsql-data.sql
@@ -117,7 +117,7 @@ insert into "public"."t_menu" values (120218, 120200, 'sql
delete', null, null,
insert into "public"."t_menu" values (120301, 120300, 'add', NULL, NULL,
'variable:add', NULL, '1', '1', NULL, now(), now());
insert into "public"."t_menu" values (120302, 120300, 'update', NULL, NULL,
'variable:update', NULL, '1', '1', NULL, now(), now());
insert into "public"."t_menu" values (120303, 120300, 'delete', NULL, NULL,
'variable:delete', NULL, '1', '1', NULL, now(), now());
-insert into "public"."t_menu" values (120304, 120300, 'depend apps',
'/flink/variable/depend_apps', 'flink/variable/DependApps',
'variable:depend_apps', '', '0', '0', NULL, now(), now());
+insert into "public"."t_menu" values (120304, 120300, 'depend apps',
'/resource/variable/depend_apps', 'resource/variable/DependApps',
'variable:depend_apps', '', '0', '0', NULL, now(), now());
insert into "public"."t_menu" values (120305, 120300, 'show original', NULL,
NULL, 'variable:show_original', NULL, '1', '1', NULL, now(), now());
insert into "public"."t_menu" values (120306, 120300, 'view', NULL, NULL,
'variable:view', NULL, '1', '1', null, now(), now());
insert into "public"."t_menu" values (120307, 120300, 'depend view', null,
null, 'variable:depend_apps', null, '1', '1', NULL, now(), now());
diff --git
a/streampark-console/streampark-console-service/src/main/assembly/script/upgrade/mysql/2.2.2.sql
b/streampark-console/streampark-console-service/src/main/assembly/script/upgrade/mysql/2.2.2.sql
index 13b7c536a..f0e38a3e8 100644
---
a/streampark-console/streampark-console-service/src/main/assembly/script/upgrade/mysql/2.2.2.sql
+++
b/streampark-console/streampark-console-service/src/main/assembly/script/upgrade/mysql/2.2.2.sql
@@ -69,7 +69,7 @@ insert into `t_menu` values (130202, 130200, 'variable depend
view', null, null,
insert into `t_menu` values (130203, 130200, 'variable add', NULL, NULL,
'variable:add', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130204, 130200, 'variable update', NULL, NULL,
'variable:update', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130205, 130200, 'variable delete', NULL, NULL,
'variable:delete', NULL, '1', 1, NULL, now(), now());
-insert into `t_menu` values (130206, 130200, 'variable depend apps',
'variable/depend_apps', 'variable/DependApps', 'variable:depend_apps', '', '0',
0, NULL, now(), now());
+insert into `t_menu` values (130206, 130200, 'variable depend apps',
'/resource/variable/depend_apps', 'resource/variable/DependApps',
'variable:depend_apps', '', '0', 0, NULL, now(), now());
insert into `t_menu` values (130207, 130200, 'variable show original', NULL,
NULL, 'variable:show_original', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130301, 130300, 'resource add', NULL, NULL,
'resource:add', NULL, '1', 1, NULL, now(), now());
diff --git
a/streampark-console/streampark-console-service/src/main/resources/db/data-h2.sql
b/streampark-console/streampark-console-service/src/main/resources/db/data-h2.sql
index acd9bcf1c..722ea8b24 100644
---
a/streampark-console/streampark-console-service/src/main/resources/db/data-h2.sql
+++
b/streampark-console/streampark-console-service/src/main/resources/db/data-h2.sql
@@ -95,7 +95,7 @@ insert into `t_menu` values (130202, 130200, 'variable depend
view', null, null,
insert into `t_menu` values (130203, 130200, 'variable add', NULL, NULL,
'variable:add', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130204, 130200, 'variable update', NULL, NULL,
'variable:update', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130205, 130200, 'variable delete', NULL, NULL,
'variable:delete', NULL, '1', 1, NULL, now(), now());
-insert into `t_menu` values (130206, 130200, 'variable depend apps',
'variable/depend_apps', 'variable/DependApps', 'variable:depend_apps', '', '0',
0, NULL, now(), now());
+insert into `t_menu` values (130206, 130200, 'variable depend apps',
'/resource/variable/depend_apps', 'resource/variable/DependApps',
'variable:depend_apps', '', '0', 0, NULL, now(), now());
insert into `t_menu` values (130207, 130200, 'variable show original', NULL,
NULL, 'variable:show_original', NULL, '1', 1, NULL, now(), now());
insert into `t_menu` values (130301, 130300, 'resource add', NULL, NULL,
'resource:add', NULL, '1', 1, NULL, now(), now());
diff --git
a/streampark-console/streampark-console-webapp/src/views/resource/variable/View.vue
b/streampark-console/streampark-console-webapp/src/views/resource/variable/View.vue
index e76636e73..edc94acf4 100644
---
a/streampark-console/streampark-console-webapp/src/views/resource/variable/View.vue
+++
b/streampark-console/streampark-console-webapp/src/views/resource/variable/View.vue
@@ -43,7 +43,7 @@
icon: 'icon-park-outline:mind-mapping',
tooltip: t('flink.variable.table.depend'),
auth: 'variable:depend_apps',
- onClick: () => router.push('/flink/variable/depend_apps?id=' +
record.variableCode),
+ onClick: () =>
router.push('/resource/variable/depend_apps?id=' + record.variableCode),
},
{
icon: 'ant-design:delete-outlined',