移除风险仪表盘操作按钮

This commit is contained in:
wkc
2026-03-19 11:09:14 +08:00
parent 42847ffdba
commit 8f3108d1cd
4 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const overviewSource = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/OverviewStats.vue"
),
"utf8"
);
const mockSource = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/preliminaryCheck.mock.js"
),
"utf8"
);
assert(
overviewSource.includes('v-if="summary.actions && summary.actions.length"'),
"风险仪表盘无操作按钮时不应渲染空的操作区"
);
assert(!mockSource.includes('label: "批量导出"'), "风险仪表盘不应保留批量导出按钮");
assert(!mockSource.includes('label: "切换视图"'), "风险仪表盘不应保留切换视图按钮");