调整专项核查详情展示并补充家庭资产负债测试数据
This commit is contained in:
31
docs/tests/scripts/check-special-check-graph-placeholder.js
Normal file
31
docs/tests/scripts/check-special-check-graph-placeholder.js
Normal file
@@ -0,0 +1,31 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const componentPath = path.resolve(
|
||||
__dirname,
|
||||
"../../../ruoyi-ui/src/views/ccdiProject/components/detail/SpecialCheck.vue"
|
||||
);
|
||||
|
||||
const componentContent = fs.readFileSync(componentPath, "utf8");
|
||||
|
||||
const requiredSnippets = [
|
||||
'class="graph-placeholder-card"',
|
||||
"图谱外链展示",
|
||||
"用于后续接入外链图谱页面",
|
||||
"待接入",
|
||||
"min-height: 500px",
|
||||
];
|
||||
|
||||
const missingSnippets = requiredSnippets.filter(
|
||||
(snippet) => !componentContent.includes(snippet)
|
||||
);
|
||||
|
||||
if (missingSnippets.length) {
|
||||
console.error("专项核查图谱占位卡片校验失败,缺少以下内容:");
|
||||
missingSnippets.forEach((snippet) => {
|
||||
console.error(`- ${snippet}`);
|
||||
});
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log("专项核查图谱占位卡片校验通过");
|
||||
Reference in New Issue
Block a user