From be0fcb2407f34b864b389a8d5674517aaa5baf47 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 16 Oct 2023 13:35:50 +0800 Subject: [PATCH] fix --- .env | 4 +- components.d.ts | 1 + src/api/judgment.ts | 3 +- src/components/Panel/index.vue | 132 +++--- src/layout/index.vue | 6 +- src/store/useCurrentUser.ts | 3 +- src/utils/auth.ts | 38 +- src/utils/request.ts | 10 +- src/views/Home.vue | 44 +- src/views/product/strategy/150.vue | 23 +- src/views/product/strategy/151.vue | 162 ++++---- src/views/product/strategy/CardList.vue | 10 +- src/views/report/Index.vue | 515 ++++++++++++++++++++++++ 13 files changed, 731 insertions(+), 220 deletions(-) create mode 100644 src/views/report/Index.vue diff --git a/.env b/.env index 0c43f01..783e5c0 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘 VITE_PORT=9520 VITE_PROXY=http://192.168.31.125:8080 VITE_PUBLIC_PATH=./ -VITE_BASE_API=http://192.168.31.51:9000 -# VITE_BASE_API=http://121.37.12.51 +# VITE_BASE_API=http://192.168.31.217:9000 +VITE_BASE_API=http://121.37.12.51 VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/components.d.ts b/components.d.ts index 0aa1b5a..32af8b7 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,6 +9,7 @@ declare module 'vue' { AppHeader: typeof import('./src/layout/components/AppHeader.vue')['default']; AppMain: typeof import('./src/layout/components/AppMain.vue')['default']; AppSidebar: typeof import('./src/layout/components/AppSidebar/index.vue')['default']; + Panel: typeof import('./src/components/Panel/index.vue')['default']; BaseUpload: typeof import('./src/components/Upload/BaseUpload.vue')['default']; Breadcrumb: typeof import('./src/components/Breadcrumb/index.vue')['default']; ColumnList: typeof import('./src/components/TableList/ColumnList.vue')['default']; diff --git a/src/api/judgment.ts b/src/api/judgment.ts index 5915fef..a5c00f4 100644 --- a/src/api/judgment.ts +++ b/src/api/judgment.ts @@ -5,6 +5,7 @@ export const getProcess = async (): Promise => (await axios.post('/judgment export const getProcessInformationBasedOnRoles = async (id: number): Promise => (await axios.post(`/judgment/judgment/stRecord/getProcessInformationBasedOnRoles?systemId=19&parentId=${id}`)).data; export const addOperation = async (data: Record): Promise => (await axios.post('/product/product/bank/operation/addOperation', data)).data; -export const checkPointList = async (projectId: number): Promise => (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}`)).data; +export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise => + (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data; export const deleteCache = async (projectId: number, checkpoint: number): Promise => (await axios.get(`/product/product/bank/operation/deleteCache?projectId=${projectId}&checkpoint=${checkpoint}`)).data; diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index b528a0a..ef5a0a8 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -40,13 +40,14 @@
- 查看实验报告 - 重新开始 提交
@@ -101,10 +102,9 @@ width="60" align="center">