|
|
|
@ -4,7 +4,22 @@ |
|
|
|
<el-form :label-width="114"> |
|
|
|
<el-form :label-width="114"> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="三级单位"> |
|
|
|
<el-form-item label="单位类型"> |
|
|
|
|
|
|
|
<el-select v-model="query.departLevel"> |
|
|
|
|
|
|
|
<el-option value="3" label="所队"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
<el-form-item label="统计时间"> |
|
|
|
|
|
|
|
<date-time-range-picker-ext |
|
|
|
|
|
|
|
v-model="query.crtTime" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
<el-form-item label="单位"> |
|
|
|
<depart-tree-select |
|
|
|
<depart-tree-select |
|
|
|
v-model="query.departId" |
|
|
|
v-model="query.departId" |
|
|
|
:check-strictly="false" |
|
|
|
:check-strictly="false" |
|
|
|
@ -12,9 +27,10 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="统计时间"> |
|
|
|
<el-form-item label="单位简称"> |
|
|
|
<date-time-range-picker-ext |
|
|
|
<el-input |
|
|
|
v-model="query.crtTime" |
|
|
|
v-model="query.departName" |
|
|
|
|
|
|
|
placeholder="请输入" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
@ -32,7 +48,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<div class="table-container"> |
|
|
|
<div class="table-container" v-loading="mainLoading"> |
|
|
|
<el-table :data="list"> |
|
|
|
<el-table :data="list"> |
|
|
|
<el-table-column label="单位名称"> |
|
|
|
<el-table-column label="单位名称"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<template #default="{ row }"> |
|
|
|
@ -67,7 +83,11 @@ |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
width="160" |
|
|
|
width="160" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column label="风险指数" align="center" width="160"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<span>/</span> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
@ -96,19 +116,31 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="单位问题画像" v-model="show" width="85vw" top="2vh"> |
|
|
|
<el-dialog |
|
|
|
|
|
|
|
title="单位问题画像" |
|
|
|
|
|
|
|
v-model="show" |
|
|
|
|
|
|
|
width="85vw" |
|
|
|
|
|
|
|
top="1vh" |
|
|
|
|
|
|
|
style="margin: 1vh auto" |
|
|
|
|
|
|
|
> |
|
|
|
<header class="flex center v-center gap"> |
|
|
|
<header class="flex center v-center gap"> |
|
|
|
<label>统计范围</label> |
|
|
|
<label>统计范围</label> |
|
|
|
<div style="width: 320px"> |
|
|
|
<div style="width: 320px"> |
|
|
|
<date-time-range-picker-ext |
|
|
|
<date-time-range-picker-ext |
|
|
|
v-model="query.crtTime" |
|
|
|
v-model="time" |
|
|
|
|
|
|
|
@change="getProfileData" |
|
|
|
style="width: 300px" |
|
|
|
style="width: 300px" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button type="primary">查询</el-button> |
|
|
|
<el-button type="primary" @click="getProfileData">查询</el-button> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|
<main v-loading="loading"> |
|
|
|
<el-scrollbar |
|
|
|
<el-row> |
|
|
|
max-height="calc(98vh - 120px)" |
|
|
|
|
|
|
|
v-loading="loading" |
|
|
|
|
|
|
|
element-loading-text="单位问题画像加载中..." |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<main> |
|
|
|
|
|
|
|
<el-row class="mb-20"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>单位情况</h5> |
|
|
|
<h5>单位情况</h5> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
@ -126,6 +158,7 @@ |
|
|
|
<span |
|
|
|
<span |
|
|
|
v-for="item in departInfo.deputyRole" |
|
|
|
v-for="item in departInfo.deputyRole" |
|
|
|
:key="item" |
|
|
|
:key="item" |
|
|
|
|
|
|
|
class="mr-10" |
|
|
|
>{{ item }}</span |
|
|
|
>{{ item }}</span |
|
|
|
> |
|
|
|
> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
@ -154,9 +187,15 @@ |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>问题情况</h5> |
|
|
|
<h5>问题情况</h5> |
|
|
|
<el-row> |
|
|
|
<el-row |
|
|
|
|
|
|
|
class="flex v-center" |
|
|
|
|
|
|
|
style="height: calc(100% - 76px)" |
|
|
|
|
|
|
|
> |
|
|
|
<el-col :span="6" class="text-center"> |
|
|
|
<el-col :span="6" class="text-center"> |
|
|
|
<div class="text-primary" style="font-size: 34px"> |
|
|
|
<div |
|
|
|
|
|
|
|
class="text-primary" |
|
|
|
|
|
|
|
style="font-size: 34px" |
|
|
|
|
|
|
|
> |
|
|
|
{{ activeRow.verifySize }} |
|
|
|
{{ activeRow.verifySize }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div>问题总数</div> |
|
|
|
<div>问题总数</div> |
|
|
|
@ -167,16 +206,20 @@ |
|
|
|
<description-pair |
|
|
|
<description-pair |
|
|
|
label1="110接处警量" |
|
|
|
label1="110接处警量" |
|
|
|
label2="问题数" |
|
|
|
label2="问题数" |
|
|
|
value1="132" |
|
|
|
:value1=" |
|
|
|
value2="21" |
|
|
|
negativeInfo.jcjBusinessSize |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
:value2="negativeInfo.jcjSize" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="12"> |
|
|
|
<description-pair |
|
|
|
<description-pair |
|
|
|
label1="执法办案" |
|
|
|
label1="执法办案" |
|
|
|
label2="问题数" |
|
|
|
label2="问题数" |
|
|
|
value1="132" |
|
|
|
:value1=" |
|
|
|
value2="21" |
|
|
|
negativeInfo.zfbaBusinessSize |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
:value2="negativeInfo.zfbaSize" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
@ -216,12 +259,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row class="mb-20"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>问题来源占比</h5> |
|
|
|
<h5>问题来源占比</h5> |
|
|
|
<v-charts |
|
|
|
<v-charts |
|
|
|
style="height: 320px" |
|
|
|
style="height: 320px" |
|
|
|
:option="pieOptions" |
|
|
|
:option="problemSourcesPieOptions" |
|
|
|
autoresize |
|
|
|
autoresize |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
@ -229,7 +272,7 @@ |
|
|
|
<h5>业务类型占比</h5> |
|
|
|
<h5>业务类型占比</h5> |
|
|
|
<v-charts |
|
|
|
<v-charts |
|
|
|
style="height: 320px" |
|
|
|
style="height: 320px" |
|
|
|
:option="pieOptions" |
|
|
|
:option="businessTypePieOptions" |
|
|
|
autoresize |
|
|
|
autoresize |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
@ -242,35 +285,57 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row class="mb-20"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>个人问题排名</h5> |
|
|
|
<h5>个人问题排名</h5> |
|
|
|
<datav-chart-bar :data="barList" :color="colors" /> |
|
|
|
<datav-chart-bar |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
:data="policeBarList" |
|
|
|
|
|
|
|
:color="colors" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>突出问题排名</h5> |
|
|
|
<h5>突出问题排名</h5> |
|
|
|
<datav-chart-bar :data="barList" /> |
|
|
|
<datav-chart-bar size="small" :data="problemTypeBarList" :color="colors" /> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<h5>单位问题标签</h5> |
|
|
|
<h5>单位问题标签</h5> |
|
|
|
<datav-chart-bar :data="barList" /> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<div style="margin-top: 60px"> |
|
|
|
<h5>问题变化趋势</h5> |
|
|
|
<h5>问题变化趋势</h5> |
|
|
|
<v-charts style="height: 320px" :option="barOption" autoresize /> |
|
|
|
<v-charts |
|
|
|
|
|
|
|
style="height: 320px" |
|
|
|
|
|
|
|
:option="barOption" |
|
|
|
|
|
|
|
autoresize |
|
|
|
|
|
|
|
/> |
|
|
|
<div></div> |
|
|
|
<div></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<h5>问题清单</h5> |
|
|
|
<h5>问题清单</h5> |
|
|
|
<el-table :data="negativeList"> |
|
|
|
<el-table :data="negativeList"> |
|
|
|
<el-table-column label="发现时间" prop="discoveryTime" /> |
|
|
|
<el-table-column label="发现时间" prop="discoveryTime" /> |
|
|
|
<el-table-column label="问题来源" prop="problemSources" /> |
|
|
|
<el-table-column label="问题来源" prop="problemSources" /> |
|
|
|
<el-table-column label="业务类别" prop="businessTypeName" /> |
|
|
|
<el-table-column label="业务类别" prop="businessTypeName" /> |
|
|
|
<el-table-column label="涉及单位" prop="involveDepartName" /> |
|
|
|
<el-table-column |
|
|
|
|
|
|
|
label="涉及单位" |
|
|
|
|
|
|
|
prop="involveDepartName" |
|
|
|
|
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
label="核查情况" |
|
|
|
label="核查情况" |
|
|
|
prop="checkStatusName" |
|
|
|
prop="checkStatusName" |
|
|
|
width="180" |
|
|
|
width="140" |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column label="操作" width="160"> |
|
|
|
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
link |
|
|
|
|
|
|
|
@click="handleAction(row)" |
|
|
|
|
|
|
|
>查看详情</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="flex end mt-8"> |
|
|
|
<div class="flex end mt-8"> |
|
|
|
<el-pagination |
|
|
|
<el-pagination |
|
|
|
@ -286,28 +351,45 @@ |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
</main> |
|
|
|
|
|
|
|
</el-scrollbar> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<negative-dialog |
|
|
|
|
|
|
|
v-model="negativeShow" |
|
|
|
|
|
|
|
:id="activeNegativeId" |
|
|
|
|
|
|
|
@close="negativeShow = false" |
|
|
|
|
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import vCharts from "vue-echarts"; |
|
|
|
import vCharts from "vue-echarts"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
listDepartNegative, |
|
|
|
listDepartNegative, |
|
|
|
getDepartProfile, |
|
|
|
getDepartProfile, |
|
|
|
|
|
|
|
listNegativeMonthly, |
|
|
|
} from "@/api/sensitivePerception/profileDepart"; |
|
|
|
} from "@/api/sensitivePerception/profileDepart"; |
|
|
|
import { listNegative } from "@/api/work/negative"; |
|
|
|
import { listNegative } from "@/api/work/negative"; |
|
|
|
import { InspectCase } from "@/enums/dictEnums"; |
|
|
|
import { InspectCase } from "@/enums/dictEnums"; |
|
|
|
|
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
|
|
|
|
const query = ref({ |
|
|
|
const query = ref({ |
|
|
|
current: 1, |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
size: 10, |
|
|
|
|
|
|
|
departLevel: "3", |
|
|
|
|
|
|
|
crtTime: [ |
|
|
|
|
|
|
|
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
moment().format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
], |
|
|
|
}); |
|
|
|
}); |
|
|
|
const list = ref<any[]>([]); |
|
|
|
const list = ref<any[]>([]); |
|
|
|
const total = ref(0); |
|
|
|
const total = ref(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const mainLoading = ref(false); |
|
|
|
function getList() { |
|
|
|
function getList() { |
|
|
|
|
|
|
|
mainLoading.value = true; |
|
|
|
listDepartNegative(query.value).then((data) => { |
|
|
|
listDepartNegative(query.value).then((data) => { |
|
|
|
list.value = data.records; |
|
|
|
list.value = data.records; |
|
|
|
total.value = data.total; |
|
|
|
total.value = data.total; |
|
|
|
|
|
|
|
mainLoading.value = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -315,6 +397,11 @@ function reset() { |
|
|
|
query.value = { |
|
|
|
query.value = { |
|
|
|
current: 1, |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
size: 10, |
|
|
|
|
|
|
|
departLevel: "3", |
|
|
|
|
|
|
|
crtTime: [ |
|
|
|
|
|
|
|
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
moment().format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
|
getList(); |
|
|
|
getList(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -326,6 +413,7 @@ onMounted(() => { |
|
|
|
const activeRow = ref({}); |
|
|
|
const activeRow = ref({}); |
|
|
|
const show = ref(false); |
|
|
|
const show = ref(false); |
|
|
|
const departInfo = ref({}); |
|
|
|
const departInfo = ref({}); |
|
|
|
|
|
|
|
const negativeInfo = ref({}); |
|
|
|
const loading = ref(false); |
|
|
|
const loading = ref(false); |
|
|
|
|
|
|
|
|
|
|
|
const negativeQuery = ref({ |
|
|
|
const negativeQuery = ref({ |
|
|
|
@ -333,117 +421,131 @@ const negativeQuery = ref({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
const negativeList = ref([]); |
|
|
|
const negativeList = ref([]); |
|
|
|
const negativeTotal = ref(0); |
|
|
|
const negativeTotal = ref(0); |
|
|
|
async function handleShowProfile(row) { |
|
|
|
|
|
|
|
activeRow.value = row; |
|
|
|
|
|
|
|
loading.value = true; |
|
|
|
|
|
|
|
show.value = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
negativeQuery.value.involveDepartId = row.departId; |
|
|
|
const problemSourcesPieOptions = ref({ |
|
|
|
getNegativeList(); |
|
|
|
tooltip: { |
|
|
|
const data = await getDepartProfile(row.departId); |
|
|
|
trigger: "item", |
|
|
|
|
|
|
|
|
|
|
|
departInfo.value = data.departInfo; |
|
|
|
|
|
|
|
loading.value = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getNegativeList() { |
|
|
|
|
|
|
|
listNegative(negativeQuery.value).then((data) => { |
|
|
|
|
|
|
|
negativeList.value = data.records; |
|
|
|
|
|
|
|
negativeTotal.value = data.total; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const colors = [ |
|
|
|
|
|
|
|
{ color: "#f56c6c", percentage: 20 }, |
|
|
|
|
|
|
|
{ color: "#e6a23c", percentage: 40 }, |
|
|
|
|
|
|
|
{ color: "#5cb87a", percentage: 60 }, |
|
|
|
|
|
|
|
{ color: "#1989fa", percentage: 80 }, |
|
|
|
|
|
|
|
{ color: "#6f7ad3", percentage: 100 }, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const barList = [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "张三", |
|
|
|
|
|
|
|
value: 67, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "李四", |
|
|
|
|
|
|
|
value: 80, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "王五", |
|
|
|
|
|
|
|
value: 40, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "王五", |
|
|
|
|
|
|
|
value: 40, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
label: "王五", |
|
|
|
|
|
|
|
value: 10, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const pieOptions = computed(() => { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "pie", |
|
|
|
type: "pie", |
|
|
|
radius: ["40%", "70%"], |
|
|
|
radius: ["40%", "70%"], |
|
|
|
|
|
|
|
data: [], |
|
|
|
data: [ |
|
|
|
|
|
|
|
{ value: 311, name: "慢作为" }, |
|
|
|
|
|
|
|
{ value: 735, name: "意见建议" }, |
|
|
|
|
|
|
|
{ value: 580, name: "违法违纪违规" }, |
|
|
|
|
|
|
|
{ value: 484, name: "乱作为" }, |
|
|
|
|
|
|
|
{ value: 300, name: "其他" }, |
|
|
|
|
|
|
|
{ value: 300, name: "不作为" }, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
const businessTypePieOptions = ref({ |
|
|
|
const radarOption = { |
|
|
|
tooltip: { |
|
|
|
radar: { |
|
|
|
trigger: "item", |
|
|
|
// shape: 'circle', |
|
|
|
|
|
|
|
indicator: [ |
|
|
|
|
|
|
|
{ name: "内部管理", max: 6500 }, |
|
|
|
|
|
|
|
{ name: "涉及监督", max: 6500 }, |
|
|
|
|
|
|
|
{ name: "记录作风", max: 30000 }, |
|
|
|
|
|
|
|
{ name: "警保卫工作", max: 38000 }, |
|
|
|
|
|
|
|
{ name: "执法办案", max: 52000 }, |
|
|
|
|
|
|
|
{ name: "专项工作", max: 25000 }, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "Budget vs spending", |
|
|
|
type: "pie", |
|
|
|
type: "radar", |
|
|
|
radius: ["40%", "70%"], |
|
|
|
data: [ |
|
|
|
data: [], |
|
|
|
{ |
|
|
|
|
|
|
|
value: [4200, 3000, 20000, 35000, 50000, 18000], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
const policeBarList = ref([]); |
|
|
|
|
|
|
|
|
|
|
|
const barOption = { |
|
|
|
const barOption = ref({ |
|
|
|
xAxis: { |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
type: "category", |
|
|
|
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], |
|
|
|
data: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
yAxis: { |
|
|
|
type: "value", |
|
|
|
type: "value", |
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
data: [120, 200, 150, 80, 70, 110, 130], |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
type: "bar", |
|
|
|
|
|
|
|
color: "#5B8FF9 ", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function handleShowProfile(row) { |
|
|
|
|
|
|
|
activeRow.value = row; |
|
|
|
|
|
|
|
show.value = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch(activeRow, async () => { |
|
|
|
|
|
|
|
time.value = [ |
|
|
|
|
|
|
|
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
moment().format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
await getProfileData(); |
|
|
|
|
|
|
|
listNegativeMonthly(activeRow.value.departId).then((data) => { |
|
|
|
|
|
|
|
barOption.value.xAxis.data = data.months; |
|
|
|
|
|
|
|
barOption.value.series[0].data = data.values; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const time = ref([]); |
|
|
|
|
|
|
|
const radarOption = ref({ |
|
|
|
|
|
|
|
radar: { |
|
|
|
|
|
|
|
indicator: [], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
series: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: "radar", |
|
|
|
|
|
|
|
data: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
value: [], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
label: { |
|
|
|
|
|
|
|
show: true |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const problemTypeBarList = ref([]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function getProfileData() { |
|
|
|
|
|
|
|
loading.value = true; |
|
|
|
|
|
|
|
negativeQuery.value.involveDepartId = activeRow.value.departId; |
|
|
|
|
|
|
|
getNegativeList(); |
|
|
|
|
|
|
|
const data = await getDepartProfile(activeRow.value.departId, { |
|
|
|
|
|
|
|
beginTime: time.value.length ? time.value[0] : "", |
|
|
|
|
|
|
|
endTime: time.value.length ? time.value[1] : "", |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
departInfo.value = data.departInfo; |
|
|
|
|
|
|
|
negativeInfo.value = data.negativeInfo; |
|
|
|
|
|
|
|
problemSourcesPieOptions.value.series[0].data = data.problemSourcesList; |
|
|
|
|
|
|
|
businessTypePieOptions.value.series[0].data = data.businessTypeList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
policeBarList.value = data.policeBarList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
radarOption.value.radar.indicator = data.problemTypeRadarIndicator |
|
|
|
|
|
|
|
radarOption.value.series[0].data[0].value = data.problemTypeRadarData |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
problemTypeBarList.value = data.problemTypeBarList |
|
|
|
|
|
|
|
loading.value = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getNegativeList() { |
|
|
|
|
|
|
|
listNegative(negativeQuery.value).then((data) => { |
|
|
|
|
|
|
|
negativeList.value = data.records; |
|
|
|
|
|
|
|
negativeTotal.value = data.total; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const colors = [ |
|
|
|
|
|
|
|
{ color: "#5AD8A6", percentage: 40 }, |
|
|
|
|
|
|
|
{ color: "#F6BD16", percentage: 60 }, |
|
|
|
|
|
|
|
{ color: "#E8684A ", percentage: 80 }, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const negativeShow = ref(false); |
|
|
|
|
|
|
|
const activeNegativeId = ref(""); |
|
|
|
|
|
|
|
function handleAction(row) { |
|
|
|
|
|
|
|
negativeShow.value = true; |
|
|
|
|
|
|
|
activeNegativeId.value = row.id; |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
</style> |
|
|
|
</style> |