diff --git a/.eslintrc.js b/.eslintrc.js index ce80cb4..f9181da 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,6 +20,8 @@ module.exports = { 'no-nested-ternary': 'off', 'no-use-before-define': 'off', 'no-unused-expressions': 'off', + 'no-empty': 'off', + 'no-console': 'off' }, settings: { 'import/resolver': { diff --git a/src/views/product/afterLoan/1029/Detail.vue b/src/views/product/afterLoan/1029/Detail.vue index 5ce37f9..e62699e 100644 --- a/src/views/product/afterLoan/1029/Detail.vue +++ b/src/views/product/afterLoan/1029/Detail.vue @@ -8,7 +8,7 @@ - + diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index e5da39c..606bb4a 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -517,50 +517,50 @@ import Info from './Info.vue'; const emit = defineEmits(['getList']); interface RuleForm { - provideMaterialSelectedStatus?: number; + provideMaterialSelectedStatus: number | string; accountMaterials?: number[]; - approvalSignature?: number; - borrowerMaterialSelectedStatus?: number; + approvalSignature: number | string; + borrowerMaterialSelectedStatus: number | string; borrowerMaterial?: number[]; - businessMaterialsSelectedStatus?: number; + businessMaterialsSelectedStatus: number | string; businessMaterials?: number[]; - mortgagedPropertySelectedStatus?: number; + mortgagedPropertySelectedStatus: number | string; collateral?: number[]; - contractSupplyMaterialsSelectedStatus?: number; - contractMaterials?: number; + contractSupplyMaterialsSelectedStatus: number | string; + contractMaterials: number | string; corporateInterestRateModel?: number[]; dueDiligenceContent?: number[]; dueDiligenceMode?: number[]; - enterpriseMaterialSelectedStatus?: number; + enterpriseMaterialSelectedStatus: number | string; enterpriseMaterial?: number[]; - guaranteeContractSelectedStatus?: number; - guaranteeContract?: number; + guaranteeContractSelectedStatus: number | string; + guaranteeContract: number | string; loanApplicationMethod?: number[]; - loanContractSelectedStatus?: number; - loanContract?: number; - mateMaterialSelectedStatus?: number; + loanContractSelectedStatus: number | string; + loanContract: number | string; + mateMaterialSelectedStatus: number | string; mateMaterial?: number[]; materialsForLoanApproval?: number[]; - mortgageContractSelectedStatus?: number; - mortgageContract?: number; - pledgeContractSelectedStatus?: number; - pledgeContract?: number; + mortgageContractSelectedStatus: number | string; + mortgageContract: number | string; + pledgeContractSelectedStatus: number | string; + pledgeContract: number | string; reviewApproveContent?: number[]; reviewContent?: number[]; - reviewSignature?: number; - runBatchObjectSelectedStatus?: number; + reviewSignature: number | string; + runBatchObjectSelectedStatus: number | string; runBatchObject?: number[]; - issueAccountSelectStatus?: number; + issueAccountSelectStatus: number | string; sendingAccount?: number[]; - supplementMaterialSelectedStatus?: number; + supplementMaterialSelectedStatus: number | string; supplementaryMaterials?: number[]; bankRiskControlAllocationTacticsList: Record[]; creditScoringStrategyList: Record[]; interestRatePricingModelList: Record[]; postLoanSelectionStrategyList: Record[]; - enterpriseRiskDegreeStrategySelectedStatus?: number; - personalRiskDegreeStrategySelectedStatus?: number; - enterpriseQuotaModelSelectedStatus?: number; + enterpriseRiskDegreeStrategySelectedStatus: number | string; + personalRiskDegreeStrategySelectedStatus: number | string; + enterpriseQuotaModelSelectedStatus: number | string; enterpriseQuotaModel?: number[]; } const router = useRouter(); @@ -697,8 +697,7 @@ const getAccess = async (i: number) => { if (i === 5) res = await accessStrategyAntiFraudStrategy(strategyParams); // 反欺诈 if (i === 6) res = await accessStrategyNegativeIndustryStrategy(strategyParams); // 负面行业 if (res) list[i].blackList = res.page.records; - } finally { - } + } catch (e) {} } }; // 信用评分策略 @@ -711,8 +710,7 @@ const getCredits = async (i: number) => { type: i, }); if (res) list[i].blackList = res.data.records; - } finally { - } + } catch (e) {} } }; // 利率定价模型 @@ -873,8 +871,7 @@ const getDetail = async () => { form = Object.assign(form, e); } getConfig(); - } finally { - } + } catch (e) {} } }; watch( @@ -1284,6 +1281,7 @@ const submit = async (formEl: FormInstance | undefined) => { } }); }; + // 新增策略 const addStratety = (i: number) => { ElMessageBox.confirm('

即将跳转到可以新增策略的界面,当前界面数据会清空。

确定离开当前界面?

', '提示', { @@ -1299,6 +1297,7 @@ const addStratety = (i: number) => { }) .catch(() => {}); }; + // 预览策略 const preview = async (row: Record, i: number) => { const { tacticsId } = form.bankRiskControlAllocationTacticsList[i]; @@ -1310,6 +1309,7 @@ const preview = async (row: Record, i: number) => { curPreviewTitle.value = `查看${assessNames[i]}策略`; visible.value = true; }; + // 预览信用评分策略 const previewCredits = async (row: Record, i: number) => { const { tacticsId } = form.creditScoringStrategyList[i]; @@ -1320,6 +1320,7 @@ const previewCredits = async (row: Record, i: number) => { curPreviewTitle.value = `查看${i ? '企业' : '个人'}信用评分策略`; visible.value = true; }; + // 预览利率模型 const previewRate = async (row: Record, i: number) => { const { tacticsId } = form.interestRatePricingModelList[i]; @@ -1331,6 +1332,7 @@ const previewRate = async (row: Record, i: number) => { curPreviewTitle.value = `查看${interestNames[i]}`; visible.value = true; }; + // 预览贷后管理 const previewAfter = async (row: Record, i: number) => { const { tacticsId } = form.postLoanSelectionStrategyList[i]; diff --git a/src/views/product/bank/Info.vue b/src/views/product/bank/Info.vue index e75e527..3dfe024 100644 --- a/src/views/product/bank/Info.vue +++ b/src/views/product/bank/Info.vue @@ -152,7 +152,7 @@