From 05999c1e895acabf46e9ca57ff2ef969b77dcbff Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 1 Dec 2023 16:45:56 +0800 Subject: [PATCH] fix --- .env | 4 +- src/assets/images/11.png | Bin 0 -> 1690 bytes src/layout/components/AppHeader.vue | 4 +- src/layout/components/AppSidebar/index.vue | 10 +- src/utils/request.ts | 8 +- src/views/Home.vue | 2 +- src/views/Role.vue | 4 +- src/views/product/afterLoan/1029.vue | 1 + src/views/product/afterLoan/1030.vue | 1 + src/views/product/afterLoan/1031.vue | 2 +- src/views/product/afterLoan/1032.vue | 1 + src/views/product/afterLoan/1033.vue | 1 + src/views/product/bank/Approve.vue | 10 +- src/views/product/bank/CardList.vue | 3 +- src/views/product/bank/Config.vue | 44 ++--- src/views/product/fund/Add.vue | 15 +- src/views/product/insurance/Add.vue | 53 ++--- src/views/product/interestRate/772.vue | 1 + src/views/product/interestRate/935.vue | 1 + src/views/product/interestRate/936.vue | 1 + src/views/product/strategy/150.vue | 214 +++++++++++---------- src/views/product/strategy/151.vue | 1 + src/views/product/strategy/152.vue | 1 + src/views/product/strategy/153.vue | 1 + src/views/product/strategy/154.vue | 1 + src/views/product/strategy/155.vue | 1 + src/views/product/strategy/156.vue | 1 + src/views/product/strategy/Credit.vue | 4 +- 28 files changed, 207 insertions(+), 183 deletions(-) create mode 100644 src/assets/images/11.png diff --git a/.env b/.env index 783e5c0..97571e0 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.217: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/src/assets/images/11.png b/src/assets/images/11.png new file mode 100644 index 0000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r&$HeRmLebn>0w(znCcwghZdYCL=y z`-^egUX^%GDElzHSWhdCx0arM{%9;zp`75hcT(yatYZmx)IA~gz?JdI{nq7uExK?YvqhPMp(N*46ao&1)bL>av+{bb zn9cht$o_bEm7YT}b1_W7&>;ve@O?r`nI=_UmpF5y5!s(Fi4+9o8o97a&kDhGRjxxB zU|)dbc)4Lasx2rhiZD(uxX)}gy>3wQh}H#e @@ -15,7 +15,7 @@ content="返回关卡" placement="bottom"> diff --git a/src/layout/components/AppSidebar/index.vue b/src/layout/components/AppSidebar/index.vue index d807dfa..52fb22b 100644 --- a/src/layout/components/AppSidebar/index.vue +++ b/src/layout/components/AppSidebar/index.vue @@ -65,10 +65,12 @@ const roleName = computed(() => { }); // 获取操作日期 const getDate = async () => { - const res = await getOperationTime(levelId, projectId); - if (res.operationTime) { - date.value = res.operationTime; - diaDate.value = res.operationTime; + if (levelId && projectId) { + const res = await getOperationTime(levelId, projectId); + if (res.operationTime) { + date.value = res.operationTime; + diaDate.value = res.operationTime; + } } }; // 日期提交 diff --git a/src/utils/request.ts b/src/utils/request.ts index 46eefd1..5fce2a2 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -19,7 +19,13 @@ service.interceptors.request.use( ); service.interceptors.response.use( - (response) => response, + (res) => { + const { message, status } = res.data; + if (status === 200) { + return res; + } + ElMessage.error(message); + }, (e) => { const { response: { diff --git a/src/views/Home.vue b/src/views/Home.vue index 4b61f9f..f97de21 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -6,7 +6,7 @@ content="退出实训" placement="bottom"> diff --git a/src/views/Role.vue b/src/views/Role.vue index 9214f02..a1bc24f 100644 --- a/src/views/Role.vue +++ b/src/views/Role.vue @@ -45,7 +45,7 @@ content="退出实训" placement="bottom"> @@ -53,7 +53,7 @@ content="返回关卡" placement="bottom"> diff --git a/src/views/product/afterLoan/1029.vue b/src/views/product/afterLoan/1029.vue index 9fcb77b..41c0fd1 100644 --- a/src/views/product/afterLoan/1029.vue +++ b/src/views/product/afterLoan/1029.vue @@ -3,6 +3,7 @@