From e8a641f3a38793997228f20f4684594b794506ab Mon Sep 17 00:00:00 2001 From: LiYaoheng Date: Thu, 6 Jun 2024 14:19:55 +0800 Subject: [PATCH 01/15] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=8D=95?= =?UTF-8?q?=E8=AF=8D=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- src/types/env.d.ts | 5 ++--- src/views/monitor/admin/index.vue | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index e1f7af6..52553ff 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/dev-api' VITE_APP_CONTEXT_PATH = '/' # 监控地址 -VITE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/applications' +VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications' # SnailJob 控制台地址 VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job' diff --git a/.env.production b/.env.production index 9188c63..bf9e644 100644 --- a/.env.production +++ b/.env.production @@ -8,7 +8,7 @@ VITE_APP_ENV = 'production' VITE_APP_CONTEXT_PATH = '/' # 监控地址 -VITE_APP_MONITRO_ADMIN = '/admin/applications' +VITE_APP_MONITOR_ADMIN = '/admin/applications' # SnailJob 控制台地址 VITE_APP_SNAILJOB_ADMIN = '/snail-job' diff --git a/src/types/env.d.ts b/src/types/env.d.ts index bfc37cc..777c858 100644 --- a/src/types/env.d.ts +++ b/src/types/env.d.ts @@ -11,9 +11,8 @@ interface ImportMetaEnv { VITE_APP_BASE_API: string; VITE_APP_BASE_URL: string; VITE_APP_CONTEXT_PATH: string; - VITE_APP_MONITRO_ADMIN: string; - VITE_APP_POWERJOB_ADMIN: string; - VITE_APP_EASYRETRY_ADMIN: string; + VITE_APP_MONITOR_ADMIN: string; + VITE_APP_SNAILJOB_ADMIN: string; VITE_APP_ENV: string; VITE_APP_ENCRYPT: string; VITE_APP_RSA_PUBLIC_KEY: string; diff --git a/src/views/monitor/admin/index.vue b/src/views/monitor/admin/index.vue index 04c63b5..b71a5cc 100644 --- a/src/views/monitor/admin/index.vue +++ b/src/views/monitor/admin/index.vue @@ -5,5 +5,5 @@ From 7904496df115c8df9b757c4c6ee2cb698dd79098 Mon Sep 17 00:00:00 2001 From: zl <11656279+xbbzjsj@user.noreply.gitee.com> Date: Thu, 6 Jun 2024 08:53:59 +0000 Subject: [PATCH 02/15] =?UTF-8?q?=E5=B1=82=E7=BA=A7=E9=94=99=E8=AF=AF,?= =?UTF-8?q?=E4=B8=94element-plus=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E4=B8=8D=E7=94=A8=E9=85=8D=E7=BD=AEtsconfig.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zl <11656279+xbbzjsj@user.noreply.gitee.com> --- tsconfig.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index e4bf3ac..bb287e9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,9 +19,6 @@ "paths": { "@/*": ["src/*"] }, - "compilerOptions": { - "types": ["element-plus/global"] - }, "types": ["vite/client"], "skipLibCheck": true, "removeComments": true, From 2c9c837c1b999748e3ec7e0526f5673111d108bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Thu, 6 Jun 2024 17:27:39 +0800 Subject: [PATCH 03/15] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E8=AF=B7?= =?UTF-8?q?=E5=81=87=E5=A4=A9=E6=95=B0=E8=AE=A1=E7=AE=97=E4=B8=8D=E7=B2=BE?= =?UTF-8?q?=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workflow/leave/leaveEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/workflow/leave/leaveEdit.vue b/src/views/workflow/leave/leaveEdit.vue index d6210f0..28087ab 100644 --- a/src/views/workflow/leave/leaveEdit.vue +++ b/src/views/workflow/leave/leaveEdit.vue @@ -154,7 +154,7 @@ const changeLeaveTime = () => { const startDate = new Date(leaveTime.value[0]).getTime(); const endDate = new Date(leaveTime.value[1]).getTime(); const diffInMilliseconds = endDate - startDate; - form.value.leaveDays = Math.floor(diffInMilliseconds / (1000 * 60 * 60 * 24)); + form.value.leaveDays = Math.floor(diffInMilliseconds / (1000 * 60 * 60 * 24)) + 1; }; /** 获取详情 */ const getInfo = () => { From f95f6e8390c355bd601849de26b338bb64c97b90 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Fri, 7 Jun 2024 21:38:17 +0800 Subject: [PATCH 04/15] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=8C=89=E9=92=AE=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/processInstance/index.ts | 2 +- src/components/Process/approvalRecord.vue | 2 +- src/components/Process/multiInstanceUser.vue | 60 ++++++++++++-------- src/views/workflow/leave/leaveEdit.vue | 47 +++++++-------- 4 files changed, 56 insertions(+), 55 deletions(-) diff --git a/src/api/workflow/processInstance/index.ts b/src/api/workflow/processInstance/index.ts index b949b51..6d5e53b 100644 --- a/src/api/workflow/processInstance/index.ts +++ b/src/api/workflow/processInstance/index.ts @@ -53,7 +53,7 @@ export const getHistoryList = (businessKey: string): AxiosPromise { +export const getHistoryRecord = (businessKey: string | number) => { return request({ url: `/workflow/processInstance/getHistoryRecord/${businessKey}`, method: 'get' diff --git a/src/components/Process/approvalRecord.vue b/src/components/Process/approvalRecord.vue index 37667ca..bb4ed91 100644 --- a/src/components/Process/approvalRecord.vue +++ b/src/components/Process/approvalRecord.vue @@ -67,7 +67,7 @@ const tabActiveName = ref('bpmn'); const bpmnViewRef = ref(); //初始化查询审批记录 -const init = async (businessKey: string) => { +const init = async (businessKey: string | number) => { visible.value = true; loading.value = true; tabActiveName.value = 'bpmn'; diff --git a/src/components/Process/multiInstanceUser.vue b/src/components/Process/multiInstanceUser.vue index b2039b9..292b1b7 100644 --- a/src/components/Process/multiInstanceUser.vue +++ b/src/components/Process/multiInstanceUser.vue @@ -1,22 +1,28 @@