From ecec0c7dd6d75bac7726248a65ceba678b1baa53 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 26 Oct 2023 20:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E9=99=A9=E5=BA=A6=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/strategy/CardList.vue | 37 +++++- src/views/product/strategy/Credit.vue | 1 + src/views/product/strategy/Risk1.vue | 140 ++++++++++++++++++++ src/views/product/strategy/Risk2.vue | 162 ++++++++++++++++++++++++ src/views/product/strategy/Risk3.vue | 137 ++++++++++++++++++++ 5 files changed, 474 insertions(+), 3 deletions(-) create mode 100644 src/views/product/strategy/Risk1.vue create mode 100644 src/views/product/strategy/Risk2.vue create mode 100644 src/views/product/strategy/Risk3.vue diff --git a/src/views/product/strategy/CardList.vue b/src/views/product/strategy/CardList.vue index b798bc8..e2ee7c7 100644 --- a/src/views/product/strategy/CardList.vue +++ b/src/views/product/strategy/CardList.vue @@ -66,7 +66,26 @@ + name="tab3"> +
+
+ +
+
+ + + +
+
+ @@ -87,16 +106,21 @@ import Com5 from './154.vue'; import Com6 from './155.vue'; import Com7 from './156.vue'; import Credit from './Credit.vue'; +import Risk1 from './Risk1.vue'; +import Risk2 from './Risk2.vue'; +import Risk3 from './Risk3.vue'; const router = useRouter(); const route = useRoute(); const projectId = +Cookies.get('sand-projectId'); const levelId = +Cookies.get('sand-level'); -const curTab = ref('tab1'); +const curTab = ref('tab3'); const list = ref>>([]); const list1 = ref>>([]); +const list2 = ref>>([]); const id = computed(() => +route.query.id); const creditId = computed(() => +route.query.creditId); +const riskId = ref(702); // 准入策略切换 const switchProduct = (id: number) => { @@ -106,6 +130,10 @@ const switchProduct = (id: number) => { const switchProductCredit = (id: number) => { router.push(`/product/strategy?type=${route.query.type}&i=${route.query.i}&role=${route.query.role}&creditId=${id}`); }; +// 风险度策略切换 +const switchProductRisk = (id: number) => { + riskId.value = id; +}; // 列表 const getList = async (refresh?: number) => { if (curTab.value === 'tab1') { @@ -113,7 +141,7 @@ const getList = async (refresh?: number) => { // eslint-disable-next-line no-unused-expressions !id.value && switchProduct(process[0].recordChildren[0].id); list.value = process; - } else { + } else if (curTab.value === 'tab2') { const res = await listCredit({ checkpointId: levelId, projectId, @@ -123,6 +151,9 @@ const getList = async (refresh?: number) => { // eslint-disable-next-line no-unused-expressions ((!route.query.add && !creditId.value && res.data.length) || refresh) && switchProductCredit(res.data[0].id); list1.value = res.data; + } else { + const { process } = await getProcessInformationBasedOnRoles(149); + list2.value = process; } }; onMounted(() => { diff --git a/src/views/product/strategy/Credit.vue b/src/views/product/strategy/Credit.vue index aacb047..386f1e4 100644 --- a/src/views/product/strategy/Credit.vue +++ b/src/views/product/strategy/Credit.vue @@ -1,4 +1,5 @@