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 @@