2026-03-19 10:35:40 +08:00
|
|
|
const assert = require("assert");
|
|
|
|
|
const fs = require("fs");
|
|
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
|
|
const componentPath = path.resolve(
|
|
|
|
|
__dirname,
|
|
|
|
|
"../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"
|
|
|
|
|
);
|
|
|
|
|
const source = fs.readFileSync(componentPath, "utf8");
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"OverviewStats",
|
|
|
|
|
"RiskPeopleSection",
|
|
|
|
|
"RiskModelSection",
|
|
|
|
|
"RiskDetailSection",
|
|
|
|
|
"pageState",
|
|
|
|
|
"mockOverviewData",
|
|
|
|
|
].forEach((token) => {
|
|
|
|
|
assert(source.includes(token), `结果总览入口缺少结构: ${token}`);
|
|
|
|
|
});
|
2026-03-27 14:49:56 +08:00
|
|
|
|
|
|
|
|
assert(source.includes("risk-overview-card"), "结果总览页缺少统一风险总览容器");
|
|
|
|
|
assert(source.includes("风险总览"), "结果总览页缺少风险总览标题");
|
2026-03-27 15:05:59 +08:00
|
|
|
assert(source.includes("border-left: 4px solid #2563eb;"), "主卡片标题应有更强的左侧强调样式");
|
|
|
|
|
assert(source.includes("font-size: 20px;"), "主卡片标题字号应提升到 20px");
|