From 245def3fe032312bebdaf2d79c77b38724a26557 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 20 Oct 2023 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=99=A9=EF=BC=88=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/insurance.ts | 6 + ...险产品经理_nor.png => insurance.png} | Bin ...险产品经理_hig.png => insurance1.png} | Bin src/layout/components/AppSidebar/Menu.vue | 16 +- src/router/index.ts | 6 +- src/styles/form.scss | 2 +- src/views/Role.vue | 4 +- src/views/product/bank/CardList.vue | 20 +- src/views/product/{ => bank}/List.vue | 14 +- src/views/product/insurance/Add.vue | 239 ++++++++++++++++++ src/views/product/insurance/CardList.vue | 140 ++++++++++ src/views/product/insurance/Detail.vue | 21 ++ src/views/product/insurance/Info.vue | 86 +++++++ src/views/product/insurance/List.vue | 221 ++++++++++++++++ src/views/product/strategy/150.vue | 10 +- 16 files changed, 754 insertions(+), 33 deletions(-) create mode 100644 src/api/insurance.ts rename src/assets/images/role/{icon/选择角色/保险产品经理_nor.png => insurance.png} (100%) rename src/assets/images/role/{icon/选择角色/保险产品经理_hig.png => insurance1.png} (100%) rename src/views/product/{ => bank}/List.vue (97%) create mode 100644 src/views/product/insurance/Add.vue create mode 100644 src/views/product/insurance/CardList.vue create mode 100644 src/views/product/insurance/Detail.vue create mode 100644 src/views/product/insurance/Info.vue create mode 100644 src/views/product/insurance/List.vue diff --git a/.env b/.env index 0c43f01..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.51:9000 +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/api/insurance.ts b/src/api/insurance.ts new file mode 100644 index 0000000..ba5cfaf --- /dev/null +++ b/src/api/insurance.ts @@ -0,0 +1,6 @@ +import axios from '@/utils/request'; +// 保险 +export const batchDeletion = async (id: number[]): Promise => (await axios.post('/product/insurance/products/batchDeletion', id)).data; +export const addInsuranceProducts = async (data: Record): Promise => (await axios.post(`/product/insurance/products/addInsuranceProducts`, data)).data; +export const insuranceList = async (data: Record): Promise => (await axios.post(`/product/insurance/products/insuranceList`, data)).data; +export const insuranceProductDetails = async (id: number): Promise => (await axios.post(`/product/insurance/products/insuranceProductDetails?id=${id}`)).data; diff --git a/src/assets/images/role/icon/选择角色/保险产品经理_nor.png b/src/assets/images/role/insurance.png similarity index 100% rename from src/assets/images/role/icon/选择角色/保险产品经理_nor.png rename to src/assets/images/role/insurance.png diff --git a/src/assets/images/role/icon/选择角色/保险产品经理_hig.png b/src/assets/images/role/insurance1.png similarity index 100% rename from src/assets/images/role/icon/选择角色/保险产品经理_hig.png rename to src/assets/images/role/insurance1.png diff --git a/src/layout/components/AppSidebar/Menu.vue b/src/layout/components/AppSidebar/Menu.vue index 149e01d..e09abb0 100644 --- a/src/layout/components/AppSidebar/Menu.vue +++ b/src/layout/components/AppSidebar/Menu.vue @@ -1,8 +1,9 @@