完成项目详情风险人员分页改造

This commit is contained in:
wkc
2026-03-29 18:44:07 +08:00
parent dd3aa5bbae
commit 0a3c03dcf9
25 changed files with 609 additions and 58 deletions

View File

@@ -0,0 +1,32 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const entrySource = fs.readFileSync(
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"),
"utf8"
);
const sectionSource = fs.readFileSync(
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/RiskPeopleSection.vue"),
"utf8"
);
[
':project-id="projectId"',
':section-data="currentData.riskPeople"',
].forEach((token) => assert(entrySource.includes(token), token));
[
"sectionData.rows",
"pageNum",
"pageSize",
"total",
"<pagination",
':page-sizes="[5]"',
"handlePageChange",
"loadRiskPeoplePage",
"getOverviewRiskPeople",
"tableLoading",
].forEach((token) => assert(sectionSource.includes(token), token));
assert(!sectionSource.includes("if (page === this.pageNum)"), "分页切换不应被同步后的 pageNum 提前拦截");