diff --git a/src/api/bank.ts b/src/api/bank.ts index e0113fb..1e705f5 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -6,3 +6,8 @@ export const updateStorage = async (data: Record): Promise => export const primaryTypeOfGuarantee = async (): Promise => (await axios.post('/product/bankGuaranteeType/primaryTypeOfGuarantee')).data; export const bankingProductsList = async (data: Record): Promise => (await axios.post('/product/product/bank/products/bankingProductsList', data)).data; +export const batchDeletion = async (data: Record): Promise => (await axios.post('/product/product/bank/products/batchDeletion', data)).data; +export const personalRiskControlConfigurationField = async (): Promise => + (await axios.post('/product/riskControlConfigurationField/personalRiskControlConfigurationField')).data; +export const productElement = async (data: Record): Promise => (await axios.post('/product/product/bank/products/productElement', data)).data; +export const findById = async (id: number): Promise => (await axios.post(`/product/product/bank/products/findById?id=${id}`)).data; diff --git a/src/assets/images/bankDetail/1.png b/src/assets/images/bankDetail/1.png new file mode 100644 index 0000000..e54e8b0 Binary files /dev/null and b/src/assets/images/bankDetail/1.png differ diff --git a/src/assets/images/bankDetail/2.png b/src/assets/images/bankDetail/2.png new file mode 100644 index 0000000..4f80d6f Binary files /dev/null and b/src/assets/images/bankDetail/2.png differ diff --git a/src/assets/images/bankDetail/3.png b/src/assets/images/bankDetail/3.png new file mode 100644 index 0000000..0598233 Binary files /dev/null and b/src/assets/images/bankDetail/3.png differ diff --git a/src/assets/images/bankDetail/4.png b/src/assets/images/bankDetail/4.png new file mode 100644 index 0000000..db37020 Binary files /dev/null and b/src/assets/images/bankDetail/4.png differ diff --git a/src/assets/images/icon5-1.png b/src/assets/images/icon5-1.png new file mode 100644 index 0000000..e8728cb Binary files /dev/null and b/src/assets/images/icon5-1.png differ diff --git a/src/assets/images/icon5.png b/src/assets/images/icon5.png new file mode 100644 index 0000000..7da358f Binary files /dev/null and b/src/assets/images/icon5.png differ diff --git a/src/assets/images/icon6-1.png b/src/assets/images/icon6-1.png new file mode 100644 index 0000000..df920b1 Binary files /dev/null and b/src/assets/images/icon6-1.png differ diff --git a/src/assets/images/icon6.png b/src/assets/images/icon6.png new file mode 100644 index 0000000..99b7e80 Binary files /dev/null and b/src/assets/images/icon6.png differ diff --git a/src/components/Search.vue b/src/components/Search.vue index ff7dc43..264e2c9 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -2,7 +2,8 @@ -
    -
  • - - -

    产品风控配置

    -
  • -
  • - - -

    准入模型

    -
  • -
  • - - -

    利率定价模型

    -
  • -
  • - - -

    贷后管理模型

    -
  • -
+ @@ -54,6 +17,7 @@ + + diff --git a/src/views/config/Index.vue b/src/views/config/Index.vue new file mode 100644 index 0000000..fae55dc --- /dev/null +++ b/src/views/config/Index.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/views/finance/BankDetail.vue b/src/views/finance/BankDetail.vue new file mode 100644 index 0000000..c3013b7 --- /dev/null +++ b/src/views/finance/BankDetail.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/src/views/product/Add.vue b/src/views/product/Add.vue index c9db721..6ea090e 100644 --- a/src/views/product/Add.vue +++ b/src/views/product/Add.vue @@ -23,7 +23,7 @@
- @@ -34,7 +34,7 @@

选择本产品的贷款对象。

- + @@ -44,7 +44,7 @@

选择本产品贷款资金的用途。

- + Option A Option C @@ -54,7 +54,7 @@

选择本产品的担保种类。

- + @@ -103,7 +103,7 @@

选择本产品可以选择的还款方式。

- + @@ -112,7 +112,7 @@
- +

本产品是否支持提前还款。

@@ -130,27 +130,28 @@ import { ref, onMounted } from 'vue'; import { ElMessage } from 'element-plus'; import type { TabsPaneContext } from 'element-plus'; -import { primaryTypeOfGuarantee, bankingProductsList } from '@/api/bank'; - -defineProps({ modelValue: { type: Object, required: true } }); -defineEmits({ 'update:form': null }); +import { personalRiskControlConfigurationField } from '@/api/bank'; const curTab = ref('tab1'); +const config = ref({}); +const form = ref({ + coinType: 1, +}); // tab切换回调 const tabChange = (tab: TabsPaneContext, event: Event) => { console.log(tab, event); }; // 担保方式 -const getGuarantee = async () => { +const getConfig = async () => { try { - const { data } = await primaryTypeOfGuarantee(); - guarantees.value = data; + const { data } = await personalRiskControlConfigurationField(); + config.value = data; } finally { } }; onMounted(() => { - // getGuarantee(); + getConfig(); // fetchData(); }); diff --git a/src/views/product/CardList.vue b/src/views/product/CardList.vue index 43ee570..0dca3be 100644 --- a/src/views/product/CardList.vue +++ b/src/views/product/CardList.vue @@ -1,27 +1,34 @@ @@ -79,13 +121,11 @@ const handleDelete = async (ids: number[]) => { } .products { li { - position: relative; - width: 220px; - padding: 20px; - margin-bottom: 20px; + @apply relative p-5 mb-5 rounded-[10px] cursor-pointer border border-solid; background: url(../../assets/images/10.png) 0 0/100% 100% no-repeat; - border-radius: 10px; - cursor: pointer; + &.active { + @apply border-[#CAE0FF]; + } } .del { position: absolute; diff --git a/src/views/product/Config.vue b/src/views/product/Config.vue index 1f05813..ed6317f 100644 --- a/src/views/product/Config.vue +++ b/src/views/product/Config.vue @@ -102,32 +102,45 @@ diff --git a/src/views/product/List.vue b/src/views/product/List.vue index d675613..1259a4f 100644 --- a/src/views/product/List.vue +++ b/src/views/product/List.vue @@ -1,12 +1,14 @@