[feature] Add id field in FlowChart page

This commit is contained in:
xue jiahao
2024-11-18 18:47:25 +08:00
parent f26ef1dd42
commit d833ebb086
4 changed files with 41 additions and 21 deletions

View File

@@ -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<IAppDisplay[]>([]);
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);
};
</script>