校准结果总览风险人员区字段映射
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
<el-table-column prop="department" label="所属部门" min-width="140" />
|
<el-table-column prop="department" label="所属部门" min-width="140" />
|
||||||
<el-table-column prop="riskLevel" label="风险等级" min-width="100">
|
<el-table-column prop="riskLevel" label="风险等级" min-width="100">
|
||||||
<template slot-scope="scope">
|
<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 }}
|
{{ scope.row.riskLevel }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -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");
|
||||||
Reference in New Issue
Block a user