|
|
|
|
@ -5,18 +5,20 @@
|
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="handleAdd"> |
|
|
|
|
<template #icon> |
|
|
|
|
<icon name="el-icon-Plus" /> |
|
|
|
|
<icon name="el-icon-Plus"/> |
|
|
|
|
</template> |
|
|
|
|
新增</el-button |
|
|
|
|
新增 |
|
|
|
|
</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div style="width: 50%"> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="12"> </el-col> |
|
|
|
|
<el-col :span="12"></el-col> |
|
|
|
|
<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 |
|
|
|
|
@ -36,7 +38,7 @@
|
|
|
|
|
:href="`${BASE_PATH}/templates/长沙公安数字督察灵敏感知体系问题赋分及风险预警机制.pdf`" |
|
|
|
|
target="__blank" |
|
|
|
|
> |
|
|
|
|
<icon name="local-icon-pdf" :size="38" /> |
|
|
|
|
<icon name="local-icon-pdf" :size="38"/> |
|
|
|
|
<span>问题赋分机制.pdf</span> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
@ -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> |
|
|
|
|
@ -76,14 +80,16 @@
|
|
|
|
|
width="100" |
|
|
|
|
align="center" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="最后更新时间" prop="updTime" /> |
|
|
|
|
<el-table-column label="最后更新时间" prop="updTime"/> |
|
|
|
|
<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> |
|
|
|
|
@ -188,9 +194,9 @@
|
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { BASE_PATH } from "@/api/request"; |
|
|
|
|
import { calculateScore } from "@/api/work/negative"; |
|
|
|
|
import { DICT_CONTENT_ROOT_ID } from "@/enums/appEnums"; |
|
|
|
|
import {BASE_PATH} from "@/api/request"; |
|
|
|
|
import {calculateScore} from "@/api/work/negative"; |
|
|
|
|
import {DICT_CONTENT_ROOT_ID} from "@/enums/appEnums"; |
|
|
|
|
import { |
|
|
|
|
listDictContentTree, |
|
|
|
|
addDictContent, |
|
|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
|