From 49341ce8ea500bb532267d44ef07ea3e226590f4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 24 Oct 2023 11:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E7=94=A8=E8=AF=84=E5=88=86=E7=AD=96?= =?UTF-8?q?=E7=95=A5=EF=BC=88=E4=B8=AA=E4=BA=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model.ts | 6 + src/components/Panel/index.vue | 2 +- src/layout/components/AppSidebar/Menu.vue | 2 +- src/views/product/strategy/CardList.vue | 109 ++++++-- src/views/product/strategy/Credit.vue | 311 ++++++++++++++++++++++ 5 files changed, 403 insertions(+), 27 deletions(-) create mode 100644 src/views/product/strategy/Credit.vue diff --git a/src/api/model.ts b/src/api/model.ts index 0f359b8..4129c70 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -34,3 +34,9 @@ export const accessStrategyNegativeIndustryStrategyFind = async (checkpointId: n (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/details?checkpointId=${checkpointId}&projectId=${projectId}`)).data; export const accessStrategyNegativeIndustryStrategySave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/saveOrUpdate`, data)).data; + +export const delCredit = async (id: number): Promise => (await axios.post(`/product/creditScoringStrategy/delete?strategyId=${id}`)).data; +export const findCredit = async (id: number): Promise => (await axios.post(`/product/creditScoringStrategy/details?strategyId=${id}`)).data; +export const listCredit = async (data: Record): Promise => + (await axios.post(`/product/creditScoringStrategy/list?checkpointId=${data.checkpointId}&projectId=${data.projectId}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`)).data; +export const saveCredit = async (data: Record): Promise => (await axios.post(`/product/creditScoringStrategy/saveOrUpdate`, data)).data; diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index 46c67af..9b276fa 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -271,7 +271,7 @@ if (param.token) { Cookies.set('sand-resultsDetails', param.resultsDetails ?? ''); Cookies.set('sand-resultAnnouncementTime', param.resultAnnouncementTime ?? ''); Cookies.remove('sand-submit'); - router.replace('/'); + router.replace(route.path); } else { param.systemId = Cookies.get('sand-systemId'); param.projectId = Cookies.get('sand-projectId'); diff --git a/src/layout/components/AppSidebar/Menu.vue b/src/layout/components/AppSidebar/Menu.vue index e09abb0..14a90f2 100644 --- a/src/layout/components/AppSidebar/Menu.vue +++ b/src/layout/components/AppSidebar/Menu.vue @@ -26,7 +26,7 @@ @@ -108,7 +164,10 @@ const tabChange = (tab: TabsPaneContext, event: Event) => { @apply text-[#14436b]; } .type { - @apply mt-3 text-sm text-[#8798a9]; + @apply my-3 text-sm text-[#333]; + } + .des { + @apply text-sm text-[#8798a9]; } } diff --git a/src/views/product/strategy/Credit.vue b/src/views/product/strategy/Credit.vue new file mode 100644 index 0000000..2129bbe --- /dev/null +++ b/src/views/product/strategy/Credit.vue @@ -0,0 +1,311 @@ + + + + +