Browse Source

Merge remote-tracking branch 'origin/master'

main
sjh 1 year ago
parent
commit
59da8d6459
  1. 1
      index.html
  2. BIN
      public/imgs/police.jpeg
  3. 3
      src/App.vue
  4. 11
      src/api/sensitivePerception/profileDepart.ts
  5. 28
      src/api/sensitivePerception/profilePolice.ts
  6. 2
      src/components/datav/card.vue
  7. 2
      src/components/datav/chart-bar-mail.vue
  8. 33
      src/components/datav/chart-bar.vue
  9. 6
      src/components/datav/tabs.vue
  10. 4
      src/components/description-pair.vue
  11. 15
      src/utils/util.ts
  12. 4
      src/views/data/Ajhc.vue
  13. 59
      src/views/datav/CaseVerif.vue
  14. 14
      src/views/datav/Gobal.vue
  15. 96
      src/views/datav/MailVisits.vue
  16. 640
      src/views/sensitivePerception/DepartNegative.vue
  17. 665
      src/views/sensitivePerception/PoliceNegative.vue
  18. 122
      src/views/work/Fav.vue
  19. 88
      vite.config.ts.timestamp-1730686774606-8b00c58248ca4.mjs

1
index.html

@ -10,6 +10,7 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

BIN
public/imgs/police.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

3
src/App.vue

@ -10,4 +10,5 @@ const elConfig = {
zIndex: 3000,
locale: zhCn
}
</script>
</script>

11
src/api/sensitivePerception/profileDepart.ts

