补充结果总览异常标签模型归属与联动着色

This commit is contained in:
wkc
2026-03-23 14:08:47 +08:00
parent c23aef0ea0
commit c440427715
19 changed files with 401 additions and 25 deletions

View File

@@ -113,7 +113,7 @@
:key="`${scope.row.staffCode || scope.row.idNo || index}-tag-${index}`"
size="mini"
effect="plain"
:type="mapRiskLevelToTagType(tag.riskLevel)"
:type="resolveModelTagType(tag)"
>
{{ tag.ruleName }}
</el-tag>
@@ -232,6 +232,8 @@ export default {
projectId: {
immediate: true,
handler() {
this.selectedModelCodes = [];
this.$emit("selection-change", this.selectedModelCodes);
this.pageNum = 1;
this.fetchPeopleList();
},
@@ -250,6 +252,7 @@ export default {
} else {
this.selectedModelCodes = [...this.selectedModelCodes, modelCode];
}
this.$emit("selection-change", this.selectedModelCodes);
this.pageNum = 1;
this.fetchPeopleList({ syncCardLoading: true });
},
@@ -263,6 +266,7 @@ export default {
},
resetQuery() {
this.selectedModelCodes = [];
this.$emit("selection-change", this.selectedModelCodes);
this.matchMode = "ANY";
this.keyword = "";
this.deptId = undefined;
@@ -290,15 +294,14 @@ export default {
}
return modelNames.join("、");
},
mapRiskLevelToTagType(riskLevel) {
const level = String(riskLevel || "").toUpperCase();
if (level === "HIGH") {
resolveModelTagType(tag) {
if (!this.selectedModelCodes.length) {
return "";
}
if (this.selectedModelCodes.includes(tag.modelCode)) {
return "danger";
}
if (level === "MEDIUM") {
return "warning";
}
return "info";
return "";
},
async loadDeptOptions() {
this.deptLoading = true;