|
|
|
|
@ -7,7 +7,8 @@
|
|
|
|
|
<template #icon> |
|
|
|
|
<icon name="el-icon-Plus"/> |
|
|
|
|
</template> |
|
|
|
|
新增</el-button |
|
|
|
|
新增 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div style="width: 50%"> |
|
|
|
|
@ -16,7 +17,8 @@
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<div class="flex end"> |
|
|
|
|
<el-button type="primary" @click="handleCalculate"> |
|
|
|
|
重新计算分值</el-button |
|
|
|
|
重新计算分值 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
@ -28,7 +30,7 @@
|
|
|
|
|
<div class="text-primary mt-10 mb-10">赋分分公式如下</div> |
|
|
|
|
<div> |
|
|
|
|
问题综合得分 = |
|
|
|
|
基础分值x(1+问题严重等级系数)x(1+问题发生频次系数)x(1+问题发生率系数) |
|
|
|
|
问题风险值 = 基础风险值+(基础风险值×问题严重等级系数)+(基础风险值×问题发生频次系数) |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<a |
|
|
|
|
@ -63,10 +65,12 @@
|
|
|
|
|
> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-tag type="success" v-if="row.isActiveLevel === true" |
|
|
|
|
>开启</el-tag |
|
|
|
|
>开启 |
|
|
|
|
</el-tag |
|
|
|
|
> |
|
|
|
|
<el-tag type="danger" v-if="row.isActiveLevel === false" |
|
|
|
|
>关闭</el-tag |
|
|
|
|
>关闭 |
|
|
|
|
</el-tag |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -80,10 +84,12 @@
|
|
|
|
|
<el-table-column label="操作"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button type="primary" link @click="handleEdit(row)" |
|
|
|
|
>编辑</el-button |
|
|
|
|
>编辑 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="danger" link @click="handleDelete(row)" |
|
|
|
|
>删除</el-button |
|
|
|
|
>删除 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -214,6 +220,7 @@ function getList() {
|
|
|
|
|
dictContentOptions.value[0].children = data; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getList(); |
|
|
|
|
|
|
|
|
|
const show = ref(false); |
|
|
|
|
@ -227,6 +234,7 @@ watch(mode, (val) => {
|
|
|
|
|
formRef.value.resetFields(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
async function submit() { |
|
|
|
|
await formRef.value.validate(); |
|
|
|
|
if (mode.value === "add") { |
|
|
|
|
@ -284,6 +292,7 @@ function getScoreRange(row) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const loading = ref(false) |
|
|
|
|
|
|
|
|
|
async function handleCalculate() { |
|
|
|
|
await feedback.confirm("确定要重新计算风险指数?"); |
|
|
|
|
loading.value = true |
|
|
|
|
@ -299,6 +308,7 @@ async function handleCalculate() {
|
|
|
|
|
color: #19257d; |
|
|
|
|
padding: 0 8px; |
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
background-color: #eee; |
|
|
|
|
} |
|
|
|
|
|