merge with backend

This commit is contained in:
xiaozhe.ma
2024-11-24 16:53:47 +09:00
10 changed files with 279 additions and 88 deletions

View File

@@ -144,7 +144,7 @@ const appToAppDisplay = (app: IManagedApp) => {
sortId: parseInt(app.appid, 10),
name: app.appname,
url: `${app.domainurl}/k/${app.appid}`,
user: `${app.user.first_name} ${app.user.last_name}` ,
user: `${app.updateuser.first_name} ${app.updateuser.last_name}` ,
updatetime:date.formatDate(app.update_time, 'YYYY/MM/DD HH:mm'),
version: app.version
}
@@ -158,4 +158,4 @@ const toEditFlowPage = (app:IAppDisplay) => {
store.selectFlow(undefined);
router.push('/FlowChart/' + app.id);
};
</script>
</script>

View File

@@ -128,6 +128,7 @@ export const useFlowEditorStore = defineStore('flowEditor', {
const jsonData = {
flowid: isNew ? flow.createNewId() : flow.id,
appid: this.appInfo?.appId,
appname: this.appInfo?.name,
eventid: root?.name,
name: root?.subTitle,
content: JSON.stringify(flow),

View File

@@ -1,14 +1,14 @@
interface IUser {
first_name: string;
last_name: string;
email: string;
}
export interface IManagedApp {
appid: string;
appname: string;
domainurl: string;
version: string;
user: IUser;
update_time: string;
}
interface IUser {
first_name: string;
last_name: string;
email: string;
}
export interface IManagedApp {
appid: string;
appname: string;
domainurl: string;
version: string;
updateuser: IUser;
update_time: string;
}