From 8c9ffee58be72ad91c57d8d18761150450511305 Mon Sep 17 00:00:00 2001 From: kami <605128600@qq.com> Date: Wed, 20 Nov 2024 09:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=8F=8A=E5=AF=B9=E8=B1=A1=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sensitivePerception/DepartNegative.vue | 10 ++++++++++ src/views/sensitivePerception/PoliceNegative.vue | 14 ++++++++++++++ src/views/sensitivePerception/RiskClue.vue | 15 +++++++++++++++ src/views/sensitivePerception/RiskPersonnel.vue | 15 +++++++++++++++ 4 files changed, 54 insertions(+) diff --git a/src/views/sensitivePerception/DepartNegative.vue b/src/views/sensitivePerception/DepartNegative.vue index d8bec59..970defa 100644 --- a/src/views/sensitivePerception/DepartNegative.vue +++ b/src/views/sensitivePerception/DepartNegative.vue @@ -523,6 +523,15 @@ function getList() { }); } +const initFormData2 = () => { + formData2.value ={ + alarmTypeId: 1, + involveDepartId: '', + involveDepartName: '', + alarmContent: '' + } +} + function reset() { query.value = { current: 1, @@ -558,6 +567,7 @@ const handleNotification = async () => { await alarmNotificationCommit(data); showNotification.value = false; feedback.msgSuccess("操作成功"); + initFormData2(); } onMounted(() => { diff --git a/src/views/sensitivePerception/PoliceNegative.vue b/src/views/sensitivePerception/PoliceNegative.vue index 9828406..e11a1a5 100644 --- a/src/views/sensitivePerception/PoliceNegative.vue +++ b/src/views/sensitivePerception/PoliceNegative.vue @@ -601,6 +601,20 @@ const handleNotification = async () => { feedback.msgSuccess("操作成功"); } +const initFormData2 = () => { + formData2.value ={ + alarmTypeId: 1, + involveDepartId: '', + involveDepartName: '', + alarmContent: '', + blameName: '', + blameIdCode: '', + blameEmpNo: '', + blames: {}, + level: -1 + } +} + const changeDepart = (row) => { formData2.value.involveDepartName = row.shortName; formData2.value.level = row.level diff --git a/src/views/sensitivePerception/RiskClue.vue b/src/views/sensitivePerception/RiskClue.vue index 849a4de..feb880e 100644 --- a/src/views/sensitivePerception/RiskClue.vue +++ b/src/views/sensitivePerception/RiskClue.vue @@ -272,6 +272,21 @@ const handleNotification = async () => { await alarmNotificationCommit(data); showNotification.value = false; feedback.msgSuccess("操作成功"); + initFormData2(); +} + +const initFormData2 = () => { + formData2.value = { + alarmTypeId: 1, + involveDepartId: '', + involveDepartName: '', + alarmContent: '', + blameName: '', + blameIdCode: '', + blameEmpNo: '', + blames: {}, + level: -1 + } } const changeDepart = (row) => { diff --git a/src/views/sensitivePerception/RiskPersonnel.vue b/src/views/sensitivePerception/RiskPersonnel.vue index 20677ba..f293864 100644 --- a/src/views/sensitivePerception/RiskPersonnel.vue +++ b/src/views/sensitivePerception/RiskPersonnel.vue @@ -344,6 +344,21 @@ const handleNotification = async () => { await alarmNotificationCommit(data); showNotification.value = false; feedback.msgSuccess("操作成功"); + initFormData2(); +} + +const initFormData2 = () => { + formData2.value = { + alarmTypeId: 1, + involveDepartId: '', + involveDepartName: '', + alarmContent: '', + blameName: '', + blameIdCode: '', + blameEmpNo: '', + blames: {}, + level: -1 + } } const changeDepart = (row) => {