Browse Source

审计大屏 11/17/ 2:46 现场督察 黄赌毒

main
parent
commit
93f2015dd6
  1. 32
      src/views/datav/SceneInsp.vue
  2. 38
      src/views/sensitivePerception/DictContent.vue

32
src/views/datav/SceneInsp.vue

@ -50,12 +50,7 @@
</el-col>
</el-row>
<datav-tabs
type="bottom-button"
v-model="activeTabLeft"
>
<datav-tab-item label="分县市局" name="3">
<el-scrollbar height="350px">
<datav-chart-bar
:data="data1"
@ -66,20 +61,7 @@
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="局属单位" name="4">
<el-scrollbar height="350px">
<datav-chart-bar
:data="data1"
:max="11"
size="large"
:color="colors"
title="整改率排名"
sub-title="完成数/问题数"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
@ -158,12 +140,7 @@
<datav-card>
<datav-tabs v-model="activeTabRight" size="small">
<datav-tab-item label="黄赌毒" name="3">
<datav-tabs
v-model="activeMailTabRight"
type="bottom-button"
>
<datav-tab-item label="分县市局" name="1">
<el-scrollbar height="300px">
<el-scrollbar height="420px">
<datav-chart-bar
:data="hddList"
size="large"
@ -171,9 +148,6 @@
sub-title="问题数"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-tab-item>
</datav-tabs>
@ -482,7 +456,7 @@ function getData() {
getChangedRank(time.value, 3).then((res) => {
rankOverview.value = res.rankOverview;
data1.value = res.changedRankList;
option2.series[0].data = res.wtlxList;
// option2.series[0].data = res.wtlxList;
});
getSupervisionTrend(new Date().getFullYear()).then((res) => {

38
src/views/sensitivePerception/DictContent.vue

@ -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;
}

Loading…
Cancel
Save