diff --git a/src/api/model.ts b/src/api/model.ts index 358d8c5..b8c52de 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -121,17 +121,39 @@ export const detailRick = async (type: number): Promise => ).data; export const saveRick = async (data: Record): Promise => (await axios.post(`/product/riskDegreeStrategy/saveOrUpdate`, data)).data; -export const businessInterestRateDetails = async (): Promise => (await axios.post(`/product/interestRateModel/businessInterestRateDetails`, getIds())).data; +export const interestRateModelList = async (data: Record): Promise => + ( + await axios.post(`${host}/product/interestRateModel/list`, { + ...getIds(), + ...data, + }) + ).data; +export const businessInterestRateDetails = async (params: Record): Promise => + (await axios.post(`/product/interestRateModel/businessInterestRateDetails`, {}, { params })).data; export const businessInterestRateSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/businessInterestRateSaveOrUpdate`, data)).data; -export const personalInterestRateDetails = async (): Promise => (await axios.post(`/product/interestRateModel/personalInterestRateDetails`, getIds())).data; +export const personalInterestRateDetails = async (params: Record): Promise => + (await axios.post(`/product/interestRateModel/personalInterestRateDetails`, {}, { params })).data; export const personalInterestRateSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/interestRateModel/personalInterestRateSaveOrUpdate`, data)).data; +export const deleteBusinessInterestRate = async (data: Record): Promise => + (await axios.post(`${host}/product/interestRateModel/deleteBusinessInterestRate`, data)).data; +export const deletePersonalInterestRate = async (data: Record): Promise => + (await axios.post(`${host}/product/interestRateModel/deletePersonalInterestRate`, data)).data; +export const quotaModelList = async (data: Record): Promise => + ( + await axios.post(`/product/quotaModel/list`, { + ...getIds(), + ...data, + }) + ).data; +export const quotaModelDel = async (data: Record): Promise => (await axios.post(`${host}/product/quotaModel/delete`, data)).data; export const businessQuotaModelDetails = async (): Promise => (await axios.post(`/product/quotaModel/businessQuotaModelDetails`, getIds())).data; export const businessQuotaModelSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/quotaModel/businessQuotaModelSaveOrUpdate`, data)).data; -export const personalCreditModelDetails = async (): Promise => (await axios.post(`/product/quotaModel/personalCreditModelDetails`, getIds())).data; +export const personalCreditModelDetails = async (params: Record): Promise => + (await axios.post(`/product/quotaModel/personalCreditModelDetails`, {}, { params })).data; export const personalCreditModelSaveOrUpdate = async (data: Record): Promise => (await axios.post(`/product/quotaModel/personalCreditModelSaveOrUpdate`, data)).data; diff --git a/src/layout/components/AppSidebar/Menu.vue b/src/layout/components/AppSidebar/Menu.vue index e3a0059..23d7cff 100644 --- a/src/layout/components/AppSidebar/Menu.vue +++ b/src/layout/components/AppSidebar/Menu.vue @@ -52,7 +52,7 @@

贷前准入模型

  • + @click="toPage('/product/interestRate?&i=3&role=42&id=772')"> diff --git a/src/router/index.ts b/src/router/index.ts index 6a858f0..29ca0ae 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -37,7 +37,7 @@ export const routes: Array = [ { path: 'strategy', component: () => import('@/views/product/strategy/CardList.vue'), meta: { title: '产品列表' } }, { path: 'insurance', component: () => import('@/views/product/insurance/List.vue'), meta: { title: '保险产品' } }, { path: 'insurance/:action', component: () => import('@/views/product/insurance/CardList.vue'), meta: { title: '保险产品' } }, - { path: 'interestRate/:action', component: () => import('@/views/product/interestRate/CardList.vue'), meta: { title: '利率定价模型' } }, + { path: 'interestRate', component: () => import('@/views/product/interestRate/CardList.vue'), meta: { title: '利率定价模型' } }, { path: 'fund', component: () => import('@/views/product/fund/List.vue'), meta: { title: '基金产品' } }, { path: 'fund/:action', component: () => import('@/views/product/fund/CardList.vue'), meta: { title: '基金产品' } }, { path: 'afterLoan', component: () => import('@/views/product/afterLoan/CardList.vue'), meta: { title: '贷后管理' } }, diff --git a/src/views/product/interestRate/772.vue b/src/views/product/interestRate/772/Detail.vue similarity index 53% rename from src/views/product/interestRate/772.vue rename to src/views/product/interestRate/772/Detail.vue index df4fcfe..1d5ac13 100644 --- a/src/views/product/interestRate/772.vue +++ b/src/views/product/interestRate/772/Detail.vue @@ -1,90 +1,107 @@ diff --git a/src/views/product/interestRate/772/Index.vue b/src/views/product/interestRate/772/Index.vue new file mode 100644 index 0000000..5acc476 --- /dev/null +++ b/src/views/product/interestRate/772/Index.vue @@ -0,0 +1,166 @@ + + + diff --git a/src/views/product/interestRate/773.vue b/src/views/product/interestRate/773.vue index 1a5b10c..f051cf9 100644 --- a/src/views/product/interestRate/773.vue +++ b/src/views/product/interestRate/773.vue @@ -167,9 +167,4 @@ const submit = async () => { diff --git a/src/views/product/interestRate/935.vue b/src/views/product/interestRate/935/Detail.vue similarity index 83% rename from src/views/product/interestRate/935.vue rename to src/views/product/interestRate/935/Detail.vue index b8dc94a..f959fd1 100644 --- a/src/views/product/interestRate/935.vue +++ b/src/views/product/interestRate/935/Detail.vue @@ -1,8 +1,16 @@ diff --git a/src/views/product/interestRate/935/Index.vue b/src/views/product/interestRate/935/Index.vue new file mode 100644 index 0000000..ed3e8eb --- /dev/null +++ b/src/views/product/interestRate/935/Index.vue @@ -0,0 +1,166 @@ + + + diff --git a/src/views/product/interestRate/936/Detail.vue b/src/views/product/interestRate/936/Detail.vue new file mode 100644 index 0000000..8147e9d --- /dev/null +++ b/src/views/product/interestRate/936/Detail.vue @@ -0,0 +1,404 @@ + + + + + diff --git a/src/views/product/interestRate/936/Index.vue b/src/views/product/interestRate/936/Index.vue new file mode 100644 index 0000000..5c8c17d --- /dev/null +++ b/src/views/product/interestRate/936/Index.vue @@ -0,0 +1,166 @@ + + + diff --git a/src/views/product/interestRate/CardList.vue b/src/views/product/interestRate/CardList.vue index f15c406..3448687 100644 --- a/src/views/product/interestRate/CardList.vue +++ b/src/views/product/interestRate/CardList.vue @@ -1,89 +1,63 @@ diff --git a/src/views/product/strategy/Credit.vue b/src/views/product/strategy/Credit.vue deleted file mode 100644 index 6ad38a5..0000000 --- a/src/views/product/strategy/Credit.vue +++ /dev/null @@ -1,937 +0,0 @@ - - - - -