校准结果总览风险人员区字段映射

This commit is contained in:
wkc
2026-03-19 15:40:46 +08:00
parent b848280b9f
commit dc36631abe
2 changed files with 21 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
<el-table-column prop="department" label="所属部门" min-width="140" />
<el-table-column prop="riskLevel" label="风险等级" min-width="100">
<template slot-scope="scope">
<el-tag size="mini" :type="scope.row.riskLevelType || 'danger'" effect="plain">
<el-tag size="mini" :type="scope.row.riskLevelType" effect="plain">
{{ scope.row.riskLevel }}
</el-tag>
</template>

View File

@@ -0,0 +1,20 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const source = fs.readFileSync(
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/RiskPeopleSection.vue"),
"utf8"
);
[
"sectionData.overviewList",
"sectionData.topRiskList",
"riskCount",
"riskPoint",
"modelCount",
"riskLevelType",
].forEach((token) => assert(source.includes(token), token));
assert(!source.includes("scope.row.riskLevelType || 'danger'"), "riskLevelType fallback");
assert(source.includes('scope.row.actionLabel || "查看详情"'), "actionLabel fallback");