实现风险明细员工负面征信功能
This commit is contained in:
@@ -118,6 +118,31 @@ export const mockOverviewData = {
|
||||
actionLabel: "查看详情",
|
||||
},
|
||||
],
|
||||
employeeCreditNegativeTotal: 2,
|
||||
employeeCreditNegativeList: [
|
||||
{
|
||||
personName: "李四",
|
||||
personId: "331081199003230321",
|
||||
queryDate: "2026-03-20",
|
||||
civilCnt: 1,
|
||||
civilLmt: 120000,
|
||||
enforceCnt: 0,
|
||||
enforceLmt: 0,
|
||||
admCnt: 0,
|
||||
admLmt: 0,
|
||||
},
|
||||
{
|
||||
personName: "王五",
|
||||
personId: "331081199003231077",
|
||||
queryDate: "2026-03-18",
|
||||
civilCnt: 0,
|
||||
civilLmt: 0,
|
||||
enforceCnt: 2,
|
||||
enforceLmt: 50000,
|
||||
admCnt: 1,
|
||||
admLmt: 2000,
|
||||
},
|
||||
],
|
||||
transactionList: [
|
||||
{
|
||||
tradeDate: "2024-01-15",
|
||||
@@ -392,7 +417,23 @@ function normalizeSuspiciousTransactions(rows) {
|
||||
}));
|
||||
}
|
||||
|
||||
export function createOverviewLoadedData({ projectId, dashboardData, riskPeopleData, riskModelCardsData, suspiciousData } = {}) {
|
||||
function normalizeEmployeeCreditNegativeRows(rows) {
|
||||
if (!Array.isArray(rows)) {
|
||||
return [];
|
||||
}
|
||||
return rows.map((item) => ({
|
||||
...item,
|
||||
}));
|
||||
}
|
||||
|
||||
export function createOverviewLoadedData({
|
||||
projectId,
|
||||
dashboardData,
|
||||
riskPeopleData,
|
||||
riskModelCardsData,
|
||||
suspiciousData,
|
||||
creditNegativeData,
|
||||
} = {}) {
|
||||
return {
|
||||
...mockOverviewData,
|
||||
summary: {
|
||||
@@ -420,6 +461,8 @@ export function createOverviewLoadedData({ projectId, dashboardData, riskPeopleD
|
||||
suspiciousTransactionList: normalizeSuspiciousTransactions(suspiciousData && suspiciousData.rows),
|
||||
suspiciousType: "ALL",
|
||||
total: suspiciousData && suspiciousData.total ? suspiciousData.total : 0,
|
||||
employeeCreditNegativeList: normalizeEmployeeCreditNegativeRows(creditNegativeData && creditNegativeData.rows),
|
||||
employeeCreditNegativeTotal: creditNegativeData && creditNegativeData.total ? creditNegativeData.total : 0,
|
||||
transactionList: normalizeSuspiciousTransactions(suspiciousData && suspiciousData.rows),
|
||||
abnormalAccountList: [],
|
||||
},
|
||||
@@ -448,6 +491,8 @@ export const mockOverviewStateData = {
|
||||
suspiciousTransactionList: [],
|
||||
suspiciousType: "ALL",
|
||||
total: 0,
|
||||
employeeCreditNegativeList: [],
|
||||
employeeCreditNegativeTotal: 0,
|
||||
transactionList: [],
|
||||
abnormalAccountList: [],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user