From 26d3172827ca41c6db580429ebd3121607b71a58 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 27 Oct 2023 15:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=E7=AE=A1=E7=90=86=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/config.ts | 5 + src/api/model.ts | 8 +- src/components/Panel/index.vue | 5 +- src/layout/components/AppHeader.vue | 39 +-- src/layout/components/AppSidebar/Menu.vue | 32 ++- src/layout/index.vue | 12 +- src/router/index.ts | 5 +- src/settings.ts | 5 + src/styles/index.scss | 23 ++ src/views/Home.vue | 13 +- src/views/config/level/Index.vue | 261 +++++++++++++++++++++ src/views/config/{ => param}/Buyer.vue | 2 +- src/views/config/{ => param}/Financial.vue | 2 +- src/views/config/{ => param}/Index.vue | 0 src/views/product/bank/List.vue | 26 -- src/views/product/insurance/List.vue | 26 -- src/views/product/strategy/CardList.vue | 2 +- 18 files changed, 373 insertions(+), 95 deletions(-) create mode 100644 src/views/config/level/Index.vue rename src/views/config/{ => param}/Buyer.vue (99%) rename src/views/config/{ => param}/Financial.vue (99%) rename src/views/config/{ => param}/Index.vue (100%) 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/config.ts b/src/api/config.ts index c779298..f79dfee 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -8,3 +8,8 @@ export const accountType = async (): Promise => (await axios.post('/product export const buyerType = async (): Promise => (await axios.post('/product/buyerType/list')).data; export const financialMarketFind = async (): Promise => (await axios.post('/product/financialMarket/details')).data; export const financialMarketSave = async (data: Record): Promise => (await axios.post('/product/financialMarket/saveOrUpdate', data)).data; + +export const delPass = async (data: number[]): Promise => (await axios.post('/nakadai/nakadai/customsPass/batchDeletion', data)).data; +export const listPass = async (data: Record): Promise => (await axios.post('/nakadai/nakadai/customsPass/checkpointList', data)).data; +export const savePass = async (data: Record): Promise => (await axios.post('/nakadai/nakadai/customsPass/save', data)).data; +export const updatePass = async (data: Record[]): Promise => (await axios.post(`/nakadai/nakadai/customsPass/update`), data).data; diff --git a/src/api/model.ts b/src/api/model.ts index 98c889e..01bdf32 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -45,13 +45,13 @@ export const detailRick = async (data: Record): Promise => (await axios.post(`/product/riskDegreeStrategy/details?checkpointId=${data.checkpointId}&projectId=${data.projectId}&type=${data.type}`)).data; export const saveRick = async (data: Record): Promise => (await axios.post(`/product/riskDegreeStrategy/saveOrUpdate`, data)).data; -export const detailInterestRateBusiness = async (data: Record): Promise => +export const businessInterestRateDetails = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/businessInterestRateDetails?checkpointId=${data.checkpointId}&projectId=${data.projectId}`)).data; -export const saveInterestRateBusiness = async (data: Record): Promise => +export const businessInterestRateSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/businessInterestRateSaveOrUpdate`, data)).data; -export const detailInterestRatePerson = async (data: Record): Promise => +export const personalInterestRateDetails = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/personalInterestRateDetails?checkpointId=${data.checkpointId}&projectId=${data.projectId}`)).data; -export const saveInterestRatePerson = async (data: Record): Promise => +export const personalInterestRateSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/personalInterestRateSaveOrUpdate`, data)).data; export const businessQuotaModelDetails = async (data: Record): Promise => diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index 05a8277..705ea5c 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -1,5 +1,6 @@ diff --git a/src/views/config/Buyer.vue b/src/views/config/param/Buyer.vue similarity index 99% rename from src/views/config/Buyer.vue rename to src/views/config/param/Buyer.vue index 0803725..3fe54c8 100644 --- a/src/views/config/Buyer.vue +++ b/src/views/config/param/Buyer.vue @@ -414,7 +414,7 @@ onMounted(() => { diff --git a/src/views/product/insurance/List.vue b/src/views/product/insurance/List.vue index 9dda754..e5a5e87 100644 --- a/src/views/product/insurance/List.vue +++ b/src/views/product/insurance/List.vue @@ -193,29 +193,3 @@ const handleDelete = async (id: number) => { ElMessage.success(t('success')); }; - - diff --git a/src/views/product/strategy/CardList.vue b/src/views/product/strategy/CardList.vue index e2ee7c7..9682dca 100644 --- a/src/views/product/strategy/CardList.vue +++ b/src/views/product/strategy/CardList.vue @@ -114,7 +114,7 @@ const router = useRouter(); const route = useRoute(); const projectId = +Cookies.get('sand-projectId'); const levelId = +Cookies.get('sand-level'); -const curTab = ref('tab3'); +const curTab = ref('tab1'); const list = ref>>([]); const list1 = ref>>([]); const list2 = ref>>([]);