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 @@