From 16855109ff85763d76ba30c13a941952fe03c577 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 9 Oct 2023 14:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/bank.ts | 5 +- src/layout/components/AppSidebar/Menu.vue | 8 +- src/router/index.ts | 3 +- src/styles/index.scss | 10 + src/views/config/Buyer.vue | 9 - src/views/product/Detail.vue | 28 -- src/views/product/List.vue | 12 +- src/views/product/{ => bank}/Add.vue | 2 +- src/views/product/{ => bank}/Approve.vue | 2 +- src/views/product/{ => bank}/CardList.vue | 24 +- src/views/product/{ => bank}/Config.vue | 2 +- src/views/product/bank/Detail.vue | 21 + src/views/product/{ => bank}/Info.vue | 0 src/views/product/strategy/Add.vue | 532 ++++++++++++++++++++++ src/views/product/strategy/Approve.vue | 131 ++++++ src/views/product/strategy/CardList.vue | 133 ++++++ src/views/product/strategy/Config.vue | 348 ++++++++++++++ src/views/product/strategy/Detail.vue | 21 + src/views/product/strategy/Info.vue | 181 ++++++++ 20 files changed, 1408 insertions(+), 66 deletions(-) delete mode 100644 src/views/product/Detail.vue rename src/views/product/{ => bank}/Add.vue (99%) rename src/views/product/{ => bank}/Approve.vue (99%) rename src/views/product/{ => bank}/CardList.vue (89%) rename src/views/product/{ => bank}/Config.vue (99%) create mode 100644 src/views/product/bank/Detail.vue rename src/views/product/{ => bank}/Info.vue (100%) create mode 100644 src/views/product/strategy/Add.vue create mode 100644 src/views/product/strategy/Approve.vue create mode 100644 src/views/product/strategy/CardList.vue create mode 100644 src/views/product/strategy/Config.vue create mode 100644 src/views/product/strategy/Detail.vue create mode 100644 src/views/product/strategy/Info.vue diff --git a/.env b/.env index 7c42f7b..95d5f87 100644 --- a/.env +++ b/.env @@ -2,6 +2,6 @@ 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_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/api/bank.ts b/src/api/bank.ts index 3373d64..92bc97e 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -17,5 +17,8 @@ export const riskUpdate = async (data: Record): Promise => (aw export const riskById = async (id: number): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/findById?id=${id}`)).data; export const examineAndApprove = async (id: number | string, opinionDescription: string, status: number, approvalTime: string): Promise => (await axios.post(`/product/product/bank/products/examineAndApprove?id=${id}&opinionDescription=${opinionDescription}&status=${status}&approvalTime=${approvalTime}`)).data; - export const update = async (data: Record): Promise => (await axios.post(`/product/product/bank/products/update`, data)).data; +export const accessStrategyGovernmentBlacklistFind = async (checkpointId: number, projectId: number): Promise => + (await axios.post(`/product/accessStrategyGovernmentBlacklist/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; +export const accessStrategyGovernmentBlacklist = async (data: Record[]): Promise => + (await axios.post(`/product/accessStrategyGovernmentBlacklist/saveOrUpdate`), data).data; diff --git a/src/layout/components/AppSidebar/Menu.vue b/src/layout/components/AppSidebar/Menu.vue index 3add663..4c09d77 100644 --- a/src/layout/components/AppSidebar/Menu.vue +++ b/src/layout/components/AppSidebar/Menu.vue @@ -23,7 +23,8 @@ { router.push({ - path: `/product/cardList/add`, + path: `/product/bank/add`, query: route.query, }); }; @@ -222,7 +222,7 @@ const toDetail = async (path: string, id: number) => { // 卡片模式 const toCardList = () => { router.push({ - path: '/product/cardList/config', + path: '/product/bank/config', query: route.query, }); }; diff --git a/src/views/product/Add.vue b/src/views/product/bank/Add.vue similarity index 99% rename from src/views/product/Add.vue rename to src/views/product/bank/Add.vue index 29c1048..8a8e854 100644 --- a/src/views/product/Add.vue +++ b/src/views/product/bank/Add.vue @@ -519,7 +519,7 @@ onMounted(() => { diff --git a/src/views/product/CardList.vue b/src/views/product/bank/CardList.vue similarity index 89% rename from src/views/product/CardList.vue rename to src/views/product/bank/CardList.vue index 218ea9b..bc70f93 100644 --- a/src/views/product/CardList.vue +++ b/src/views/product/bank/CardList.vue @@ -2,7 +2,8 @@
-
diff --git a/src/views/product/bank/Detail.vue b/src/views/product/bank/Detail.vue new file mode 100644 index 0000000..05a285e --- /dev/null +++ b/src/views/product/bank/Detail.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/src/views/product/Info.vue b/src/views/product/bank/Info.vue similarity index 100% rename from src/views/product/Info.vue rename to src/views/product/bank/Info.vue diff --git a/src/views/product/strategy/Add.vue b/src/views/product/strategy/Add.vue new file mode 100644 index 0000000..8a8e854 --- /dev/null +++ b/src/views/product/strategy/Add.vue @@ -0,0 +1,532 @@ + + + + + diff --git a/src/views/product/strategy/Approve.vue b/src/views/product/strategy/Approve.vue new file mode 100644 index 0000000..7eff944 --- /dev/null +++ b/src/views/product/strategy/Approve.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/views/product/strategy/CardList.vue b/src/views/product/strategy/CardList.vue new file mode 100644 index 0000000..03ff0e3 --- /dev/null +++ b/src/views/product/strategy/CardList.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/views/product/strategy/Config.vue b/src/views/product/strategy/Config.vue new file mode 100644 index 0000000..f2dfee5 --- /dev/null +++ b/src/views/product/strategy/Config.vue @@ -0,0 +1,348 @@ + + + + + diff --git a/src/views/product/strategy/Detail.vue b/src/views/product/strategy/Detail.vue new file mode 100644 index 0000000..05a285e --- /dev/null +++ b/src/views/product/strategy/Detail.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/src/views/product/strategy/Info.vue b/src/views/product/strategy/Info.vue new file mode 100644 index 0000000..85328e4 --- /dev/null +++ b/src/views/product/strategy/Info.vue @@ -0,0 +1,181 @@ + + + + +