From afdf5ad920f6e2776ccc237d5af4e3f9adbaa2b4 Mon Sep 17 00:00:00 2001 From: godo Date: Wed, 18 Sep 2024 08:27:12 +0800 Subject: [PATCH] change workflow --- frontend/components.d.ts | 2 ++ frontend/src/components/chat/Chat.vue | 13 +++++++- frontend/src/components/chat/ChatWorkList.vue | 31 +++++++++++++++++-- frontend/src/system/config.ts | 6 ++++ 4 files changed, 49 insertions(+), 3 deletions(-) diff --git a/frontend/components.d.ts b/frontend/components.d.ts index b6418b7..e6ff3ed 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -77,6 +77,8 @@ declare module 'vue' { ElInput: typeof import('element-plus/es')['ElInput'] ElLink: typeof import('element-plus/es')['ElLink'] ElMain: typeof import('element-plus/es')['ElMain'] + ElMenu: typeof import('element-plus/es')['ElMenu'] + ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElPopover: typeof import('element-plus/es')['ElPopover'] diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index 77e8f39..bda730c 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -1,7 +1,9 @@ \ No newline at end of file + + + + 我要申请 + + + + 我的申请 + + + + 我的任务 + + + + 安排任务 + + + + 我的审批 + + + + \ No newline at end of file diff --git a/frontend/src/system/config.ts b/frontend/src/system/config.ts index 0b0f1dd..1529395 100644 --- a/frontend/src/system/config.ts +++ b/frontend/src/system/config.ts @@ -202,6 +202,12 @@ export function getUrl(url: string, islast = true) { } } +export function getWorkflowUrl(){ + const config = getSystemConfig(); + if (config.userType == 'member') { + return config.userInfo.url + '/views/desktop/index.html' + '?uuid=' + getClientId() + '&token=' + config.userInfo.token + } +} export function fetchGet(url: string) { const config = getSystemConfig(); if (config.userType == 'person') {