@ -7,8 +7,15 @@ export function listDepartNegative(query) {
});
}
export function getDepartProfile(departId) {
export function getDepartProfile(departId, query) {
return request.get({
url: `/profile/depart/${departId}`
url: `/profile/depart/${departId}`,
query
});
}
export function listNegativeMonthly(departId) {
return request.get({
url: `/profile/depart/${departId}/month`
});
}

28
src/api/sensitivePerception/profilePolice.ts

@ -0,0 +1,28 @@
import request from "@/api/request";
export function listPoliceNegative(query) {
return request.get({
url: `/profile/police`,
query
});
}
export function getPoliceProfile(idCode, query) {
return request.get({
url: `/profile/police/${idCode}`,
query
});
}
export function listNegativeByPoliceIdCode(idCode, query) {
return request.get({
url: `/profile/police/${idCode}/negative`,
query
});
}
export function listNegativeMonthly(idCode) {
return request.get({
url: `/profile/police/${idCode}/month`
});
}

2
src/components/datav/card.vue

@ -23,7 +23,7 @@ defineProps({
<style lang="scss" scoped>
.datav-card {
padding: 12px;
margin-top: 20px;
margin-bottom: 20px;
position: relative;
z-index: 1;
&::before {

2
src/components/datav/chart-bar-mail.vue

@ -3,7 +3,6 @@
<span class="bar-title">{{ title }}</span>
<span class="bar-sub-title">{{ subTitle }}</span>
</div>
<el-scrollbar height="300px">
<div>
<div
class="flex v-center bar-item between"
@ -32,7 +31,6 @@
</span>
</div>
</div>
</el-scrollbar>
</template>
<script setup>

33
src/components/datav/chart-bar.vue

@ -8,14 +8,17 @@
class="flex v-center bar-item between"
v-for="item in data"
:size="size"
:style="{'--label-width': `${labelWidth}px`}"
>
<span class="bar-item-name mr-10">{{ item.label }}</span>
<div class="bar-item_content mr-16">
<span class="bar-item-label mr-10">
{{ item.label }}
</span>
<div class="bar-item_content mr-16" >
<div
class="bar-item_content-bar"
:style="{
width: `${(item.value / max) * 100}%`,
background: getColor(item.value / max),
background: getColor(item.value / max * 100),
}"
></div>
</div>
@ -59,14 +62,19 @@ const props = defineProps({
color: {
type: Object,
default: "linear-gradient(270deg, #63e700 0%, #19674c 100%)"
},
labelWidth: {
type: Number,
default: 80
}
});
const max = ref(100);
watch(
() => props.data,
(arr) => {
() => {
getMax()
}
);
@ -86,8 +94,7 @@ function getColor(val) {
}
if (props.color instanceof Array) {
const colors = [...props.color]
colors.reduce((a, b) => b.percentage - a.percentage)
console.log(colors)
colors.sort((a, b) => b.percentage - a.percentage)
for (let i = 0; i < colors.length; i++) {
if (val > colors[0].percentage) {
return colors[0].color;
@ -120,17 +127,23 @@ function getColor(val) {
}
}
}
.bar-item-name {
width: 19%;
&[size="small"] {
height: 25px;
font-size: 12px;
}
.bar-item-label {
text-align: right;
width: var(--label-width);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.bar-item_content {
width: 55%;
width: calc(100% - var(--label-width) - 80px);
.bar-item_content-bar {
width: 0;
height: 9px;
background: linear-gradient(270deg, #63e700 0%, #19674c 100%);
box-shadow: 1px 0 0px 0px #020b5f;
transition: width 0.3s;
}
}

6
src/components/datav/tabs.vue

@ -41,8 +41,10 @@ const props = defineProps({
default: "",
},
});
const slots = useSlots().default();
const emit = defineEmits(["update:modelValue"]);
const activeTab = ref(props.modelValue);
const activeTab = ref(props.modelValue || slots[0].props.name);
watch(() => props.modelValue, () => {
activeTab.value = props.modelValue
})
@ -52,7 +54,7 @@ watch(activeTab, (val) => {
provide("activeTab", activeTab);
const slots = useSlots().default();
function handleChangeActiveTab(name) {
activeTab.value = name;

4
src/components/description-pair.vue

@ -17,7 +17,7 @@ defineProps({
default: "",
},
value1: {
type: String,
type: Number,
default: "",
},
label2: {
@ -25,7 +25,7 @@ defineProps({
default: "",
},
value2: {
type: String,
type: Number,
default: "",
},
size: {

15
src/utils/util.ts

@ -368,4 +368,19 @@ export function getInvolveProblem(json) {
return ''
}
return JSON.parse(json).map(item => item.dictLabel).join(' ')
}
export function getGenderFromIdCode(idCode) {
// 检查身份证号码是否有效(长度为18位)
if (!idCode || idCode.length !== 18) {
return "";
}
// 获取第17位数字
const genderCode = parseInt(idCode.charAt(16), 10);
// 检查是否为数字
if (isNaN(genderCode)) {
return "";
}
// 根据第17位数字判断性别
return genderCode % 2 === 0 ? "女" : "男";
}

4
src/views/data/Ajhc.vue

@ -226,7 +226,7 @@
prop="discoveryTime"
show-overflow-tooltip
/>
<el-table-column label="问题发生时间" prop="happenTime" show-overflow-tooltip />
<!-- <el-table-column label="问题发生时间" prop="happenTime" show-overflow-tooltip />-->
<el-table-column
label="问题来源"
prop="problemSources"
@ -244,7 +244,7 @@
/>
<el-table-column label="业务类别" prop="businessTypeName" />
<el-table-column label="涉嫌问题" prop="involveProblem" />
<el-table-column label="涉及警种" prop="policeTypeName" />
<!-- <el-table-column label="涉及警种" prop="policeTypeName" />-->
<el-table-column
label="涉及单位"
prop="involveDepartName"

59
src/views/datav/CaseVerif.vue

@ -7,23 +7,27 @@
<el-col :span="6">
<datav-card title="分县市局排名" subTitle="案件数">
<datav-tabs
v-model="activeTab"
type="bottom-button"
>
<datav-tab-item label="分县市局" name="1">
<datav-chart-bar
:data="fxsjBarList"
size="large"
/>
<el-scrollbar height="350px">
<datav-chart-bar
:data="fxsjBarList"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="局属单位" name="2">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
/>
<el-scrollbar height="350px">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
<datav-card title="案件问题性质">
@ -181,13 +185,16 @@ function getData() {
watch(time, () => {
getData();
})
});
onMounted(() => {
getData();
});
const zfbaPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
@ -203,6 +210,9 @@ const zfbaPieOption = computed(() => {
const fwglPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
@ -218,6 +228,9 @@ const fwglPieOption = computed(() => {
const jjjgPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
@ -233,6 +246,9 @@ const jjjgPieOption = computed(() => {
const ajlyPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
@ -351,6 +367,9 @@ const option1 = ref({
});
const option4 = {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
@ -371,7 +390,21 @@ const option4 = {
],
};
const activeTab = ref("1");
const colors = [
{
color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)",
percentage: 80,
},
{
color: "linear-gradient( 270deg, #FFB90E 0%, #71501D 100%)",
percentage: 60,
},
{
color: "linear-gradient( 270deg, #63E700 0%, #19674C 100%)",
percentage: 40,
},
];
</script>
<style lang="scss" scoped>

14
src/views/datav/Gobal.vue

@ -387,49 +387,49 @@ const option1 = ref({
const data1 = [
{
name: "开福分局",
label: "开福分局",
value: 97,
unit: "%",
numerator: 97,
denominator: 100,
},
{
name: "芙蓉分局",
label: "芙蓉分局",
value: 90,
unit: "%",
numerator: 90,
denominator: 100,
},
{
name: "岳麓分局",
label: "岳麓分局",
value: 85,
unit: "%",
numerator: 85,
denominator: 100,
},
{
name: "雨花分局",
label: "雨花分局",
value: 80,
unit: "%",
numerator: 80,
denominator: 100,
},
{
name: "望城分局",
label: "望城分局",
value: 71,
unit: "%",
numerator: 71,
denominator: 100,
},
{
name: "浏阳市局",
label: "浏阳市局",
value: 66,
unit: "%",
numerator: 66,
denominator: 100,
},
{
name: "长沙县局",
label: "长沙县局",
value: 62,
unit: "%",
numerator: 62,

96
src/views/datav/MailVisits.vue

@ -46,26 +46,31 @@
type="bottom-button"
>
<datav-tab-item label="初信初访" name="1">
<datav-chart-bar-mail
:data="fxsjFirstMailList"
size="large"
:max="11"
/>
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="fxsjFirstMailList"
size="large"
:max="11"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="重复信访" name="2">
<datav-chart-bar-mail
:data="fxsjRepeatMailList"
:max="11"
size="large"
/>
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="fxsjRepeatMailList"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="领导接访" name="3">
<datav-chart-bar-mail
:data="fxsjLeaderViewMailList"
:max="11"
size="large"
/>
<el-scrollbar height="300px">
<datav-chart-bar
:data="fxsjLeaderViewMailList"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-tab-item>
@ -75,33 +80,32 @@
type="bottom-button"
>
<datav-tab-item label="初信初访" name="1">
<div style="height: 300px; overflow: auto">
<datav-chart-bar
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="bwzdFirstMailList"
size="large"
/>
</div>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="重复信访" name="2">
<div style="height: 300px; overflow: auto">
<datav-chart-bar
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="bwzdRepeatMailList"
:max="11"
size="large"
/>
</div>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="领导接访" name="3">
<div style="height: 300px; overflow: auto">
<datav-chart-bar
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="bwzdLeaderViewMailList"
:max="11"
size="large"
/>
</div>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-tab-item>
</datav-tabs>
</datav-card>
@ -242,24 +246,30 @@
type="bottom-button"
>
<datav-tab-item label="领导督办" name="1">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="缠访闹访" name="2">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="群体集访" name="3">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
@ -270,24 +280,30 @@
type="bottom-button"
>
<datav-tab-item label="领导督办" name="1">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="缠访闹访" name="2">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="群体集访" name="3">
<el-scrollbar height="300px">
<datav-chart-bar-mail
:data="xx"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
@ -303,11 +319,11 @@
/>
</datav-card>
</el-col>
</el-row>
</main>
</div>
</el-scrollbar>
</template>
@ -363,7 +379,6 @@ const option = {
},
],
};
const option1 = ref({
xAxis: {
type: "category",
@ -415,8 +430,6 @@ const option1 = ref({
},
],
});
const option2 = {
series: [
{
@ -455,10 +468,6 @@ const option3 = {
},
],
};
const activeTab = ref("1");
const bwzdActiveTab = ref("1"); // tab
const activeMailTrend = ref("1"); // 访tab
@ -503,7 +512,7 @@ const time = ref([
* @type {Ref<UnwrapRef<string>, UnwrapRef<string> | string>}
*/
const selectedOption = ref('2024');
const shihao= ref(1);
const shihao = ref(1);
const handleCommand = async (command) => {
selectedOption.value = `${command}`;
const recentlyMailTrend = await getRecentlyMailTrend({
@ -531,8 +540,6 @@ function initRecentlyMailTrend() {
}
watch(activeMailTrend, async () => {
// console.log("Active Tab: ", activeMailTrend.value);
// console.log("Active Tab Right: ", selectedOption.value);
const recentlyMailTrend = await getRecentlyMailTrend({
sourcesCode: activeMailTrend.value,
year: selectedOption.value,
@ -560,6 +567,7 @@ onMounted(() => {
// console.log("Active Tab: ", activeMailTab.value);
// }, 3000); // 3
});
function getData() {
getMailVisitsData(time.value).then((data) => {
overview.value = data.overview;
@ -577,8 +585,6 @@ function getData() {
}
</script>
<style lang="scss" scoped>
@import "@/style/datav.scss";
@ -589,4 +595,16 @@ function getData() {
top: 65px;
}
.main {
padding: 0 10px 10px;
}
.main-left,
.main-right {
float: left;
width: 25%;
padding: 0 10px;
height: 90%;
}
</style>

640
src/views/sensitivePerception/DepartNegative.vue

@ -4,7 +4,22 @@
<el-form :label-width="114">
<el-row>
<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
v-model="query.departId"
:check-strictly="false"
@ -12,9 +27,10 @@
</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 label="单位简称">
<el-input
v-model="query.departName"
placeholder="请输入"
/>
</el-form-item>
</el-col>
@ -32,7 +48,7 @@
</div>
</div>
</header>
<div class="table-container">
<div class="table-container" v-loading="mainLoading">
<el-table :data="list">
<el-table-column label="单位名称">
<template #default="{ row }">
@ -67,7 +83,11 @@
align="center"
width="160"
/>
<el-table-column label="风险指数" align="center" width="160">
<template #default="{ row }">
<span>/</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template #default="{ row }">
<el-button
@ -96,218 +116,280 @@
</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">
<label>统计范围</label>
<div style="width: 320px">
<date-time-range-picker-ext
v-model="query.crtTime"
v-model="time"
@change="getProfileData"
style="width: 300px"
/>
</div>
<el-button type="primary">查询</el-button>
<el-button type="primary" @click="getProfileData">查询</el-button>
</header>
<main v-loading="loading">
<el-row>
<el-col :span="8">
<h5>单位情况</h5>
<div class="row">
<div class="col col-24">
<label>单位名称</label>
<span>{{ departInfo.name }}</span>
</div>
<div class="col col-24">
<label>所长</label>
<span>{{ departInfo.mainRole }}</span>
</div>
<div class="col col-24">
<label>副所长</label>
<span>
<span
v-for="item in departInfo.deputyRole"
:key="item"
>{{ item }}</span
>
</span>
</div>
</div>
<el-row>
<el-col :span="12">
<description-pair
label1="民警总人数"
label2="问题涉及民警数"
:value1="departInfo.policeSize"
:value2="departInfo.policeSize"
size="large"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="协辅警人数"
label2="问题涉及协辅警数"
:value1="departInfo.auxSize"
:value2="departInfo.policeSize"
size="large"
/>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>问题情况</h5>
<el-row>
<el-col :span="6" class="text-center">
<div class="text-primary" style="font-size: 34px">
{{ activeRow.verifySize }}
</div>
<div>问题总数</div>
</el-col>
<el-col :span="18">
<el-row>
<el-col :span="12">
<description-pair
label1="110接处警量"
label2="问题数"
value1="132"
value2="21"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="执法办案"
label2="问题数"
value1="132"
value2="21"
/>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>风险指数</h5>
<div class="flex center">
<el-progress
type="dashboard"
:percentage="78"
:stroke-width="16"
:width="250"
color="#DC6231"
>
<div style="line-height: 64px" class="mt-40">
<span
style="
font-weight: 600;
font-size: 60px;
color: #e87749;
"
>78</span
>
<span style="font-size: 18px; color: #999"
></span
>
<el-scrollbar
max-height="calc(98vh - 120px)"
v-loading="loading"
element-loading-text="单位问题画像加载中..."
>
<main>
<el-row class="mb-20">
<el-col :span="8">
<h5>单位情况</h5>
<div class="row">
<div class="col col-24">
<label>单位名称</label>
<span>{{ departInfo.name }}</span>
</div>
<div style="font-size: 14px" class="mb-10">
分险指标值
<div class="col col-24">
<label>所长</label>
<span>{{ departInfo.mainRole }}</span>
</div>
<div style="color: #e87749; font-size: 28px">
中风险
<div class="col col-24">
<label>副所长</label>
<span>
<span
v-for="item in departInfo.deputyRole"
:key="item"
class="mr-10"
>{{ item }}</span
>
</span>
</div>
</el-progress>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<h5>问题来源占比</h5>
</div>
<el-row>
<el-col :span="12">
<description-pair
label1="民警总人数"
label2="问题涉及民警数"
:value1="departInfo.policeSize"
:value2="departInfo.policeSize"
size="large"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="协辅警人数"
label2="问题涉及协辅警数"
:value1="departInfo.auxSize"
:value2="departInfo.policeSize"
size="large"
/>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>问题情况</h5>
<el-row
class="flex v-center"
style="height: calc(100% - 76px)"
>
<el-col :span="6" class="text-center">
<div
class="text-primary"
style="font-size: 34px"
>
{{ activeRow.verifySize }}
</div>
<div>问题总数</div>
</el-col>
<el-col :span="18">
<el-row>
<el-col :span="12">
<description-pair
label1="110接处警量"
label2="问题数"
:value1="
negativeInfo.jcjBusinessSize
"
:value2="negativeInfo.jcjSize"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="执法办案"
label2="问题数"
:value1="
negativeInfo.zfbaBusinessSize
"
:value2="negativeInfo.zfbaSize"
/>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>风险指数</h5>
<div class="flex center">
<el-progress
type="dashboard"
:percentage="78"
:stroke-width="16"
:width="250"
color="#DC6231"
>
<div style="line-height: 64px" class="mt-40">
<span
style="
font-weight: 600;
font-size: 60px;
color: #e87749;
"
>78</span
>
<span style="font-size: 18px; color: #999"
></span
>
</div>
<div style="font-size: 14px" class="mb-10">
分险指标值
</div>
<div style="color: #e87749; font-size: 28px">
中风险
</div>
</el-progress>
</div>
</el-col>
</el-row>
<el-row class="mb-20">
<el-col :span="8">
<h5>问题来源占比</h5>
<v-charts
style="height: 320px"
:option="problemSourcesPieOptions"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>业务类型占比</h5>
<v-charts
style="height: 320px"
:option="businessTypePieOptions"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>风险问题构成</h5>
<v-charts
style="height: 320px"
:option="radarOption"
autoresize
/>
</el-col>
</el-row>
<el-row class="mb-20">
<el-col :span="8">
<h5>个人问题排名</h5>
<datav-chart-bar
size="small"
:data="policeBarList"
:color="colors"
/>
</el-col>
<el-col :span="8">
<h5>突出问题排名</h5>
<datav-chart-bar size="small" :data="problemTypeBarList" :color="colors" />
</el-col>
<el-col :span="8">
<h5>单位问题标签</h5>
</el-col>
</el-row>
<div style="margin-top: 60px">
<h5>问题变化趋势</h5>
<v-charts
style="height: 320px"
:option="pieOptions"
:option="barOption"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>业务类型占比</h5>
<v-charts
style="height: 320px"
:option="pieOptions"
autoresize
<div></div>
</div>
<h5>问题清单</h5>
<el-table :data="negativeList">
<el-table-column label="发现时间" prop="discoveryTime" />
<el-table-column label="问题来源" prop="problemSources" />
<el-table-column label="业务类别" prop="businessTypeName" />
<el-table-column
label="涉及单位"
prop="involveDepartName"
/>
</el-col>
<el-col :span="8">
<h5>风险问题构成</h5>
<v-charts
style="height: 320px"
:option="radarOption"
autoresize
<el-table-column
label="核查情况"
prop="checkStatusName"
width="140"
align="center"
/>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<h5>个人问题排名</h5>
<datav-chart-bar :data="barList" :color="colors" />
</el-col>
<el-col :span="8">
<h5>突出问题排名</h5>
<datav-chart-bar :data="barList" />
</el-col>
<el-col :span="8">
<h5>单位问题标签</h5>
<datav-chart-bar :data="barList" />
</el-col>
</el-row>
<h5>问题变化趋势</h5>
<v-charts style="height: 320px" :option="barOption" autoresize />
<div></div>
<h5>问题清单</h5>
<el-table :data="negativeList">
<el-table-column label="发现时间" prop="discoveryTime" />
<el-table-column label="问题来源" prop="problemSources" />
<el-table-column label="业务类别" prop="businessTypeName" />
<el-table-column label="涉及单位" prop="involveDepartName" />
<el-table-column
label="核查情况"
prop="checkStatusName"
width="180"
align="center"
/>
</el-table>
<div class="flex end mt-8">
<el-pagination
@size-change="getNegativeList"
@current-change="getNegativeList"
:current-page="negativeQuery.current"
:page-sizes="[10, 20, 50]"
:page-size="negativeQuery.size"
v-model:current-page="negativeQuery.current"
layout="total, sizes, prev, pager, next"
:total="negativeTotal"
>
</el-pagination>
</div>
</main>
<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>
<div class="flex end mt-8">
<el-pagination
@size-change="getNegativeList"
@current-change="getNegativeList"
:current-page="negativeQuery.current"
:page-sizes="[10, 20, 50]"
:page-size="negativeQuery.size"
v-model:current-page="negativeQuery.current"
layout="total, sizes, prev, pager, next"
:total="negativeTotal"
>
</el-pagination>
</div>
</main>
</el-scrollbar>
</el-dialog>
<negative-dialog
v-model="negativeShow"
:id="activeNegativeId"
@close="negativeShow = false"
/>
</template>
<script lang="ts" setup>
import vCharts from "vue-echarts";
import {
listDepartNegative,
getDepartProfile,
listNegativeMonthly,
} from "@/api/sensitivePerception/profileDepart";
import { listNegative } from "@/api/work/negative";
import { InspectCase } from "@/enums/dictEnums";
import moment from "moment";
const query = ref({
current: 1,
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 total = ref(0);
const mainLoading = ref(false);
function getList() {
mainLoading.value = true;
listDepartNegative(query.value).then((data) => {
list.value = data.records;
total.value = data.total;
mainLoading.value = false;
});
}
@ -315,6 +397,11 @@ function reset() {
query.value = {
current: 1,
size: 10,
departLevel: "3",
crtTime: [
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
};
getList();
}
@ -326,6 +413,7 @@ onMounted(() => {
const activeRow = ref({});
const show = ref(false);
const departInfo = ref({});
const negativeInfo = ref({});
const loading = ref(false);
const negativeQuery = ref({
@ -333,117 +421,131 @@ const negativeQuery = ref({
});
const negativeList = ref([]);
const negativeTotal = ref(0);
async function handleShowProfile(row) {
activeRow.value = row;
loading.value = true;
show.value = true;
negativeQuery.value.involveDepartId = row.departId;
getNegativeList();
const data = await getDepartProfile(row.departId);
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,
const problemSourcesPieOptions = ref({
tooltip: {
trigger: "item",
},
{
label: "李四",
value: 80,
},
{
label: "王五",
value: 40,
series: [
{
type: "pie",
radius: ["40%", "70%"],
data: [],
},
],
});
const businessTypePieOptions = ref({
tooltip: {
trigger: "item",
},
{
label: "王五",
value: 40,
series: [
{
type: "pie",
radius: ["40%", "70%"],
data: [],
},
],
});
const policeBarList = ref([]);
const barOption = ref({
xAxis: {
type: "category",
data: [],
},
{
label: "王五",
value: 10,
yAxis: {
type: "value",
},
];
series: [
{
data: [],
type: "bar",
color: "#5B8FF9 ",
},
],
});
const pieOptions = computed(() => {
return {
series: [
{
type: "pie",
radius: ["40%", "70%"],
async function handleShowProfile(row) {
activeRow.value = row;
show.value = true;
}
data: [
{ value: 311, name: "慢作为" },
{ value: 735, name: "意见建议" },
{ value: 580, name: "违法违纪违规" },
{ value: 484, name: "乱作为" },
{ value: 300, name: "其他" },
{ value: 300, name: "不作为" },
],
},
],
};
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 radarOption = {
const time = ref([]);
const radarOption = ref({
radar: {
// shape: 'circle',
indicator: [
{ name: "内部管理", max: 6500 },
{ name: "涉及监督", max: 6500 },
{ name: "记录作风", max: 30000 },
{ name: "警保卫工作", max: 38000 },
{ name: "执法办案", max: 52000 },
{ name: "专项工作", max: 25000 },
],
indicator: [],
},
series: [
{
name: "Budget vs spending",
type: "radar",
data: [
{
value: [4200, 3000, 20000, 35000, 50000, 18000],
value: [],
},
],
label: {
show: true
}
},
],
};
});
const barOption = {
xAxis: {
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: {
type: "value",
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: "bar",
},
],
};
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>
<style lang="scss" scoped>
</style>

665
src/views/sensitivePerception/PoliceNegative.vue

@ -4,17 +4,35 @@
<el-form :label-width="114">
<el-row>
<el-col :span="6">
<el-form-item label="所在单位">
<depart-tree-select
v-model="query.departId"
:check-strictly="false"
<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="统计时间">
<date-time-range-picker-ext
v-model="query.crtTime"
<el-form-item label="姓名">
<el-input
v-model="query.name"
placeholder="请输入"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="警号">
<el-input
v-model="query.empNo"
placeholder="请输入"
clearable
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="所属单位">
<depart-tree-select
v-model="query.departId"
:check-strictly="false"
/>
</el-form-item>
</el-col>
@ -32,22 +50,52 @@
</div>
</div>
</header>
<div class="table-container">
<div class="table-container" v-loading="mainLoading">
<el-table :data="list">
<el-table-column label="姓名" prop="name" />
<el-table-column label="性别" />
<el-table-column label="职务" prop="" />
<el-table-column label="性别">
<template #default="{ row }">
<span>{{ getGenderFromIdCode(row.idCode) }}</span>
</template>
</el-table-column>
<el-table-column label="职务">
<template #default="{ row }">
<span v-if="row.position">{{ row.position }}</span>
<span v-else>{{
getDictLable(dict.personType, row.personType)
}}</span>
</template>
</el-table-column>
<el-table-column label="警号" prop="empNo" />
<el-table-column label="任职年限" prop="" />
<el-table-column label="单位名称" prop="policeSize" />
<el-table-column label="任职年限" prop="employmentDate" />
<el-table-column label="所属单位" prop="departName">
<template #default="{ row }">
<span
>{{
row.parentDepartName
? row.parentDepartName + "/"
: row.parentDepartName
}}{{ row.departName }}</span
>
</template>
</el-table-column>
<el-table-column
label="查实问题数"
prop="verifySize"
width="120"
align="center"
/>
<el-table-column label="风险指数" align="center" width="160">
<template #default="{ row }">
<span>/</span>
</template>
</el-table-column>
<el-table-column label="操作" width="160">
<template #default="{ row }">
<el-button type="primary" link @click="show = true"
<el-button
type="primary"
link
@click="handleShowProfile(row)"
>问题画像</el-button
>
</template>
@ -70,273 +118,430 @@
</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">
<label>统计范围</label>
<div style="width: 320px">
<date-time-range-picker-ext v-model="query.crtTime" style="width: 300px" />
<date-time-range-picker-ext
v-model="time"
style="width: 300px"
@change="getProfileData"
/>
</div>
<el-button type="primary">查询</el-button>
<el-button type="primary" @click="getProfileData">查询</el-button>
</header>
<main>
<el-row>
<el-col :span="8">
<h5>单位情况</h5>
<div class="row">
<div class="col col-24">
<label>单位名称</label>
<span>{{}}</span>
</div>
<div class="col col-24">
<label>所长</label>
<span>{{}}</span>
</div>
<div class="col col-24">
<label>副所长</label>
<span>{{}}</span>
</div>
</div>
<el-row>
<el-col :span="12">
<description-pair
label1="民警总人数"
label2="问题涉及民警数"
value1="132"
value2="21"
size="large"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="协辅警人数"
label2="问题涉及协辅警数"
value1="132"
value2="21"
size="large"
/>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>问题情况</h5>
<el-row>
<el-col :span="6" class="text-center">
<div class="text-primary" style="font-size: 34px">
51
</div>
<div>问题总数</div>
</el-col>
<el-col :span="18">
<el-row>
<el-col :span="12">
<description-pair
label1="110接处警量"
label2="问题数"
value1="132"
value2="21"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="执法办案"
label2="问题数"
value1="132"
value2="21"
/>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>风险指数</h5>
<div class="flex center">
<el-progress
type="dashboard"
:percentage="78"
:stroke-width="16"
:width="250"
color="#DC6231"
<el-scrollbar
max-height="calc(98vh - 120px)"
v-loading="loading"
element-loading-text="个人问题画像加载中..."
>
<main>
<el-row class="mb-20">
<el-col :span="8">
<h5>民警基本情况</h5>
<el-row>
<el-col :span="6">
<img src="/favicon.png" />
</el-col>
<el-col :span="18">
<div class="row">
<div class="col col-12">
<label>姓名</label>
<span>{{ policeInfo.name }}</span>
</div>
<div class="col col-12">
<label>性别</label>
<span>{{
getGenderFromIdCode(
policeInfo.idCode
)
}}</span>
</div>
<div class="col col-24">
<label>所属单位</label>
<span>
<span
>{{
activeRow.parentDepartName
? activeRow.parentDepartName +
"/"
: activeRow.parentDepartName
}}{{
activeRow.departName
}}</span
>
</span>
</div>
<div class="col col-12">
<label>警号</label>
<span>{{ policeInfo.empNo }}</span>
</div>
<div class="col col-12">
<label>任职年份</label>
<span>{{
policeInfo.employmentDate || "/"
}}</span>
</div>
<div class="col col-12">
<label>手机号</label>
<span>{{
policeInfo.mobile || "/"
}}</span>
</div>
</div>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>问题情况</h5>
<el-row
class="flex v-center"
style="height: calc(100% - 76px)"
>
<div>
<span style="">78</span>
</div>
<div>分险指标值</div>
<div>中风险</div>
</el-progress>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<h5>问题来源占比</h5>
<v-charts
style="height: 320px"
:option="pieOptions"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>业务类型占比</h5>
<v-charts
style="height: 320px"
:option="pieOptions"
autoresize
<el-col :span="6" class="text-center">
<div
class="text-primary"
style="font-size: 34px"
>
{{ activeRow.verifySize }}
</div>
<div>问题总数</div>
</el-col>
<el-col :span="18">
<el-row>
<el-col :span="12">
<description-pair
label1="110接处警量"
label2="问题数"
:value1="
negativeInfo.jcjBusinessSize
"
:value2="negativeInfo.jcjSize"
/>
</el-col>
<el-col :span="12">
<description-pair
label1="执法办案"
label2="问题数"
:value1="
negativeInfo.zfbaBusinessSize
"
:value2="negativeInfo.zfbaSize"
/>
</el-col>
</el-row>
</el-col>
</el-row>
</el-col>
<el-col :span="8">
<h5>风险指数</h5>
<div class="flex center">
<el-progress
type="dashboard"
:percentage="78"
:stroke-width="16"
:width="250"
color="#DC6231"
>
<div style="line-height: 64px" class="mt-40">
<span
style="
font-weight: 600;
font-size: 60px;
color: #e87749;
"
>78</span
>
<span style="font-size: 18px; color: #999"
></span
>
</div>
<div style="font-size: 14px" class="mb-10">
分险指标值
</div>
<div style="color: #e87749; font-size: 28px">
中风险
</div>
</el-progress>
</div>
</el-col>
</el-row>
<el-row class="mb-20">
<el-col :span="8">
<h5>问题来源占比</h5>
<v-charts
style="height: 320px"
:option="problemSourcesPieOptions"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>业务类型占比</h5>
<v-charts
style="height: 320px"
:option="businessTypePieOptions"
autoresize
/>
</el-col>
<el-col :span="8">
<h5>风险问题构成</h5>
<v-charts
style="height: 320px"
:option="radarOption"
autoresize
/>
</el-col>
</el-row>
<h5>问题变化趋势</h5>
<v-charts
style="height: 320px"
:option="barOption"
autoresize
/>
<div></div>
<h5>问题清单</h5>
<el-table :data="negativeList">
<el-table-column label="发现时间" prop="discoveryTime" />
<el-table-column label="问题来源" prop="problemSources" />
<el-table-column label="业务类别" prop="businessTypeName" />
<el-table-column
label="涉及单位"
prop="involveDepartName"
/>
</el-col>
<el-col :span="8">
<h5>风险问题构成</h5>
<v-charts
style="height: 320px"
:option="radarOption"
autoresize
<el-table-column
label="核查情况"
prop="checkStatusName"
width="140"
align="center"
/>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<h5>个人问题排名</h5>
<datav-chart-bar :data="barList" />
</el-col>
<el-col :span="8">
<h5>突出问题排名</h5>
<datav-chart-bar :data="barList" />
</el-col>
<el-col :span="8">
<h5>单位问题标签</h5>
<datav-chart-bar :data="barList" />
</el-col>
</el-row>
<h5>问题变化趋势</h5>
<v-charts style="height: 320px" :option="barOption" autoresize />
<div></div>
<h5>问题清单</h5>
<el-table>
<el-table-column label="发现时间" prop="" />
<el-table-column label="问题来源" prop="" />
<el-table-column label="业务类别" prop="" />
<el-table-column label="涉及单位" prop="" />
<el-table-column label="是否属实" prop="" width="180" />
<el-table-column
label="完善情况"
prop="departName"
width="120"
/>
<el-table-column
label="最后编辑人"
prop="fxzs"
width="120"
align="center"
/>
</el-table>
</main>
<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>
<div class="flex end mt-8">
<el-pagination
@size-change="getNegativeList"
@current-change="getNegativeList"
:current-page="negativeQuery.current"
:page-sizes="[10, 20, 50]"
:page-size="negativeQuery.size"
v-model:current-page="negativeQuery.current"
layout="total, sizes, prev, pager, next"
:total="negativeTotal"
>
</el-pagination>
</div>
</main>
</el-scrollbar>
</el-dialog>
<negative-dialog
v-model="negativeShow"
:id="activeNegativeId"
@close="negativeShow = false"
/>
</template>
<script lang="ts" setup>
import vCharts from "vue-echarts";
import { listDepartNegative } from "@/api/sensitivePerception/profileDepart";
import { onMounted } from "vue";
import {
listPoliceNegative,
getPoliceProfile,
listNegativeByPoliceIdCode,
listNegativeMonthly,
} from "@/api/sensitivePerception/profilePolice";
import { InspectCase } from "@/enums/dictEnums";
import { getDictLable, getGenderFromIdCode } from "@/utils/util";
import moment from "moment";
import useCatchStore from "@/stores/modules/catch";
const catchStore = useCatchStore();
const dict = catchStore.getDicts(["personType"]);
const query = ref({
current: 1,
size: 10,
crtTime: [
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
});
const list = ref<any[]>([]);
const total = ref(0);
const mainLoading = ref(false);
function getList() {
mainLoading.value = true;
listPoliceNegative(query.value).then((data) => {
list.value = data.records;
total.value = data.total;
mainLoading.value = false;
});
}
function reset() {
query.value = {
current: 1,
size: 10,
crtTime: [
moment().startOf("year").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
};
getList();
}
onMounted(() => {
getList();
});
const activeRow = ref({});
const show = ref(false);
const policeInfo = ref({});
const negativeInfo = ref({});
const loading = ref(false);
const barList = [
{
label: "张三",
value: 67,
},
{
label: "李四",
value: 80,
const negativeQuery = ref({
checkStatusList: [InspectCase.TRUE, InspectCase.TRUE],
});
const negativeList = ref([]);
const negativeTotal = ref(0);
const problemSourcesPieOptions = ref({
tooltip: {
trigger: "item",
},
{
label: "王五",
value: 40,
series: [
{
type: "pie",
radius: ["40%", "70%"],
data: [],
},
],
});
const businessTypePieOptions = ref({
tooltip: {
trigger: "item",
},
{
label: "王五",
value: 40,
series: [
{
type: "pie",
radius: ["40%", "70%"],
data: [],
},
],
});
const barOption = ref({
xAxis: {
type: "category",
data: [],
},
{
label: "王五",
value: 10,
yAxis: {
type: "value",
},
];
series: [
{
data: [],
type: "bar",
color: "#5B8FF9 ",
},
],
});
const pieOptions = computed(() => {
return {
series: [
{
type: "pie",
radius: ["40%", "70%"],
async function handleShowProfile(row) {
activeRow.value = row;
show.value = true;
}
data: [
{ value: 311, name: "慢作为" },
{ value: 735, name: "意见建议" },
{ value: 580, name: "违法违纪违规" },
{ value: 484, name: "乱作为" },
{ value: 300, name: "其他" },
{ value: 300, name: "不作为" },
],
},
],
};
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.idCode).then((data) => {
barOption.value.xAxis.data = data.months;
barOption.value.series[0].data = data.values;
});
});
const radarOption = {
const time = ref([]);
const radarOption = ref({
radar: {
// shape: 'circle',
indicator: [
{ name: "内部管理", max: 6500 },
{ name: "涉及监督", max: 6500 },
{ name: "记录作风", max: 30000 },
{ name: "警保卫工作", max: 38000 },
{ name: "执法办案", max: 52000 },
{ name: "专项工作", max: 25000 },
],
indicator: [],
},
series: [
{
name: "Budget vs spending",
type: "radar",
data: [
{
value: [4200, 3000, 20000, 35000, 50000, 18000],
value: [],
},
],
label: {
show: true
}
},
],
};
});
const barOption = {
xAxis: {
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
yAxis: {
type: "value",
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: "bar",
},
],
};
async function getProfileData() {
loading.value = true;
negativeQuery.value.idCode = activeRow.value.idCode;
getNegativeList();
const data = await getPoliceProfile(activeRow.value.idCode, {
beginTime: time.value.length ? time.value[0] : "",
endTime: time.value.length ? time.value[1] : "",
});
policeInfo.value = data.policeInfo;
negativeInfo.value = data.negativeInfo;
problemSourcesPieOptions.value.series[0].data = data.problemSourcesList;
businessTypePieOptions.value.series[0].data = data.businessTypeList;
radarOption.value.radar.indicator = data.problemTypeRadarIndicator
radarOption.value.series[0].data[0].value = data.problemTypeRadarData
loading.value = false;
}
function getNegativeList() {
if (time.value.length === 2) {
negativeQuery.value.beginTime = time.value[0];
negativeQuery.value.endTime = time.value[1];
}
listNegativeByPoliceIdCode(
activeRow.value.idCode,
negativeQuery.value
).then((data) => {
negativeList.value = data.records;
negativeTotal.value = data.total;
});
}
const negativeShow = ref(false);
const activeNegativeId = ref("");
function handleAction(row) {
negativeShow.value = true;
activeNegativeId.value = row.id;
}
</script>
<style lang="scss" scoped>
.col {
--label-width: 60px;
}
</style>

122
src/views/work/Fav.vue

@ -5,27 +5,44 @@
<el-row>
<el-col :span="6">
<el-form-item label="问题发生时间">
<date-time-range-picker-ext v-model="query.happenTime"/>
<date-time-range-picker-ext
v-model="query.happenTime"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="问题来源">
<el-select v-model="query.problemSources">
<el-option v-for="item in dict.problemSources" :key="item.id" :label="item.dictLabel" :value="item.dictValue" />
<el-option
v-for="item in dict.problemSources"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="业务类别">
<el-select v-model="query.businessType">
<el-option v-for="item in dict.businessType" :key="item.id" :label="item.dictLabel" :value="item.dictValue" />
<el-option
v-for="item in dict.businessType"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="涉嫌问题">
<el-select>
<el-option v-for="item in dict.suspectProblem" :key="item.id" :label="item.dictLabel" :value="item.dictValue" />
<el-option
v-for="item in dict.suspectProblem"
:key="item.id"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
@ -36,12 +53,16 @@
</el-col>
<el-col :span="6">
<el-form-item label="涉及单位">
<depart-tree-select v-model="query.involveDepartId" />
<depart-tree-select
v-model="query.involveDepartId"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="办理单位">
<depart-tree-select v-model="query.involveDepartId" />
<depart-tree-select
v-model="query.involveDepartId"
/>
</el-form-item>
</el-col>
<el-col :span="6">
@ -89,7 +110,7 @@
<div class="row mt-10">
<div class="col col-6">
<label>投诉反映人</label>
<span>{{ }}</span>
<span>{{}}</span>
</div>
<div class="col col-6">
<label>联系电话</label>
@ -103,7 +124,7 @@
</div>
<div class="col col-6">
<label>涉嫌问题</label>
<span>{{ }}</span>
<span>{{}}</span>
</div>
</div>
<div class="row mt-10">
@ -120,18 +141,36 @@
</el-table-column>
<el-table-column label="问题发生时间" prop="happenTime" />
<el-table-column label="问题来源" prop="problemSources" />
<el-table-column label="业务类别" prop="" />
<el-table-column label="涉嫌问题" prop="" />
<el-table-column label="问题内容" prop="thingDesc" show-overflow-tooltip />
<el-table-column label="办理单位" prop="" />
<el-table-column label="办理状态" prop="" />
<el-table-column label="办理状态" prop="" />
<el-table-column label="业务类别" prop="businessTypeName" />
<el-table-column label="涉嫌问题">
<template #default="{ row }">
<span>{{ getInvolveProblem(row.involveProblem) }}</span>
</template>
</el-table-column>
<el-table-column
label="问题内容"
prop="thingDesc"
show-overflow-tooltip
/>
<el-table-column label="涉及单位" show-overflow-tooltip>
<template #default="{ row }">
<span>{{ row.involveDepartName }}</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template #default="{ row }">
<el-button type="primary" link @click="handleAction(row)"
<el-button
type="primary"
link
@click="handleAction(row)"
>详情</el-button
>
<el-button type="danger" link @click="handleDelFav(row.negativeId)">取消收藏</el-button>
<el-button
type="danger"
link
@click="handleDelFav(row.negativeId)"
>取消收藏</el-button
>
</template>
</el-table-column>
</el-table>
@ -154,51 +193,56 @@
<negative-dialog v-model="show" :id="activeNegativeId" />
</template>
<script lang="ts" setup>
import { listFav, delFav } from '@/api/work/fav'
import feedback from '@/utils/feedback'
import useCatchStore from '@/stores/modules/catch'
import { listFav, delFav } from "@/api/work/fav";
import feedback from "@/utils/feedback";
import useCatchStore from "@/stores/modules/catch";
import { getDictLable, getInvolveProblem } from "@/utils/util";
const dict = useCatchStore().getDicts(['problemSources', 'businessType', 'suspectProblem'])
console.log(dict)
const dict = useCatchStore().getDicts([
"problemSources",
"businessType",
"suspectProblem",
"processingStatus",
]);
console.log(dict);
const favs = ref([])
const favs = ref([]);
const query = ref({
current: 1,
size: 10
size: 10,
});
const total = ref(0);
function getList() {
listFav().then(data => {
favs.value = data.records
total.value = data.total
})
listFav().then((data) => {
favs.value = data.records;
total.value = data.total;
});
}
onMounted(() => {
getList()
})
getList();
});
function reset() {
query.value = {
current: 1,
size: 10
}
getList()
size: 10,
};
getList();
}
const show = ref(false)
const activeNegativeId = ref('')
const show = ref(false);
const activeNegativeId = ref("");
function handleAction(row) {
show.value = true
activeNegativeId.value = row.negativeId
show.value = true;
activeNegativeId.value = row.negativeId;
}
async function handleDelFav(negativeId) {
await feedback.confirm("确定要取消收藏?");
await delFav(negativeId)
getList()
await delFav(negativeId);
getList();
}
</script>

88
vite.config.ts.timestamp-1730686774606-8b00c58248ca4.mjs

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save