From e011a0cc6d5d3055a6c03d5ce9c75378c6265ded Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 13 Mar 2024 15:56:09 +0800 Subject: [PATCH] fix --- .env | 4 +-- src/components/Panel/index.vue | 2 ++ src/utils/request.ts | 2 +- src/views/product/afterLoan/1031.vue | 28 ++++++++-------- src/views/product/bank/Approve.vue | 2 +- src/views/product/bank/CardList.vue | 3 +- src/views/product/bank/Config.vue | 46 ++++++++++++-------------- src/views/product/bank/Info.vue | 2 +- src/views/product/interestRate/935.vue | 8 ++--- src/views/product/strategy/150.vue | 8 +++++ src/views/product/strategy/151.vue | 14 ++++++-- src/views/product/strategy/153.vue | 12 ++++++- 12 files changed, 77 insertions(+), 54 deletions(-) diff --git a/.env b/.env index 37d5857..0d7459a 100644 --- a/.env +++ b/.env @@ -2,8 +2,8 @@ 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://192.168.31.51:9000 # VITE_BASE_API=http://121.37.12.51 -# VITE_BASE_API=https://www.occupationlab.com +VITE_BASE_API=https://www.occupationlab.com VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index e3a418f..c2e7719 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -598,6 +598,7 @@ const submit = async () => { grade.value = score < 10 ? '0' + score : score; reportId.value = retMap.reportId; Cookies.set('sand-reportId', retMap.reportId); + Cookies.set('sand-score', grade.value); localStorage.setItem('sand-taskList', JSON.stringify(taskList.value)); delCache(); submiting.value = false; @@ -641,6 +642,7 @@ const getProDetail = async () => { curReq.value = pointsList.map((e) => e.judgmentId); // 实验要求默认全部展开,通过judgmentId来选中item points.value = pointsList; taskList.value = isSubmit.value ? JSON.parse(localStorage.getItem('sand-taskList')) : pointsList; // 实验任务 + grade.value = isSubmit.value ? Cookies.get('sand-score') : '00'; judgmentId.value = pointsList[0].judgmentId; // 默认取第一个判分点 pd.value = project; curSystemId.value = project.systemId; diff --git a/src/utils/request.ts b/src/utils/request.ts index 83046f3..e2bac04 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -50,7 +50,7 @@ service.interceptors.response.use( title: status, message: h('div', null, [h('p', { class: 'text-lg' }, t('error.forbidden')), h('p', { class: 'mt-2' }, message)]), }); - } else { + } else if (message) { ElMessage.error(message); } return Promise.reject(error); diff --git a/src/views/product/afterLoan/1031.vue b/src/views/product/afterLoan/1031.vue index 3ba06d5..5e19178 100644 --- a/src/views/product/afterLoan/1031.vue +++ b/src/views/product/afterLoan/1031.vue @@ -78,7 +78,7 @@ 内逾期次数。 -