From 4db0b6b2938f578828cf170ca6ac3e5483481424 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 13 Nov 2023 13:59:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E9=9D=A2=E6=9D=BF=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- src/components/Panel/index.vue | 61 ++++++++++++++++++--- src/views/Home.vue | 6 +- src/views/product/bank/Add.vue | 4 ++ src/views/product/bank/CardList.vue | 27 ++++++--- src/views/product/bank/List.vue | 7 +-- src/views/product/insurance/Add.vue | 1 + src/views/product/insurance/CardList.vue | 26 ++++----- src/views/product/insurance/List.vue | 12 +--- src/views/product/interestRate/CardList.vue | 2 +- src/views/product/strategy/CardList.vue | 4 +- 11 files changed, 102 insertions(+), 52 deletions(-) diff --git a/.env b/.env index 0c43f01..cd851a2 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.51:9000 +VITE_BASE_API=http://121.37.12.51 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 705ea5c..90e9d16 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -1,7 +1,19 @@ diff --git a/src/views/product/bank/List.vue b/src/views/product/bank/List.vue index dc9dca3..47c3706 100644 --- a/src/views/product/bank/List.vue +++ b/src/views/product/bank/List.vue @@ -210,14 +210,11 @@ const toAdd = () => { }; // 产品详情 const toDetail = async (path: string, id: number) => { - router.push(`${path}?type=${params.productType}&i=${route.query.i}&role=${route.query.role}&id=${id}`); + router.push(`${path}?type=${params.productType}&i=${route.query.i}&role=${route.query.role}&id=${id}&name=${params.keyWord}`); }; // 卡片模式 const toCardList = () => { - router.push({ - path: '/product/bank/config', - query: route.query, - }); + router.push(`/product/bank/detail?type=${params.productType}&i=${route.query.i}&role=${route.query.role}&name=${params.keyWord}`); }; const handleDelete = async (id: number) => { diff --git a/src/views/product/insurance/Add.vue b/src/views/product/insurance/Add.vue index 51f76e4..bb2e447 100644 --- a/src/views/product/insurance/Add.vue +++ b/src/views/product/insurance/Add.vue @@ -187,6 +187,7 @@ const submit = async () => { sumInsured: +e.sumInsured, }); }); + if (param.premiumAmount && !isNaN(param.premiumAmount)) param.premiumAmount = Number(param.premiumAmount).toFixed(2); param.applicationMaterial = param.applicationMaterial.join(); param.exemptionFromLiability = param.exemptionFromLiability.join(); await addInsuranceProducts(param); diff --git a/src/views/product/insurance/CardList.vue b/src/views/product/insurance/CardList.vue index e0f85af..b506f04 100644 --- a/src/views/product/insurance/CardList.vue +++ b/src/views/product/insurance/CardList.vue @@ -2,8 +2,7 @@
-
{{ item.insuranceName }}

{{ item.minimumAge + '-' + item.maximumAge + '周岁' }}

+

{{ item.insuranceCoverageConfig }}

创建日期:{{ item.createTime.split(' ')[0] }}

@@ -48,7 +49,7 @@