补充结果总览前端展示回归保护
This commit is contained in:
@@ -20,6 +20,12 @@ const detail = fs.readFileSync(
|
|||||||
["模型预警次数统计", "命中模型涉及人员", "员工姓名或工号", "异常标签"].forEach((token) =>
|
["模型预警次数统计", "命中模型涉及人员", "员工姓名或工号", "异常标签"].forEach((token) =>
|
||||||
assert(model.includes(token), token)
|
assert(model.includes(token), token)
|
||||||
);
|
);
|
||||||
|
["<el-radio-button label=\"ANY\">任意触发</el-radio-button>", "<el-radio-button label=\"ALL\">同时触发</el-radio-button>"].forEach(
|
||||||
|
(token) => assert(model.includes(token), token)
|
||||||
|
);
|
||||||
|
["部门", "请选择部门", "查询", "重置", "selectedModelText"].forEach((token) =>
|
||||||
|
assert(model.includes(token), token)
|
||||||
|
);
|
||||||
["涉险交易明细", "异常账户人员信息", "查看详情"].forEach((token) =>
|
["涉险交易明细", "异常账户人员信息", "查看详情"].forEach((token) =>
|
||||||
assert(detail.includes(token), token)
|
assert(detail.includes(token), token)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -14,12 +14,15 @@ const source = fs.readFileSync(
|
|||||||
'return "全部模型"',
|
'return "全部模型"',
|
||||||
"this.selectedModelCodes = [...this.selectedModelCodes, modelCode]",
|
"this.selectedModelCodes = [...this.selectedModelCodes, modelCode]",
|
||||||
"this.selectedModelCodes = this.selectedModelCodes.filter((item) => item !== modelCode)",
|
"this.selectedModelCodes = this.selectedModelCodes.filter((item) => item !== modelCode)",
|
||||||
|
"buildPeopleParams()",
|
||||||
"modelCodes: this.selectedModelCodes",
|
"modelCodes: this.selectedModelCodes",
|
||||||
"matchMode: this.matchMode",
|
"matchMode: this.matchMode",
|
||||||
'this.matchMode = "ANY"',
|
'this.matchMode = "ANY"',
|
||||||
|
'this.selectedModelCodes = []',
|
||||||
'this.keyword = ""',
|
'this.keyword = ""',
|
||||||
"this.deptId = undefined",
|
"this.deptId = undefined",
|
||||||
"this.pageNum = 1",
|
"this.pageNum = 1",
|
||||||
|
"this.fetchPeopleList({ syncCardLoading: true })",
|
||||||
"keyword: this.keyword",
|
"keyword: this.keyword",
|
||||||
"deptId: this.deptId",
|
"deptId: this.deptId",
|
||||||
].forEach((token) => assert(source.includes(token), token));
|
].forEach((token) => assert(source.includes(token), token));
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ const source = fs.readFileSync(
|
|||||||
|
|
||||||
[
|
[
|
||||||
"sectionData.overviewList",
|
"sectionData.overviewList",
|
||||||
|
"normalizeOverviewRows",
|
||||||
|
"normalizeRiskPointTags",
|
||||||
"riskCount",
|
"riskCount",
|
||||||
"riskPoint",
|
"riskPoint",
|
||||||
"modelCount",
|
"modelCount",
|
||||||
@@ -19,3 +21,5 @@ assert(!source.includes("sectionData.topRiskList"), "不应再绑定TOP10列表"
|
|||||||
|
|
||||||
assert(!source.includes("scope.row.riskLevelType || 'danger'"), "riskLevelType fallback");
|
assert(!source.includes("scope.row.riskLevelType || 'danger'"), "riskLevelType fallback");
|
||||||
assert(source.includes('scope.row.actionLabel || "查看详情"'), "actionLabel fallback");
|
assert(source.includes('scope.row.actionLabel || "查看详情"'), "actionLabel fallback");
|
||||||
|
assert(source.includes("return [];"), "overviewList 缺省时应回落为空数组");
|
||||||
|
assert(source.includes(".split(/[、,,;;]/)"), "核心异常点字符串应支持拆分为标签");
|
||||||
|
|||||||
@@ -23,10 +23,26 @@ const people = fs.readFileSync(
|
|||||||
),
|
),
|
||||||
"utf8"
|
"utf8"
|
||||||
);
|
);
|
||||||
|
const mockSource = fs.readFileSync(
|
||||||
|
path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../../src/views/ccdiProject/components/detail/preliminaryCheck.mock.js"
|
||||||
|
),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
["风险仪表盘", "overview-stats"].forEach((token) => assert(stats.includes(token), token));
|
["风险仪表盘", "overview-stats"].forEach((token) => assert(stats.includes(token), token));
|
||||||
|
["总人数", "高风险", "中风险", "低风险", "无风险人员"].forEach((token) =>
|
||||||
|
assert(mockSource.includes(`label: "${token}"`), token)
|
||||||
|
);
|
||||||
|
["currentData.summary", "currentData.riskPeople"].forEach((token) =>
|
||||||
|
assert(entry.includes(token), token)
|
||||||
|
);
|
||||||
["风险人员总览", "风险等级", "命中模型数", "查看详情"].forEach((token) =>
|
["风险人员总览", "风险等级", "命中模型数", "查看详情"].forEach((token) =>
|
||||||
assert(people.includes(token), token)
|
assert(people.includes(token), token)
|
||||||
);
|
);
|
||||||
|
["姓名", "身份证号", "所属部门", "核心异常点", "riskPointTagList"].forEach((token) =>
|
||||||
|
assert(people.includes(token), token)
|
||||||
|
);
|
||||||
assert(!people.includes("中高风险人员TOP10"), "不应保留TOP10区块");
|
assert(!people.includes("中高风险人员TOP10"), "不应保留TOP10区块");
|
||||||
assert(entry.includes("risk-people-section"), "入口应挂载风险人员区");
|
assert(entry.includes("risk-people-section"), "入口应挂载风险人员区");
|
||||||
|
|||||||
Reference in New Issue
Block a user