From d833ebb086afde45fdc1b7ebb011fefe4f0cb1c5 Mon Sep 17 00:00:00 2001 From: xue jiahao Date: Mon, 18 Nov 2024 18:47:25 +0800 Subject: [PATCH] [feature] Add id field in FlowChart page --- frontend/src/pages/AppManagement.vue | 21 ++------------------- frontend/src/pages/FlowChart.vue | 25 ++++++++++++++++++++++++- frontend/src/router/routes.ts | 2 +- frontend/src/types/AppTypes.ts | 14 ++++++++++++++ 4 files changed, 41 insertions(+), 21 deletions(-) create mode 100644 frontend/src/types/AppTypes.ts diff --git a/frontend/src/pages/AppManagement.vue b/frontend/src/pages/AppManagement.vue index 38ca627..19b10d3 100644 --- a/frontend/src/pages/AppManagement.vue +++ b/frontend/src/pages/AppManagement.vue @@ -45,21 +45,7 @@ import { useAuthStore } from 'stores/useAuthStore'; import { useFlowEditorStore } from 'stores/flowEditor'; import { router } from 'src/router'; import { date } from 'quasar' - -interface IUser{ - first_name:string; - last_name:string; - email:string; -} - -interface IManagedApp{ - appid:string; - appname:string; - domainurl:string; - version:string; - user:IUser; - update_time:string; -} +import { IManagedApp } from 'src/types/AppTypes'; interface IAppDisplay{ id:string; @@ -70,7 +56,6 @@ interface IAppDisplay{ updatetime:string; } - const authStore = useAuthStore(); const columns = [ @@ -89,8 +74,6 @@ const filter = ref(''); const rows = ref([]); const store = useFlowEditorStore(); -const tenantid = ref(authStore.currentDomain.id); - const getApps = async () => { loading.value = true; const result = await api.get('api/apps'); @@ -133,6 +116,6 @@ const editFlow = (app:IAppDisplay) => { appId: app.id, name: app.name }); - router.push('/FlowChart'); + router.push('/FlowChart/' + app.id); }; diff --git a/frontend/src/pages/FlowChart.vue b/frontend/src/pages/FlowChart.vue index bdef9d1..225740b 100644 --- a/frontend/src/pages/FlowChart.vue +++ b/frontend/src/pages/FlowChart.vue @@ -62,16 +62,22 @@ - +