From 20474b3a875ced238f66548bae6f5e81faa5ae48 Mon Sep 17 00:00:00 2001 From: kami <605128600@qq.com> Date: Mon, 18 Nov 2024 13:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/work/alarm.ts | 8 + src/components/police-select.vue | 2 +- .../sensitivePerception/DepartNegative.vue | 99 +- .../sensitivePerception/PoliceNegative.vue | 1372 +++++++++-------- src/views/sensitivePerception/RiskClue.vue | 441 ++++-- .../sensitivePerception/RiskPersonnel.vue | 614 +++++--- src/views/work/Alarm.vue | 26 +- 7 files changed, 1590 insertions(+), 972 deletions(-) diff --git a/src/api/work/alarm.ts b/src/api/work/alarm.ts index 2853717..090587d 100644 --- a/src/api/work/alarm.ts +++ b/src/api/work/alarm.ts @@ -13,3 +13,11 @@ export function alarmNotificationReply(data) { body: data }); } + +export function alarmNotificationCommit(data) { + return request.post({ + url: `/alarm/notification/commit`, + body: data + }); +} + diff --git a/src/components/police-select.vue b/src/components/police-select.vue index 94a6054..080c7af 100644 --- a/src/components/police-select.vue +++ b/src/components/police-select.vue @@ -78,4 +78,4 @@ function onChange(val) { } \ No newline at end of file + diff --git a/src/views/sensitivePerception/DepartNegative.vue b/src/views/sensitivePerception/DepartNegative.vue index c8a3659..d8bec59 100644 --- a/src/views/sensitivePerception/DepartNegative.vue +++ b/src/views/sensitivePerception/DepartNegative.vue @@ -103,6 +103,12 @@ @click="handleShowProfile(row)" >问题详情 + 预警提醒 @@ -411,6 +417,63 @@ + + + + + + + + + + + + + + (formData2.involveDepartName = + row.shortName) + " + /> + + + + + + + + ([]); const total = ref(0); +let showNotification = ref(false) +let formData2 = ref({ + alarmTypeId: 1, + involveDepartId: '', + involveDepartName: '', + alarmContent: '' +}) const mainLoading = ref(false); function getList() { @@ -463,6 +536,30 @@ function reset() { getList(); } +const handleShowNotification = () => { + showNotification.value = true +} + +const handleNotification = async () => { + if(formData2.value.involveDepartId == '') { + feedback.msgWarning("请选择被提醒单位"); + return; + } + if(formData2.value.alarmContent == '') { + feedback.msgWarning("请填写提醒内容"); + return; + } + let data = { + alarmTypeId: formData2.value.alarmTypeId, + notificationDepartCode: formData2.value.involveDepartId, + notificationDepartName: formData2.value.involveDepartName, + alarmContent: formData2.value.alarmContent + } + await alarmNotificationCommit(data); + showNotification.value = false; + feedback.msgSuccess("操作成功"); +} + onMounted(() => { getList(); }); @@ -676,4 +773,4 @@ main { color: var(--danger-color); } } - \ No newline at end of file + diff --git a/src/views/sensitivePerception/PoliceNegative.vue b/src/views/sensitivePerception/PoliceNegative.vue index 9c11bff..9828406 100644 --- a/src/views/sensitivePerception/PoliceNegative.vue +++ b/src/views/sensitivePerception/PoliceNegative.vue @@ -1,504 +1,666 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - 重置 - - - - - - - - - {{ getGenderFromIdCode(row.idCode) }} - - - - - {{ row.position }} - {{ - getDictLable(dict.personType, row.personType) - }} - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + 重置 + + + + + + + + + {{ getGenderFromIdCode(row.idCode) }} + + + + + {{ row.position }} + {{ + getDictLable(dict.personType, row.personType) + }} + + + + + + {{ - row.parentDepartName - ? row.parentDepartName + "/" - : row.parentDepartName - }}{{ row.departName }}{{ + row.parentDepartName + ? row.parentDepartName + "/" + : row.parentDepartName + }}{{ row.departName }} - - - - - + + + + + {{ Math.round(row.score) }}{{ Math.round(row.score) }} - - - - - - - 问题详情 - - - - - - - + + + + + 问题详情 + - - + 预警提醒 + + + + + + + + + - + + 统计范围 + + + + 查询 + + - - 统计范围 - - - - 查询 - - - - - - 民警基本情况 - - - - - - - - 姓名 - {{ policeInfo.name }} - - - 性别 - {{ - getGenderFromIdCode( - policeInfo.idCode - ) - }} - - - 所属单位 - + + + + 民警基本情况 + + + + + + + + 姓名 + {{ policeInfo.name }} + + + 性别 + {{ + getGenderFromIdCode( + policeInfo.idCode + ) + }} + + + 所属单位 + {{ - activeRow.parentDepartName - ? activeRow.parentDepartName + - "/" - : activeRow.parentDepartName - }}{{ - activeRow.departName - }}{{ + activeRow.parentDepartName + ? activeRow.parentDepartName + + "/" + : activeRow.parentDepartName + }}{{ + activeRow.departName + }} - - - 警号 - {{ policeInfo.empNo }} - - - 身份证号 - {{ policeInfo.idCode }} - - - 入职时间 - {{ - policeInfo.employmentDate || "/" - }} - - - 手机号 - {{ - policeInfo.mobile || "/" - }} - - - - - - - 问题情况 - - - - {{ negativeInfo.size }} - - 问题总数 - - {{ negativeInfo.score }} - - 风险值 - - - - + 警号 + {{ policeInfo.empNo }} + + + 身份证号 + {{ policeInfo.idCode }} + + + 入职时间 + {{ + policeInfo.employmentDate || "/" + }} + + + 手机号 + {{ + policeInfo.mobile || "/" + }} + + + + + + + 问题情况 + + + + {{ negativeInfo.size }} + + 问题总数 + + {{ negativeInfo.score }} + + 风险值 + + + + - - - + + - - - - + + + - - - - - - - 风险指数 - - - - - + :value2="negativeInfo.zfbaSize" + /> + + + + + + + 风险指数 + + + + + {{ score }}{{ score }} - 分 - - - 风险指数 - - - + 风险指数 + + + - - - - - {{ getScoreLabel() }} - - - - - - - - - 问题来源占比 - - - - 问题类型占比 - - - - 风险构成 - - - - - - - 问题变化趋势 - - - 问题清单 - - - - - - - - - 查看详情 - - - - - - + > + - + + + {{ getScoreLabel() }} + - - - - - + + + + + + + 问题来源占比 + + + + 问题类型占比 + + + + 风险构成 + + + + + + + 问题变化趋势 + + + 问题清单 + + + + + + + + + 查看详情 + + + + + + + + + + + + + + + + + + + + + + + + + changeDepart(row)" + /> + + + + + + + + + + + + + + \ No newline at end of file + diff --git a/src/views/sensitivePerception/RiskClue.vue b/src/views/sensitivePerception/RiskClue.vue index 5ed22d1..849a4de 100644 --- a/src/views/sensitivePerception/RiskClue.vue +++ b/src/views/sensitivePerception/RiskClue.vue @@ -1,193 +1,350 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - 重置 - - - - - - - - - - - - {{row.data}} - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + 重置 + + + + + + + + + + + + {{ row.data }} + + + + + 预警提醒 + + + + + + + + + + + + + + + + + + + + + + + + + changeDepart(row)" + /> + + + + + + + + + + + + + diff --git a/src/views/sensitivePerception/RiskPersonnel.vue b/src/views/sensitivePerception/RiskPersonnel.vue index f3cec5d..85848e3 100644 --- a/src/views/sensitivePerception/RiskPersonnel.vue +++ b/src/views/sensitivePerception/RiskPersonnel.vue @@ -1,263 +1,425 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - 重置 - - - - - - - - - {{ getGender(row.gender) }} - - - - - - - - - {{ item }} - - - - - - - {{ item }} - - - - - - - 查看详情 - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + 重置 - - + + + + + + + {{ getGender(row.gender) }} + + + + + + + + + {{ item }} + + + + + + + + {{ item }} + + + + + + + + 查看详情 + - - + 预警提醒 + + + + + + + + + - - - - - - - 姓名 - {{ activeRow.name }} - - - 性别 - {{ getGender(activeRow.gender) }} - - - 身份证号 - {{ activeRow.idCode }} - - - 年龄 - {{ activeRow.age }} - - - - - - - {{ personal.riskPersonal.riskScore.toFixed(1) }} - - 风险指数 - - - - - - - {{ item.riskName }} - - - - - - - {{row.data}} - - - - - + + + + + + + 姓名 + {{ activeRow.name }} + + + 性别 + {{ getGender(activeRow.gender) }} + + + 身份证号 + {{ activeRow.idCode }} + + + 年龄 + {{ activeRow.age }} + - + + + + + {{ personal.riskPersonal.riskScore.toFixed(1) }} + + 风险指数 + + + + + + + {{ item.riskName }} + + + + + + + {{ row.data }} + + + + + + + + + + + + + + + + + + + + changeDepart(row)" + /> + + + + + + + + + + + + diff --git a/src/views/work/Alarm.vue b/src/views/work/Alarm.vue index b5f8af7..6658a62 100644 --- a/src/views/work/Alarm.vue +++ b/src/views/work/Alarm.vue @@ -102,7 +102,13 @@ + + + + @@ -245,6 +260,15 @@ style="width: 280px" /> + + +