实现结果总览前两块静态页面

This commit is contained in:
wkc
2026-03-19 10:36:45 +08:00
parent 01ba288581
commit 75dbb76e0c
5 changed files with 365 additions and 24 deletions

View File

@@ -0,0 +1,31 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const entry = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"
),
"utf8"
);
const stats = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/OverviewStats.vue"
),
"utf8"
);
const people = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/RiskPeopleSection.vue"
),
"utf8"
);
["风险总览", "overview-stats"].forEach((token) => assert(stats.includes(token), token));
["风险人员总览", "中高风险人员TOP10", "查看详情"].forEach((token) =>
assert(people.includes(token), token)
);
assert(entry.includes("risk-people-section"), "入口应挂载风险人员区");