完成结果总览卡片结构合并实现
This commit is contained in:
@@ -19,13 +19,12 @@ const detail = read("RiskDetailSection.vue");
|
||||
const entry = read("PreliminaryCheck.vue");
|
||||
|
||||
[
|
||||
[overview, ".section-card", "border-radius: 0;"],
|
||||
[overview, ".stats-card", "border-radius: 0;"],
|
||||
[people, ".section-card", "border-radius: 0;"],
|
||||
[model, ".section-card", "border-radius: 0;"],
|
||||
[model, ".model-card", "border-radius: 0;"],
|
||||
[detail, ".section-card", "border-radius: 0;"],
|
||||
[entry, ".state-card", "border-radius: 0;"],
|
||||
[entry, ".risk-overview-card", "border-radius: 0;"],
|
||||
].forEach(([source, selector, token]) => {
|
||||
assert(source.includes(selector), `缺少选择器: ${selector}`);
|
||||
assert(source.includes(token), `卡片应使用直角: ${selector}`);
|
||||
|
||||
@@ -29,9 +29,3 @@ const detail = fs.readFileSync(
|
||||
["风险明细", "涉险交易明细", "异常账户人员信息", "查看详情"].forEach((token) =>
|
||||
assert(detail.includes(token), token)
|
||||
);
|
||||
assert(model.includes("border-left: 4px solid #2563eb;"), "风险模型主标题应有更强的左侧强调样式");
|
||||
assert(detail.includes("border-left: 4px solid #2563eb;"), "风险明细主标题应有更强的左侧强调样式");
|
||||
assert(model.includes("font-size: 20px;"), "风险模型主标题字号应提升到 20px");
|
||||
assert(detail.includes("font-size: 20px;"), "风险明细主标题字号应提升到 20px");
|
||||
assert(model.includes("font-size: 15px;"), "风险模型内部区块标题应保持次级字号");
|
||||
assert(detail.includes("font-size: 15px;"), "风险明细内部区块标题应保持次级字号");
|
||||
|
||||
@@ -17,9 +17,6 @@ const mockSource = fs.readFileSync(
|
||||
"utf8"
|
||||
);
|
||||
|
||||
assert(
|
||||
overviewSource.includes('v-if="summary.actions && summary.actions.length"'),
|
||||
"风险仪表盘无操作按钮时不应渲染空的操作区"
|
||||
);
|
||||
assert(!mockSource.includes('label: "批量导出"'), "风险仪表盘不应保留批量导出按钮");
|
||||
assert(!mockSource.includes('label: "切换视图"'), "风险仪表盘不应保留切换视图按钮");
|
||||
assert(!overviewSource.includes("section-actions"), "统计区不应继续保留旧操作区壳层");
|
||||
assert(!mockSource.includes('label: "批量导出"'), "风险总览不应保留批量导出按钮");
|
||||
assert(!mockSource.includes('label: "切换视图"'), "风险总览不应保留切换视图按钮");
|
||||
|
||||
@@ -52,8 +52,7 @@ const mockSource = fs.readFileSync(
|
||||
assert(!people.includes("中高风险人员TOP10"), "不应保留TOP10区块");
|
||||
assert(entry.includes("risk-people-section"), "入口应挂载风险人员区");
|
||||
assert(entry.includes("risk-overview-card"), "统计区与风险人员区应位于统一总览卡片中");
|
||||
assert(entry.includes("风险总览"), "结果总览页应提供风险总览主标题");
|
||||
assert(!stats.includes("风险仪表盘"), "统计区不应继续保留风险仪表盘标题");
|
||||
assert(!stats.includes("风险总体数据概览"), "统计区不应继续保留旧副标题");
|
||||
assert(people.includes("风险人员总览"), "风险人员区应补充风险人员总览标题");
|
||||
assert(people.includes("section-title"), "风险人员区应提供独立的小节标题样式");
|
||||
assert(people.includes("font-size: 15px;"), "风险人员区内部标题应维持次级字号层级");
|
||||
assert(!people.includes("风险人员总览"), "风险人员区不应继续作为独立大卡片标题存在");
|
||||
|
||||
Reference in New Issue
Block a user