Browse Source

风险人员库调整,模型超市调整

main
wxc 12 months ago
parent
commit
e3349d82d7
  1. 9
      src/views/sensitivePerception/Model.vue
  2. 22
      src/views/sensitivePerception/RiskPersonnel.vue

9
src/views/sensitivePerception/Model.vue

@ -104,11 +104,11 @@
</div>
<div class="row">
<div class="col col-24">
<label>分发方式</label>
<label>模型分类</label>
<span>{{
getDictLable(
dict.distributionMethod,
item.distributionMethod
dict.modelType,
item.modelType
)
}}</span>
</div>
@ -237,10 +237,11 @@
required: true,
message: '请选择模型类型',
}"
v-if="form.modelType"
>
<el-select v-model="form.classId" style="width: 340px">
<el-option
v-for="item in classes"
v-for="item in classes.filter(item => item.modelType === form.modelType)"
:key="item.id"
:label="item.name"
:value="item.id"

22
src/views/sensitivePerception/RiskPersonnel.vue

@ -130,7 +130,11 @@
prop="riskScore"
width="100"
align="center"
/>
>
<template #default="{ row }">
<span>{{ row.riskScore.toFixed(1) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="90">
<template #default="{ row }">
<div>
@ -279,7 +283,7 @@
>
{{
personal.riskPersonal?.riskScore.toFixed(
0
1
)
}}
</div>
@ -335,7 +339,7 @@
<template #default="{ row }">
<span
v-if="row.scoreResult != null"
>{{ row.scoreResult.toFixed(0) }}</span
>{{ row.scoreResult }}</span
>
</template>
</el-table-column>
@ -861,7 +865,15 @@ function getSmallTagObj(item) {
item.includes("重点上访人员") ||
item.includes("已被打击处理") ||
item.includes("受到刑政处罚") ||
item.includes("受到刑事处罚")
item.includes("受到刑事处罚") ||
item.includes("精神病") ||
item.includes("自杀") ||
item.includes("报复社会") ||
item.includes("厌世情绪") ||
item.includes("安排后事") ||
item.includes("作案") ||
item.includes("诱发刺激事件") ||
item.includes("暴力伤害行为")
) {
return {
type: "danger",
@ -918,7 +930,7 @@ function getScoreType(score) {
return "red";
}
if (score >= 60) {
return "orange";
return "red";
}
if (score >= 40) {
return "yellow";

Loading…
Cancel
Save